/* ==========================================================================
   Thais Fernandes · Fisioterapia Neurofuncional e Cuidado Paliativo
   Site estático, mobile-first. Desenvolvido por SSLOW.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Marca (não alterar) */
  --brand-sage: #CFDC96;
  --brand-olive: #5B5847;
  --brand-petrol: #0097B2;
  --brand-taupe: #B1947B;

  /* Papéis */
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --cream: #F3EFE5;
  --header-bg: rgba(250, 248, 243, .94);
  --text: #3F3D31;
  --heading: #5B5847;
  --muted: #6B6959;
  --line: #E4E0D4;
  --control-border: #8A877A;

  --accent: #0097B2;          /* fundo de botões (texto branco, sempre >= 19px negrito) */
  --accent-hover: #007C92;
  --on-accent: #FFFFFF;
  --accent-ink: #006A7D;      /* petróleo para texto pequeno (5,9:1 no fundo claro) */

  --sage: #CFDC96;            /* nunca texto claro sobre ele */
  --sage-50: #EEF2DC;
  --on-sage: #3F3D31;
  --taupe: #B1947B;
  --taupe-ink: #6E5843;

  --deep: #5B5847;
  --on-deep: #FFFFFF;
  --deep-accent: #CFDC96;
  --deep-muted: #E9E6DA;

  --focus: #006A7D;
  --error: #9B1C1C;

  --pend-bg: #FFF1C2;
  --pend-text: #5A3D00;
  --pend-border: #B8901C;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(63, 61, 49, .06), 0 8px 24px rgba(63, 61, 49, .08);
  --shadow-lg: 0 2px 6px rgba(63, 61, 49, .06), 0 22px 50px rgba(63, 61, 49, .14);

  --font-head: 'Josefin Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Nunito Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --header-h: 68px;
}

/* Alto contraste (barra de acessibilidade) */
html[data-contrast="high"] {
  --bg: #000;
  --surface: #000;
  --cream: #000;
  --header-bg: #000;
  --text: #FFF;
  --heading: #FFF;
  --muted: #FFF;
  --line: #FFF;
  --control-border: #FFF;
  --accent: #FFE14D;
  --accent-hover: #FFF;
  --on-accent: #000;
  --accent-ink: #FFE14D;
  --sage: #FFE14D;
  --sage-50: #000;
  --on-sage: #000;
  --taupe: #FFF;
  --taupe-ink: #FFE14D;
  --deep: #000;
  --on-deep: #FFF;
  --deep-accent: #FFE14D;
  --deep-muted: #FFF;
  --focus: #FFE14D;
  --error: #FF8A80;
  --shadow: none;
  --shadow-lg: none;
}

/* Tamanho do texto (A− / A+). Base mínima: 18px. */
html { font-size: 112.5%; }
html[data-fs="1"] { font-size: 125%; }
html[data-fs="2"] { font-size: 137.5%; }
html[data-fs="3"] { font-size: 150%; }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="paused"]) { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--heading);
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.4vw, 3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.2rem; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent-ink);
  color: var(--on-accent);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}
.narrow { max-width: 50rem; }
.center { text-align: center; }

/* ---------- Tipografia de apoio ---------- */
.eyebrow {
  margin-bottom: .75rem;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.lead { font-size: 1.2rem; line-height: 1.5; }
.lead--sm { font-size: 1.1rem; }
.note { margin-top: 20px; font-size: .95rem; color: var(--muted); }

/* ---------- Pendências visíveis ---------- */
.pendente {
  background: var(--pend-bg);
  color: var(--pend-text);
  border: 1.5px dashed var(--pend-border);
  border-radius: 8px;
  padding: .05em .4em;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: .8em;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
html[data-contrast="high"] .pendente { background: #FFE14D; color: #000; border-color: #000; }
.pendente--block { display: block; margin: 14px 0; padding: 10px 14px; font-size: .85rem; text-align: left; }
.section__head .pendente--block { display: inline-block; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 56px;
  padding: .8em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.0625rem;  /* >= 19px em negrito: texto grande (WCAG) */
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 1.35em; height: 1.35em; }
@media (max-width: 399px) { .btn { padding-inline: .9em; gap: .5em; } }
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 20px rgba(0, 151, 178, .25);
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost,
.btn--soft {
  background: transparent;
  color: var(--heading);
  border-color: var(--heading);
}
.btn--soft { background: var(--surface); }
.btn--ghost:hover,
.btn--soft:hover { background: var(--heading); color: var(--bg); }
.btn--sm { min-height: 48px; padding: .45em 1.1em; }
.btn--block { width: 100%; }
.btn--on-deep {
  background: var(--deep-accent);
  color: var(--deep);
  box-shadow: none;
}
.btn--on-deep:hover { background: #FFF; color: var(--deep); }

/* ---------- Topo ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding-block: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-right: auto;
  color: var(--heading);
  text-decoration: none;
}
.brand__mark { width: 44px; height: 44px; }
.brand__text { display: none; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand__tag {
  margin-top: 4px;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 380px) { .brand__text { display: flex; } }
@media (max-width: 599px) {
  .brand__tag { display: none; }
  html[data-fs] .brand__text { display: none; }
}

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

/* Barra de acessibilidade */
.a11y { position: relative; display: none; }
.js .a11y { display: block; }
.a11y__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px 0 10px;
  border: 2px solid var(--control-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font-size: .875rem;
  font-weight: 800;
  cursor: pointer;
}
.a11y__toggle .icon { width: 24px; height: 24px; }
.a11y__toggle[aria-expanded="true"] { background: var(--heading); color: var(--bg); border-color: var(--heading); }

.a11y__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 8px;
  min-width: 250px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.js .a11y__panel { display: none; }
.js .a11y.is-open .a11y__panel { display: grid; }
.a11y__group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y__btn {
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid var(--control-border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--heading);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.a11y__btn:hover { border-color: var(--accent-ink); }
.a11y__btn[aria-pressed="true"] { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }
.a11y__btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

@media (min-width: 1100px) {
  .a11y__toggle { display: none; }
  .a11y__panel,
  .js .a11y__panel,
  .js .a11y.is-open .a11y__panel {
    position: static;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .a11y__group { display: flex; gap: 6px; }
  .a11y__btn { font-size: .9rem; padding: 0 12px; }
}

/* ---------- Marca d'água ---------- */
.watermark {
  position: absolute;
  z-index: 0;
  aspect-ratio: 1;
  pointer-events: none;
  opacity: .22;
  background: url("../assets/logo/simbolo-cerebro-completo.webp") center / contain no-repeat;
}
html[data-contrast="high"] .watermark { display: none; }
.logo-plate { display: block; }
html[data-contrast="high"] .logo-plate { display: inline-block; padding: 12px 16px; border-radius: 14px; background: #FFF; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 28px 48px;
}
.watermark--hero { width: 340px; right: -110px; bottom: 40px; }
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero__logo img { width: 230px; }
.hero__logo { margin-bottom: 24px; }
.hero h1 { margin-bottom: 16px; }
.hero .lead { max-width: 30rem; }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
@media (min-width: 560px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
}

.hero__media {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  padding-left: 14px;
}

/* Cartão de vídeo */
.video-card {
  position: relative;
  display: grid;
  margin: 0;
}
.video-card > video,
.video-card > .video-toggle { grid-area: 1 / 1; }
.video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: #2E2C23;
  box-shadow: var(--shadow-lg);
}
.video-card--hero video { aspect-ratio: 4 / 5; object-position: 50% 0%; }
.video-card figcaption { grid-row: 2; margin-top: 10px; font-size: .95rem; line-height: 1.4; }

.video-toggle {
  z-index: 2;
  align-self: end;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 12px;
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(30, 29, 23, .74);
  color: #FFF;
  font-size: .95rem;
  font-weight: 800;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.video-toggle:hover { background: rgba(30, 29, 23, .9); }
.video-toggle .icon { width: 22px; height: 22px; }
.video-toggle .icon--pause { display: none; }
.video-card.is-playing .icon--play { display: none; }
.video-card.is-playing .icon--pause { display: block; }
html[data-contrast="high"] .video-toggle { background: #000; border: 2px solid #FFF; }

/* Selo 25 anos */
.seal {
  position: absolute;
  left: 0;
  bottom: 28px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 7rem;
  height: 7rem;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--sage);
  color: var(--on-sage);
  text-align: center;
  box-shadow: var(--shadow);
  transform: rotate(-8deg);
}
.seal__num { font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; line-height: .9; }
.seal__txt {
  margin-top: 4px;
  font-family: var(--font-head);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero { padding-block: 48px 64px; }
  .hero__grid { grid-template-columns: 1.2fr .8fr; gap: 40px; }
  .hero__media { justify-self: end; width: min(100%, 390px); }
  .video-card--hero video { aspect-ratio: 9 / 16; }
  .watermark--hero { width: 520px; right: -80px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .seal { left: -30px; }
}
@media (min-width: 900px) {
  .hero { padding-block: 56px 72px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero__logo img { width: 300px; }
  .watermark--hero { width: 560px; right: -60px; }
}

/* ---------- 2. Atalhos ---------- */
.highlights { padding-block: 8px 28px; }
.highlights__list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-block: 8px 14px;
  list-style: none;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--sage) transparent;
}
.highlights__list li { flex: none; scroll-snap-align: start; }
.hl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min-content;
  min-width: 80px;
  padding: 4px 0;
  border-radius: 16px;
  color: var(--heading);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.hl__dot {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--sage);
  transition: transform .2s;
}
.hl__dot .icon { width: 32px; height: 32px; stroke-width: 1.6; }
.hl:hover .hl__dot { transform: translateY(-3px); }
.hl:hover .hl__label { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .highlights__list { justify-content: center; gap: 28px; overflow: visible; }
  .hl { min-width: 96px; }
}

/* ---------- Seções ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 112px); }
.section--cream { background: var(--cream); }
.section--soft { background: var(--sage-50); }
.section--deep {
  --focus: var(--deep-accent);
  overflow: hidden;
  background: var(--deep);
  color: var(--on-deep);
}
.section--deep h2,
.section--deep h3,
.section--deep h4 { color: var(--on-deep); }
.section--deep .eyebrow { color: var(--deep-accent); }
.section--deep a:not(.btn) { color: var(--deep-accent); }

.section__head { max-width: 46rem; margin: 0 auto 40px; text-align: center; }
.section__head--left { margin-inline: 0; margin-bottom: 24px; text-align: left; }
.section__lead { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.section--deep .section__lead { color: var(--deep-muted); }

/* Animação de entrada (desligada com movimento reduzido) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 3. O que eu cuido ---------- */
.cards { display: grid; gap: 16px; list-style: none; }
.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 4px; }
.card p { color: var(--text); }
.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
  border-radius: 18px;
  background: var(--sage-50);
  color: var(--accent-ink);
}
.card__icon .icon { width: 30px; height: 30px; }
.card__tag {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--taupe-ink) !important;
}
.card--highlight { border-color: transparent; background: var(--deep); color: var(--on-deep); }
.card--highlight h3,
.card--highlight p { color: var(--on-deep); }
.card--highlight .card__tag { color: var(--deep-accent) !important; }
.card--highlight .card__icon { background: rgba(255, 255, 255, .12); color: var(--deep-accent); }
.card--highlight a { color: var(--deep-accent); font-weight: 700; }
html[data-contrast="high"] .card--highlight { border-color: #FFF; }
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .cards > :first-child { grid-column: auto; }
  .cards > :nth-child(-n+3) { grid-column: span 2; }
  .cards > :nth-child(n+4) { grid-column: span 3; }
}

/* ---------- 4. Para quem é ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 28px; list-style: none; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border: 1.5px solid var(--sage);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font-size: .95rem;
  font-weight: 700;
}
.chips li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage);
}
.audience { display: grid; gap: 12px; }
.audience__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.audience__item .icon { width: 32px; height: 32px; color: var(--accent-ink); margin-top: 2px; }
.audience__item strong { color: var(--heading); }

.photo { display: block; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 3; }
.photo--tall img { object-position: 50% 55%; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .photo--tall { aspect-ratio: 4 / 5; }
  .photo--tall img { object-position: 50% 40%; }
}

/* ---------- 5. Exoesqueleto ---------- */
.watermark--exo { width: 520px; left: -180px; top: -120px; opacity: .08; }
.section--deep .container { position: relative; z-index: 1; }

.stories {
  display: flex;
  gap: 14px;
  margin-inline: -16px;
  padding: 4px 16px 18px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--deep-accent) transparent;
}
.story { flex: 0 0 min(64vw, 270px); scroll-snap-align: start; }
.stories figcaption { color: var(--deep-muted); }
.stories .video-card video { box-shadow: 0 16px 40px rgba(0, 0, 0, .28); }
@media (min-width: 768px) {
  .stories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 20px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}
@media (min-width: 1200px) {
  .stories { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .stories .video-toggle { margin: 8px; padding: 0 12px 0 8px; font-size: .85rem; }
}

.vert {
  margin-top: 64px;
  padding: 28px 12px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05);
  text-align: center;
}
html[data-contrast="high"] .vert { border-color: #FFF; }
.vert__title { margin-bottom: 28px; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.steps { display: grid; gap: 14px; list-style: none; text-align: left; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: start;
  padding: 16px 14px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .14);
}
.step__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--deep-accent);
  color: var(--deep);
}
.step__icon .icon { width: 32px; height: 32px; stroke-width: 1.6; }
.step h4 { display: flex; gap: 10px; align-items: baseline; font-size: 1.2rem; }
.step__num { color: var(--deep-accent); font-weight: 700; }
.step p { color: var(--deep-muted); }
.vert__note { max-width: 34rem; margin: 24px auto; color: var(--deep-muted); font-size: .95rem; }
@media (min-width: 768px) {
  .vert { padding: 48px 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 28px 22px; position: relative; }
  .step__icon { grid-row: auto; margin-bottom: 10px; width: 76px; height: 76px; }
  .step__icon .icon { width: 38px; height: 38px; }
  .step h4 { justify-content: center; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -16px;
    top: 66px;
    width: 12px;
    height: 12px;
    border-top: 2.5px solid var(--deep-accent);
    border-right: 2.5px solid var(--deep-accent);
    transform: rotate(45deg);
  }
}

/* ---------- 6. Abordagem / Sobre ---------- */
.about { display: grid; gap: 40px; align-items: center; }
.about__media { position: relative; isolation: isolate; }
.about__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 22% -10px -14px 26px;
  border-radius: var(--radius-lg);
  background: var(--sage);
  opacity: .55;
}
html[data-contrast="high"] .about__media::before { display: none; }
.photo--portrait { aspect-ratio: 4 / 5; max-width: 30rem; }
.photo--portrait img { object-position: 46% 10%; }
.credential { margin-top: 12px; font-size: .95rem; font-weight: 700; color: var(--muted); }
.pillars { display: grid; gap: 12px; margin-top: 28px; list-style: none; }
.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.pillar__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.pillar__icon .icon { width: 28px; height: 28px; }
.pillar h3 { margin-bottom: 4px; font-size: 1.15rem; }
.pillar p { color: var(--muted); font-size: .98rem; }
@media (min-width: 900px) {
  .about { grid-template-columns: .9fr 1.1fr; gap: 72px; }
}

/* ---------- 7. Cuidado paliativo ---------- */
#paliativo { overflow: hidden; }
#paliativo h2 { font-weight: 300; margin-bottom: 20px; }
#paliativo .lead { max-width: 38rem; margin-inline: auto; color: var(--text); }
.soft-mark { width: 84px; height: 84px; margin: 0 auto 18px; }
.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
  margin: 36px 0 40px;
  list-style: none;
}
.values li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--heading);
}
.values li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--taupe);
}

/* ---------- 8. Trajetória ---------- */
.timeline { position: relative; list-style: none; }
.milestone { position: relative; padding: 0 0 36px 76px; }
/* Filete entre um marco e o próximo (termina no último) */
.milestone:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: var(--sage);
}
html[data-contrast="high"] .milestone::after { background: #FFF; }
.milestone:last-child { padding-bottom: 0; }
.milestone::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  border: 2px solid var(--sage);
  border-radius: 50%;
  background: var(--surface) url("../assets/logo/simbolo-cerebro-completo.webp") center / 36px no-repeat;
  box-shadow: var(--shadow);
}
.milestone--now::before { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(0, 151, 178, .14); }
.milestone__when {
  margin-bottom: 4px;
  padding-top: 6px;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.milestone__when .pendente { letter-spacing: 0; text-transform: none; }
.milestone h3 { margin-bottom: 6px; font-size: 1.3rem; }
@media (min-width: 768px) {
  .milestone { width: 50%; padding: 0 56px 40px 0; text-align: right; }
  .milestone::before { left: auto; right: -26px; }
  .milestone:not(:last-child)::after { left: auto; right: -1px; }
  .milestone:nth-child(even) { margin-left: 50%; padding: 0 0 40px 56px; text-align: left; }
  .milestone:nth-child(even)::before { right: auto; left: -26px; }
  .milestone:nth-child(even):not(:last-child)::after { right: auto; left: -1px; }
  .milestone:last-child { padding-bottom: 0; }
}

/* ---------- 9. Agendamento ---------- */
.wizard {
  display: grid;
  gap: 28px;
  padding: 24px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
html[data-contrast="high"] .wizard { border: 2px solid #FFF; }
@media (min-width: 600px) { .wizard { padding: 40px; } }
.q { min-width: 0; margin: 0; padding: 0; border: 0; }
.q legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--heading);
}
.q__num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--on-sage);
  font-size: 1.05rem;
  font-weight: 700;
}
.options { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 699px) { html[data-fs] .options { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 700px) {
  .options--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html[data-fs="2"] .options--4,
  html[data-fs="3"] .options--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.opt { position: relative; display: block; }
.opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 60px;
  height: 100%;
  padding: 12px;
  border: 2px solid var(--control-border);
  border-radius: 16px;
  background: var(--bg);
  color: var(--heading);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color .15s, border-color .15s, color .15s;
}
.opt input:hover + span { border-color: var(--accent-ink); }
.opt input:checked + span { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }
.opt input:checked + span::before { content: "✓"; font-weight: 800; }
.opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.q.has-error .opt span { border-color: var(--error); }
.q.has-error legend { color: var(--error); }

.field label { display: block; margin-bottom: 8px; font-size: 1.05rem; font-weight: 700; color: var(--heading); }
.field__hint { font-weight: 400; color: var(--muted); }
.field input {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 2px solid var(--control-border);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.preview__label {
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.preview__bubble {
  padding: 16px 18px;
  border: 1.5px solid var(--sage);
  border-radius: 20px 20px 20px 6px;
  background: var(--sage-50);
  color: var(--text);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.wizard__error { color: var(--error); font-weight: 800; }
.wizard .note { margin-top: -12px; }

/* ---------- 10. Perguntas frequentes ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 18px 22px;
  border-radius: var(--radius);
  color: var(--heading);
  font-size: 1.08rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 28px; height: 28px; color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq__a { padding: 0 22px 22px; }

/* ---------- 11. Contato ---------- */
.contact { display: grid; gap: 40px; align-items: start; }
.contact__list { display: grid; gap: 12px; list-style: none; }
.contact__list li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.contact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sage-50);
  color: var(--accent-ink);
}
.contact__icon .icon { width: 28px; height: 28px; }
.contact__label {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--heading);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.map {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #EEF0E6;
  box-shadow: var(--shadow-lg);
}
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__bg { fill: #EEF0E6; }
.map__park { fill: #DCE6B8; }
.map__river { fill: none; stroke: #BCE2EA; stroke-width: 30; stroke-linecap: round; }
.map__road { fill: none; stroke: #FFF; stroke-width: 10; }
.map__street { fill: none; stroke: #FFF; stroke-width: 4; opacity: .85; }
.map__pin {
  position: absolute;
  left: 50%;
  top: 46%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -60%);
}
.map__pin .icon {
  width: 60px;
  height: 60px;
  color: #006A7D;
  fill: #FFF;
  stroke-width: 1.6;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18));
}
.map__pin span {
  padding: 8px 16px;
  border-radius: 999px;
  background: #FFF;
  color: #3F3D31;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.map__note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  color: #4F4D40;
  font-size: .92rem;
}
html[data-contrast="high"] .map__pin span,
html[data-contrast="high"] .map__note { background: #000; color: #FFF; border: 2px solid #FFF; }
.map__frame { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .map { min-height: 100%; }
}

/* ---------- 12. Rodapé ---------- */
.site-footer {
  padding: 56px 0 calc(112px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer__grid { display: grid; gap: 36px; }
.footer__logo img { width: 220px; }
.footer__cred { margin-top: 18px; font-size: .95rem; font-weight: 700; color: var(--heading); }
.footer__city { font-size: .95rem; color: var(--muted); }
.footer__nav ul { display: grid; gap: 0; list-style: none; }
.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
}
.footer__nav a:hover { text-decoration: underline; }
.footer__h {
  margin-bottom: 10px;
  font-size: .95rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer__privacy p { margin-bottom: 10px; font-size: .92rem; color: var(--muted); }
.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 20px;
  font-size: .92rem;
  color: var(--muted);
}
.footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .footer__bottom::before { left: 32px; right: 32px; } }
.footer__bottom a { color: var(--accent-ink); font-weight: 800; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.1fr .7fr 1.3fr; gap: 48px; }
}

/* ---------- 13. WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 22px 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.0625rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 151, 178, .35), 0 2px 6px rgba(0, 0, 0, .12);
  transition: background-color .2s, transform .2s;
}
.wa-float:hover { background: var(--accent-hover); transform: translateY(-2px); }
.wa-float .icon { width: 28px; height: 28px; }
html[data-contrast="high"] .wa-float { border: 2px solid #000; }

/* ---------- Movimento reduzido / pausado ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
html[data-motion="paused"] *,
html[data-motion="paused"] *::before,
html[data-motion="paused"] *::after { animation: none !important; transition: none !important; }
html[data-motion="paused"] .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Impressão ---------- */
@media print {
  .site-header, .wa-float, .video-toggle, .highlights { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
