/* ==========================================================================
   Dr. Raphael de Almeida Carvalho — Site institucional
   Sistema visual: paleta e tipografia herdadas da marca (Roboto).
   Mobile-first. Breakpoints: 720px (tablet) e 1024px (desktop).
   ========================================================================== */

:root {
  /* Marca */
  --blue: #3b6684;
  --teal: #4dbcc5;
  --gray: #7c7b7b;
  --grad: linear-gradient(0deg, #3b6684 0%, #41869c 18%, #469dae 35%, #4aaebb 54%, #4cb8c2 75%, #4dbcc5 100%);

  /* Derivadas */
  --ink: #1c3242;          /* texto principal / fundos escuros */
  --ink-2: #4a5e6b;        /* texto secundário */
  --muted: #5f6b73;        /* texto auxiliar (contraste AA sobre fundos claros) */
  --teal-ink: #2a8590;     /* teal com contraste para texto pequeno */
  --bg: #f6f8f8;
  --surface: #ffffff;
  --mist: #edf4f5;
  --mist-2: #d6e7e9;
  --line: rgba(28, 50, 66, .085);
  --alert: #b4462f;
  --alert-bg: #fbf0ec;

  /* Tipografia */
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-lead: clamp(1.15rem, .9vw + 1rem, 1.375rem);
  --fs-h1: clamp(2.35rem, 6.2vw + .9rem, 4.75rem);
  --fs-h2: clamp(1.6rem, 2.4vw + 1rem, 2.6rem);
  --fs-h3: 1.25rem;

  /* Espaço e forma */
  --gutter: 16px;
  --max: 1200px;
  --radius: 24px;
  --radius-sm: 14px;
  --section: clamp(4rem, 10vw, 9rem);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(28, 50, 66, .04), 0 12px 32px -12px rgba(28, 50, 66, .16);
}

@media (min-width: 720px)  { :root { --gutter: 32px; --header-h: 76px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

/* --- Reset enxuto --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--teal); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

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

/* --- Tipografia ----------------------------------------------------------- */
.h1, h1 {
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h1 em, h1 em, .h2 em {
  font-style: normal; color: var(--teal-ink);
  background: linear-gradient(100deg, #3b6684 0%, #3f8fa0 55%, #43a7b3 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}
/* Traço de assinatura: gradiente da marca */
.rule { display: block; width: 44px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #3b6684, #4dbcc5); }
.h2, .prose h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); font-weight: 300; max-width: 40ch; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: var(--grad);
  -webkit-mask: var(--ast) center / contain no-repeat; mask: var(--ast) center / contain no-repeat;
}
:root {
  --ast: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='636 161 764 680'%3E%3Cpolygon points='1259.7 840.97 1017.81 599.08 775.92 840.97 719.96 785.01 922.29 582.69 636.16 582.69 636.16 503.56 922.29 503.56 719.96 301.23 775.92 245.28 978.24 447.6 978.24 161.47 1057.37 161.47 1057.37 447.6 1259.7 245.28 1315.65 301.23 1113.33 503.56 1399.46 503.56 1399.46 582.69 1113.33 582.69 1315.65 785.01 1259.7 840.97'/%3E%3C/svg%3E");
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* --- Botões --------------------------------------------------------------- */
.btn {
  --b-bg: var(--ink); --b-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 52px; padding: 0 1.5em;
  border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 500; font-size: 1rem; letter-spacing: .005em; text-decoration: none;
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn::after {
  content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform .35s var(--ease);
}
.btn:hover { background: var(--blue); box-shadow: 0 10px 24px -10px rgba(59, 102, 132, .6); }
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--light { --b-bg: #fff; --b-fg: var(--ink); }
.btn--light:hover { background: var(--teal); color: var(--ink); }
.btn--line-light { --b-bg: transparent; --b-fg: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.btn--line-light:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px #fff; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row > .btn { flex: 1 1 100%; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em; padding-block: 10px; margin-block: -10px;
  font-weight: 500; color: var(--blue); text-decoration: none;
}
.link-arrow::after {
  content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform .35s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 38px; width: auto; }
@media (min-width: 720px) { .brand img { height: 44px; } }

.nav { display: none; }
@media (min-width: 1100px) {
  .nav { display: flex; align-items: center; gap: 4px; }
  .nav a {
    position: relative; padding: 10px 12px; font-size: .9375rem; text-decoration: none; color: var(--ink-2);
    transition: color .25s;
  }
  .nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav .btn { margin-left: 12px; min-height: 44px; font-size: .9375rem; color: #fff; }
  .nav .btn::after { display: none; }
}

.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 6px 0 16px; border-radius: 999px;
  font-size: .9375rem; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--surface);
}
.menu-toggle .bars { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; border-radius: 2px;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle .bars::before { top: 12px; }
.menu-toggle .bars::after { top: 18.5px; }
.menu-open .menu-toggle .bars::before { top: 15.25px; transform: rotate(45deg); }
.menu-open .menu-toggle .bars::after { top: 15.25px; transform: rotate(-45deg); }
@media (min-width: 1100px) { .menu-toggle { display: none; } }

/* Menu mobile (tela cheia) */
.menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.menu-open .menu { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.menu .container { padding-top: 12px; padding-bottom: 40px; display: flex; flex-direction: column; min-height: 100%; }
.menu-list > li { border-bottom: 1px solid var(--line); }
.menu-list > li > a, .menu-list summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font-size: 1.5rem; font-weight: 400; letter-spacing: -.02em; text-decoration: none;
  list-style: none; cursor: pointer;
}
.menu-list summary::-webkit-details-marker { display: none; }
.menu-list summary::after {
  content: ""; width: 20px; height: 20px; background: var(--blue);
  -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat;
  transform: rotate(90deg); transition: transform .3s var(--ease);
}
.menu-list details[open] summary::after { transform: rotate(-90deg); }
.menu-sub { padding: 0 0 16px; display: grid; gap: 2px; }
.menu-sub a { display: block; padding: 8px 0; color: var(--ink-2); text-decoration: none; font-size: 1.0625rem; }
.menu-sub a:first-child { color: var(--blue); font-weight: 500; }
.menu-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 16px; }
.menu-foot p { font-size: var(--fs-small); color: var(--ink-2); }

/* --- Fotos (provisórias, em duotone da marca) ----------------------------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(160deg, #d7ecee 0%, #8fb3c6 100%);
  isolation: isolate;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--duo img { filter: grayscale(1) contrast(1.08) brightness(1.04); mix-blend-mode: multiply; opacity: .92; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-wide { aspect-ratio: 4 / 3; }
@media (min-width: 720px) { .ratio-wide { aspect-ratio: 21 / 9; } }

/* --- Seções gerais -------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--mist { background: var(--mist); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
  .section-head--split .lead { justify-self: end; }
}

/* --- Home: hero ----------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(1.75rem, 6vw, 4rem); padding-bottom: var(--section); }
.hero-grid { display: grid; gap: 44px; }
.hero-text { display: grid; gap: 26px; align-content: center; position: relative; z-index: 1; }
.hero .h1 { font-size: clamp(3rem, 7.4vw + 1rem, 6.25rem); font-weight: 300; letter-spacing: -.045em; line-height: .98; }
.hero .h1 em { font-weight: 400; }
.hero-text .lead { max-width: 36ch; }
.hero-text .btn-row { margin-top: 6px; }
.hero-media { position: relative; margin-right: 6px; }
.hero-media .ph { aspect-ratio: 4 / 5; width: 100%; border-radius: 28px; }
/* Assinatura: o símbolo da marca "saindo" da foto */
.hero-ast {
  position: absolute; z-index: 2; pointer-events: none;
  width: 108px; height: auto; right: -14px; top: -44px;
  filter: drop-shadow(0 10px 24px rgba(59, 102, 132, .25));
}
.hero-badge {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 16px;
  background: color-mix(in srgb, #fff 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hero-badge img { width: 36px; height: 36px; flex: none; border-radius: 8px; }
.hero-badge strong { display: block; font-size: .9rem; font-weight: 500; line-height: 1.3; }
.hero-badge span { display: block; font-size: .8125rem; color: var(--ink-2); line-height: 1.4; }
.hero-mark {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(120vw, 820px); right: -38%; top: -6%; opacity: .1;
}
@media (min-width: 720px) {
  .hero-badge { right: auto; left: 20px; bottom: 20px; max-width: 320px; }
  .hero-ast { width: 150px; right: -28px; top: -60px; }
}
@media (min-width: 1024px) {
  .hero { min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; padding-top: 2rem; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 72px; align-items: center; }
  .hero-media { margin-right: 0; }
  .hero-media .ph { max-height: min(680px, 78svh); }
  .hero-ast { width: 190px; right: auto; left: -96px; top: 48px; }
  .hero-badge { left: auto; right: 20px; }
}

.trust {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px;
  font-size: .8125rem; color: var(--muted); letter-spacing: .03em;
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--grad); }

/* --- Home: declaração ---------------------------------------------------- */
.statement { display: grid; gap: 28px; }
.statement p.big {
  font-size: clamp(1.5rem, 2.6vw + 1rem, 2.75rem); line-height: 1.22; letter-spacing: -.022em; font-weight: 300;
  text-wrap: pretty; max-width: 24ch;
}
.statement p.big strong { font-weight: 400; background: linear-gradient(100deg, #3b6684, #3f9aa7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.statement .aside { color: var(--ink-2); max-width: 46ch; }
.statement .stack { display: grid; gap: 24px; justify-items: start; }
@media (min-width: 1024px) {
  .statement { grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
  .statement > .eyebrow { padding-top: .9em; }
}

/* --- Lista editorial (dores) --------------------------------------------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 28px; align-items: center; gap: 2px 12px;
  grid-template-areas: "n t g" "n d g";
  padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding .4s var(--ease), background .4s var(--ease);
}
.row .n { grid-area: n; } .row > div { grid-area: t; } .row > p { grid-area: d; } .row .go { grid-area: g; }
.row .n { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; align-self: start; padding-top: .45em; }
.row h3 { font-size: clamp(1.25rem, 1.6vw + .9rem, 1.875rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.row p { font-size: .9375rem; color: var(--ink-2); line-height: 1.5; margin-top: 4px; }
.row .go {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line); transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.row .go::before { content: ""; width: 14px; height: 14px; background: var(--ink); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.row:hover .go { background: linear-gradient(0deg, #3b6684, #4dbcc5); box-shadow: none; }
.row:hover .go::before { background: #fff; }
.row:hover h3 { color: var(--blue); }
.row h3 { transition: color .3s; }
@media (min-width: 720px) {
  .row { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1fr) 40px; grid-template-areas: "n t d g"; gap: 24px; padding: 26px 0; }
  .row p { margin: 0; }
  .row .go { width: 40px; height: 40px; }
  .row:hover { padding-left: 12px; }
}

/* --- Cards de tratamento (scroll horizontal no mobile) ------------------- */
.cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  padding-bottom: 8px; scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.card {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 16px;
  padding: 0 0 8px; border-radius: var(--radius);
  background: transparent; text-decoration: none;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card .ph { aspect-ratio: 4 / 5; border-radius: 20px; }
.card .ph img { transition: transform .9s var(--ease); }
.card-body { padding: 0 4px; display: grid; gap: 8px; }
.card h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.card p { font-size: .9375rem; color: var(--ink-2); line-height: 1.5; }
.card .link-arrow { margin-top: 6px; font-size: .9375rem; }
.card:hover { transform: translateY(-4px); }
.card:hover .ph img { transform: scale(1.04); }
@media (min-width: 720px) { .cards { grid-auto-columns: 46%; } }
@media (min-width: 1024px) {
  .cards { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
}
.cards-hint { display: flex; justify-content: flex-end; gap: 8px; font-size: .8125rem; color: var(--muted); margin-top: 6px; }
@media (min-width: 1024px) { .cards-hint { display: none; } }

/* --- Passos --------------------------------------------------------------- */
.steps { display: grid; gap: 12px; counter-reset: s; }
.step {
  position: relative; padding: 28px 0 8px; border-top: 1px solid var(--line); counter-increment: s;
}
.step::before {
  content: "0" counter(s); display: block; margin-bottom: 14px;
  font-size: clamp(2.5rem, 3vw + 1rem, 3.5rem); font-weight: 300; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(0deg, #3b6684, #4dbcc5); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: -.02em; margin-bottom: 8px; }
.step p { color: var(--ink-2); }
.step::after { content: ""; position: absolute; left: 0; top: -1px; width: 44px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #3b6684, #4dbcc5); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* --- Formação ------------------------------------------------------------- */
.split { display: grid; gap: 36px; align-items: center; }
.split .ph { aspect-ratio: 4 / 5; }
.split-text { display: grid; gap: 20px; }
.split-text p { color: var(--ink-2); max-width: 52ch; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.facts li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.facts li span:first-child { color: var(--ink-2); }
.facts li span:last-child { font-weight: 500; text-align: right; }
@media (min-width: 1024px) { .split { grid-template-columns: 5fr 6fr; gap: 88px; } }

/* --- Bloco escuro: onde atende / CTA ------------------------------------- */
.dark {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 100% 100%, #3b6684 0%, #2a4a60 45%, var(--ink) 100%); color: #fff;
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
}
.dark::before {
  content: ""; position: absolute; z-index: -1; width: 560px; height: 500px; right: -180px; bottom: -200px;
  background: var(--grad); opacity: .22;
  -webkit-mask: var(--ast) center / contain no-repeat; mask: var(--ast) center / contain no-repeat;
}
.dark .eyebrow { color: var(--teal); }
.dark .h2 { color: #fff; max-width: 16ch; }
.dark p { color: rgba(255,255,255,.72); }
.dark-grid { display: grid; gap: 28px; }
.dark address { font-style: normal; font-size: 1.125rem; line-height: 1.6; color: #fff; }
@media (min-width: 1024px) { .dark-grid { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 64px; } }
.wrap-dark { padding-bottom: var(--section); }

/* --- Páginas internas: hero ---------------------------------------------- */
.page-hero { padding-top: clamp(1rem, 3vw, 2.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8125rem; color: var(--muted); margin-bottom: clamp(1.75rem, 5vw, 3.5rem); }
.crumbs a { text-decoration: none; color: var(--ink-2); display: inline-block; padding-block: 8px; margin-block: -8px; }
.crumbs a:hover { color: var(--blue); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--mist-2); }
.page-hero .inner { display: grid; gap: 22px; max-width: 900px; }
.page-hero h1 { font-size: clamp(2.2rem, 5.2vw + .9rem, 4.25rem); }
.page-hero .lead { max-width: 52ch; }
.page-hero .hero-mark { opacity: .1; right: -45%; top: -20%; }
@media (min-width: 1024px) { .page-hero .hero-mark { right: -12%; left: auto; top: -30%; width: 720px; } }
.page-figure { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.creds { display: flex; flex-wrap: wrap; gap: 8px; }
.creds span {
  font-size: .8125rem; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2);
}

/* Perfil (Sobre) */
.profile { display: grid; gap: 32px; }
.profile .ph { aspect-ratio: 4 / 5; }
@media (min-width: 1024px) { .profile { grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: end; } .profile .inner { padding-bottom: 12px; } }

/* --- Corpo do artigo ----------------------------------------------------- */
.article-wrap { display: grid; gap: 48px; padding-bottom: var(--section); }
@media (min-width: 1024px) {
  .article-wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 96px; align-items: start; }
}
.prose { max-width: 680px; display: grid; gap: clamp(2.75rem, 6vw, 4rem); }
.prose .sec { display: grid; gap: 18px; }
.prose h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem); font-weight: 300; }
.prose h2::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; margin-bottom: 20px; background: linear-gradient(90deg, #3b6684, #4dbcc5); }
.sec--alert h2::before, .contact-card h2::before { display: none; }
.prose p { color: var(--ink-2); text-wrap: pretty; }
.prose p strong { color: var(--ink); font-weight: 500; }
.prose a:not(.btn):not(.link-arrow) { color: var(--blue); }
.prose .intro p { font-size: 1.125rem; color: var(--ink); }

.list { display: grid; gap: 0; }
.list li {
  position: relative; padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.list li:first-child { border-top: 1px solid var(--line); }
.list li::before {
  content: ""; position: absolute; left: 0; top: 1.15em; width: 16px; height: 16px; background: var(--teal);
  -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat;
}
.list li b { font-weight: 500; }
.list a { text-decoration: none; }
.list a:hover { color: var(--blue); }

/* Sinais de alerta */
.sec--alert { background: var(--alert-bg); border-radius: var(--radius); padding: 24px 22px 26px; gap: 14px !important; }
.sec--alert h2 { border: 0; padding-top: 0; font-weight: 400; display: flex; align-items: center; gap: 12px; color: #5a2216; }
.sec--alert h2::after {
  order: -1; content: "!"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--alert); color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: 0;
}
.sec--alert p { color: #5a2216; font-weight: 500; }
.sec--alert .list li { border-color: rgba(180, 70, 47, .16); color: #4a2219; }
.sec--alert .list li::before { background: var(--alert); }
@media (min-width: 720px) { .sec--alert { padding: 36px 40px 40px; } }

.note {
  display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--alert-bg); color: #5a2216; font-size: .9375rem; line-height: 1.55;
}
.note::before {
  content: "!"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--alert); color: #fff; font-size: .8125rem; font-weight: 700; margin-top: 1px;
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 500; line-height: 1.4; letter-spacing: -.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .35s var(--ease), background-color .35s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--mist); }
.faq .a { padding: 0 48px 22px 0; color: var(--ink-2); }

/* Cards de índice (hubs) */
.hub { display: grid; gap: 0; }
.hub a {
  display: grid; gap: 6px; padding: 22px 0 24px; border-top: 1px solid var(--line); text-decoration: none;
  position: relative; transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.hub a::after {
  content: ""; position: absolute; right: 2px; top: 26px; width: 18px; height: 18px; background: var(--blue);
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform .35s var(--ease);
}
.hub h3, .prose .hub h2 { margin: 0; font-family: inherit; color: var(--ink); font-size: 1.1875rem; font-weight: 500; letter-spacing: -.01em; padding-right: 32px; line-height: 1.3; }
.hub p { font-size: .9375rem; color: var(--ink-2) !important; line-height: 1.5; }
.hub a:hover h3, .hub a:hover h2 { color: var(--blue); }
.prose .hub h2::before { content: none; }
.hub a::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: linear-gradient(90deg, #3b6684, #4dbcc5); transition: width .5s var(--ease); }
.hub a:hover::before { width: 100%; }
.hub a:hover::after { transform: translateX(4px); }
@media (min-width: 720px) { .hub { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* Autoria e aviso */
.byline {
  display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--mist); font-size: .875rem; color: var(--ink-2); line-height: 1.5;
}
.byline img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.byline strong { color: var(--ink); font-weight: 500; }
.disclaimer { font-size: .8125rem; color: var(--muted); }

/* Aside */
.aside { display: none; }
@media (min-width: 1024px) {
  .aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
}
.toc { padding: 4px 0; }
.toc p { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.toc ol { display: grid; border-left: 1px solid var(--line); }
.toc a {
  display: block; padding: 7px 0 7px 18px; margin-left: -1px; font-size: .9rem; line-height: 1.4;
  text-decoration: none; color: var(--ink-2); border-left: 1px solid transparent; transition: color .25s, border-color .25s;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--teal); }
.cta-card { padding: 26px; border-radius: var(--radius); background: radial-gradient(130% 120% at 100% 0%, #3b6684 0%, var(--ink) 70%); color: #fff; display: grid; gap: 14px; position: relative; overflow: hidden; isolation: isolate; }
.cta-card::before { content: ""; position: absolute; z-index: -1; width: 220px; height: 200px; right: -70px; top: -60px; background: var(--grad); opacity: .3; -webkit-mask: var(--ast) center / contain no-repeat; mask: var(--ast) center / contain no-repeat; }
.cta-card h3 { font-size: 1.25rem; font-weight: 400; letter-spacing: -.01em; line-height: 1.3; }
.cta-card p { font-size: .875rem; color: rgba(255,255,255,.7); line-height: 1.5; }

/* Leia também */
.related { padding-block: var(--section); border-top: 1px solid var(--line); }

/* Rascunho / pendências */
.tbc { background: linear-gradient(transparent 60%, rgba(77, 188, 197, .28) 60%); border-bottom: 1px dashed var(--teal-ink); cursor: help; }
.draft-banner { background: #fff6dc; color: #5e4500; font-size: .875rem; padding: 12px 0; border-bottom: 1px solid #f0dc9c; }

/* Contato */
.contact-grid { display: grid; gap: 16px; }
.contact-card { padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; }
.contact-card h2 { font-size: .8125rem !important; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--muted); border: 0 !important; padding: 0 !important; }
.contact-card p { color: var(--ink) !important; font-size: 1.0625rem; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); box-shadow: 0 0 0 1px var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.02); }
@media (min-width: 720px) { .contact-grid { grid-template-columns: 1fr 1fr; } .map { aspect-ratio: 16 / 9; } }

/* --- Footer -------------------------------------------------------------- */
.site-footer { border-top: 3px solid; border-image: linear-gradient(90deg, #3b6684, #4dbcc5) 1; background: var(--ink); color: rgba(255,255,255,.72); padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: calc(32px + env(safe-area-inset-bottom)); font-size: .9375rem; }
@media (max-width: 719px) { .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.72); transition: color .25s; }
.site-footer a:hover { color: #fff; }
.foot-top { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-brand img { height: 74px; width: auto; }
.foot-brand p { margin-top: 20px; max-width: 34ch; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.foot-cols h2 { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--teal); margin-bottom: 14px; }
.foot-cols ul { display: grid; gap: 0; }
.foot-cols a { display: inline-block; padding-block: 8px; line-height: 1.4; }
@media (min-width: 1024px) { .foot-cols a { padding-block: 5px; } }
@media (min-width: 720px) { .foot-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .foot-top { grid-template-columns: 1fr 1.6fr; gap: 80px; } }
.foot-legal { padding-top: 28px; display: grid; gap: 12px; font-size: .8125rem; line-height: 1.6; color: rgba(255,255,255,.55); }
.foot-legal strong { color: rgba(255,255,255,.85); font-weight: 500; }
.foot-legal .tbc { background: none; border-bottom-color: rgba(77,188,197,.6); }
.foot-credit { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8125rem; color: rgba(255,255,255,.5); }
.foot-credit span { margin: 0 6px; opacity: .5; }
.foot-credit a, .foot-bottom a { text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding-block: 6px; margin-block: -6px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 12px; }

/* --- Barra fixa de agendamento (mobile) ---------------------------------- */
.dock {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; gap: 8px; padding: 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -12px rgba(28, 50, 66, .5);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.dock.is-visible { transform: none; }
.dock .btn { flex: 1; min-height: 46px; }
.dock .icon-btn {
  width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); color: #fff;
}
.dock .icon-btn svg { width: 20px; height: 20px; }
@media (min-width: 720px) { .dock { display: none; } }
.menu-open .dock { transform: translateY(140%); }

/* --- Animação de entrada ------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  /* Fotos: entram com leve zoom que assenta */
  .js .reveal .ph img, .js .reveal.ph img { transform: scale(1.08); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.is-in .ph img, .js .reveal.is-in.ph img { transform: none; }
  .card:hover .ph img { transform: scale(1.04) !important; }

  /* Traços de gradiente crescem quando a seção aparece */
  .js .prose .sec.reveal h2::before, .js .step.reveal::after { width: 0; transition: width 1s var(--ease) .25s; }
  .js .prose .sec.reveal.is-in h2::before { width: 36px; }
  .js .step.reveal.is-in::after { width: 44px; }

  /* Asterisco da abertura: entra girando e depois flutua */
  .hero-ast { animation: ast-in 1.4s var(--ease) .35s both, ast-float 7s ease-in-out 1.8s infinite; }
  @keyframes ast-in { from { opacity: 0; transform: rotate(-90deg) scale(.6); } to { opacity: 1; transform: none; } }
  @keyframes ast-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(6deg); } }

  /* Símbolos de fundo giram muito devagar */
  .dark::before { animation: spin 90s linear infinite; }
  .hero-mark { animation: spin 160s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* Hover: elevação discreta */
  .btn:hover { transform: translateY(-1px); }
  .card { transition: transform .5s var(--ease); }
  .card:hover { transform: translateY(-4px); }
  .contact-card { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
  .contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .faq details[open] .a { animation: faq-open .45s var(--ease); }
  @keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Redes sociais */
.social { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; opacity: .85; transition: opacity .2s; }
.social a:hover { opacity: 1; }
.social svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); flex: none; transition: background .25s, border-color .25s; }
.social a:hover svg { background: linear-gradient(135deg, #3b6684, #4dbcc5); border-color: transparent; }
.social span { font-size: .9375rem; }
.social--light { margin-top: 4px; }
.social--light svg { border-color: var(--line); color: var(--teal-ink); }
.social--light a:hover svg { color: #fff; }

a[href^="tel:"] { white-space: nowrap; }
