/* =========================================================
   Prof. Dr. Sérgio Salvador — Neurocirurgião
   Sistema visual v2 · baseado no Brandbook v.01
   Direcção: autoridade, sobriedade, muito espaço em branco.
   ========================================================= */
:root {
  /* Cores do Brandbook */
  --deep: #0B1A33;          /* Deep Blue — base de autoridade */
  --inst: #12264F;          /* Institutional Blue */
  --off: #F4F1E8;           /* Off-White */
  --gold: #D4AF37;          /* Premium Gold — só filetes e detalhes */
  --lead: #2E3338;          /* Cinza chumbo — pedido no briefing (pergunta 19) */
  --white: #FFFFFF;

  /* Texto */
  --ink: #0B1A33;
  --text: #46526A;
  --text-soft: #6B7590;
  --on-dark: #F4F1E8;
  --on-dark-soft: rgba(244, 241, 232, .66);

  /* Linhas */
  --line: rgba(11, 26, 51, .10);
  --line-strong: rgba(11, 26, 51, .18);
  --line-dark: rgba(244, 241, 232, .14);

  /* Tipografia */
  --head: "Poppins", system-ui, sans-serif;
  --body: "Afacad", system-ui, sans-serif;

  /* Ritmo — escala de 8 */
  --gutter: 32px;
  --container: 1180px;
  --section: 64px;   /* ritmo único entre secções */
  --header-h: 88px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--body); font-size: 1.1875rem; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--head); font-weight: 300; }
[hidden] { display: none !important; }
.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; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--deep); color: var(--off); }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: var(--section) 0; }
section[id] { scroll-margin-top: var(--header-h); }
.bg-off { background: var(--off); }
.bg-deep { background: var(--deep); color: var(--on-dark-soft); }
.bg-deep h2, .bg-deep h3 { color: var(--on-dark); }

/* Conteúdo por confirmar com o cliente (discreto) */
.tbc { border-bottom: 1px dotted var(--gold); cursor: help; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--head); font-weight: 500; font-size: .75rem; line-height: 1;
  letter-spacing: .28em; text-transform: uppercase; color: var(--inst);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); flex: none; }
.bg-deep .eyebrow, .hero .eyebrow { color: var(--on-dark-soft); }

.h2 { font-size: clamp(2rem, 3.3vw, 2.75rem); line-height: 1.2; letter-spacing: -.012em; }
.h2 strong { font-weight: 500; }
.lead { font-size: 1.25rem; line-height: 1.7; }
.muted { color: var(--text-soft); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 56px; padding: 0 32px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--head); font-weight: 500; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn-light { background: var(--off); color: var(--deep); }
.btn-light:hover { background: var(--white); }
.btn-deep { background: var(--deep); color: var(--off); }
.btn-deep:hover { background: var(--inst); }
.btn-line { border-color: currentColor; color: var(--deep); background: transparent; }
.btn-line:hover { background: var(--deep); color: var(--off); border-color: var(--deep); }

.link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--head); font-weight: 500; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); padding: 8px 0; position: relative;
}
.link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform-origin: left; transition: transform .5s var(--ease-out); }
.link:hover::after { transform: scaleX(.4); }
.link .arrow { transition: transform .5s var(--ease-out); }
.link:hover .arrow { transform: translateX(6px); }
.on-dark .link, .hero .link { color: var(--on-dark); }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .5s var(--ease), box-shadow .5s var(--ease), height .5s var(--ease);
}
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { position: relative; z-index: 3; display: block; width: 168px; height: 64px; flex: none; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .5s var(--ease); }
.logo .logo-dark { opacity: 0; }

.nav { display: flex; align-items: center; gap: 44px; }
.nav-links { position: relative; display: flex; gap: 36px; }
.nav-links a {
  position: relative; padding: 10px 0; font-family: var(--head); font-weight: 400; font-size: .875rem; letter-spacing: .04em;
  color: var(--on-dark-soft); transition: color .4s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--on-dark); }
.nav-indicator {
  position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold); pointer-events: none;
  transition: transform .7s var(--ease-out), width .7s var(--ease-out), opacity .4s var(--ease);
  opacity: 0;
}
.nav .btn { height: 44px; padding: 0 22px; font-size: .75rem; color: var(--on-dark); border-color: rgba(244,241,232,.45); }
.nav .btn:hover { background: var(--off); color: var(--deep); border-color: var(--off); }

/* Cabeçalho ao rolar: azul profundo da marca, logo branco e dourado */
.header.is-solid { background: rgba(11, 26, 51, .97); box-shadow: 0 1px 0 rgba(212,175,55,.25), 0 10px 30px -20px rgba(0,0,0,.6); height: 76px; }
.header.is-solid .nav .btn { color: var(--on-dark); border-color: var(--gold); }
.header.is-solid .nav .btn:hover { background: var(--gold); color: var(--deep); border-color: var(--gold); }

.menu-toggle { display: none; position: relative; z-index: 3; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; color: var(--on-dark); }
.menu-toggle span { position: absolute; left: 12px; width: 24px; height: 1px; background: currentColor; transition: transform .5s var(--ease-out), opacity .3s; }
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 28px; }
.header.is-solid .menu-toggle { color: var(--on-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; background: var(--deep); color: var(--on-dark-soft); overflow: hidden; display: flex; flex-direction: column; }
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: saturate(.85); }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--deep) 0%, rgba(11,26,51,.86) 18%, rgba(11,26,51,.25) 52%, rgba(11,26,51,.15) 100%),
    linear-gradient(0deg, var(--deep) 0%, rgba(11,26,51,0) 32%);
}
.hero-body { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; padding: calc(var(--header-h) + 64px) 0 72px; }
.hero-text { max-width: 600px; }
.hero-title { color: var(--on-dark); }
.hero-title .pre { display: block; font-family: var(--head); font-weight: 300; font-size: clamp(1.125rem, 1.6vw, 1.375rem); letter-spacing: .32em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 18px; }
.hero-title .name { display: block; font-weight: 300; font-size: clamp(3rem, 6.4vw, 5.5rem); line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.hero-rule { display: block; width: 64px; height: 1px; background: var(--gold); margin: 36px 0 32px; }
.hero-role { font-family: var(--head); font-weight: 400; font-size: .9375rem; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark); }
.hero-lead { margin-top: 20px; max-width: 470px; font-size: 1.25rem; line-height: 1.7; color: var(--on-dark-soft); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 36px; margin-top: 48px; }

/* Linha discreta de credenciais por baixo do botão */
.hero-meta { list-style: none; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; max-width: 600px; }
.hero-meta li { display: flex; align-items: center; white-space: nowrap; font-family: var(--head); font-weight: 400; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); }
.hero-meta li + li::before { content: ""; width: 5px; height: 5px; margin: 0 18px; background: var(--gold); transform: rotate(45deg); }

/* Indicador para descer */
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 28px; width: 24px; height: 56px; transform: translateX(-50%); display: flex; justify-content: center; }
.scroll-line { position: relative; width: 1px; height: 100%; background: rgba(244,241,232,.2); overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

.credentials { position: relative; z-index: 2; border-top: 1px solid var(--line-dark); }
.credentials ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.credentials li { padding: 30px 28px 34px; border-left: 1px solid var(--line-dark); }
.credentials li:first-child { border-left: 0; padding-left: 0; }
.credentials li { display: flex; align-items: center; }
.credentials b { display: block; font-family: var(--head); font-weight: 400; font-size: 1rem; color: var(--on-dark); letter-spacing: .01em; }
.credentials span { display: block; margin-top: 4px; font-size: 1rem; color: var(--on-dark-soft); line-height: 1.5; }

/* ---------- Sobre (foto de ponta a ponta) ---------- */
.about-section { background: var(--white); }
.about-split {
  display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: start;
  width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; padding: var(--section) 0;
}
/* Tamanho médio e fixa ao rolar: acompanha o texto sem criar vazios */
.about-media { position: sticky; top: 108px; margin: 0; overflow: hidden; background: var(--deep); width: 100%; aspect-ratio: 4 / 5; max-height: calc(100vh - 140px); }
.about-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  transform: scale(1.06); transition: transform 1.6s var(--ease-out);
}
.about-section.in-view .about-media img { transform: scale(1); }
.about-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,26,51,.78) 0%, rgba(11,26,51,0) 38%); }
.about-media figcaption {
  position: absolute; z-index: 2; left: 32px; bottom: 32px; display: grid; gap: 6px;
  padding-left: 20px; border-left: 1px solid var(--gold);
}
.cap-name { font-family: var(--head); font-weight: 400; font-size: 1.25rem; color: var(--on-dark); letter-spacing: .01em; }
.cap-role { font-family: var(--head); font-weight: 500; font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--on-dark-soft); }
.about-split .about-copy { display: flex; flex-direction: column; justify-content: center; }
.about-split .about-copy p { font-size: 1.1875rem; }

.about-split .about-copy p + p { margin-top: 16px; }
.about-split .about-copy .h2 { margin-bottom: 28px; }
.about-note { font-size: 1.0625rem !important; color: var(--text-soft); padding-top: 16px; border-top: 1px solid var(--line); margin-top: 28px !important; }

/* ---------- Slogans (faixa em movimento lento) ---------- */
.slogans { background: var(--deep); border-top: 1px solid var(--line-dark); overflow: hidden; padding: 16px 0; }
.slogans-track { display: flex; width: max-content; animation: slogans 60s linear infinite; }
.slogans:hover .slogans-track { animation-play-state: paused; }
.slogans ul { display: flex; list-style: none; margin: 0; padding: 0; }
.slogans li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--head); font-weight: 300; font-size: clamp(.875rem, 1.1vw, 1rem); color: var(--on-dark); letter-spacing: .02em;
}
.slogans li::after { content: ""; width: 4px; height: 4px; margin: 0 28px; background: var(--gold); transform: rotate(45deg); flex: none; }
@keyframes slogans { to { transform: translateX(-50%); } }

/* ---------- Princípios: fundo cinza chumbo com grelha milimétrica ---------- */
.bg-lead {
  position: relative; color: var(--on-dark-soft);
  /* Institutional Blue do Brandbook (#12264F); grelha no dourado da marca */
  background-color: var(--inst);
  background-image:
    radial-gradient(ellipse at 85% 10%, rgba(40,60,110,.4) 0%, rgba(40,60,110,0) 55%),
    radial-gradient(ellipse at 5% 100%, rgba(8,24,42,.55) 0%, rgba(8,24,42,0) 50%),
    linear-gradient(rgba(212,175,55,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,.13) 1px, transparent 1px),
    linear-gradient(rgba(212,175,55,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,.05) 1px, transparent 1px);
  background-size: auto, auto, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.bg-lead .eyebrow { color: var(--on-dark-soft); }
.bg-lead .h2 { color: var(--on-dark); }
.bg-lead .lead { color: var(--on-dark-soft) !important; }
.bg-lead .principle-list { border-top-color: rgba(244,241,232,.22); }
.bg-lead .principle-list li { border-bottom-color: var(--line-dark); }
.bg-lead .principle-list .num { color: var(--gold); }
.bg-lead .principle-list h3 { color: var(--on-dark); }
.bg-lead .principle-list p { color: var(--on-dark-soft); }
.bg-lead .principles-media { box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }

/* ---------- Princípios (texto + foto) ---------- */
.principles-split {
  display: grid; grid-template-columns: 6fr 5fr; gap: 80px; align-items: stretch;
  width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; padding: var(--section) 0;
}
.principles-copy .h2 { margin-bottom: 20px; }
.principles-copy .lead { color: var(--text); }
.principle-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.principle-list li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.principle-list .num { font-family: var(--head); font-size: .8125rem; letter-spacing: .14em; color: var(--inst); padding-top: 6px; }
.principle-list h3 { font-weight: 400; font-size: 1.375rem; margin-bottom: 6px; }
.principle-list p { font-size: 1.0625rem; }
.principles-media { position: relative; margin: 0; overflow: hidden; min-height: 520px; background: var(--deep); }
.principles-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }
.principles-media::before { content: ""; position: absolute; z-index: 1; top: 0; left: 0; width: 72px; height: 1px; background: var(--gold); }

/* ---------- Quem somos ---------- */
/* Composição centrada: título, dois parágrafos lado a lado, cartão com foto pequena + citação */
.manifesto { background: var(--white); padding: 96px 0; }
.manifesto-inner { max-width: 960px; text-align: center; }
.eyebrow-center { justify-content: center; }
.eyebrow-center::after { content: ""; width: 32px; height: 1px; background: var(--gold); flex: none; }
.manifesto-title { max-width: 720px; margin: 0 auto 36px; }
.manifesto-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; text-align: left; padding-top: 28px; border-top: 1px solid var(--line); }
.manifesto-cols p { font-size: 1.125rem; }
.manifesto-card {
  margin: 44px 0 0; display: grid; grid-template-columns: 200px 1fr; align-items: stretch; text-align: left;
  background: var(--off);
}
.manifesto-photo { position: relative; overflow: hidden; min-height: 240px; }
.manifesto-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.7); transform-origin: 46% 12%; }
.manifesto-card blockquote { margin: 0; padding: 36px 44px; display: flex; align-items: center; border-left: 1px solid var(--gold); }
.manifesto-card p { font-family: var(--head); font-weight: 300; font-size: 1.375rem; line-height: 1.5; color: var(--ink); }
.patient-quote { margin: 28px 0 0; padding: 24px 28px; background: var(--off); border-left: 1px solid var(--gold); }
.about-split .patient-quote p { font-family: var(--head); font-weight: 300; font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
.patient-quote p { font-family: var(--head); font-weight: 300; font-size: 1.375rem !important; line-height: 1.5; color: var(--ink); }

.tech-promise { margin-top: 18px; padding-left: 20px; border-left: 1px solid var(--gold); color: var(--on-dark) !important; }
.tech-copy > p + p { margin-top: 16px; }
.calm { font-family: var(--head); font-weight: 300; font-size: 1.375rem; line-height: 1.5; color: var(--ink); margin-bottom: 16px !important; }
.footer-line { margin-top: 16px; max-width: 380px; font-size: 1rem; }

/* (estilo anterior, mantido para outras páginas) */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 104px; align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; filter: saturate(.9); }
.about-photo::before { content: ""; position: absolute; top: -20px; left: -20px; width: 88px; height: 88px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.about-photo figcaption { margin-top: 16px; font-size: .9375rem; color: var(--text-soft); letter-spacing: .02em; }
.about-copy .h2 { margin-bottom: 28px; }
.about-copy > p + p { margin-top: 18px; }
.career { list-style: none; margin: 40px 0 44px; padding: 0; border-top: 1px solid var(--line); }
.career li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.career b { font-family: var(--head); font-weight: 500; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--inst); padding-top: 5px; }

/* ---------- Princípios ---------- */
.principles-head { display: grid; grid-template-columns: 5fr 7fr; gap: 104px; align-items: end; margin-bottom: 72px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.principle { padding: 40px 48px 8px 0; }
.principle + .principle { padding-left: 48px; border-left: 1px solid var(--line); }
.principle .num { font-family: var(--head); font-weight: 400; font-size: .8125rem; letter-spacing: .2em; color: var(--inst); }
.principle h3 { margin: 18px 0 14px; font-weight: 400; font-size: 1.5rem; }
.principle p { font-size: 1.0625rem; }

/* ---------- Áreas ---------- */
.areas-head { display: grid; grid-template-columns: 5fr 7fr; gap: 104px; align-items: end; margin-bottom: 64px; }
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 80px; border-top: 1px solid var(--line-strong); }
.area { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 32px 0 34px; border-bottom: 1px solid var(--line); }
.area .num { font-family: var(--head); font-size: .8125rem; letter-spacing: .14em; color: var(--text-soft); padding-top: 6px; }
.area h3 { font-weight: 400; font-size: 1.3125rem; margin-bottom: 8px; transition: color .4s var(--ease); }
.area p { font-size: 1.0625rem; }
.area:hover h3 { color: var(--inst); }
.areas-foot { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ---------- Técnica ---------- */
/* Foto com a mesma altura do texto: começa e termina alinhada */
.tech { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: stretch; }
.tech-photo { margin: 0; position: relative; overflow: hidden; min-height: 480px; }
.tech-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: saturate(.9); }
.tech-copy .h2 { margin-bottom: 24px; }
.tech-list { list-style: none; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--line-dark); }
.tech-list li { display: grid; grid-template-columns: 48px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.tech-list .num { font-family: var(--head); font-size: .8125rem; letter-spacing: .14em; color: var(--gold); padding-top: 4px; }
.tech-list b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.0625rem; color: var(--on-dark); }
.tech-list span { font-size: 1.0625rem; }
.tech-note { margin-top: 28px; font-size: .9375rem; color: var(--on-dark-soft); }

/* ---------- Citação (bloco operatório) ---------- */
.statement { position: relative; padding: 104px 0; background: var(--deep); overflow: hidden; }
.statement img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: .55; filter: grayscale(.35); }
.statement::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,26,51,.92) 0%, rgba(11,26,51,.7) 55%, rgba(11,26,51,.45) 100%); }
.statement .container { position: relative; z-index: 2; }
.statement blockquote { margin: 0; max-width: 860px; }
.statement p { font-family: var(--head); font-weight: 300; font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.32; color: var(--on-dark); letter-spacing: -.005em; }
.statement cite { display: flex; align-items: center; gap: 16px; margin-top: 40px; font-style: normal; font-family: var(--head); font-weight: 500; font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--on-dark-soft); }
.statement cite::before { content: ""; width: 32px; height: 1px; background: var(--gold); }

/* ---------- Marcação ---------- */
.booking { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
.booking-copy .h2 { margin-bottom: 24px; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.steps li { display: grid; grid-template-columns: 56px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps .num { font-family: var(--head); font-size: .8125rem; letter-spacing: .14em; color: var(--inst); padding-top: 4px; }
.steps b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.0625rem; color: var(--ink); }
.steps span { font-size: 1.0625rem; }
.contact-info { margin-top: 48px; display: grid; gap: 14px; font-size: 1.0625rem; }
.contact-info div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.contact-info dt { font-family: var(--head); font-weight: 500; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--inst); padding-top: 5px; }
.contact-info dd { margin: 0; }

.form-card { background: var(--white); padding: 56px; border: 1px solid var(--line); }
.form-card h3 { font-weight: 400; font-size: 1.5rem; }
.form-card .form-sub { margin: 8px 0 36px; font-size: 1rem; color: var(--text-soft); }
.field { position: relative; margin-bottom: 28px; }
.field label, .field legend { display: block; margin-bottom: 6px; padding: 0; font-family: var(--head); font-weight: 500; font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; font: inherit; font-size: 1.125rem; color: var(--ink); appearance: none; -webkit-appearance: none;
  transition: border-color .4s var(--ease);
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.field textarea { height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #A3AABB; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--deep); }
.field .err { display: none; margin-top: 6px; font-size: .9375rem; color: #9C3B3B; }
.field.invalid input, .field.invalid select { border-bottom-color: #9C3B3B; }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
fieldset.field { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); margin-top: 8px; }
.choice label { position: relative; display: grid; place-items: center; height: 52px; margin: 0; cursor: pointer; font-family: var(--body); font-size: 1.0625rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--text); transition: background .35s var(--ease), color .35s var(--ease); }
.choice label + label { border-left: 1px solid var(--line-strong); }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice label:has(input:checked) { background: var(--deep); color: var(--off); }
.choice label:has(input:focus-visible) { outline: 1px solid var(--gold); outline-offset: 2px; }
.form-note { display: grid; grid-template-columns: 1px 1fr; gap: 16px; margin: 4px 0 32px; font-size: 1rem; color: var(--text-soft); line-height: 1.6; }
.form-note::before { content: ""; background: var(--gold); }
.form-card .btn { width: 100%; }
.form-success { display: none; }
.form-success.show { display: block; }
.form-success h3 { margin-bottom: 12px; }
.form-success p { font-size: 1.0625rem; }
.form-success pre { margin: 24px 0 28px; padding: 24px; background: var(--off); white-space: pre-wrap; font-family: var(--body); font-size: 1rem; line-height: 1.65; color: var(--ink); border-left: 1px solid var(--gold); }
.form-success .actions { display: grid; gap: 12px; }

/* ---------- Spine Unit ---------- */
.unit { padding: 72px 0; border-top: 1px solid var(--line); }
.unit .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.unit h3 { font-weight: 400; font-size: 1.375rem; margin-bottom: 6px; }
.unit p { font-size: 1.0625rem; }

/* Contacto: foto como fundo claro e esbatido (clean), texto sempre legível */
.contact-bg {
  position: relative;
  background:
    linear-gradient(90deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.88) 45%, rgba(255,255,255,.8) 100%),
    url("../img/contacto-sorriso-modelo.jpg") 30% 30% / cover no-repeat;
  background-color: var(--white);
}
.contact-bg .form-card { box-shadow: 0 20px 50px -30px rgba(11,26,51,.25); }

/* Mapa + botão do Instagram na coluna do Contacto */
.map-card { margin-top: 36px; background: var(--white); border: 1px solid var(--line); }
.map-frame { display: block; width: 100%; height: 251px; border: 0; filter: grayscale(.35) contrast(1.02); }
.map-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); }
.map-place { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--ink); }
.map-place svg { width: 18px; height: 18px; fill: none; stroke: var(--inst); stroke-width: 1.5; }
.map-link { font-family: var(--head); font-weight: 500; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--inst); white-space: nowrap; }
.map-link:hover { color: var(--ink); }
.insta-btn {
  margin-top: 16px; display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: var(--deep); color: var(--off); transition: background .4s var(--ease);
}
.insta-btn:hover { background: var(--inst); }
.insta-btn svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.insta-btn svg .dot { fill: var(--gold); stroke: none; }
.insta-text { display: grid; line-height: 1.35; }
.insta-text b { font-family: var(--head); font-weight: 400; font-size: 1.0625rem; }
.insta-text span { font-size: .9375rem; color: var(--on-dark-soft); }
.insta-arrow { margin-left: auto; color: var(--gold); transition: transform .4s var(--ease-out); }
.insta-btn:hover .insta-arrow { transform: translateX(4px); }

/* Foto na coluna da marcação (preenche o espaço ao lado do formulário) */
.booking-photo { margin: 40px 0 0; overflow: hidden; }
.booking-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%; filter: saturate(.9); }

/* ---------- Spine Unit (faixa dividida) ---------- */
.unit-split { display: grid; grid-template-columns: 1fr 1fr; background: var(--inst); color: var(--on-dark-soft); min-height: 420px; }
.unit-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--section) 72px var(--section) max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.unit-copy .eyebrow { color: var(--on-dark-soft); }
.unit-logo { width: min(340px, 100%); height: auto; margin: 4px 0 20px -8px; }
.unit-btn { align-self: flex-start; margin-top: 28px; background: #2EC4B6; color: #0A1F3D; }
.unit-btn:hover { background: #45D3C6; }
.unit-copy .h2 { color: var(--on-dark); margin-bottom: 20px; }
.unit-copy .by { display: block; margin-top: 8px; font-size: .5em; letter-spacing: .02em; color: var(--on-dark-soft); }
.unit-copy p { font-size: 1.1875rem; }
.unit-place { margin-top: 28px !important; font-family: var(--head); font-weight: 500; font-size: .75rem !important; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.unit-media { position: relative; margin: 0; overflow: hidden; }
.unit-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: saturate(.75); }
.unit-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,38,79,.45), rgba(18,38,79,0) 40%); }

/* ---------- Rodapé ---------- */
.footer { background: var(--deep); color: var(--on-dark-soft); padding: 56px 0 28px; font-size: 1.0625rem; }
/* Colunas distribuídas até à margem direita, sem vazio no fim */
.footer-top { display: flex; justify-content: space-between; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid var(--line-dark); }
.footer-top > div:first-child { max-width: 380px; }
.footer-logo { width: 200px; margin-bottom: 24px; }
.footer h4 { font-family: var(--head); font-weight: 500; font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 22px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { transition: color .3s var(--ease); }
.footer a:hover { color: var(--on-dark); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .9375rem; }

/* ---------- WhatsApp flutuante (discreto) ---------- */
.wa {
  position: fixed; right: 28px; bottom: 28px; z-index: 60;
  display: flex; align-items: center; height: 56px; border-radius: 28px;
  background: var(--deep); color: var(--off); box-shadow: 0 0 0 1px rgba(212,175,55,.55), 0 18px 40px -18px rgba(11,26,51,.6);
  overflow: hidden; transition: box-shadow .5s var(--ease);
}
.wa-icon { width: 56px; height: 56px; display: grid; place-items: center; flex: none; }
.wa-icon svg { width: 22px; height: 22px; }
.wa-label {
  max-width: 0; opacity: 0; white-space: nowrap; overflow: hidden;
  font-family: var(--head); font-weight: 500; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  transition: max-width .6s var(--ease-out), opacity .4s var(--ease), padding .6s var(--ease-out);
}
.wa:hover .wa-label, .wa:focus-visible .wa-label { max-width: 220px; opacity: 1; padding-right: 24px; }
.wa:hover { box-shadow: 0 0 0 1px var(--gold), 0 18px 40px -18px rgba(11,26,51,.6); }

/* ---------- Animações ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transform: translateY(18px); }
/* Quem pede menos movimento: só um fade suave, sem deslocamento */
.motion-soft .reveal { transform: none; transition: opacity .8s var(--ease); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  :root { --section: 64px; }
  .about, .tech, .booking, .principles-head, .areas-head { gap: 64px; }
  .nav-links { gap: 26px; }
  .nav { gap: 28px; }
}
@media (max-width: 960px) {
  :root { --section: 56px; --header-h: 72px; --gutter: 24px; }
  .header.is-solid { height: 68px; }
  .logo { width: 140px; height: 54px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 2; flex-direction: column; justify-content: center; align-items: flex-start; gap: 48px;
    padding: 0 var(--gutter); background: var(--deep);
    opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
  }
  .nav-links { flex-direction: column; gap: 6px; }
  .nav-links a { font-weight: 300; font-size: 2rem; letter-spacing: 0; color: var(--on-dark) !important; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .nav-indicator { display: none; }
  .nav .btn { color: var(--on-dark) !important; border-color: rgba(244,241,232,.45) !important; opacity: 0; transition: opacity .6s var(--ease-out) .35s; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .nav-links a { opacity: 1; transform: none; }
  .menu-open .nav-links a:nth-child(2) { transition-delay: .06s; }
  .menu-open .nav-links a:nth-child(3) { transition-delay: .12s; }
  .menu-open .nav-links a:nth-child(4) { transition-delay: .18s; }
  .menu-open .nav-links a:nth-child(5) { transition-delay: .24s; }
  .menu-open .nav .btn { opacity: 1; }
  .menu-open .menu-toggle { color: var(--on-dark) !important; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
  .menu-open .logo-light { opacity: 1 !important; }
  .menu-open .logo-dark { opacity: 0 !important; }
  .menu-open .header { background: transparent; box-shadow: none; }

  .hero { min-height: auto; }
  .hero-photo { position: relative; width: 100%; height: 62vh; min-height: 380px; max-height: 560px; }
  .hero-photo img { object-position: 52% 18%; }
  .hero-photo::after { background: linear-gradient(0deg, var(--deep) 0%, rgba(11,26,51,.35) 38%, rgba(11,26,51,.15) 70%, rgba(11,26,51,.55) 100%); }
  .hero-body { padding: 0 0 56px; margin-top: -72px; }
  .hero-actions { margin-top: 40px; }
  .credentials ul { grid-template-columns: 1fr 1fr; }
  .credentials li { padding: 24px 20px 26px; border-top: 1px solid var(--line-dark); }
  .credentials li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .credentials li:nth-child(-n+2) { border-top: 0; }

  .about, .tech, .booking, .principles-head, .areas-head { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }
  .unit-split { grid-template-columns: 1fr; }
  .contact-bg { background-position: 30% 20%; }
  .principles-split { grid-template-columns: 1fr; gap: 48px; padding: 72px 0; }
  .principles-media { min-height: 0; aspect-ratio: 4 / 5; max-width: 460px; }
  .manifesto { padding: 72px 0; }
  .manifesto-cols { grid-template-columns: 1fr; gap: 16px; }
  .manifesto-card { grid-template-columns: 110px 1fr; }
  .manifesto-photo { min-height: 160px; }
  .manifesto-card blockquote { padding: 22px 20px; }
  .manifesto-card p { font-size: 1.0625rem; }
  .patient-quote { padding: 24px; }
  .slogans { padding: 14px 0; }
  .slogans li::after { margin: 0 20px; }
  .unit-copy { padding: 72px var(--gutter); }
  .unit-media { height: 340px; }
  .about-media { position: relative; top: 0; max-width: 460px; max-height: none; }
  .about-media figcaption { left: 24px; bottom: 24px; }
  .about-photo { max-width: 460px; margin-left: 20px; }
  .principles-head, .areas-head { margin-bottom: 48px; gap: 20px; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .areas { grid-template-columns: 1fr; }
  .tech-photo { order: 2; min-height: 0; aspect-ratio: 4 / 5; max-width: 460px; }
  .statement { padding: 112px 0; }
  .footer-top { flex-wrap: wrap; gap: 32px 48px; }
  .footer-top > div:first-child { flex-basis: 100%; max-width: none; }
}
@media (max-width: 600px) {
  :root { --section: 48px; --gutter: 20px; }
  body { font-size: 1.125rem; }
  .hero-title .name { font-size: clamp(2.5rem, 12vw, 3.25rem); }
  .hero-title .pre { letter-spacing: .26em; }
  .hero-role { font-size: .8125rem; letter-spacing: .22em; }
  .hero-actions .btn { width: 100%; }
  .career li { grid-template-columns: 1fr; gap: 2px; }
  .contact-info div { grid-template-columns: 1fr; gap: 2px; }
  .form-card { padding: 36px 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { flex-direction: column; gap: 28px; }
  .wa { right: 18px; bottom: 18px; }
  .wa-label { display: none; }
}
