:root {
  --navy-darkest: #0B0E16;
  --navy-mid: #151B28;
  --navy-card: #1F2738;
  --gold-dark: #886337;
  --gold-mid: #C89B4A;
  --gold-light: #E8C875;
  --gold-pale: #F5DFA0;
  --cream: #F5EFE3;
  --body-text: #C7CCD6;
  --body-text-dim: #8891A0;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --line-hairline: rgba(200, 155, 74, 0.22);

  --container-width: 1240px;
  --radius: 10px;
  --radius-btn: 4px;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -60px) scale(1.1); }
}

@keyframes floatBlob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 50px) scale(1.06); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes growLine {
  from { width: 0%; }
  to { width: 100%; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--navy-darkest);
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

main, .site-footer {
  position: relative;
  z-index: 1;
}

/* Static drafting-sheet grid, vignetted so it reads as a surface, not a tiling texture. */
body::before {
  content: '';
  position: fixed;
  inset: -60px;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 85%);
}

/* Film-grain overlay across the whole viewport — the thing that makes a flat gradient/solid
   background feel like a designed surface instead of a digital flat fill. Sits above
   everything, but is inert (no pointer events, very low opacity) so it never affects legibility
   or interaction. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2500;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxmaWx0ZXIgaWQ9Im4iPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjg1IiBudW1PY3RhdmVzPSIyIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIi8+PC9zdmc+");
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* height:auto is the fix here: with a width/height attribute on an <img>, any rule that
   overrides width (e.g. width:100%) without also touching height leaves the raw HTML height
   attribute in effect as a fixed pixel value (it's a low-priority presentational hint, not
   responsive) — this default makes every image scale proportionally unless something more
   specific (e.g. an absolutely-positioned image with height:100%) overrides it. */
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--cream);
  font-weight: 600;
  line-height: 1.2;
}

h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.gold-text { color: var(--gold-light); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--gold-mid);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.eyebrow.mono { font-size: 0.72rem; }

.section-lead {
  max-width: 620px;
  margin: 0 auto 3rem;
  color: var(--body-text-dim);
}

/* ---------- Progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-pale));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-pale), var(--gold-light), var(--gold-dark));
  background-size: 300% 100%;
  animation: shimmer 6s linear infinite;
  color: var(--navy-darkest);
  box-shadow: 0 8px 24px rgba(200, 155, 74, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(200, 155, 74, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary, .nav-cta { animation: none; background-position: 0 0; }
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(200, 155, 74, 0.5);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--gold-light);
  background: rgba(200, 155, 74, 0.08);
  transform: translateY(-3px);
}

.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 18px 0;
  background: rgba(11, 14, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-hairline);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }

.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  line-height: 1.2;
  white-space: nowrap;
}

.brand-name small {
  display: block;
  font-size: 0.6rem;
  color: var(--gold-light);
  letter-spacing: 0.28em;
  font-family: var(--font-body);
  font-weight: 500;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-shrink: 0;
}

.main-nav a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--body-text);
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0%;
  height: 1.5px;
  background: var(--gold-light);
  transition: width 0.25s ease;
}

.main-nav a:not(.nav-cta):hover { color: var(--cream); }
.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-pale), var(--gold-light), var(--gold-dark));
  background-size: 300% 100%;
  animation: shimmer 6s linear infinite;
  color: var(--navy-darkest) !important;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-btn);
  font-weight: 600 !important;
  transition: transform 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(11,14,22,0.94) 30%, rgba(11,14,22,0.55) 65%, rgba(11,14,22,0.3));
}

.hero-blob {
  position: absolute;
  z-index: 1;
  width: 640px;
  height: 640px;
  max-width: 70vw;
  max-height: 70vw;
  border-radius: 50%;
  top: -180px;
  right: -160px;
  background: radial-gradient(circle, rgba(200,155,74,0.28), transparent 70%);
  filter: blur(6px);
  animation: floatBlob 12s ease-in-out infinite;
  pointer-events: none;
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(var(--line-hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-hairline) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 20%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 30% 20%, black 0%, transparent 75%);
  pointer-events: none;
}

.reg-mark {
  position: absolute;
  z-index: 1;
  width: 26px;
  height: 26px;
  pointer-events: none;
  opacity: 0.5;
}

.reg-mark::before, .reg-mark::after {
  content: '';
  position: absolute;
  background: var(--gold-mid);
}

.reg-mark::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.reg-mark::after { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-50%); }

.reg-tl { top: 32px; left: 24px; }
.reg-br { bottom: 32px; right: 24px; }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-copy {
  position: relative;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  max-width: 760px;
  animation: floatY 6s ease-in-out infinite;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--body-text);
  max-width: 600px;
  margin-bottom: 2.2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
  .hero-title { animation: none; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(200, 155, 74, 0.15);
  border-bottom: 1px solid rgba(200, 155, 74, 0.15);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.trust-icon {
  color: var(--gold-light);
  font-size: 0.9rem;
  margin-top: 2px;
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.trust-item:nth-child(2) .trust-icon { animation-delay: 0.3s; }
.trust-item:nth-child(3) .trust-icon { animation-delay: 0.6s; }
.trust-item:nth-child(4) .trust-icon { animation-delay: 0.9s; }

@media (prefers-reduced-motion: reduce) {
  .trust-icon { animation: none; }
}

.trust-item p {
  font-size: 0.88rem;
  color: var(--body-text-dim);
}

/* ---------- BIM showcase ---------- */
.bim-switcher { margin-top: 3rem; }

.bim-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.bim-tab {
  background: none;
  border: 1px solid var(--line-hairline);
  color: var(--body-text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.bim-tab:hover { color: var(--cream); border-color: var(--gold-mid); }

.bim-tab.active {
  color: var(--navy-darkest);
  background: var(--gold-light);
  border-color: var(--gold-light);
  font-weight: 500;
}

.bim-viewer {
  position: relative;
  height: 480px;
  background: var(--navy-card);
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-btn);
  overflow: hidden;
}

.bim-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.bim-image.active { opacity: 1; pointer-events: auto; }

.bim-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.7rem;
  color: var(--body-text-dim);
}

.bim-result {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--navy-card);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-btn);
  padding: 2.5rem;
}

.bim-result-visual {
  background: #cfd3d6;
  border-radius: var(--radius-btn);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bim-result-visual img { width: 100%; display: block; }

.bim-result-text h3 { margin-bottom: 0.75rem; }
.bim-result-text p:not(.eyebrow) { color: var(--body-text-dim); font-size: 0.92rem; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; position: relative; }

.section-alt, .section-contact {
  background: var(--navy-mid);
  border-top: 1px solid var(--line-hairline);
  border-bottom: 1px solid var(--line-hairline);
}

.section-contact {
  position: relative;
  overflow: hidden;
}

.section-contact .container {
  position: relative;
  z-index: 1;
}

/* Radial gold blob — used behind the final CTA/contact section only, matching the hero's
   accent. Purely decorative, disabled under reduced-motion. */
.section-blob-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  max-width: 90vw;
  max-height: 90vw;
  border-radius: 50%;
  left: 50%;
  bottom: -200px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(200,155,74,0.22), transparent 70%);
  filter: blur(6px);
  animation: floatBlob2 13s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.check-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--body-text);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 700;
}

.col-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.5rem;
  border: 1px solid var(--line-hairline);
}

.blueprint-texture {
  position: absolute;
  inset: 0;
  background-image: url('../assets/projetos/blueprint_garagem.png');
  background-size: cover;
  background-position: center;
  filter: invert(1) brightness(0.5) sepia(1) hue-rotate(360deg) saturate(2);
  opacity: 0.1;
  pointer-events: none;
}

.visual-card {
  position: relative;
  background: var(--navy-card);
  border: 1px solid rgba(200, 155, 74, 0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.visual-card.offset { margin-left: 2rem; border-color: rgba(200, 155, 74, 0.35); }

.visual-step {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold-light);
  font-weight: 700;
}

.visual-card p { color: var(--cream); font-size: 0.95rem; margin: 0; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--navy-card);
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-light);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}

.service-card-wide {
  grid-column: span 2;
  background: var(--gold-mid);
  border: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.35s ease;
}

.service-card-wide:hover { transform: translateY(-8px); }

.service-card-wide .service-icon { margin-bottom: 0; }
.service-card-wide .service-icon svg { width: 34px; height: 34px; }

.service-icon {
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  color: var(--gold-light);
}

.service-icon svg { width: 30px; height: 30px; }

.service-card-wide .service-icon { color: var(--navy-darkest); }

.service-card p { color: var(--body-text-dim); font-size: 0.92rem; }

/* These come after the generic .service-card p rule (same specificity) so they actually win —
   solid navy at full opacity, not translucent: the gold card's gradient predecessor let this
   text fall on a darker corner, dropping contrast well below WCAG AA. */
.service-card-wide h3 { color: var(--navy-darkest); }
.service-card-wide p { color: var(--navy-darkest); }

/* ---------- Timeline ("Como funciona") ---------- */
.timeline-wrap {
  position: relative;
  margin-top: 3.5rem;
}

.timeline-line {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line-hairline);
}

.timeline-line-progress {
  position: absolute;
  top: 8px;
  left: 0;
  height: 2px;
  width: 65%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  animation: growLine 4s ease-in-out infinite alternate;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
  position: relative;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  /* Grid rows stretch every .timeline-item to the tallest one; the card below fills that
     full height (via flex on .step-card) so all 6 cards end up the same size regardless of
     how long each description is. */
}

.timeline-node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--navy-darkest);
  border: 2px solid var(--line-hairline);
  box-shadow: 0 0 0 6px var(--navy-darkest);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-node-done {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border: none;
}

/* Hovering a step card highlights its node above it, so the two visibly correspond. */
.timeline-item:hover .timeline-node {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px var(--navy-darkest), 0 0 14px 3px rgba(200, 155, 74, 0.6);
}

.step-card {
  background: var(--navy-card);
  border: 1px solid var(--line-hairline);
  border-radius: 8px;
  padding: 1.1rem;
  width: 100%;
  flex: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: border-color 0.3s ease;
}

.step-card:hover { border-color: var(--gold-light); }

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
  letter-spacing: 0.08em;
}

.step-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }

.step-card p { color: var(--body-text-dim); font-size: 0.78rem; line-height: 1.4; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .timeline-line-progress { animation: none; }
  .timeline-node { transition: none; }
}

/* ---------- Projects ---------- */
.projects-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 1rem;
  align-items: start;
}

.project-block {
  background: var(--navy-card);
  border-radius: var(--radius);
  border: 1px solid var(--line-hairline);
  padding: 1.5rem;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.project-block:hover {
  transform: translateY(-6px);
  border-color: var(--gold-light);
}

.project-block-header { margin-bottom: 1rem; }

.project-tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  font-weight: 500;
}

.project-block-header h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.project-block-header p { color: var(--body-text-dim); font-size: 0.88rem; }

.carousel {
  position: relative;
  height: 460px;
  background: #e9e5da;
  border-radius: var(--radius-btn);
  overflow: hidden;
}

.carousel-expand {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: rgba(11, 14, 22, 0.75);
  color: var(--cream);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.carousel-expand:hover { background: var(--gold-mid); color: var(--navy-darkest); }

.carousel-track { position: relative; width: 100%; height: 100%; }

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.carousel-slide.active { opacity: 1; pointer-events: auto; }

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.project-block:hover .carousel-slide.active img {
  transform: scale(1.12);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 14, 22, 0.75);
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.carousel-btn:hover { background: var(--gold-mid); color: var(--navy-darkest); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-counter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(11, 14, 22, 0.75);
  color: var(--cream);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.video-embed {
  position: relative;
  height: 340px;
  background: #000;
  border-radius: var(--radius-btn);
  overflow: hidden;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 12, 17, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--line-hairline);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
}

.lightbox-close:hover { background: var(--gold-mid); color: var(--navy-darkest); }

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  font-size: 1.6rem;
  cursor: pointer;
}

.lightbox-btn:hover { background: var(--gold-mid); color: var(--navy-darkest); }
.lightbox-btn.prev { left: 24px; }
.lightbox-btn.next { right: 24px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--body-text-dim);
  font-size: 0.8rem;
}

/* ---------- FAQ ---------- */
.faq-container { max-width: 800px; }

.faq-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  border: 1px solid rgba(200, 155, 74, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-card);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 1.3rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  color: var(--gold-light);
  font-size: 1.3rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.6rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.6rem 1.5rem;
}

.faq-answer p { color: var(--body-text-dim); font-size: 0.92rem; }

/* ---------- Contact / Form ---------- */

.quote-form {
  background: var(--navy-card);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid rgba(200, 155, 74, 0.15);
}

.form-row { margin-bottom: 1.2rem; }

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--body-text);
}

.field-label { display: block; font-size: 0.85rem; margin-bottom: 0.6rem; color: var(--body-text); }

input, textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200, 155, 74, 0.25);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

input:focus, textarea:focus {
  border-color: var(--gold-light);
  background: rgba(255,255,255,0.06);
}

textarea { resize: vertical; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--body-text);
}

.checkbox input { width: auto; }

.form-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--body-text-dim);
  text-align: center;
}

.h-captcha { margin: 0.25rem 0 1rem; }

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  text-align: center;
  min-height: 1.2em;
}

.form-status.success { color: var(--gold-light); }
.form-status.error { color: #E08585; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-darkest);
  border-top: 1px solid rgba(200, 155, 74, 0.15);
  padding-top: 3rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }

.footer-contact {
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  color: var(--body-text-dim);
  line-height: 1.6;
}

.footer-contact a { color: var(--body-text-dim); transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--gold-light); }

.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.88rem; color: var(--body-text-dim); }
.footer-nav a:hover { color: var(--gold-light); }

.footer-actions { display: flex; align-items: center; gap: 1.2rem; }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--body-text-dim);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover { color: var(--gold-light); transform: translateY(-2px); }

.nav-social { display: inline-flex; align-items: center; }

.footer-bottom {
  border-top: 1px solid rgba(200, 155, 74, 0.1);
  padding: 1.5rem 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--body-text-dim);
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 800;
  transition: transform 0.25s ease;
}

.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Reveal animation base ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { min-height: 100vh; padding: 110px 0 50px; }
  .hero-copy { max-width: 100%; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-track { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-wide { grid-column: span 2; }
  .visual-card.offset { margin-left: 0; }
  .bim-result { grid-template-columns: 1fr; padding: 1.5rem; }
  .projects-list { grid-template-columns: 1fr; }
  .carousel, .video-embed { height: 300px; }
  .timeline-track { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--navy-darkest);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.4);
  }

  .main-nav.open { transform: translateX(0); }

  .nav-toggle { display: flex; }

  .steps-track { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card-wide { grid-column: span 1; }
  .form-row-split { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .bim-viewer { height: 280px; }
  .bim-tab { font-size: 0.7rem; padding: 0.5rem 0.8rem; }
  .timeline-track { grid-template-columns: 1fr; }
  .timeline-line, .timeline-line-progress { display: none; }
}
