@import url("../fonts/fonts.css");

/* ==========================================================================
   NEVION MEDICINA INOVADORA
   --------------------------------------------------------------------------
   Paleta oficial da marca (manual da NEVION):
     #D4A73C  Dourado Principal (brilho)
     #B98A2E  Dourado Médio (corpo)
     #8C6118  Dourado Escuro (sombra)
     #F3D88B  Dourado Claro (detalhes/realce)
     #5A5957  Cinza Texto (slogan)

   Os neutros são cinzas frios de grafite, e não bege quente. O dourado é a
   única cor de marca; o petróleo entra como apoio em detalhes e superfícies.

   Existe um dourado só: --gold (#D4A73C).

   Contraste, verificado:
     · sobre fundo escuro (#14181B) → 8.0:1, seguro para texto.
     · sobre fundo claro  (#FAFBFB) → 2.2:1, ABAIXO do mínimo da WCAG.

   Por isso, em fundo claro o dourado nunca é a cor de um texto pequeno: ele
   aparece em ícone, contorno, sublinhado e no preenchimento de botão (o texto
   do botão é grafite sobre dourado, 8.0:1). Onde o dourado precisa virar
   texto em seção clara, o fundo é invertido para grafite, como na cápsula
   de sobrescrito das seções.
   ========================================================================== */

/* ==========================================================================
   01. TOKENS
   ========================================================================== */

:root {
  /* --- Dourados oficiais -------------------------------------------------- */
  /* Um dourado só. O #8C6118 do manual ficava barrento nas telas e foi
     aposentado; sobrou como referência para peças impressas. */
  --gold: #d4a73c;
  --g-light: #f3d88b;

  /* Dourado usado como TEXTO sobre fundo claro (a palavra destacada nos
     títulos). Hoje é o mesmo dourado claro, que mede 2.2:1 e fica abaixo do
     mínimo da WCAG. Trocar esta linha por #8C6118 devolve 4.9:1 sem mexer em
     mais nada do site. */
  --gold-text: var(--gold);

  /* --- Grafites (neutros frios) ------------------------------------------- */
  --ink: #14181b;          /* seções escuras */
  --ink-2: #1c2226;        /* superfície escura elevada */
  --ink-3: #2a3238;        /* bordas sobre escuro */
  --ink-deep: #0e1214;     /* rodapé, mais fundo que o bloco de CTA */

  /* --- Petróleo: cor de apoio que conversa com o dourado ------------------ */
  --petrol: #1a353e;
  --petrol-2: #244652;

  /* --- Claros -------------------------------------------------------------- */
  --gray-050: #fafbfb;     /* fundo claro principal */
  --gray-100: #f2f4f5;     /* fundo claro alternativo */
  --gray-200: #e6e9eb;
  --paper: #ffffff;

  --text: #1a1d20;
  --muted: #5f666b;        /* 5.3:1 sobre --gray-050 */
  --on-dark: #e8eaeb;
  --on-dark-muted: #99a1a6;

  --line: rgb(26 29 32 / 12%);
  --line-strong: rgb(26 29 32 / 20%);
  --line-gold: rgb(212 167 60 / 42%);
  --line-dark: rgb(232 234 235 / 14%);

  /* --- Tipografia --------------------------------------------------------- */
  --font-display: "Poppins", "Futura", "Century Gothic", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --fs-mega: clamp(2.9rem, 1.2rem + 7.4vw, 8rem);
  --fs-display: clamp(2.4rem, 1.4rem + 4.4vw, 5.2rem);
  --fs-h1: clamp(2.15rem, 1.5rem + 3vw, 3.9rem);
  --fs-h2: clamp(1.85rem, 1.3rem + 2.2vw, 3.1rem);
  --fs-h3: clamp(1.28rem, 1.1rem + 0.8vw, 1.8rem);
  --fs-h4: clamp(1.06rem, 1rem + 0.32vw, 1.24rem);
  --fs-lead: clamp(1.04rem, 0.98rem + 0.4vw, 1.24rem);
  --fs-body: 1.0313rem;
  --fs-sm: 0.9063rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.72rem;

  /* --- Espaço e forma ----------------------------------------------------- */
  --section-y: clamp(5rem, 3rem + 8vw, 10.5rem);
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3.5rem);
  --container: 1340px;
  --container-narrow: 780px;

  --r-sm: 6px;
  --r-md: 10px;
  /* Raio único para TODA imagem do site. Trocar para 0 aqui deixa o site
     inteiro com canto reto, sem precisar caçar exceções. */
  --r-img: 14px;
  --r-lg: 14px;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px rgb(20 24 27 / 5%), 0 6px 16px rgb(20 24 27 / 6%);
  --shadow-md: 0 2px 8px rgb(20 24 27 / 6%), 0 18px 44px rgb(20 24 27 / 10%);
  --shadow-lg: 0 4px 14px rgb(20 24 27 / 9%), 0 40px 80px rgb(20 24 27 / 15%);

  /* --- Movimento ---------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --dur-fast: 0.24s;
  --dur: 0.5s;
  --dur-slow: 0.9s;

  --header-h: 88px;
}

@media (max-width: 767px) {
  :root { --header-h: 66px; }
}

/* ==========================================================================
   02. RESET
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--gray-050);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
picture { width: 100%; height: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold); color: var(--ink); }

/* ==========================================================================
   03. TIPOGRAFIA
   ========================================================================== */

.mega, .display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.mega {
  font-size: var(--fs-mega);
  font-weight: 200;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.display { font-size: var(--fs-display); }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); letter-spacing: -0.032em; }

.h3 {
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.h4 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

/* Palavra destacada dentro de um título: peso e cor, sem itálico decorativo. */
.em {
  color: var(--gold-text);
  font-weight: 400;
  /* Alguns títulos usam <em>. O destaque aqui é por cor, não por inclinação. */
  font-style: normal;
}

.section-dark .em,
.bg-parallax .em { color: var(--gold); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.section-dark .lead,
.bg-parallax .lead { color: var(--on-dark-muted); }

.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }

/* Sobrescrito de seção. Sem numeração e sem filete — o padrão anterior
   ("— 01 A CLÍNICA") lia como template. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem 0.5rem 0.8rem;
  border: 1px solid var(--ink);
  border-radius: var(--r-full);
  background: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  width: fit-content;
}

.eyebrow__ico {
  width: 15px;
  height: 15px;
  flex: none;
  stroke-width: 1.8;
}

/* Sobre fundo escuro a cápsula fica vazada, só com o contorno dourado. */
.section-dark .eyebrow,
.page-hero .eyebrow,
.bg-parallax .eyebrow {
  color: var(--gold);
  border-color: rgb(212 167 60 / 45%);
  background: rgb(212 167 60 / 10%);
}

/* Quebra de linha equilibrada. `balance` distribui as linhas de títulos
   curtos e evita a palavra sozinha na última linha; `pretty` cuida das
   viúvas em textos corridos. Navegador sem suporte simplesmente ignora. */
h1, h2, h3, h4, h5, h6,
.mega, .display, .h1, .h2, .h3, .h4,
.pillar__title, .spec__title, .step__title, .member__name,
.contact-card__title, .row-item__title, .faq__q, .manifesto,
.field__label, .menu__link, .eyebrow {
  text-wrap: balance;
}

p, li, .lead, .prose p, figcaption, .form__nota {
  text-wrap: pretty;
}

/* ==========================================================================
   04. LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }

.section-light { background: var(--gray-050); }
.section-alt { background: var(--gray-100); }
.section-paper { background: var(--paper); }

.section-dark {
  background: var(--ink);
  color: var(--on-dark);
}

.section-dark .h2, .section-dark .h3, .section-dark .h4, .section-dark .display,
.bg-parallax .h2, .bg-parallax .h3, .bg-parallax .h4, .bg-parallax .display {
  color: var(--on-dark);
}

.stack { display: grid; gap: 1.5rem; }
.stack--sm { gap: 0.6rem; }
.stack--lg { gap: 2.25rem; }

/* Cabeçalho de seção: sobrescrito, título grande e apoio. Alinhado à
   esquerda, sem grade de duas colunas — mais direto e menos "template". */
.head {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.2vw, 1.5rem);
  max-width: 58ch;
  margin-bottom: clamp(2.75rem, 1.8rem + 3.5vw, 5rem);
}

.head--wide { max-width: 72ch; }

.head .lead { max-width: 54ch; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 300;
  background: var(--ink);
  color: var(--gold);
  padding: 0.8rem 1.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: transform var(--dur-fast) var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

.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;
}

/* Filete dourado — elemento gráfico recorrente da identidade. */
.rule-gold {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--gold), rgb(212 167 60 / 0%));
}

/* ==========================================================================
   05. MÍDIA
   ========================================================================== */

/* Toda imagem do site usa o mesmo raio, vindo de --r-img. */
.media {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: var(--r-img);
}

.media img { width: 100%; height: 100%; object-fit: cover; }

.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--r { border-radius: var(--r-img); }

/* ==========================================================================
   06. BOTÕES
   ========================================================================== */

.btn {
  --bg: var(--gold);
  --fg: var(--ink);
  --bd: var(--gold);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  border: 1px solid var(--bd);
  border-radius: var(--r-full);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

/* O preenchimento sobe de baixo no hover, em vez de trocar a cor de chapa. */
/* O preenchimento sobe de baixo no hover. Branco, e não grafite: sobre as
   seções escuras o grafite sumia contra o fundo. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  transform: translateY(101%);
  transition: transform var(--dur) var(--ease-expo);
}

.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--ink); border-color: var(--paper); }

.btn svg { width: 18px; height: 18px; flex: none; }

.btn--dark { --bg: var(--ink); --fg: var(--gold); --bd: var(--ink); }
.btn--dark::before { background: var(--gold); }
.btn--dark:hover { color: var(--ink); border-color: var(--gold); }

.btn--ghost { --bg: transparent; --fg: var(--text); --bd: var(--line-strong); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--gray-050); border-color: var(--ink); }

.btn--ghost-light { --bg: transparent; --fg: var(--on-dark); --bd: var(--line-dark); }
.btn--ghost-light::before { background: var(--gold); }
.btn--ghost-light:hover { color: var(--ink); border-color: var(--gold); }

.btn--lg { padding: 1.15rem 2.15rem; font-size: var(--fs-body); }
.btn--block { width: 100%; }

/* Link com seta */
.arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
}

.arrow svg { color: var(--gold); }

.arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-expo); }
.arrow:hover svg, a:hover .arrow svg { transform: translateX(6px); }
.section-dark .arrow,
.bg-parallax .arrow { color: var(--gold); }

/* ==========================================================================
   07. CABEÇALHO
   ========================================================================== */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    height var(--dur) var(--ease);
}

.header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* O hero da home é claro, então o cabeçalho transparente usa texto escuro.
   Nas páginas internas o hero é escuro e a regra é invertida logo abaixo. */
.header--over { color: var(--text); }

/* Páginas internas: hero escuro, cabeçalho transparente com texto claro. */
.header--over.header--on-dark { color: var(--gray-050); }
.header--over.header--on-dark .btn--ghost { --fg: var(--gray-050); --bd: var(--line-dark); }

.header--solid {
  background: rgb(250 251 251 / 82%);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgb(20 24 27 / 5%);
  color: var(--text);
  height: calc(var(--header-h) - 12px);
}

/* O cabeçalho fica fixo o tempo todo. Antes ele se escondia ao rolar para
   baixo; agora só troca de estado, ganhando fundo esmaecido. */

/* --- Logo (arquivos oficiais da marca) ---------------------------------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1;
}

.logo__mark {
  width: auto;
  height: clamp(30px, 2.4vw, 40px);
  flex: none;
}

.logo__word {
  width: auto;
  height: clamp(13px, 1.05vw, 17px);
  flex: none;
}

@media (max-width: 400px) {
  .logo { gap: 0.5rem; }
  .logo__mark { height: 26px; }
  .logo__word { height: 11px; }
}

.nav { display: none; }

@media (min-width: 1040px) {
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(1.1rem, 0.1rem + 1.7vw, 2.25rem);
  }
}

.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.01em;
  padding-block: 0.4rem;
  color: currentColor;
  opacity: 0.8;
  transition: opacity var(--dur-fast) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-expo);
}

.nav__link:hover { opacity: 1; }

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link[aria-current="page"] { opacity: 1; }

.header__actions { display: flex; align-items: center; gap: 0.85rem; }
.header__cta { display: none; }

@media (min-width: 1040px) { .header__cta { display: inline-flex; } }

.header--over .btn--ghost { --fg: var(--text); --bd: var(--line-strong); }
.header--over .btn--ghost:hover { color: var(--ink); border-color: var(--gold); }
.header--over .btn--ghost::before { background: var(--gold); }

/* --- Hambúrguer ---------------------------------------------------------- */

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px; height: 46px;
  padding: 0 10px;
  color: currentColor;
}

@media (min-width: 1040px) { .burger { display: none; } }

.burger span {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform var(--dur) var(--ease-expo), opacity var(--dur-fast);
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Menu de tela cheia -------------------------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  color: var(--on-dark);
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}

.menu[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur) var(--ease), visibility 0s linear 0s;
}

@media (min-width: 1040px) { .menu { display: none; } }

.menu__list { display: grid; border-top: 1px solid var(--line-dark); }
.menu__item { border-bottom: 1px solid var(--line-dark); }

.menu__link {
  display: block;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 3vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: color var(--dur-fast) var(--ease), padding-left var(--dur) var(--ease-expo);
}

.menu__link:hover,
.menu__link[aria-current="page"] { color: var(--gold); padding-left: 0.6rem; }

.menu__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: 1rem; }

/* ==========================================================================
   08. HERO
   ========================================================================== */

/* O hero agora é claro: a foto é uma clínica desfocada e o texto é escuro.
   Conteúdo centralizado. */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(6rem, 4rem + 6vw, 9rem);
  color: var(--text);
  overflow: hidden;
  background: var(--gray-100);
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }

.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

/* Véu claro: mantém a foto como atmosfera e garante contraste do texto
   escuro em qualquer trecho dela. */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(105% 72% at 50% 46%, rgb(250 251 251 / 62%) 0%, rgb(250 251 251 / 24%) 58%, rgb(242 244 245 / 34%) 100%),
    linear-gradient(to bottom, rgb(250 251 251 / 46%) 0, rgb(250 251 251 / 6%) 32%, rgb(242 244 245 / 52%) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(1.1rem, 0.8rem + 1.2vw, 1.75rem);
}

.hero__title {
  color: var(--text);
  max-width: 15ch;
}

.hero__title .em { color: var(--gold); }

.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 899px) {
  .hero { min-height: min(96svh, 800px); padding-bottom: 7rem; }
  .hero__title { max-width: 12ch; }
  .hero__lead { font-size: var(--fs-body); max-width: 44ch; }
}

/* --- Marquee de especialidades ------------------------------------------ */

.marquee {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 72%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  padding-block: clamp(0.8rem, 0.6rem + 0.7vw, 1.15rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-inline: clamp(1.1rem, 0.6rem + 1.6vw, 2.25rem);
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 0.8rem + 0.3vw, 1.02rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}

.marquee__ico { width: 18px; height: 18px; flex: none; color: var(--gold); }
.marquee__item:hover { color: var(--text); }

@media (max-width: 899px) {
  .marquee__item { font-size: 0.85rem; padding-inline: 0.9rem; gap: 0.45rem; }
  .marquee__ico { width: 16px; height: 16px; }
}

/* --- Hero das páginas internas ------------------------------------------ */

.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  padding-top: calc(var(--header-h) + clamp(3.5rem, 2rem + 6vw, 7rem));
  padding-bottom: clamp(3.5rem, 2rem + 5vw, 6.5rem);
  overflow: hidden;
}

.page-hero__bg { position: absolute; inset: 0; z-index: 0; opacity: 0.42; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 3%, rgb(20 24 27 / 35%) 100%);
}

.page-hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(1.1rem, 0.8rem + 1.4vw, 1.9rem); }
.page-hero__title { color: var(--gray-050); max-width: 17ch; }
.page-hero .lead { color: var(--on-dark-muted); max-width: 56ch; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: rgb(232 234 235 / 62%);
}

.crumbs a:hover { color: var(--gold); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; opacity: 0.45; }
.crumbs [aria-current="page"] { color: var(--gold); }

/* ==========================================================================
   09. MANIFESTO / TEXTO GRANDE
   ========================================================================== */

.manifesto {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1rem + 2.4vw, 3.1rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.16;
  max-width: 22ch;
  text-wrap: balance;
}

.manifesto strong { font-weight: 300; color: var(--gold); }

/* ==========================================================================
   10. PILARES
   Diagramação diferente da linha do tempo logo acima: título à esquerda e
   quatro blocos em 2x2 à direita, cada um com o ícone ao lado do texto.
   ========================================================================== */

.pillars-layout {
  display: grid;
  gap: clamp(2.25rem, 1.2rem + 3.5vw, 4.5rem);
}

@media (min-width: 1000px) {
  .pillars-layout {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    align-items: start;
  }
}

.pillars-intro {
  display: grid;
  gap: 1.15rem;
  justify-items: start;
  align-content: start;
}

@media (min-width: 1000px) {
  .pillars-intro { position: sticky; top: calc(var(--header-h) + 3rem); }
}

.pillars {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (min-width: 640px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}

.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.15rem);
  background: var(--ink-2);
  transition: background var(--dur) var(--ease);
}

.pillar:hover { background: var(--ink-3); }

.pillar__ico {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: var(--r-full);
  border: 1px solid rgb(212 167 60 / 34%);
  background: rgb(212 167 60 / 9%);
  color: var(--gold);
}

.pillar__ico .ico { width: 20px; height: 20px; }

.pillar__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 500;
  color: var(--on-dark);
  margin-bottom: 0.4rem;
}

.pillar p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--on-dark-muted);
  text-wrap: pretty;
}

/* ==========================================================================
   11. ESPECIALIDADES — grade em duas colunas com desencontro
   --------------------------------------------------------------------------
   Seis itens em 2 colunas = 3 linhas exatas, sem card órfão. A coluna da
   direita desce para criar ritmo — a grade 3x3 anterior deixava um card
   sozinho na última linha e parecia formulário.
   ========================================================================== */

/* Seis itens em 3 colunas = 2 linhas exatas, sem card órfão e sem
   desencontro: os títulos e os textos alinham entre si. */
.spec-grid {
  display: grid;
  gap: clamp(1.75rem, 1rem + 2.4vw, 3rem);
}

@media (min-width: 640px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
}

.spec {
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.spec__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: var(--r-img);
  margin-bottom: 1.35rem;
}

.spec__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-expo);
}

.spec:hover .spec__media img { transform: scale(1.06); }

.spec__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(20 24 27 / 62%), rgb(212 167 60 / 14%));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.spec:hover .spec__media::after { opacity: 1; }

.spec__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.9rem;
  transition: border-color var(--dur) var(--ease);
}

.spec:hover .spec__head { border-color: var(--gold); }

.spec__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-gold);
  background: rgb(212 167 60 / 8%);
  color: var(--gold);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.spec__ico .ico { width: 19px; height: 19px; }
.spec:hover .spec__ico { background: var(--gold); color: var(--ink); }

.spec__title {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.15;
  text-wrap: balance;
}

.spec__arrow {
  flex: none;
  width: 19px; height: 19px;
  color: var(--gold);
  transition: transform var(--dur) var(--ease-expo);
}

.spec:hover .spec__arrow { transform: translate(4px, -4px); }

.spec p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.62;
  text-wrap: pretty;
}

/* --- Linhas editoriais (página /especialidades) -------------------------- */

.rows { display: grid; }

.row-item {
  position: relative;
  display: grid;
  gap: clamp(1.25rem, 0.8rem + 2vw, 3rem);
  padding-block: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
  border-top: 1px solid var(--line);
  align-items: center;
}

.row-item:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 900px) {
  .row-item { grid-template-columns: 0.85fr 1.15fr; }
  .row-item:nth-child(even) .row-item__media { order: 2; }
}

.row-item__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: var(--r-img);
}

.row-item__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-expo);
}

.row-item:hover .row-item__media img { transform: scale(1.05); }

.row-item__body { display: grid; gap: 1rem; align-content: center; justify-items: start; }

.row-item__ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-gold);
  background: rgb(212 167 60 / 8%);
  color: var(--gold);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.row-item__ico .ico { width: 22px; height: 22px; }
.row-item:hover .row-item__ico { background: var(--gold); color: var(--ink); }

.row-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  transition: color var(--dur-fast) var(--ease);
}

.row-item:hover .row-item__title { color: var(--text); }

.row-item p { color: var(--muted); max-width: 52ch; text-wrap: pretty; }

/* Cobre o item inteiro sem quebrar o foco do teclado. Precisa sair do fluxo:
   como filho de grid, ele consumia uma célula e desmontava o layout. */
.stretched {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* --- Chips de condições -------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

a.chip:hover { border-color: var(--gold); color: var(--text); }

/* ==========================================================================
   11b. FIGURA COM CARDS FLUTUANTES
   Referência de layout pedida pelo cliente: pequenos cartões destacados ao
   redor da foto. Cada um traz um fato verdadeiro sobre o atendimento.
   ========================================================================== */

.figure-float { position: relative; }

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.float-card__ico {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: var(--r-sm);
  background: rgb(212 167 60 / 14%);
  color: var(--gold);
}

.float-card__ico .ico { width: 17px; height: 17px; }
.float-card div { display: grid; line-height: 1.25; }

.float-card strong {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.float-card span { font-size: 0.75rem; color: var(--muted); }

.float-card--a { top: 8%; left: -6%; }
.float-card--b { top: 44%; right: -8%; }
.float-card--c { bottom: 8%; left: 4%; }

/* Em telas estreitas os cartões saem da moldura e viram uma lista embaixo. */
@media (max-width: 767px) {
  .float-card {
    position: static;
    white-space: normal;
    box-shadow: var(--shadow-sm);
  }
  .figure-float { display: grid; gap: 0.6rem; }
  .figure-float .media { margin-bottom: 0.4rem; }
}

/* ==========================================================================
   12. BLOCO DIVIDIDO
   ========================================================================== */

.split { display: grid; gap: clamp(2rem, 1.2rem + 3.5vw, 5rem); align-items: center; }

@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--reverse .split__media { order: 2; }
  .split--wide { grid-template-columns: 1.1fr 1fr; }
}

.list-check { display: grid; gap: 0.9rem; }

.list-check li {
  position: relative;
  padding-left: 1.9rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.66em;
  width: 14px; height: 1px;
  background: var(--gold);
}

.section-dark .list-check li,
.bg-parallax .list-check li { color: var(--on-dark); }

/* ==========================================================================
   13. ETAPAS (linha do tempo)
   ========================================================================== */

.steps {
  display: grid;
  gap: clamp(1.75rem, 1rem + 2.5vw, 2.5rem);
  counter-reset: etapa;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.25rem, 0.5rem + 2vw, 2.5rem);
  }
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 900px) {
  .step { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Linha que liga um nó ao próximo. */
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 26px;
    left: calc(52px + 0.75rem);
    right: calc(-1 * clamp(1.25rem, 0.5rem + 2vw, 2.5rem));
    height: 1px;
    background: linear-gradient(90deg, var(--line-dark), rgb(212 167 60 / 30%));
  }
}

/* No celular a linha desce pela lateral esquerda. */
@media (max-width: 899px) {
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 58px;
    bottom: calc(-1 * clamp(1.75rem, 1rem + 2.5vw, 2.5rem));
    width: 1px;
    background: linear-gradient(180deg, rgb(212 167 60 / 30%), var(--line-dark));
  }
}

.step__node {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  flex: none;
  border-radius: var(--r-full);
  border: 1px solid rgb(212 167 60 / 38%);
  background: rgb(212 167 60 / 8%);
}

.step__num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.step__body { display: grid; gap: 0.5rem; }

.step__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 500;
  color: var(--on-dark);
}

.step p { font-size: var(--fs-sm); line-height: 1.62; color: var(--on-dark-muted); }

/* ==========================================================================
   14. EQUIPE
   ========================================================================== */

.team { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }

@media (min-width: 600px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .team { grid-template-columns: repeat(4, 1fr); } }

.member__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: var(--r-img);
  margin-bottom: 1.1rem;
}

.member__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-expo);
}

.member:hover .member__media img { transform: scale(1.05); }

.member__name { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500; }
.member__role { font-size: var(--fs-sm); color: var(--muted); }
.member__crm { font-size: var(--fs-xs); color: var(--muted); }

/* ==========================================================================
   15. FAQ
   ========================================================================== */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.2rem, 0.9rem + 0.8vw, 1.75rem) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
  transition: color var(--dur-fast) var(--ease);
}

.faq__q:hover { color: var(--text); }

.faq__icon { flex: none; position: relative; width: 18px; height: 18px; margin-top: 0.3em; }

.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 1px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-expo), opacity var(--dur-fast);
}

.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%); opacity: 0; }

.faq__a { overflow: hidden; height: 0; }
.faq__a-inner { padding-bottom: 1.7rem; max-width: 68ch; }
.faq__a p { color: var(--muted); line-height: 1.68; text-wrap: pretty; }
.faq__a p + p { margin-top: 0.85rem; }

/* ==========================================================================
   16. CTA / RODAPÉ / WHATSAPP
   ========================================================================== */

.cta {
  position: relative;
  overflow: hidden;
  /* Um grau mais claro e levemente aquecido que o rodapé, para os dois blocos
     escuros não virarem uma mancha só. */
  /* Petróleo esfumado sobre o grafite: separa o CTA do rodapé sem virar
     outra cor de marca. */
  background: linear-gradient(155deg, var(--petrol) 0%, var(--ink) 58%);
  color: var(--gray-050);
  padding-block: clamp(4rem, 2.5rem + 6vw, 8rem);
}

/* Símbolo da marca como marca-d'água — usa o próprio ativo do cliente
   como elemento gráfico, em vez de uma forma inventada. */
.cta__mark {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 520px);
  opacity: 0.07;
  pointer-events: none;
  filter: grayscale(0.2);
}

.cta__inner { position: relative; z-index: 1; display: grid; gap: clamp(1.75rem, 1rem + 2.5vw, 3rem); }

@media (min-width: 900px) {
  .cta__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

.cta .display { color: var(--gray-050); max-width: 19ch; }
.cta .em { color: var(--gold); }
.cta p { color: rgb(232 234 235 / 82%); max-width: 46ch; font-size: var(--fs-lead); line-height: 1.5; }

.footer { background: var(--ink-deep); color: var(--on-dark);
  border-top: 1px solid rgb(212 167 60 / 22%);
  padding-bottom: 1rem; padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); padding-bottom: 2rem; }
.footer__top { display: grid; gap: clamp(2.25rem, 1.5rem + 3vw, 4rem); padding-bottom: clamp(2.5rem, 2rem + 2.5vw, 4rem); }

@media (min-width: 900px) {
  .footer__top { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
}

.footer__brand { display: grid; gap: 1rem; align-content: start; max-width: 34ch; }
.footer__lockup { gap: 0.85rem; }
.footer__mark { height: clamp(40px, 4vw, 52px); }
.footer__word { height: clamp(17px, 1.7vw, 22px); }
.footer__brand p { font-size: var(--fs-sm); color: var(--on-dark-muted); line-height: 1.65; }

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.15rem;
}

.footer__links { display: grid; gap: 0.7rem; }

.footer__links a, .footer address a {
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
  transition: color var(--dur-fast) var(--ease);
}

.footer__links a:hover, .footer address a:hover { color: var(--gold); }

.footer address { font-style: normal; display: grid; gap: 0.7rem; font-size: var(--fs-sm); color: var(--on-dark-muted); line-height: 1.6; }
.footer address strong { color: var(--on-dark); font-weight: 500; }

.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.75rem;
  /* Espaço reservado para o botão flutuante de WhatsApp, que fica visível
     o tempo todo e antes cobria os links legais. */
  padding-bottom: 4.5rem;
  display: grid;
  gap: 1rem;
  font-size: var(--fs-xs);
  color: var(--on-dark-muted);
  line-height: 1.6;
}

@media (min-width: 768px) { .footer__bottom { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

.footer__legal { display: grid; gap: 0.4rem; max-width: 92ch; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.footer__meta a:hover { color: var(--gold); }

.social { display: flex; gap: 0.6rem; }

.social a {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-full);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.social svg { width: 19px; height: 19px; }

/* --- WhatsApp flutuante -------------------------------------------------- */

.wa {
  position: fixed;
  right: clamp(1rem, 0.5rem + 1.4vw, 2rem);
  bottom: clamp(1rem, 0.5rem + 1.4vw, 2rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.35rem 0.9rem 1.1rem;
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--gold);
  border: 1px solid var(--gold);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  box-shadow: 0 10px 34px rgb(20 24 27 / 32%);
  transform: translateY(130%);
  opacity: 0;
  transition: transform var(--dur) var(--ease-expo), opacity var(--dur) var(--ease),
    background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.wa[data-visible="true"] { transform: translateY(0); opacity: 1; }
.wa:hover { background: var(--gold); color: var(--ink); }
.wa svg { width: 21px; height: 21px; flex: none; }
.wa__label { display: none; }

@media (min-width: 480px) { .wa__label { display: inline; } }
@media (max-width: 479px) { .wa { padding: 0.95rem; } }

/* ==========================================================================
   17. CONTEÚDO EDITORIAL
   ========================================================================== */

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.2rem; }
.prose > :first-child { margin-top: 0; }

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.2;
  margin-top: 3rem;
}

.prose h3 { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500; margin-top: 2rem; }
.prose p { color: var(--muted); line-height: 1.72; text-wrap: pretty; }
.prose strong { color: var(--text); font-weight: 600; }

/* Link em texto corrido: grafite legível com sublinhado dourado. O dourado
   claro sozinho não tem contraste suficiente para texto pequeno. */
.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.aside-card {
  background: var(--gray-100);
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 1rem + 1.3vw, 2.1rem);
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 1040px) { .aside-card { position: sticky; top: calc(var(--header-h) + 1.5rem); } }

.layout-aside { display: grid; gap: clamp(2.25rem, 1.5rem + 3vw, 4.5rem); }

@media (min-width: 1040px) {
  .layout-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 0.4fr); align-items: start; }
}

/* Galeria de estrutura: uma imagem larga em cima e três abaixo, em colunas
   iguais. Sem spans de grade cruzados, que quebravam com proporções
   diferentes. */
.gal {
  display: grid;
  gap: clamp(0.75rem, 0.4rem + 1.2vw, 1.25rem);
}

@media (min-width: 700px) {
  .gal { grid-template-columns: repeat(3, 1fr); }
}

.gal__wide { grid-column: 1 / -1; }
.gal .media { border-radius: var(--r-img); aspect-ratio: 4 / 3; }

.gal__wide .media { aspect-ratio: 16 / 9; }

@media (min-width: 700px) {
  .gal__wide .media { aspect-ratio: 21 / 9; }
}

.map-frame {
  border: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  filter: grayscale(0.4) sepia(0.18) contrast(1.05);
}

@media (min-width: 900px) { .map-frame { aspect-ratio: 21 / 9; } }

.contact-grid { display: grid; gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem); }

@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-card {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.5rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  transition: border-color var(--dur) var(--ease);
}

.contact-card:hover { border-color: var(--gold); }
.contact-card__icon { color: var(--gold); margin-bottom: 0.5rem; }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__title { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500; }
.contact-card p, .contact-card a { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.contact-card a:hover { color: var(--text); }

.notice {
  border: 1px solid var(--gold);
  background: rgb(243 216 139 / 22%);
  padding: 1.1rem 1.25rem;
  font-size: var(--fs-sm);
  color: #6b5116;
  line-height: 1.55;
}

/* ==========================================================================
   17b. ÍCONES
   ========================================================================== */

.ico {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ==========================================================================
   17c. SUBMENU DE ESPECIALIDADES
   ========================================================================== */

.nav__group { position: relative; }

.nav__link--has-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav__chev {
  width: 14px;
  height: 14px;
  transition: transform var(--dur) var(--ease);
}

.nav__group[data-open="true"] .nav__chev { transform: rotate(180deg); }

.subnav {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  translate: -50% 0;
  min-width: 290px;
  padding: 0.5rem;
  background: var(--gray-050);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-fast) var(--ease),
    transform var(--dur) var(--ease-expo),
    visibility 0s linear var(--dur-fast);
  z-index: 10;
}

.nav__group[data-open="true"] .subnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-fast) var(--ease),
    transform var(--dur) var(--ease-expo), visibility 0s;
}

/* Ponte invisível: evita que o submenu feche ao atravessar o vão. */
.subnav::before {
  content: "";
  position: absolute;
  inset: -0.9rem 0 100% 0;
}

.subnav__list { display: grid; gap: 0.1rem; }

.subnav__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  color: var(--text);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.subnav__link:hover { background: var(--gray-100); color: var(--text); }
.subnav__ico { width: 18px; height: 18px; flex: none; color: var(--gold); }

.subnav__all {
  margin-top: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.subnav__all .subnav__link { font-weight: 600; color: var(--gold); }

/* Sublista no menu mobile */
.menu__sub { padding: 0.25rem 0 1rem; }
.menu__sub ul { display: grid; gap: 0.15rem; }

.menu__sub a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0 0.5rem 0.5rem;
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
  transition: color var(--dur-fast) var(--ease);
}

.menu__sub a:hover { color: var(--gold); }
.menu__sub-ico { width: 17px; height: 17px; flex: none; color: var(--gold); }

/* ==========================================================================
   17d. TEXTURAS E FUNDOS
   ========================================================================== */

/* Malha de pontos discreta. Feita em CSS puro: sem requisição extra e a cor
   acompanha a paleta. */
.pattern-dots { position: relative; isolation: isolate; }

.pattern-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at center, rgb(95 102 107 / 26%) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 78%);
  pointer-events: none;
}

.section-dark.pattern-dots::before {
  background-image: radial-gradient(circle at center, rgb(212 167 60 / 22%) 1px, transparent 1px);
}

/* Linhas diagonais finas */
.pattern-lines { position: relative; isolation: isolate; }

.pattern-lines::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    -45deg, rgb(95 102 107 / 10%) 0 1px, transparent 1px 14px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  pointer-events: none;
}

/* Seção com imagem de fundo em parallax */
.bg-parallax {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
}

.bg-parallax__media {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
}

.bg-parallax__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* A foto aqui é textura, não conteúdo: o véu precisa ser forte o suficiente
   para o texto secundário continuar legível sobre qualquer trecho dela. */
.bg-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 30% 40%, rgb(20 24 27 / 80%), rgb(20 24 27 / 93%)),
    linear-gradient(to bottom, rgb(20 24 27 / 88%), rgb(20 24 27 / 86%));
}

/* ==========================================================================
   17e. FORMULÁRIO
   ========================================================================== */

.form-layout { display: grid; gap: clamp(2rem, 1.2rem + 3.5vw, 4.5rem); }

@media (min-width: 940px) {
  .form-layout { grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(2.5rem, 1rem + 4vw, 5rem); }
}

.form-intro { display: grid; gap: 1.25rem; justify-items: start; }
.form-intro .list-check { margin-top: 0.5rem; }
.form-intro .list-check li { font-size: var(--fs-sm); color: var(--muted); }

.form {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--gray-050);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.form__row { display: grid; gap: 1.15rem; }

@media (min-width: 560px) {
  .form__row { grid-template-columns: repeat(2, 1fr); }
}

/* No celular o botão flutuante de WhatsApp fica sobre o canto inferior
   direito: o formulário reserva espaço para não sobrepor o botão de envio. */
@media (max-width: 559px) {
  .form { padding-bottom: 4.5rem; }
}

.field { display: grid; gap: 0.4rem; }

.field__label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
}

.field__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.field__input::placeholder { color: #9a938a; }

.field__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(212 167 60 / 22%);
}

.field__input[aria-invalid="true"] {
  border-color: #a3402a;
  box-shadow: 0 0 0 3px rgb(163 64 42 / 14%);
}

.field__input--area { resize: vertical; min-height: 120px; }

.field__select { position: relative; }
.field__select select { appearance: none; padding-right: 2.75rem; cursor: pointer; }

.field__chev {
  position: absolute;
  right: 1rem;
  top: 50%;
  translate: 0 -50%;
  width: 18px; height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.field__erro {
  font-size: var(--fs-xs);
  color: #a3402a;
  min-height: 1em;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.5;
}

.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.check__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  margin-top: 0.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.check__ico { width: 14px; height: 14px; color: var(--ink); opacity: 0; transition: opacity var(--dur-fast); }
.check input:checked + .check__box { background: var(--gold); border-color: var(--gold); }
.check input:checked + .check__box .check__ico { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--gold); outline-offset: 2px; }
.check__txt a { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; text-decoration-thickness: 2px; }

.form__nota { font-size: var(--fs-xs); color: var(--muted); text-align: center; }

.form__status {
  font-size: var(--fs-sm);
  text-align: center;
  min-height: 1.4em;
}

.form__status[data-tipo="ok"] { color: #2f6b46; font-weight: 600; }
.form__status[data-tipo="erro"] { color: #a3402a; font-weight: 600; }

/* Migalha sobre fundo claro (a padrão é usada sobre o hero escuro). */
.crumbs--light { color: var(--muted); }
.crumbs--light a:hover { color: var(--text); }
.crumbs--light [aria-current="page"] { color: var(--text); }

/* --- Dados de contato ao lado do formulário ------------------------------ */

.dados {
  display: grid;
  gap: 1.1rem;
  margin-top: 0.5rem;
  width: 100%;
}

.dados__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.dados__item:first-child { border-top: 0; padding-top: 0; }

.dados__ico {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-gold);
  background: rgb(212 167 60 / 8%);
  color: var(--gold);
}

.dados__ico .ico { width: 18px; height: 18px; }

.dados__rot {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.dados__item a,
.dados__txt {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text);
}

.dados__item a { transition: color var(--dur-fast) var(--ease); }
.dados__item a:hover { color: var(--text); }

/* ==========================================================================
   17f. MAPA EM LARGURA TOTAL
   ========================================================================== */

.map-full {
  position: relative;
  line-height: 0;
  padding-top: var(--header-h);
  background: var(--gray-100);
}

.map-full__frame {
  border: 0;
  width: 100%;
  height: clamp(340px, 52vh, 560px);
  filter: grayscale(0.5) contrast(1.05);
}

.map-full__cta {
  position: absolute;
  right: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  bottom: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.2;
  box-shadow: var(--shadow-md);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.map-full__cta:hover { background: var(--gold); color: var(--ink); }

/* ==========================================================================
   18. MOVIMENTO
   ========================================================================== */

/* Cortina de transição entre páginas */
.veil {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  transform: translateY(100%);
  pointer-events: none;
  display: grid;
  place-items: center;
}

.veil__mark { width: clamp(60px, 9vw, 104px); opacity: 0; }

/* Barra de progresso da rolagem */
.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 120;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--gold), var(--g-light));
  pointer-events: none;
}

/* Estados iniciais das animações de entrada.
   Só valem com JS ativo e sem preferência por menos movimento. */
.js .reveal > *,
.js .reveal-self { opacity: 0; }

.js .reveal-img img { transform: scale(1.14); }
.reveal-img { overflow: hidden; }

/* Máscara de linha para títulos */
.line-mask { display: block; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal > *,
  .js .reveal-self { opacity: 1 !important; transform: none !important; }

  .js .reveal-img img { transform: none !important; }
  .veil, .progress { display: none !important; }
  .marquee__track { transform: none !important; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .header, .menu, .wa, .cta, .hero__bg, .veil, .progress, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}
