﻿/* =========================================================
   OTÁVIO SANCHEZ — DESIGN SYSTEM / HOME
   BUILD 08 — recomposição visual e fechamento
   Pertencimento visual: intragrupo < intergrupo.
   Sem sexto elemento gráfico. Sem viewport hacks. Sem reservas.
   ========================================================= */

:root {
  /* Cor — tokens fechados */
--bg:               #F4F2EE;
--paper:            #F4F2EE;
  --paper-alt:        #EEE7DB;
--photo-placeholder:#E5E1DA;
--green:            #07517A;
--green-deep:       #071B28;
--green-hover:      #023E5E;
--text:             #111214;
  --muted:            #6F726C;
--ink:              #111214;
--ink-soft:         #4B5158;
--ink-faint:        #8A8D90;
--line:             rgba(17,18,20,.16);
--line-strong:      rgba(17,18,20,.26);
--on-dark:          #F4F2EE;
  --on-dark-muted:    rgba(244,242,238,.82);
  --on-dark-line:     rgba(244,242,238,.34);

  /* Tipografia (Newsreader + Inter) */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui:      "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --fs-h1: clamp(3.2rem, 4.6vw, 4.4rem);
  --fs-h2: clamp(2rem, 2.8vw, 2.65rem);
  --fs-body: 1rem;
  --fs-eyebrow: .72rem;

  /* Layout */
  --container: 1200px;
  --gutter: 32px;

  /* Escala de espaço */
  --s1: 8px; --s2: 12px; --s3: 16px; --s4: 24px; --s5: 32px;
  --s6: 40px; --s7: 48px; --s8: 64px; --s9: 80px;

  /* Forma — editorial */
  --radius-xs: 8px;
  --radius: 12px;
  --radius-s: 10px;
  --radius-l: 12px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Reset leve */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 20px; top: -48px;
  background: var(--green); color: var(--on-dark);
  padding: 10px 16px; border-radius: 8px; z-index: 120;
  text-decoration: none; font-weight: 500;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.o-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section[id] { scroll-margin-top: 78px; }

/* Placeholder fotográfico — superfície plana, silenciosa */
.photo-placeholder {
  background: var(--photo-placeholder);
  width: 100%;
  height: 100%;
}
.o-hero-figure img, .axis-visual img, .about-figure img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.o-hero-figure img { object-position: 50% 20%; }
.axis-visual img { object-position: 50% 30%; }
.about-figure img { object-position: 50% 24%; }
.axis-card--dark .axis-visual { display: grid; place-items: center; overflow: hidden; }

/* ── Tipografia liga título → apoio (pertencimento) ── */
.eyebrow {
  display: inline-flex; align-items: center;
  font-size: var(--fs-eyebrow);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
/* ── BOXES EDITORIAIS DE CONTRASTE (labels das seções da Home) — acabamento suave ── */
.o-section-label {
  display: inline-flex; align-items: center; width: fit-content; max-width: 100%;
  font-family: var(--font-ui);
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  line-height: 1.35; text-align: left;
  padding: 6px 11px; border-radius: 6px;
  background: rgba(7,81,122,.10);
  border: 1px solid rgba(7,81,122,.16);
  color: #07517A;
  margin: 0; cursor: default;
}
.o-section-label--light {
  background: rgba(244,242,238,.10);
  border-color: rgba(244,242,238,.16);
  color: #F4F2EE;
}
@media (max-width: 560px) {
  .o-section-label { padding: 6px 11px; letter-spacing: .13em; }
}
/* fim boxes editoriais */
.o-h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: 1.01;
  letter-spacing: -.02em;
  margin: 26px 0 0;
  color: var(--green-deep);
  text-wrap: balance;
}
.o-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 14px 0 0;
  color: var(--ink);
  text-wrap: balance;
}
.o-lead { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.52; }

/* Cabeça empilhada de seção — H2 protagonista, apoio secundário */
.o-head-stack { max-width: 720px; }
.o-head-stack .o-h2 { margin-top: 14px; }
.o-head-stack .o-lead { margin-top: 18px; max-width: 64ch; font-size: .92rem; }

/* ── Botões / CTAs ── */
.o-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 24px;
  border-radius: 999px;
  font-weight: 550; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .22s var(--ease), color .22s, border-color .22s;
}
.o-btn .arr { transition: transform .22s var(--ease); }
.o-btn:hover .arr { transform: translateX(3px); }
.o-btn--primary { background: var(--green); color: var(--on-dark); }
.o-btn--primary:hover { background: var(--green-hover); }
.o-btn--light { background: var(--bg); color: var(--green-deep); }
.o-btn--light:hover { background: #FFFFFF; }
.o-btn--sm { min-height: 44px; padding: 8px 22px; font-size: .88rem; }

/* CTA editorial (texto + underline + seta) */
.o-link-sub {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px;
  font-weight: 570; font-size: .95rem; text-decoration: none;
  color: var(--ink);
  border-bottom: 1.5px solid var(--line-strong);
  padding-bottom: 3px;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s;
}
.o-link-sub:hover { color: var(--green); border-bottom-color: var(--green); }
.o-link-sub .arr { transition: transform .22s var(--ease); }
.o-link-sub:hover .arr, .o-link-sub:focus-visible .arr { transform: translateX(3px); }

/* Link editorial em módulos */
.axis-link {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  font-weight: 570; font-size: .9rem; text-decoration: none;
  color: var(--ink); border-bottom: 1.5px solid var(--green);
  padding-bottom: 3px;
}
.axis-link .arr { transition: transform .22s var(--ease); }
.axis-link:hover { color: var(--green-hover); }
.axis-link:hover .arr, .axis-link:focus-visible .arr { transform: translateX(3px); }

/* ── HEADER (preservado) ── */
.o-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,242,238,.96);
  border-bottom: 1px solid var(--line);
}
.o-header.is-scrolled { background: rgba(244,242,238,.99); }
.o-header-inner {
  max-width: var(--container); margin-inline: auto;
  padding: 11px var(--gutter);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 70px;
}
.o-brand { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; text-decoration: none; }
.o-brand-logo { height: 48px; width: auto; flex: none; }
.o-brand-text { display: inline-flex; flex-direction: column; gap: 1px; min-width: 0; }
.o-brand strong {
  font-family: var(--font-ui);
  font-size: .95rem; letter-spacing: .05em; font-weight: 650;
  text-transform: uppercase; color: var(--ink);
}
.o-brand small { font-size: .71rem; color: var(--ink-soft); letter-spacing: .01em; white-space: nowrap; }
.o-nav { display: flex; gap: clamp(12px, 1.5vw, 22px); align-items: center; justify-content: center; }
.o-nav a {
  position: relative; text-decoration: none;
  color: var(--ink-soft); font-size: .88rem;
  padding: 4px 2px; white-space: nowrap;
}
.o-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--green);
  transition: right .25s var(--ease);
}
.o-nav a:hover, .o-nav a:focus-visible { color: var(--ink); }
.o-nav a:hover::after, .o-nav a:focus-visible::after { right: 0; }
.o-header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.o-nav-patient {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 8px 18px;
  font-size: .88rem; font-weight: 540; line-height: 1;
  color: var(--green);
  background: transparent;
  border: 1px solid rgba(7,81,122,.35);
  border-radius: 8px;
  text-decoration: none; white-space: nowrap;
  transition: color .2s, border-color .2s, background-color .2s;
}
.o-nav-patient:hover { color: var(--green-hover); border-color: rgba(7,81,122,.6); }
.o-nav-patient:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.o-login-link {
  text-decoration: none; font-size: .88rem; color: var(--ink-soft);
  padding: 8px 2px; border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.o-login-link:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.o-burger {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: 50%; background: transparent;
  cursor: pointer; position: relative;
}
.o-burger span, .o-burger span::before, .o-burger span::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease);
}
.o-burger span { top: 50%; }
.o-burger span::before { top: -6px; }
.o-burger span::after { top: 6px; }
.o-burger[aria-expanded="true"] span { background: transparent; }
.o-burger[aria-expanded="true"] span::before { left: 50%; top: 0; transform: translateX(-50%) rotate(45deg); }
.o-burger[aria-expanded="true"] span::after { left: 50%; top: 0; transform: translateX(-50%) rotate(-45deg); }
.o-mobile {
  position: fixed; inset: 71px 0 auto 0; z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 24px;
  display: none;
}
.o-mobile.is-open { display: block; }
.o-mobile nav { display: grid; }
.o-mobile nav a {
  min-height: 48px; display: flex; align-items: center;
  text-decoration: none; font-size: .98rem; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 1079px) {
  .o-nav { display: none; }
  .o-header-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .o-login-link { display: none; }
  .o-burger { display: inline-flex; }
  .o-nav-patient { display: none; }   /* acesso pelo menu mobile (sem duplicar) */
}
@media (min-width: 1080px) {
  .o-burger { display: none; }
  .o-mobile { display: none; }
}
@media (max-width: 768px) {
  .about-figure { max-width: 300px; aspect-ratio: 4 / 5; max-height: none; }
  .about-figure img { object-position: 50% 22%; }
}
@media (max-width: 560px) {
  .o-brand small { display: none; }
  .o-header-inner { min-height: 66px; gap: 10px; }
  .o-brand strong { font-size: .82rem; }
  .o-brand-logo { height: 40px; }
  .o-btn--sm { min-height: 42px; padding: 6px 14px; font-size: .84rem; }
}

/* ── HERO — abertura enxuta (52–72px do header) ── */
.o-hero { padding-block: 44px 40px; }
.o-hero-grid {
  display: grid;
  grid-template-columns: 46fr 54fr;
  gap: clamp(40px, 5.5vw, 80px);
  align-items: start;
}
.o-hero-figure {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4 / 4.1;
  max-height: 560px;
  width: 100%;
}
.o-hero-content { max-width: 500px; }
.o-hero-copy { margin-top: 30px; max-width: 500px; font-size: 1.08rem; }
.o-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 16px; margin-top: 28px; }

@media (max-width: 1024px) {
  .o-hero { padding-block: 34px 36px; }
  .o-hero-grid { grid-template-columns: 45fr 55fr; gap: var(--s7); }
  .o-hero-figure { aspect-ratio: 4 / 3.6; max-height: none; }
}
@media (max-width: 860px) {
  .o-hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .o-hero-figure { aspect-ratio: 4 / 3.5; }
  .o-hero-visual { order: 2; }
  .o-hero-content { max-width: none; }
}
@media (max-width: 768px) {
  .o-hero-title, .o-h1 { font-size: clamp(2.75rem, 8.4vw, 3.35rem); }
  .o-hero-actions .o-btn { width: 100%; justify-content: center; }
  .o-hero-actions .o-link-sub { width: 100%; justify-content: center; border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 560px) {
  .o-hero-grid { gap: 12px; }
  .o-hero-figure { aspect-ratio: 4 / 4.2; }
  .o-hero-figure img { object-position: 50% 18%; }
}

/* ── EIXOS (preservados · gap/alt por conteúdo) ── */
.o-axis-wrap { padding-block: 0 32px; }
.o-axis { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.axis-card { border-radius: var(--radius); overflow: hidden; display: grid; }
.axis-card--light {
  background: var(--paper-alt);
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
}
.axis-card--dark {
  background: var(--green-deep);
  grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
}
.axis-visual { position: relative; }
.axis-visual .photo-placeholder { position: absolute; inset: 0; }
.axis-body { padding: clamp(26px, 2.6vw, 32px); display: flex; flex-direction: column; }
.axis-body .axis-copy { max-width: 40ch; }
.axis-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.68rem, 1.95vw, 1.92rem); line-height: 1.12;
  margin: 12px 0 0; letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}
.axis-copy { margin-top: 12px; font-size: .93rem; line-height: 1.52; color: var(--ink-soft); }

/* Superfície escura — cores explícitas */
.axis-card--dark .axis-title  { color: var(--on-dark); }
.axis-card--dark .axis-copy   { color: var(--on-dark-muted); }
.axis-card--dark .eyebrow     { color: var(--on-dark-muted); }
.axis-card--dark .axis-link   { color: var(--on-dark); border-bottom-color: var(--on-dark-line); }
.axis-card--dark .axis-link:hover { color: #FFFFFF; }

@media (min-width: 921px) {
  .axis-visual { min-height: 264px; }
}
@media (max-width: 920px) {
  .o-axis { grid-template-columns: 1fr; }
  .axis-card--light, .axis-card--dark { grid-template-columns: 1fr; }
  .axis-visual { order: 9; height: 200px; margin-top: 0; }
  .axis-body { padding: 22px; }
}

/* ── QUANDO BUSCAR — seção azul-noturno · 6 cards premium · carrossel manual ── */
.o-topics-wrap { background: var(--green-deep); padding-block: 36px 40px; }
.o-topics-head {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .9fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: end;
}
.o-topics-main .o-h2 { margin-top: 14px; max-width: 20ch; color: var(--on-dark); }
.o-topics-main .eyebrow { color: #8FBAD1; }
.o-topics-main .o-lead { margin-top: 16px; max-width: 58ch; color: var(--on-dark-muted); }
.o-topics-side { min-width: 0; display: grid; justify-items: center; align-content: end; gap: 18px; }
.topics-logo { width: 160px; height: auto; }
.topics-note { font-size: .95rem; line-height: 1.6; color: rgba(244,242,238,.8); padding-bottom: 4px; margin: 0; }
.o-topics-carousel { margin-top: 30px; }
.topics-track {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.topics-track::-webkit-scrollbar { display: none; }
.topics-cards {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 20px;
}
.topic-card {
  background: #143447;
  border: 1px solid rgba(244,242,238,.14);
  border-radius: 12px;
  padding: 28px 26px;
  transition: border-color .2s var(--ease);
}
.topic-card:hover { border-color: rgba(244,242,238,.3); }
.topic-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  line-height: 1.3;
  color: var(--on-dark);
  margin: 0;
}
.topic-desc { display: none; }
@media (max-width: 920px) {
  .topic-card { padding: 22px 20px; }
  .topic-card h3 { font-size: 1.4rem; line-height: 1.28; }
  .topic-desc {
    display: block;
    font-family: var(--font-ui);
    font-size: .86rem; line-height: 1.5;
    color: rgba(244,242,238,.72);
    margin-top: 8px;
    overflow-wrap: break-word;
  }
}
.topics-nav {
  display: none;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
html.js .topics-nav { display: flex; }
.topics-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(244,242,238,.25);
  border-radius: 50%;
  color: rgba(244,242,238,.75);
  font-size: 1rem; line-height: 1;
  cursor: pointer;
  transition: border-color .2s, color .2s, opacity .2s;
}
.topics-btn:hover { border-color: rgba(244,242,238,.45); color: #FFFFFF; }
.topics-btn[disabled] { opacity: .3; cursor: default; }
@media (max-width: 900px) {
  .o-topics-wrap .o-container { display: flex; flex-direction: column; }
  .o-topics-head { display: contents; }
  .o-topics-main { display: block; }
  .o-topics-side { display: contents; }
  .topics-logo { display: none; }
  .topics-note { order: 9; margin-top: 22px; max-width: none; padding-bottom: 0; }
  .o-topics-carousel { margin-top: 26px; }
}
@media (max-width: 1079px) {
  .o-topics-carousel { margin-top: 28px; }
  .topics-cards { grid-auto-columns: calc((100% - 24px) / 2); gap: 18px; }
}
@media (max-width: 768px) {
  .o-topics-carousel { margin-top: 24px; }
  .topics-cards { grid-auto-columns: 78%; gap: 16px; }
  .topic-card { padding: 22px 20px; }
}
@media (max-width: 430px) {
  .o-topics-wrap { padding-block: 28px 32px; }
  .topics-cards { grid-auto-columns: 82%; }
  .topic-card h3 { font-size: 1.3rem; }
  .topic-desc { font-size: .84rem; }
}

/* ── PROCESSO — cabeça levaba → trilha visual (Read: PROTAGONISTA = track) ── */
.o-process-wrap { padding-block: 16px 14px; }
.o-process-steps {
  margin-top: clamp(32px, 2.8vw, 38px);
  padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  column-gap: var(--s8);
}
.process-item { min-width: 0; }
@media (min-width: 1081px) {
  .process-head { margin-right: calc(var(--s8) * -0.85); }
  .process-item:last-child .process-head { margin-right: 0; }
}
.process-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.process-num {
  font-family: var(--font-display);
  font-size: .82rem; color: var(--muted); letter-spacing: .08em;
  flex: none; background: var(--bg); padding-right: 8px;
  position: relative; z-index: 1;
}
.process-track { flex: 1; height: 1px; background: var(--line); }
.process-item h3 { margin: 0; font-size: .97rem; font-weight: 600; }
.process-item p { margin: 12px 0 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.52; }
@media (max-width: 1079px) {
  .o-process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 20px; column-gap: var(--s8); }
}
@media (max-width: 560px) {
  .o-process-steps { grid-template-columns: 1fr; row-gap: 0; }
  .process-head { margin-bottom: 6px; }
  .process-track { display: none; }
  .process-item { border-left: 1px solid var(--line); padding: 10px 0 10px 16px; position: relative; }
  .process-item:last-child { padding-bottom: 2px; }
  .process-item::before {
    content: ""; position: absolute; left: -4px; top: 19px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--line-strong);
  }
}

/* ── CONTEÚDOS — interlúdio editorial (divisores discretos; 150–200px) ── */
.o-content-wrap { padding-block: 0 20px; }
.o-content-empty {
  border-block: 1px solid var(--line);
  display: grid; grid-template-columns: 60fr 40fr;
  gap: clamp(28px, 3vw, 44px);
  align-items: center;
  padding-block: 24px;
}
.o-content-empty .o-lead { margin-top: 16px; max-width: 52ch; }
.socials-strip {
  display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap;
  gap: 20px 24px;
  color: var(--ink-soft); font-size: .9rem;
}
.socials-strip > span { font-weight: 600; color: var(--ink); font-size: .95rem; }
.social-item {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  text-decoration: none; color: var(--ink-soft); font-size: .9rem;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.social-item:hover { color: var(--green); border-bottom-color: var(--green); }
.social-item svg { width: 18px; height: 18px; flex: none; }

/* ESTADO B — mosaico de vídeos (FUTURO · gate PHP) */
.o-videos {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px;
}
.o-video-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.video-card {
  position: relative; border-radius: var(--radius-xs);
  overflow: hidden; background: var(--green-deep);
  display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 16 / 9;
  text-decoration: none;
  transition: opacity .25s var(--ease);
}
.video-card:hover { opacity: .95; }
.video-card img.thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(244,242,238,.94); color: var(--green-deep);
  display: grid; place-items: center; z-index: 2;
}
.video-card .meta {
  position: relative; z-index: 2;
  padding: 10px 16px 12px;
  font-size: .8rem; font-weight: 530;
  color: var(--on-dark);
}
@media (max-width: 920px) {
  .o-videos { grid-template-columns: 1fr; }
  .o-video-stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 479px) {
  .o-video-stack { grid-template-columns: 1fr; }
}

/* ── SOBRE — contraponto visual (foto+H2 protagonistas; rail secundário) ── */
.o-about-wrap { padding-block: 8px 40px; }
.o-about-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 30fr 45fr 25fr;
  gap: clamp(28px, 2.8vw, 34px);
  align-items: start;
}
.about-figure {
  margin: 0; border-radius: var(--radius-s); overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 330px;
}
.about-body .o-lead { margin-top: 20px; max-width: 52ch; }
.about-body .axis-link { margin-top: clamp(24px, 2.2vw, 28px); }
.about-rail {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  color: var(--ink-soft); font-size: .86rem; line-height: 1.5;
  display: grid; gap: 12px; align-self: start;
}
.about-rail strong { color: var(--ink); font-weight: 600; }
.about-rail .rail-row { padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.about-rail .rail-last { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 1024px) {
  .o-about-grid { grid-template-columns: 30fr 70fr; }
  .about-rail { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .o-about-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-rail { grid-template-columns: 1fr; }
}

/* ── LOCALIZAÇÃO (FUTURO — gate PHP; zero altura pública hoje) ── */
.o-loc-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 34fr 26fr 40fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 900px) { .o-loc-grid { grid-template-columns: 1fr; } }

/* ── VAMOS CONVERSAR? — caixa editorial premium · grid interno 45/55 · conjunto centrado ── */
.o-cta-next { padding-block: 28px 36px; }
.o-cta-next-inner {
  background: #FFFFFF;
  border: 1px solid rgba(7,27,40,.10);
  border-radius: 17px;
  box-shadow: 0 12px 34px rgba(7,27,40,.09), 0 2px 8px rgba(7,27,40,.035);
  padding: clamp(36px, 3vw, 44px) var(--gutter);
}
.o-cta-core {
  max-width: 900px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 200px;
  gap: clamp(48px, 5vw, 72px);
  align-items: center;
}
.o-cta-brand { min-width: 0; justify-self: end; }
.o-cta-brand img, .o-cta-brand svg { display: block; max-width: 200px; width: 200px; height: auto; }
.o-cta-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.4rem, 3.4vw, 3.2rem); margin: 14px 0 0; line-height: 1.06;
  color: var(--text);
}
.o-cta-copy { color: var(--ink-soft); margin: 0; font-size: .95rem; max-width: 46ch; }
.o-cta-actions {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
  gap: 24px; margin-top: 20px;
}
.o-cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px;
  font-weight: 540; font-size: .88rem; text-decoration: none;
  color: var(--green);
  border-bottom: 1.5px solid var(--line-strong);
  padding-bottom: 3px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.o-cta-secondary:hover { color: var(--green-hover); border-bottom-color: var(--green-hover); }
.o-cta-secondary .arr { transition: transform .22s var(--ease); }
.o-cta-secondary:hover .arr, .o-cta-secondary:focus-visible .arr { transform: translateX(3px); }
@media (max-width: 860px) {
  .o-cta-core { grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .o-cta-next-inner { padding-block: 26px; }
  .o-cta-brand { display: grid; justify-self: center; justify-items: center; margin-top: 12px; }
  .o-cta-brand img, .o-cta-brand svg { width: 110px; height: auto; }
  .o-cta-actions { flex-direction: column; align-items: center; gap: 12px; }
}

/* ── FOOTER — faixa institucional (identidade · social · jurídico) ── */
.o-footer { background: var(--bg); }
.o-footer--dark {
  background: var(--green-deep);
  border-top: 1px solid rgba(244,242,238,.17);
}
.o-footer--dark .o-footer-name { color: var(--on-dark); }
.o-footer--dark .o-footer-meta { color: var(--on-dark-muted); }
.o-footer--dark .o-footer-loc-label { color: var(--on-dark); }
.o-footer--dark .o-footer-loc-link { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(244,242,238,.25); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.o-footer--dark .o-footer-loc-link:hover { color: #FFFFFF; border-bottom-color: rgba(244,242,238,.55); }
.o-footer--dark .o-footer-social .social-item { color: var(--on-dark-muted); }
.o-footer--dark .o-footer-social .social-item:hover { color: #FFFFFF; border-bottom-color: rgba(244,242,238,.4); }
.o-footer--dark .o-footer-links a { color: rgba(244,242,238,.62); }
.o-footer--dark .o-footer-links a:hover { color: #FFFFFF; border-bottom-color: rgba(244,242,238,.4); }
.o-footer--dark .o-footer-copy { color: rgba(244,242,238,.5); }
.o-footer-inner {
  padding-block: 18px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 20px; align-items: center;
}
.o-footer-ident { min-width: 0; }
.o-footer-loc { min-width: 0; }
.o-footer-loc-label { font-weight: 650; letter-spacing: .05em; font-size: .72rem; text-transform: uppercase; line-height: 1.25; margin-bottom: 2px; color: var(--on-dark); }
.o-footer-name { font-weight: 650; letter-spacing: .05em; font-size: .84rem; text-transform: uppercase; line-height: 1.25; }
.o-footer-meta { margin-top: 2px; font-size: .76rem; color: var(--muted); line-height: 1.5; }
/* .o-footer-nav mantido: usado pelas páginas jurídicas */
.o-footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.o-footer-nav a {
  font-size: .84rem; color: var(--ink-soft); text-decoration: none;
  padding: 5px 0; display: inline-flex; align-items: center;
}
.o-footer-nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.o-footer-social { display: flex; gap: 6px; justify-content: center; justify-self: center; }
.o-footer-social .social-item { min-height: 36px; font-size: .84rem; gap: 6px; }
.o-footer-social .social-item svg { width: 15px; height: 15px; }
.o-footer-locsocial { display: contents; }
.soc-name { display: inline; }
.o-footer-legal { display: grid; justify-items: end; gap: 6px; }
.o-footer-links { display: flex; gap: 12px; }
.o-footer-links a {
  font-size: .8rem; color: var(--ink-faint); text-decoration: none; padding: 3px 0;
}
.o-footer-links a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.o-footer-copy { font-size: .74rem; color: var(--ink-faint); opacity: .85; }
/* ── FOOTER mobile: linha localização + social (ícones) na MESMA linha ── */
@media (max-width: 860px) {
  .o-footer-inner { grid-template-columns: 1fr; gap: 0; padding-block: 20px 16px; justify-items: start; }
  .o-footer-name { font-size: .95rem; font-weight: 600; }
  .o-footer-meta { font-size: .78rem; }
  .fn-role, .fn-crp { display: inline; }
  .fn-sep { display: inline; }
  .o-footer-locsocial { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; width: 100%; }
  .o-footer-loc { margin-top: 0; }
  .o-footer-loc-label { display: none; }
  .o-footer-loc .o-footer-meta { font-size: .8rem; margin-top: 0; }
  .o-footer-social { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 0; justify-content: flex-start; justify-self: auto; }
  .o-footer-social .social-item { min-height: 44px; min-width: 44px; font-size: .8rem; gap: 6px; padding: 0 2px; }
  .o-footer-social .social-item svg { width: 20px; height: 20px; }
  .o-footer-social .soc-name { display: none; }
  .o-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(244,242,238,.16); width: 100%; }
  .o-footer-links { gap: 12px; justify-content: flex-start; }
  .o-footer-copy { font-size: .72rem; margin-top: 0; margin-left: auto; text-align: right; }
}
/* fim footer mobile */
/* ── Cabeçalho mobile: CTA alterna Agendar→Área do paciente (spans + JS) ── */
.hc-patient { display: none; }
@media (max-width: 1080px) {
  .hc-book { display: none; }
  .hc-patient { display: inline; }
}

/* ── Reveal sutil ── */
.js .reveal { opacity: 0; transform: translateY(12px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

.o-section { padding-block: 40px; }

/* Compat páginas jurídicas (privacidade/termos herdam vars antigas) */
:root { --space-3: 16px; --space-4: 24px; }
.o-footer-brand { color: var(--muted); font-size: .82rem; }

/* ── Gutters responsivos ── */
@media (max-width: 1079px) and (min-width: 769px) {
  :root { --gutter: 34px; }
}
@media (max-width: 768px) {
  :root { --gutter: 24px; }
  .o-axis-wrap { padding-block: 0 24px; }
  .o-topics-wrap { padding-block: 10px 22px; }
  .o-process-wrap { padding-block: 10px 8px; }
  .o-content-wrap { padding-block: 10px 20px; }
  .o-about-wrap { padding-block: 10px 32px; }
  .o-about-grid { margin-top: 12px; }
  .o-hero { padding-block: 34px 26px; }
  .o-cta-next { padding-block: 26px 32px; }
  .o-cta-actions { flex-direction: column; align-items: center; gap: 12px; }
  .about-figure { max-height: none; }
}
@media (max-width: 480px) { :root { --gutter: 20px; } }
@media (max-width: 360px) {
  :root { --gutter: 18px; }
}
@media (max-width: 430px) {
  .o-brand strong { font-size: .8rem; }
  .o-btn--sm { min-height: 44px; padding: 7px 12px; font-size: .8rem; }
  .o-header-actions { gap: 8px; }
  .o-header-inner { gap: 10px; }
}








