/* ==========================================================================
   Almeida's Gatez — sistema de design
   Paleta oficial da marca (midnight / indigo / royal blue / prata).
   Direção: sóbria e arquitetónica — superfícies lisas, linhas finas,
   cantos contidos, sem brilhos nem gradientes decorativos.
   Mobile-first. Todos os tokens vivem em :root.
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */
:root {
  /* Paleta da marca */
  --black:    #05050D;   /* 01 Midnight Black */
  --navy:     #10123D;   /* 02 Midnight Navy */
  --indigo:   #2525A0;   /* 03 Deep Indigo */
  --royal:    #3939F0;   /* 04 Royal Blue */
  --silver:   #C5C5D0;   /* 05 Silver */
  --silver-lt:#E5E5EC;   /* 06 Light Silver */
  --silver-dk:#9999A8;   /* 07 Dark Silver */
  --ice:      #F5F5FA;   /* 08 Ice White */

  /* Papéis semânticos — tudo derivado da paleta
     Escuros: navy (superfícies) e navy-dk (rodapé/faixas = ranhura da cortina)
     Acento: royal; hover: indigo. Claros: branco, ice, light silver.
     Texto: títulos em navy, corpo e secundário em cinzento azulado. */
  --navy-dk:  #0A0B2C;
  --ink:      var(--navy);
  --text:     #3B3D5C;
  --muted:    #6B6D86;
  --line:     var(--silver-lt);
  --line-dk:  rgba(197,197,208,.14);
  --tint:     rgba(57,57,240,.08);   /* fundo de ícones e números */
  --paper:    #FFFFFF;
  --accent-dk:var(--indigo);

  /* Tipografia */
  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --t-h2:   clamp(1.75rem, 1.2rem + 2.3vw, 2.85rem);
  --t-h3:   clamp(1.08rem, 1rem + .4vw, 1.3rem);
  --t-lead: clamp(1rem, .96rem + .3vw, 1.15rem);

  /* Forma e espaço */
  --r-btn: 10px;
  --r-card: 16px;
  --wrap: 1200px;
  --gut: 20px;
  --sec-y: clamp(64px, 9vw, 120px);
  --header-h: 76px;

  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (max-width: 640px) { :root { --gut: 18px; } }

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--royal); color: #fff; padding: 10px 16px; border-radius: var(--r-btn); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: var(--sec-y) 0; position: relative; }
.section--ice { background: var(--ice); }
.section--dark { background: var(--navy); color: var(--silver); }
.section--dark h2, .section--dark h3 { color: #fff; }
.i { width: 1em; height: 1em; flex: none; }

/* --- Cabeçalho de secção ------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--royal);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: var(--silver-dk); }
.sec-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .eyebrow::after { content: ""; width: 24px; height: 1px; background: currentColor; }
.sec-head h2 { font-size: var(--t-h2); margin-top: 14px; }
.sec-head p { margin-top: 16px; font-size: var(--t-lead); color: var(--muted); }
.section--dark .sec-head p { color: var(--silver-dk); }
/* Títulos em dois tons: a segunda parte em tom secundário */
.hl { color: var(--muted); }
.section--dark .hl { color: var(--silver-dk); }

/* --- Botões -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--r-btn);
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn .i { font-size: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn--primary { background: var(--royal); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--silver-lt); }
.btn--line { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--line:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--line:hover .i { transform: none; }
.btn--ghost { border-color: var(--line-dk); color: #fff; }
.btn--ghost:hover { border-color: rgba(255,255,255,.6); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--ink); }
.btn--wa { background: #1E9E4D; color: #fff; }
.btn--wa:hover { background: #18843F; }
.btn--wa:hover .i, .btn--line:hover .i { transform: none; }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .9rem; }

/* --- Header -------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled {
  background: rgba(16,18,61,.95); border-bottom-color: var(--line-dk);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 50px; width: auto; }
.nav { display: none; }
.nav a { white-space: nowrap; color: var(--silver); font-weight: 500; font-size: .94rem; padding: 8px 0; transition: color .2s; }
.nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: none; white-space: nowrap; align-items: center; gap: 8px; color: #fff; font-family: var(--font-display); font-weight: 700; }
.header-phone .i { color: var(--silver-dk); }
.header-cta { display: none; }
.nav-toggle { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--r-btn); border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; cursor: pointer; }
.nav-toggle .i { font-size: 22px; }
@media (min-width: 640px) { .header-phone { display: inline-flex; } }
@media (min-width: 980px) { .header-cta { display: inline-flex; } }
@media (min-width: 1180px) { .nav { display: flex; gap: 30px; } .nav-toggle { display: none; } }

/* Menu mobile */
.mobile-nav { position: fixed; inset: 0; z-index: 200; background: var(--navy); padding: 14px var(--gut) 28px; display: flex; flex-direction: column; }
.mobile-nav[hidden] { display: none; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.mobile-nav__top img { height: 44px; width: auto; }
.mobile-nav ul { margin-top: 28px; display: grid; }
.mobile-nav ul a { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: #fff; padding: 16px 0; border-bottom: 1px solid var(--line-dk); }
.mobile-nav ul a .i { color: var(--silver-dk); font-size: 18px; }
.mobile-nav__cta { margin-top: auto; display: grid; gap: 10px; }

/* --- Hero: texto + vídeo em cartão --------------------------------------
   O fundo é o mesmo portão da cortina: azul-marinho com lâminas da mesma
   altura (1/8 do ecrã). Quando a cortina sobe, as lâminas do hero ficam
   alinhadas com as dela — parece o interior do mesmo portão. Ao rolar, as
   lâminas continuam a subir devagar (animação ligada ao scroll, só CSS). */
.hero {
  --slat: 12.5vh;
  position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--silver);
  padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(48px, 6vw, 80px);
}
.hero__gate {
  position: absolute; left: 0; right: 0; top: 0; height: calc(100% + var(--slat) * 3); z-index: -1;
  background: repeating-linear-gradient(180deg,
    rgba(255,255,255,.08) 0 1px,
    transparent 1px calc(var(--slat) - 2px),
    var(--navy-dk) calc(var(--slat) - 2px) var(--slat));
  will-change: transform;
}
@supports (animation-timeline: scroll()) {
  .hero__gate { animation: gate-rise linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes gate-rise { to { transform: translate3d(0, calc(var(--slat) * -3), 0); } }
}
.hero__grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1fr 1.12fr; } }
.hero__kicker { font-family: var(--font-display); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--silver-dk); }
.hero h1 { color: #fff; font-size: clamp(1.95rem, 1.15rem + 2.5vw, 3.15rem); line-height: 1.07; letter-spacing: -.025em; margin-top: 18px; max-width: 17ch; text-wrap: balance; }
.hero__lead { margin-top: 20px; font-size: var(--t-lead); color: var(--silver); max-width: 480px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Entrada do texto: espera pela cortina quando ela é mostrada (sem depender de JS) */
.hero__copy > * { animation: rise .8s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__visual { animation: rise .9s var(--ease) both .12s; }
html:not(.intro-seen) .hero__copy > * { animation-delay: 1.55s; }
html:not(.intro-seen) .hero__copy > :nth-child(2) { animation-delay: 1.63s; }
html:not(.intro-seen) .hero__copy > :nth-child(3) { animation-delay: 1.71s; }
html:not(.intro-seen) .hero__copy > :nth-child(4) { animation-delay: 1.79s; }
html:not(.intro-seen) .hero__visual { animation-delay: 1.45s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Cartão do vídeo, com recorte */
.frame { position: relative; margin: 0; overflow: hidden; isolation: isolate; border-radius: 18px; background: var(--navy); aspect-ratio: 16 / 9; }
@media (min-width: 1024px) { .frame { aspect-ratio: 4 / 3.3; } }
.frame__poster, .frame__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 41% 55%; }
.frame__video {
  opacity: 0; transition: opacity .4s ease;
}
.frame.is-playing .frame__video { opacity: 1; }
.hero .notch { --nb: var(--navy); }
.frame__replay {
  position: absolute; z-index: 2; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.3); background: rgba(5,5,13,.55); color: var(--silver-lt);
  font-size: .8rem; cursor: pointer; transition: border-color .2s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.frame__replay[hidden] { display: none; }
.frame__replay:hover { border-color: #fff; }

@media (max-width: 1023px) {
  .hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero h1 { max-width: 20ch; }
  .hero__lead { max-width: 520px; }
  .hero__ctas { justify-content: center; }
}
@media (max-width: 560px) {
  .hero__kicker { font-size: .66rem; letter-spacing: .13em; }
  .hero__lead { font-size: 1rem; }
  .hero__ctas { width: 100%; max-width: 340px; flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
}

/* Factos rápidos */
.facts { background: var(--navy-dk); color: var(--silver); border-top: 1px solid var(--line-dk); }
.facts__in { display: grid; grid-template-columns: 1fr 1fr; }
.facts__in li { padding: 22px 12px; text-align: center; border-bottom: 1px solid var(--line-dk); }
.facts__in li:nth-child(odd) { border-right: 1px solid var(--line-dk); }
.facts__in li:nth-last-child(-n+2) { border-bottom: 0; }
.facts b { display: block; color: #fff; font-family: var(--font-display); font-size: .98rem; }
.facts span { font-size: .84rem; color: var(--silver-dk); }
@media (min-width: 900px) {
  .facts__in { grid-template-columns: repeat(4, 1fr); }
  .facts__in li { padding: 30px 16px; border-bottom: 0; border-right: 1px solid var(--line-dk); }
  .facts__in li:last-child { border-right: 0; }
}

/* --- Recorte de canto com botão encaixado --------------------------------
   Pinta-se com a cor do fundo da secção (--nb). */
.notch {
  --nb: var(--paper); --r: 16px;
  position: absolute !important; /* vence os "> * { position: relative }" dos cartões */
  right: 0; bottom: 0; z-index: 3;
  padding: 8px 0 0 8px; background: var(--nb); border-top-left-radius: 20px;
}
.notch::before, .notch::after {
  content: ""; position: absolute; width: var(--r); height: var(--r);
  background: radial-gradient(circle at 0 0, transparent calc(var(--r) - .5px), var(--nb) var(--r));
}
.notch::before { right: 0; top: calc(var(--r) * -1); }
.notch::after { left: calc(var(--r) * -1); bottom: 0; }
.section--ice .notch, .notch--ice { --nb: var(--ice); }
.notch--white { --nb: #fff; }
.notch__btn { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 19px; transition: background .2s; }
a.notch__btn:hover { background: var(--royal); }
.svc--feature .notch__btn, .bento__tall .notch__btn, .cta .notch__btn, .hero .notch__btn { background: var(--royal); }

/* --- Secção de orçamento ------------------------------------------------- */
.quote__grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
@media (min-width: 980px) { .quote__grid { grid-template-columns: 1fr 1fr; } }
.quote__title { font-size: var(--t-h2); margin-top: 14px; }
.quote__lead { margin-top: 16px; font-size: var(--t-lead); color: var(--muted); max-width: 500px; }
.contact-cards { display: grid; gap: 10px; margin-top: 30px; max-width: 460px; }
.ccard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; transition: border-color .2s; }
.ccard:hover { border-color: var(--royal); }
.ccard__ico { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--royal); font-size: 18px; }
.ccard__ico--wa { color: #1E9E4D; }
.ccard small { display: block; color: var(--muted); font-size: .76rem; }
.ccard b { display: block; color: var(--ink); font-family: var(--font-display); overflow-wrap: anywhere; line-height: 1.3; font-size: clamp(.84rem, 3.4vw, 1rem); }

.quote-card { position: relative; background: var(--ice); color: var(--text); overflow: hidden; border-radius: var(--r-card); padding: clamp(22px, 3.4vw, 40px); }
.quote-card__head h2 { font-size: 1.4rem; }
.quote-card__head p { margin-top: 6px; color: var(--muted); font-size: .93rem; }
.quote-card__foot { margin-top: 16px; font-size: .8rem; color: var(--muted); padding-right: 68px; min-height: 40px; }
.quote-card__foot a { text-decoration: underline; }

/* --- Formulário ---------------------------------------------------------- */
.form { display: grid; gap: 14px; margin-top: 22px; }
.form__row { display: grid; gap: 14px; }
@media (min-width: 520px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--silver); background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
  font-size: 16px; /* evita o zoom automático do iOS ao focar */
}
.field textarea { min-height: 92px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2310123D' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(57,57,240,.14); }
.field__error { display: none; font-size: .8rem; color: #C62A3B; }
.field.is-invalid input, .field.is-invalid select { border-color: #C62A3B; }
.field.is-invalid .field__error { display: block; }
[data-submit-error] { font-size: .86rem; color: #C62A3B; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-success { text-align: center; padding: 30px 6px; }
.form-success .tick { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--royal); font-size: 26px; }
.form-success h3 { font-size: 1.35rem; }
.form-success p { margin-top: 8px; color: var(--muted); }

/* --- Serviços ------------------------------------------------------------
   9 serviços: cartões baixos no desktop (3×3) e linhas compactas no
   telemóvel. O cartão inteiro é clicável (link "esticado" no título) e
   pré-seleciona o serviço no formulário. */
.services { display: grid; gap: 10px; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); } }
.svc {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-card); padding: 22px 22px 66px;
  border: 1px solid transparent; transition: border-color .25s;
}
.svc:hover { border-color: var(--silver); }
.svc__n { font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: var(--royal); letter-spacing: .06em; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.svc h3 { font-size: 1.08rem; margin-top: 16px; }
.svc__link { color: inherit; }
.svc__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.svc__link:focus-visible { outline: none; }
.svc:focus-within { border-color: var(--royal); }
.svc p { margin-top: 6px; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.svc__go { display: none; }
.svc:hover .notch__btn { background: var(--royal); }
.svc--feature { background: var(--navy); color: var(--silver); }
.svc--feature .svc__n { color: var(--silver); border-bottom-color: var(--line-dk); }
.svc--feature h3 { color: #fff; }
.svc--feature p { color: var(--silver); }

@media (max-width: 639px) {
  .svc {
    display: grid; grid-template-columns: 30px 1fr 18px; column-gap: 12px; align-items: center;
    padding: 14px 14px 14px 12px; text-align: left; border-color: var(--line);
  }
  .svc__n { grid-row: 1 / 3; align-self: center; padding: 0; border: 0; text-align: center; font-size: .8rem; }
  .svc h3 { margin: 0; font-size: .98rem; line-height: 1.25; }
  .svc p { grid-column: 2; margin: 3px 0 0; font-size: .84rem; line-height: 1.4; }
  .svc .notch { display: none; }
  .svc__go { display: block; grid-column: 3; grid-row: 1 / 3; color: var(--royal); font-size: 16px; }
  .svc--feature .svc__go { color: #fff; }
}

/* --- Destaque: portão seccionado ---------------------------------------- */
.section--spot { overflow: hidden; }
.spot { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 980px) { .spot { grid-template-columns: 1fr 1fr; } }
.spot h2 { font-size: var(--t-h2); margin-top: 14px; }
.spot__lead { margin-top: 18px; font-size: var(--t-lead); color: var(--silver); }
.garage { position: relative; width: 100%; height: auto; }
.garage .door { transition: transform 1.8s var(--ease) .3s; }
.spot__visual.is-visible .garage .door { transform: translateY(-34%); }
.garage .led { opacity: 0; transition: opacity .6s 1.6s; }
.spot__visual.is-visible .garage .led { opacity: 1; }
.feat { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line-dk); }
@media (min-width: 560px) { .feat { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.feat li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-dk); }
.feat .ico { width: 36px; height: 36px; flex: none; border-radius: 9px; display: grid; place-items: center; color: var(--silver); font-size: 18px; border: 1px solid var(--line-dk); }
.feat b { display: block; color: #fff; font-family: var(--font-display); font-size: .98rem; }
.feat span { font-size: .88rem; color: var(--silver-dk); }
.spot__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Processo ------------------------------------------------------------ */
.steps { display: grid; gap: 14px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.step { position: relative; background: #fff; border-radius: var(--r-card); padding: 28px 26px; border: 1px solid var(--line); }
.step__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--royal); font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.step h3 { margin-top: 18px; font-size: var(--t-h3); }
.step p { margin-top: 10px; color: var(--muted); font-size: .96rem; }

/* --- Porquê nós (bento) -------------------------------------------------- */
.bento { display: grid; gap: 14px; }
@media (min-width: 900px) { .bento { grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; } .bento__tall { grid-row: span 2; } }
.tile { position: relative; border-radius: var(--r-card); padding: 26px; background: #fff; }
.tile .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--royal); font-size: 19px; }
.tile h3 { margin-top: 16px; font-size: 1.12rem; }
.tile p { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.bento__tall {
  overflow: hidden; color: var(--silver); min-height: 360px; background: var(--navy);
  display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 84px;
}
.bento__tall > * { position: relative; }
.bento__tall .mark { position: absolute; top: 26px; left: 26px; width: 120px; height: auto; opacity: .9; }
.bento__tall .flag { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); color: #fff; line-height: 1.1; }
.bento__tall p { color: var(--silver); margin-top: 12px; }

/* --- Trabalhos (galeria) ------------------------------------------------- */
.gallery { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 14px; } .gallery .ph:first-child { grid-row: span 2; } }
.ph {
  position: relative; overflow: hidden; border-radius: 12px; min-height: 170px;
  background: url("/assets/img/mark.svg") center 42% / 80px no-repeat, var(--navy);
  display: flex; align-items: flex-end; padding: 16px; color: var(--silver-lt);
}
.gallery .ph:first-child { grid-column: span 2; }
@media (min-width: 900px) { .gallery .ph:first-child { grid-column: auto; } }
.ph span { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 600; font-size: .88rem; display: flex; align-items: center; gap: 8px; }
.ph span .i { color: var(--silver-dk); }
.ph--filled { padding: 0; }
.ph--filled img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-note { margin-top: 16px; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gallery-note a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* --- Zonas --------------------------------------------------------------- */
.areas { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .areas { grid-template-columns: 1fr 1.1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: .92rem; }
.chips li .i { color: var(--royal); }
.areas__map { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--navy); aspect-ratio: 540 / 600; }
.areas__map svg { width: 100%; height: 100%; }

/* --- FAQ ----------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 2px; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); transition: transform .3s var(--ease), background .2s, color .2s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq details p { padding: 0 2px 22px; color: var(--muted); max-width: 680px; }

/* --- CTA final ----------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; border-radius: 20px; background: var(--navy); color: var(--silver-lt);
  padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 64px) clamp(84px, 8vw, 96px);
  display: grid; gap: 30px; align-items: center;
}
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: var(--t-h2); }
.cta p { margin-top: 14px; font-size: var(--t-lead); max-width: 520px; color: var(--silver); }
.cta .eyebrow { color: var(--silver-dk); }
.cta__phone { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); letter-spacing: -.02em; }
.cta__meta { margin-top: 10px; font-size: .92rem; color: var(--silver); display: grid; gap: 6px; }
.cta__meta span { display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cta .btn--primary { background: #fff; color: var(--ink); }
.cta .btn--primary:hover { background: var(--silver-lt); }
@media (min-width: 980px) { .cta { grid-template-columns: 1.2fr 1fr; } }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-dk); color: var(--silver-dk); padding: clamp(56px, 7vw, 88px) 0 110px; font-size: .93rem; }
@media (min-width: 900px) { .site-footer { padding-bottom: 32px; } }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; } }
.nap a { overflow-wrap: anywhere; }
.footer__brand img { height: 70px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 9px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #fff; }
.nap li { display: flex; gap: 10px; align-items: flex-start; }
.nap .i { color: var(--silver-dk); margin-top: 4px; }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-dk); color: var(--silver); font-size: 18px; transition: border-color .2s, color .2s; }
.social a:hover { border-color: #fff; color: #fff; }
.footer__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dk); display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: .83rem; }
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }

/* --- Barra fixa mobile --------------------------------------------------- */
.callbar {
  position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px;
  border-radius: 14px; background: rgba(10,11,44,.94); border: 1px solid var(--line-dk);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.callbar .btn { min-height: 46px; padding: 0 12px; font-size: .95rem; }
@media (min-width: 900px) { .callbar { display: none; } }

/* --- Páginas de conteúdo (legais / obrigado) ----------------------------- */
.pagehead { background: var(--navy); color: var(--silver); padding: calc(var(--header-h) + 56px) 0 56px; }
.pagehead h1 { color: #fff; font-size: var(--t-h2); margin-top: 12px; }
.pagehead p { margin-top: 12px; }
.article { max-width: 760px; margin: 0 auto; padding: var(--sec-y) var(--gut); }
.article h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.article p, .article li { color: var(--text); margin-bottom: 12px; }
.article ul { list-style: disc; padding-left: 22px; }
.article a { color: var(--royal); text-decoration: underline; }

/* --- Seletor de idioma ---------------------------------------------------- */
.lang { display: none; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line-dk); border-radius: 10px; }
.lang__ico { color: var(--silver-dk); font-size: 15px; margin: 0 4px 0 6px; }
.lang a { padding: 5px 8px; border-radius: 7px; font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .04em; color: var(--silver); transition: background .2s, color .2s; }
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { background: rgba(255,255,255,.12); color: #fff; }
@media (min-width: 420px) { .lang { display: inline-flex; } }
@media (max-width: 419px) { .site-header .lang { display: none; } }
.lang--menu { display: flex; margin-top: 18px; border-color: var(--line-dk); width: 100%; }
.lang--menu a { flex: 1; text-align: center; padding: 10px 6px; font-size: .9rem; }

/* --- Redes sociais ---------------------------------------------------------- */
.social a.is-soon { opacity: .45; cursor: default; }
.social a.is-soon:hover { border-color: var(--line-dk); color: var(--silver); }
.social--light { margin-top: 0; }
.social--light a { border-color: var(--line); color: var(--ink); background: #fff; }
.social--light a:hover { border-color: var(--royal); color: var(--royal); }
.social--light a.is-soon:hover { border-color: var(--line); color: var(--ink); }
.social--menu { margin: 0 0 6px; justify-content: center; }
.follow { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.follow__label { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gallery-note { margin-top: 22px; gap: 12px 16px; }

/* --- Obras em vídeo -------------------------------------------------------- */
.section--dark .notch { --nb: var(--navy); }
.section--dark .notch__btn { background: var(--royal); }
.only-touch { display: none; }
@media (hover: none) { .only-hover { display: none; } .only-touch { display: inline; } }
.vgrid { display: grid; gap: 16px; }
@media (min-width: 760px) { .vgrid { grid-template-columns: repeat(3, 1fr); } }
.vcard { position: relative; margin: 0; overflow: hidden; isolation: isolate; border-radius: var(--r-card); background: var(--navy-dk); aspect-ratio: 4 / 3; cursor: pointer; outline-offset: 4px; }
.vcard__poster, .vcard__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard__poster { transition: transform .8s var(--ease), filter .4s; filter: saturate(.85) brightness(.85); }
.vcard__video { opacity: 0; transition: opacity .35s ease; }
.vcard.is-playing .vcard__video { opacity: 1; }
.vcard:hover .vcard__poster, .vcard:focus-visible .vcard__poster { transform: scale(1.04); filter: none; }
.vcard::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(10,11,44,0) 50%, rgba(10,11,44,.85)); }
.vcard__hint {
  position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px; background: rgba(10,11,44,.6); color: #fff; font-size: .74rem; font-weight: 600;
  transition: opacity .3s;
}
.vcard__hint .i { font-size: 12px; }
.vcard.is-playing .vcard__hint { opacity: 0; }
.vcard__cap { position: absolute; z-index: 2; left: 16px; right: 76px; bottom: 14px; color: #fff; }
.vcard__cap b { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.vcard__cap span { font-size: .82rem; color: var(--silver); }
.vcard .notch__btn { cursor: pointer; border: 0; }

/* --- Trabalhos (fotos reais) ------------------------------------------------ */
.works { display: grid; gap: 12px; }
@media (min-width: 900px) {
  .works { grid-template-columns: 1fr 1fr .9fr; grid-template-rows: 300px 300px; gap: 14px; }
  .pair { grid-column: 1 / 3; }
  .wk--wide { grid-column: 1 / 3; }
  .wk--tall { grid-column: 3; grid-row: 1 / 3; }
}
.pair { position: relative; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pair__img, .wk { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: var(--ice); min-height: 200px; }
.pair__img img, .wk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pair__img:hover img, .wk:hover img { transform: scale(1.03); }
.ptag { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 7px; background: rgba(16,18,61,.8); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.ptag--after { background: var(--royal); }
.pair__arrow { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--royal); box-shadow: 0 0 0 6px rgba(255,255,255,.35); }
.pair figcaption { grid-column: 1 / -1; font-size: .86rem; color: var(--muted); padding-top: 4px; }
@media (min-width: 900px) { .pair figcaption { position: absolute; left: 12px; bottom: 12px; right: auto; max-width: calc(100% - 24px); padding: 6px 10px; border-radius: 7px; background: rgba(16,18,61,.82); color: #fff; font-size: .8rem; font-weight: 600; } .pair .pair__img { height: 100%; } }
.wk figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 7px; background: rgba(16,18,61,.8); color: #fff; font-size: .8rem; font-weight: 600; }
@media (max-width: 899px) { .wk--wide { aspect-ratio: 4 / 3; } .wk--tall { aspect-ratio: 4 / 5; } .pair__img { aspect-ratio: 4 / 4.2; min-height: 0; } }

/* --- Regiões ------------------------------------------------------------------ */
.accent { color: var(--royal); }
.regions { display: grid; gap: 18px; }
.region h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 10px; }
.region--focus { padding: 18px; border-radius: var(--r-card); background: #fff; border: 1px solid rgba(57,57,240,.35); }
.region--focus .chips li { border-color: rgba(57,57,240,.25); }
.badge { padding: 3px 9px; border-radius: 6px; background: var(--royal); color: #fff; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

/* --- Mobile: textos centrados -------------------------------------------- */
@media (max-width: 767px) {
  .sec-head, .quote .reveal:first-child { text-align: center; margin-left: auto; margin-right: auto; }
  .sec-head .eyebrow::after, .quote .eyebrow::after, .spot .eyebrow::after { content: ""; width: 24px; height: 1px; background: currentColor; }
  .quote__lead { margin-left: auto; margin-right: auto; }
  .contact-cards { margin-left: auto; margin-right: auto; text-align: left; }
  .step, .tile { text-align: center; }
  .tile .ico, .step__n { margin-left: auto; margin-right: auto; }
  .bento__tall { text-align: center; align-items: center; }
  .bento__tall { min-height: 0; justify-content: center; padding-top: 32px; }
  .bento__tall .mark { position: static; margin: 0 auto 22px; width: 104px; }
  .spot > div:last-child > .eyebrow, .spot h2, .spot__lead { text-align: center; }
  .spot > div:last-child { text-align: center; }
  .feat { text-align: left; }
  .spot__ctas { justify-content: center; }
  .spot__ctas .btn { width: 100%; }
  .chips { justify-content: center; }
  .region h3 { justify-content: center; }
  .follow { justify-content: center; }
  .vcard__cap { text-align: left; }
  .cta { text-align: center; }
  .cta p { margin-left: auto; margin-right: auto; }
  .cta__btns { justify-content: center; }
  .cta__btns .btn { flex: 1 1 100%; }
  .cta__meta { justify-items: center; }
  .footer__grid { text-align: center; }
  .footer__brand img { margin: 0 auto; }
  .footer__brand p { margin-left: auto; margin-right: auto; }
  .social { justify-content: center; }
  .nap li { justify-content: center; }
  .footer__legal, .footer__legal nav { justify-content: center; text-align: center; }
  .gallery-note { justify-content: center; text-align: center; }
  .faq summary { font-size: 1rem; }
}

/* --- Animações de entrada ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .07s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .21s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.is-visible > *:nth-child(n+6) { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* --- Cortina de abertura: o portão seccionado a subir --------------------
   O estado inicial está inline no <head> para pintar no 1.º frame.        */
.curtain { position: fixed; inset: 0; z-index: 1000; pointer-events: none; overflow: hidden; animation: curtain-failsafe 0s linear 6s forwards; }
html.intro-seen .curtain { display: none; }
.curtain__door { position: absolute; inset: 0; display: flex; flex-direction: column; transform: translate3d(0,0,0); will-change: transform; backface-visibility: hidden; transition: transform .95s cubic-bezier(.7,0,.2,1); }
.curtain__slat { flex: 1; background: var(--navy); border-bottom: 2px solid var(--navy-dk); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.curtain__logo { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .35s, transform .6s var(--ease); }
.curtain__logo .lg { width: min(300px, 62vw); text-align: center; }
.curtain__logo svg { width: 46%; margin: 0 auto; overflow: visible; }
.curtain__logo svg path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.1s var(--ease) forwards .1s; }
.curtain__logo svg path:nth-child(2) { animation-delay: .25s; }
.curtain__logo svg path:nth-child(3) { animation-delay: .4s; }
.curtain__logo .word { margin-top: 14px; font-family: "Times New Roman", serif; color: #fff; font-size: clamp(1.4rem, 1rem + 2vw, 2.1rem); letter-spacing: .1em; line-height: 1.15; opacity: 0; animation: rise .7s var(--ease) forwards .55s; }
.curtain.is-leaving .curtain__door { transform: translate3d(0,-100%,0); }
.curtain.is-leaving .curtain__logo { opacity: 0; transform: translateY(-40px); }
.curtain.is-done { display: none; }
@keyframes curtain-failsafe { to { visibility: hidden; opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .curtain { display: none; } }
