/* ============================================================
   Leila Dagostim PA — site institucional (produção)
   Base: Brand Book v2 oficial (clients/leila-corretora-eua/ativos/brand-guide.md + tokens.css)
   Fontes: Google Fonts como aproximação das licenciadas ate os .woff2 chegarem:
     - Fraunces  ≈ IvyOra Display   (display/headlines) — fallback oficial declarado no brand-guide
     - Sora      ≈ Abacaxi Latin VF (body/UI)           — fallback oficial declarado no brand-guide
   Paleta travada (nao inventar variacoes): Red / Grey / Dark blue / Off white.
   Um so accent (Red). Um so raio de borda base. Reduced-motion respeitado.
   ============================================================ */

:root {
  /* Cores oficiais */
  --red:        #702618;
  --red-hover:  #8a2f1e;
  --rose:       #e9c8bf;   /* tint claro do Red — unico tom usado sobre fundo escuro */
  --grey:       #504e47;
  --dark:       #05151e;
  --dark-2:     #0a2230;   /* dark-blue levemente acima p/ camadas */
  --off:        #f5f1e9;
  --off-muted:  #ece7dc;

  --text-strong: var(--dark);
  --text-body:   #2c2a25;
  --text-muted:  var(--grey);
  --on-dark:     var(--off);
  --on-dark-dim: #b9c2c7;

  --border:  rgba(80,78,71,.20);
  --border-dark: rgba(245,241,233,.16);

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body:    "Sora", system-ui, -apple-system, sans-serif;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 26px;
  --pill: 999px;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 56px);

  --shadow: 0 18px 50px rgba(5,21,30,.14);
  --shadow-sm: 0 6px 20px rgba(5,21,30,.10);

  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--off);
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; color: var(--text-strong); margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.15rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
/* Titulo de secao em vermelho sobre fundo claro (devolutiva do cliente: mais Red, menos Dark blue). */
h2.h-accent { color: var(--red); }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--red); }
/* Rosa sobre fundo escuro: o vermelho da marca nao tem leitura boa ali (devolutiva Jessica). */
.on-dark .eyebrow, .contact .eyebrow { color: #e0a99b; }
.lead { font-size: 1.12rem; color: var(--text-muted); max-width: 60ch; }
.on-dark .lead { color: var(--on-dark-dim); }

/* ---- Botoes ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85em 1.5em; border-radius: var(--pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--red); color: var(--off); }
.btn-primary:hover { background: var(--red-hover); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text-strong); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-strong); transform: translateY(-2px); }
.on-dark .btn-ghost { color: var(--off); border-color: rgba(245,241,233,.4); }
.on-dark .btn-ghost:hover { border-color: var(--off); background: rgba(245,241,233,.06); }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #05151e;
  border-bottom: 1px solid var(--border-dark);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 72px;
}
.nav-logo { flex: none; }
.nav-logo img { height: 42px; width: auto; max-width: none; }
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a { color: var(--on-dark-dim); font-size: .9rem; font-weight: 500; white-space: nowrap; transition: color .2s; }
.nav-links a:hover { color: var(--off); }
.nav-right { display: flex; align-items: center; gap: 16px; flex: none; }
.langs { color: var(--on-dark-dim); font-size: .8rem; letter-spacing: .1em; font-weight: 600; }
.langs b { color: var(--off); }
.nav-toggle { display: none; background: none; border: 0; color: var(--off); cursor: pointer; }
@media (max-width: 1180px) {
  .nav-links, .nav-right .lang-switch { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ============================================================
   HERO — split premium (dark + hex pattern)  [Template B]
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  color: var(--on-dark);
  background:
    linear-gradient(96deg, rgba(5,21,30,.96) 0%, rgba(5,21,30,.88) 46%, rgba(5,21,30,.62) 100%),
    var(--dark) url("hero-bg.jpg") center/cover no-repeat;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1fr .95fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-block: clamp(56px, 8vw, 92px);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5em;
  border: 1px solid rgba(245,241,233,.28); border-radius: var(--pill);
  padding: .4em 1em; font-size: .8rem; letter-spacing: .06em; font-weight: 600;
  color: var(--off); margin-bottom: 22px;
}
.hero-badge::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.hero h1 { color: var(--off); font-size: clamp(2.5rem, 5.6vw, 4.2rem); font-weight: 400; }
.hero h1 em { font-style: italic; color: #e9c8bf; }
.hero p.sub { margin-top: 22px; font-size: 1.18rem; color: var(--on-dark-dim); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-visual {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border-dark);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5,21,30,.55)); }
.hero-visual figcaption {
  position: absolute; left: 18px; bottom: 16px; right: 18px;
  color: var(--off); font-size: .9rem; font-weight: 500;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 48px; }
  .hero-visual { aspect-ratio: 16/12; order: -1; }
}

/* ============================================================
   TRUST STRIP — metricas em linha (sem cards)
   ============================================================ */
.trust { background: var(--dark); color: var(--on-dark); border-top: 1px solid var(--border-dark); }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding-block: 44px;
}
.trust-grid > div { padding-inline: 20px; border-left: 1px solid var(--border-dark); }
.trust-grid > div:first-child { border-left: 0; }
.trust .num { font-family: var(--font-display); font-size: 1.9rem; color: var(--off); line-height: 1; }
.trust .lbl { font-size: .9rem; color: var(--on-dark-dim); margin-top: 8px; }
@media (max-width: 720px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 28px 8px; }
  .trust-grid > div:nth-child(3) { border-left: 0; }
}

/* ============================================================
   SERVICES — bento assimetrico (1 destaque + 4)
   ============================================================ */
.services-head { max-width: 54ch; margin-bottom: 44px; }
.bento {
  display: grid; gap: 18px;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 1fr;
}
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  gap: 28px; padding: 30px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  min-height: 210px; overflow: hidden;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--text-muted); font-size: .98rem; }
.tile .more { font-weight: 600; color: var(--red); font-size: .95rem; margin-top: auto; }
.tile .ic { width: 40px; height: 40px; color: var(--red); }
/* destaque grande ocupa 2 linhas na 1a coluna */
.tile.feature {
  grid-row: span 2; color: var(--on-dark);
  border-color: var(--border-dark); justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(5,21,30,.58) 0%, rgba(5,21,30,.90) 100%),
    var(--dark) url("services-home-dusk.jpg") center/cover no-repeat;
}
.tile.feature > * { position: relative; z-index: 1; }
.tile.feature h3 { color: var(--off); font-size: 1.7rem; }
.tile.feature p { color: var(--on-dark-dim); }
.tile.feature .ic, .tile.feature .more { color: #e9c8bf; }

/* tiles fotograficos (foto de contexto + gradiente escuro + texto claro) */
.tile.photo { color: var(--on-dark); border-color: var(--border-dark); justify-content: flex-end; }
.tile.photo h3 { color: var(--off); }
.tile.photo p { color: var(--on-dark-dim); }
.tile.photo .ic, .tile.photo .more { color: #e9c8bf; }
.tile.photo.buy {
  background: linear-gradient(180deg, rgba(5,21,30,.20) 0%, rgba(5,21,30,.84) 100%),
    var(--dark) url("services-buy.jpg") center/cover no-repeat;
}
.tile.photo.rent {
  background: linear-gradient(180deg, rgba(5,21,30,.20) 0%, rgba(5,21,30,.84) 100%),
    var(--dark) url("services-renting.jpg") center/cover no-repeat;
}
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.feature { grid-row: span 1; grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.feature { grid-column: span 1; flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   RED BAND — no down payment (accent, full-bleed, centrado)
   ============================================================ */
.redband { background: var(--red); color: var(--off); text-align: center; }
.redband h2 { color: var(--off); max-width: 20ch; margin-inline: auto; }
.redband .lead { color: #f2ddd7; margin: 18px auto 0; }
.pill-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin: 34px auto 30px; max-width: 720px;
}
.pill-row span {
  border: 1px solid rgba(245,241,233,.45); border-radius: var(--pill);
  padding: .6em 1.15em; font-size: .95rem; font-weight: 500;
}
.redband .btn-ghost { color: var(--off); border-color: rgba(245,241,233,.6); }
.redband .btn-ghost:hover { background: rgba(245,241,233,.1); border-color: var(--off); }

/* ============================================================
   REVERSE MORTGAGE — dark band, split educacional [Template B]
   ============================================================ */
.rm {
  color: var(--on-dark); position: relative; overflow: hidden;
  background:
    linear-gradient(96deg, rgba(5,21,30,.97) 0%, rgba(5,21,30,.88) 50%, rgba(5,21,30,.68) 100%),
    var(--dark) url("rm-bg.jpg") center/cover no-repeat;
}
.rm-grid { position: relative; display: grid; grid-template-columns: 1fr .95fr; gap: clamp(32px,5vw,64px); align-items: center; }
.rm h2 { color: var(--off); }
.rm ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.rm li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.rm li .k { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(233,200,191,.14); color: #e9c8bf; }
.rm li .t strong { display: block; color: var(--off); font-weight: 600; margin-bottom: 2px; }
.rm li .t span { color: var(--on-dark-dim); font-size: .97rem; }
.rm-note { margin-top: 26px; font-size: .82rem; color: #8ea0a8; max-width: 52ch; }
.rm-photo { aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-dark); box-shadow: var(--shadow); }
.rm-photo img { width: 100%; height: 100%; object-fit: cover; }
.rm .btn { margin-top: 30px; }
@media (max-width: 860px) { .rm-grid { grid-template-columns: 1fr; } .rm-photo { order: -1; aspect-ratio: 16/11; } }

/* ============================================================
   ABOUT — editorial retrato + bio
   ============================================================ */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px,5vw,68px); align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--r-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; height: auto; box-shadow: var(--shadow); }
.about-photo .stamp {
  position: absolute; right: -14px; bottom: 24px; background: var(--red); color: var(--off);
  font-family: var(--font-display); border-radius: var(--r-sm); padding: 14px 18px; line-height: 1;
  box-shadow: var(--shadow-sm);
}
.about-photo .photo-slot {
  aspect-ratio: 4/5; border-radius: var(--r-lg); width: 100%;
  background: var(--off-muted);
  border: 1.5px dashed rgba(112,38,24,.35);
  display: grid; place-content: center; justify-items: center; gap: 14px;
  color: var(--red); box-shadow: var(--shadow);
}
.about-photo .photo-slot svg { width: 46px; height: 46px; opacity: .8; }
.about-photo .photo-slot span { font-size: .9rem; font-weight: 500; color: var(--grey); letter-spacing: .01em; }
.about-photo .stamp b { font-size: 1.7rem; display: block; }
.about-photo .stamp span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.about-quote { font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2.1rem); line-height: 1.28; color: var(--text-strong); font-weight: 400; }
.about-body { margin-top: 22px; color: var(--text-body); max-width: 56ch; }
.about-sign { margin-top: 20px; font-weight: 600; color: var(--red); }
@media (max-width: 780px){ .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 340px; } }

/* ============================================================
   PROCESS — passos horizontais (verbos, sem "Step 1/2/3")
   ============================================================ */
.process { background: var(--off-muted); }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin-top: 46px; counter-reset: s; }
.step { position: relative; padding-top: 26px; border-top: 2px solid rgba(112,38,24,.25); }
.step .n { font-family: var(--font-display); color: var(--red); font-size: 1.05rem; font-weight: 600; }
.step h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.step p { color: var(--text-muted); font-size: .96rem; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr 1fr; gap: 30px 22px; } }
@media (max-width: 460px){ .steps { grid-template-columns: 1fr; } }

/* ============================================================
   WHY / CREDENCIAIS — (substitui depoimentos ate haver reais)
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; margin-top: 44px; }
.why-item { background: var(--off); padding: 30px; }
.why-item .ic { width: 30px; height: 30px; color: var(--red); margin-bottom: 16px; }
.why-item h3 { font-size: 1.12rem; margin-bottom: 8px; }
.why-item p { color: var(--text-muted); font-size: .96rem; }
@media (max-width: 820px){ .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .why-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT — dark band, canais diretos
   ============================================================ */
.contact {
  color: var(--on-dark); text-align: center; position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5,21,30,.92) 0%, rgba(5,21,30,.84) 100%),
    var(--dark) url("neighborhood.jpg") center/cover no-repeat;
}
.contact::before { content:""; position:absolute; inset:0; background-image:url("hex.svg"); background-size:180px; opacity:.05; pointer-events:none; }
.contact-inner { position: relative; }
.contact h2 { color: var(--off); }
.contact .lead { margin: 16px auto 0; text-align: center; color: var(--on-dark-dim); }
.channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 38px; }
.channel {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: rgba(245,241,233,.05); border: 1px solid var(--border-dark);
  border-radius: var(--pill); padding: 14px 26px 14px 18px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.channel:hover { transform: translateY(-3px); border-color: rgba(245,241,233,.4); background: rgba(245,241,233,.09); }
.channel .ic { width: 30px; height: 30px; flex: none; color: #e9c8bf; }
.channel.wa .ic { color: #4ade80; }
.channel .k { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-dim); }
.channel .v { font-weight: 600; color: var(--off); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #030d13; color: var(--on-dark-dim); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-block: 64px 44px; }
.footer-brand img { height: 34px; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; font-size: .95rem; }
.footer-brand .ig { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; color: var(--off); font-weight: 500; }
/* Titulos das colunas do rodape no rose da marca (devolutiva do cliente: mais destaque). */
.footer h4 { color: var(--rose); font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col a { display: block; padding: 5px 0; font-size: .95rem; color: var(--on-dark-dim); transition: color .2s; }
.footer-col a:hover { color: var(--off); }
/* Lockup de certificações — faixa clara para não recolorir marcas de licença */
.footer-certs { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-block: 30px 34px; border-top: 1px solid var(--border-dark); }
.footer-certs-label { font-family: var(--font-body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #6d7d85; }
.footer-certs-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 28px 40px; background: #fff; border-radius: 14px; padding: 18px 30px; }
.footer-certs-row img { height: 34px; width: auto; display: block; }
.footer-certs-row img.wide { height: 24px; }
@media (max-width: 480px){ .footer-certs-row { gap: 20px 26px; padding: 16px 20px; } .footer-certs-row img { height: 28px; } .footer-certs-row img.wide { height: 20px; } }
.footer-bottom { border-top: 1px solid var(--border-dark); padding-block: 26px 40px; font-size: .8rem; color: #6d7d85; line-height: 1.7; }
.footer-bottom .eho { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-dim); font-weight: 500; margin-bottom: 10px; }
.footer-bottom .eho svg { width: 20px; height: 20px; }
.footer-credit { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border-dark); color: #8a99a1; font-weight: 500; font-size: .84rem; letter-spacing: .01em; text-align: center; }
.footer-credit .heart { color: var(--red); display: inline-flex; vertical-align: middle; }
.footer-credit .heart svg { width: 14px; height: 14px; }
.footer-credit .uplevel { color: var(--off); font-weight: 700; border-bottom: 1px solid rgba(245,241,233,.3); transition: color .2s, border-color .2s; }
.footer-credit .uplevel:hover { color: #fff; border-color: var(--off); }
@media (max-width: 820px){ .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 480px){ .footer-top { grid-template-columns: 1fr; } }

/* Mobile sticky contact bar */
.mobilebar { display: none; }
@media (max-width: 720px) {
  .mobilebar {
    display: grid; grid-template-columns: repeat(3,1fr);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--dark); border-top: 1px solid var(--border-dark);
  }
  .mobilebar a { padding: 13px 6px; text-align: center; color: var(--off); font-size: .82rem; font-weight: 600; border-left: 1px solid var(--border-dark); }
  .mobilebar a:first-child { border-left: 0; }
  .mobilebar a.wa { background: var(--red); }
  body { padding-bottom: 52px; }
}

/* ---- Scroll reveal (progressive enhancement) ----
   Sem JS: conteudo sempre visivel. Com JS (html.js): anima ao entrar na viewport. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tile, .channel { transition: none; }
}


/* ============================================================
   LANGUAGE SWITCHER — no header (EN / PT / ES funcionais)
   ============================================================ */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; }
.lang-switch a {
  color: var(--on-dark-dim); font-size: .8rem; letter-spacing: .06em; font-weight: 600;
  text-transform: uppercase; padding: 4px 8px; border-radius: var(--r-sm);
  transition: color .2s, background .2s;
}
.lang-switch a:hover { color: var(--off); }
.lang-switch a[aria-current="true"] { color: var(--off); background: rgba(245,241,233,.10); }
.lang-switch .sep { color: rgba(245,241,233,.25); font-size: .75rem; }
/* No mobile o seletor some junto com os nav-links (regra em max-width:1024px acima);
   o menu hamburguer mostra os idiomas via .lang-switch-mobile. */

/* Menu mobile (painel simples aberto pelo botao) */
.nav-links.open {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  position: absolute; top: 72px; left: 0; right: 0;
  background: #05151e;
  border-bottom: 1px solid var(--border-dark); padding: 18px var(--pad) 22px;
}
.nav-links.open a { color: var(--off); font-size: 1.05rem; padding: 8px 0; width: 100%; }
.nav-links.open .lang-switch-mobile { display: flex; gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border-dark); width: 100%; }
.lang-switch-mobile { display: none; }
@media (min-width: 1181px) { .nav-links .lang-switch-mobile { display: none !important; } }

/* ============================================================
   BREADCRUMB (paginas internas)
   ============================================================ */
.breadcrumb { font-size: .85rem; color: var(--on-dark-dim); margin-bottom: 20px; letter-spacing: .01em; }
.breadcrumb a { color: #e9c8bf; border-bottom: 1px solid transparent; transition: border-color .2s; }
.breadcrumb a:hover { border-color: #e9c8bf; }
.breadcrumb span { opacity: .55; margin: 0 8px; }

/* ============================================================
   SUBHERO — cabecalho das paginas de servico (dark band)
   ============================================================ */
.subhero {
  color: var(--on-dark); position: relative; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(5,21,30,.96) 0%, rgba(5,21,30,.88) 55%, rgba(5,21,30,.70) 100%),
    var(--dark) url("hero-bg.jpg") center/cover no-repeat;
}
.subhero::after { content:""; position:absolute; inset:0; background-image:url("hex.svg"); background-size:180px; opacity:.05; pointer-events:none; }
.subhero-inner { position: relative; padding-block: clamp(48px, 7vw, 88px); max-width: 62ch; }
.subhero .eyebrow { color: #e0a99b; }
.subhero h1 { color: var(--off); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 400; margin-top: 14px; }
.subhero h1 em { font-style: italic; color: #e9c8bf; }
.subhero p.sub { margin-top: 20px; font-size: 1.15rem; color: var(--on-dark-dim); max-width: 52ch; }
.subhero .hero-ctas { margin-top: 30px; }

/* ============================================================
   PROSE / conteudo das paginas de servico
   ============================================================ */
.svc-layout { display: grid; grid-template-columns: 1fr; gap: 0; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: 8px; }
.prose h3 { font-size: 1.3rem; margin-top: 14px; }
.prose p { color: var(--text-body); }
.prose ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.prose ul li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; color: var(--text-body); }
.prose ul li::before {
  content: ""; margin-top: 9px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); flex: none;
}
.prose ul li strong { color: var(--text-strong); }

/* Cards de programas / criterios (elegibilidade) */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 26px; }
.info-card .ic { width: 34px; height: 34px; color: var(--red); margin-bottom: 14px; }
.info-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.info-card p { color: var(--text-muted); font-size: .97rem; }
@media (max-width: 820px){ .info-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .info-cards { grid-template-columns: 1fr; } }

/* Faixa de pills (programas / requisitos) reutilizada em light bg */
.pill-row.light { justify-content: flex-start; margin: 26px 0 0; }
.pill-row.light span { border-color: var(--border); color: var(--text-body); }

/* FAQ — accordion nativo (details/summary) */
.faq { margin-top: 40px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--font-display); font-size: 1.18rem; color: var(--text-strong); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.5rem; color: var(--red); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-muted); padding-bottom: 22px; max-width: 68ch; }

/* Faixa CTA reutilizavel no fim das paginas de servico */
.cta-band {
  color: var(--on-dark); text-align: center; position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5,21,30,.90) 0%, rgba(5,21,30,.84) 100%),
    var(--dark) url("neighborhood.jpg") center/cover no-repeat;
}
.cta-band::before { content:""; position:absolute; inset:0; background-image:url("hex.svg"); background-size:180px; opacity:.05; pointer-events:none; }
.cta-band .wrap { position: relative; }
.cta-band h2 { color: var(--off); max-width: 22ch; margin-inline: auto; }
.cta-band .lead { color: var(--on-dark-dim); margin: 16px auto 0; text-align: center; }
.cta-band .hero-ctas { justify-content: center; margin-top: 30px; }

/* Botoes fantasma sobre faixas escuras (subhero, cta-band, contact) precisam
   do tratamento claro — esses wrappers nao tem a classe .on-dark. */
.subhero .btn-ghost, .cta-band .btn-ghost, .contact .btn-ghost {
  color: var(--off); border-color: rgba(245,241,233,.4);
}
.subhero .btn-ghost:hover, .cta-band .btn-ghost:hover, .contact .btn-ghost:hover {
  border-color: var(--off); background: rgba(245,241,233,.06);
}

/* Grade de "outros servicos" no rodape das paginas internas */
.other-svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.other-svc a {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px;
  background: var(--off); border: 1px solid var(--border); border-radius: var(--r-md);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.other-svc a:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(112,38,24,.35); }
.other-svc .ic { width: 26px; height: 26px; color: var(--red); flex: none; }
.other-svc .k { font-weight: 600; color: var(--text-strong); font-size: 1rem; }
.other-svc .k small { display: block; font-weight: 400; color: var(--text-muted); font-size: .85rem; margin-top: 2px; }
@media (max-width: 820px){ .other-svc { grid-template-columns: 1fr; } }

/* ============================================================
   FAB — botao flutuante de WhatsApp + captura de lead
   ============================================================ */
.fab {
  position: fixed; right: 20px; bottom: 22px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px 16px; border: 0; cursor: pointer;
  background: #25d366; color: #05341a; border-radius: var(--pill);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  box-shadow: 0 12px 30px rgba(5,21,30,.28);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fab:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(5,21,30,.34); }
.fab svg { width: 24px; height: 24px; }
.fab .fab-label { white-space: nowrap; }
@media (max-width: 720px) {
  .fab { right: 14px; bottom: 66px; padding: 14px; }
  .fab .fab-label { display: none; }
}

/* Modal / painel do formulario */
.lead-modal {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(5,21,30,.55); backdrop-filter: blur(3px);
  padding: 0;
}
.lead-modal.open { display: flex; }
@media (min-width: 600px) { .lead-modal { align-items: center; padding: 24px; } }
.lead-card {
  background: var(--off); width: 100%; max-width: 440px;
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 28px 24px 30px;
  box-shadow: var(--shadow); position: relative;
  max-height: 92vh; overflow-y: auto;
  animation: leadUp .3s var(--ease);
}
@media (min-width: 600px) { .lead-card { border-radius: var(--r-lg); } }
@keyframes leadUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lead-card { animation: none; } }
.lead-card .lead-close {
  position: absolute; right: 16px; top: 16px; background: none; border: 0; cursor: pointer;
  color: var(--text-muted); line-height: 0; padding: 6px; border-radius: 50%;
}
.lead-card .lead-close:hover { color: var(--text-strong); background: var(--off-muted); }
.lead-card .lead-close svg { width: 22px; height: 22px; }
.lead-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.lead-head .badge { width: 42px; height: 42px; flex: none; border-radius: 50%; background: #25d366; color: #05341a; display: grid; place-items: center; }
.lead-head .badge svg { width: 24px; height: 24px; }
.lead-card h3 { font-size: 1.5rem; }
.lead-card .lead-sub { color: var(--text-muted); font-size: .96rem; margin: 8px 0 20px; }
.lead-field { margin-bottom: 14px; }
.lead-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-strong); margin-bottom: 6px; }
.lead-field input {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text-body);
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: #fff; transition: border-color .2s;
}
.lead-field input:focus { outline: none; border-color: var(--red); }
.lead-field input:invalid:not(:placeholder-shown) { border-color: #b4442d; }
.lead-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.lead-consent { font-size: .78rem; color: var(--text-muted); margin-top: 14px; line-height: 1.5; }
.lead-consent a { color: var(--red); border-bottom: 1px solid rgba(112,38,24,.3); }
.lead-alt { text-align: center; margin-top: 16px; font-size: .9rem; color: var(--text-muted); }
.lead-alt a { color: var(--red); font-weight: 600; }
.lead-success { display: none; text-align: center; padding: 14px 4px 6px; }
.lead-modal.done .lead-form { display: none; }
.lead-modal.done .lead-success { display: block; }
.lead-success .check { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: rgba(37,211,102,.15); color: #1a9e4b; display: grid; place-items: center; }
.lead-success .check svg { width: 30px; height: 30px; }
.lead-success h3 { margin-bottom: 8px; }
.lead-success p { color: var(--text-muted); font-size: .96rem; margin-bottom: 20px; }
