/* ==========================================================================
   IOTE — Instituto de Ortopedia e Traumatologia do Esporte
   São João da Boa Vista / SP
   Folha de estilo única. Todos os valores de cor, tipo, espaço e movimento
   são declarados uma vez em :root e reutilizados.
   ========================================================================== */

/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio, geometry.
   Put this @layer first; product CSS outside the layer always wins. */
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information: each piece is its own line — never sibling inline spans */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  /* media keeps its intrinsic ratio by default; never a distorted or cropped
     cover by accident. height:auto lets the ratio win over an <img height="…">
     attribute. Cropping to a uniform box is an explicit opt-in: set --od-ratio
     AND add .od-media-cover together (per the core rule, only where a crop is
     deliberate — tile thumbs, decorative fills — never on full-frame content). */
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  /* functional inline SVG icons opt into bounded geometry; content SVGs keep their own */
  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }

  /* data text only — authored copy is rewritten to its budget instead */
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }   /* block-level reservation for a shared baseline */
  .od-nowrap  { white-space: nowrap; }           /* 数字+单位 · 价格+起 · 日期+星期 */
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; } /* CJK labels break at spaces / <wbr> first */

  /* screen skeleton (optional): bars take their own space, the middle scrolls — no padding guessed for chrome */
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  /* horizontal rail: the next item peeks at the edge; trailing room survives overflow */
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Fundos — azul-noite da identidade IOTE */
  --ink-950: #060C15;
  --ink-900: #0A1524;
  --ink-800: #0E1E33;
  --ink-700: #132941;
  --line:    rgba(140, 180, 220, 0.16);
  --line-strong: rgba(5, 161, 237, 0.30);

  /* Marca — ciano extraído do logo oficial (#05A1ED) */
  --brand:      #05A1ED;
  --brand-soft: #4CC2F5;
  --brand-deep: #0277B8;
  --brand-wash: rgba(5, 161, 237, 0.12);

  /* Texto */
  --text:    #E8F0F8;
  --text-2:  #C6D4E4;
  --text-3:  #94A7BE;
  --on-brand: #04202F;

  /* Superfícies de vidro */
  --glass:        rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.075);

  /* Tipografia */
  --font-display: "Poppins", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.125rem, 1.35rem + 3.3vw, 4rem);
  --fs-h1: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  --fs-h2: clamp(1.625rem, 1.25rem + 1.6vw, 2.375rem);
  --fs-h3: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.9375rem;
  --fs-eyebrow: 0.8125rem;

  /* Espaço — múltiplos de 8 */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 40px; --s-6: 48px; --s-8: 64px; --s-10: 80px; --s-12: 96px;
  --section-y: clamp(56px, 7vw, 96px);
  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1200px;
  --maxw-text: 68ch;

  /* Forma */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;

  /* Movimento */
  --t-fast: 180ms;
  --t-base: 260ms;
  --t-exit: 170ms;
  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-in: cubic-bezier(0.5, 0, 0.84, 0.16);

  /* Altura do cabeçalho fixo — reservada pelo conteúdo */
  --header-h: 72px;
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }

p { margin: 0; }
p + p { margin-top: var(--s-2); }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg { max-width: 100%; }

a { color: var(--brand-soft); }

:focus-visible {
  outline: 3px solid var(--brand-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand); color: var(--on-brand); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 200;
  transform: translateY(-200%);
  background: var(--brand); color: var(--on-brand);
  font-weight: 600; padding: 12px 20px; border-radius: var(--r-pill);
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* --------------------------------------------------------------------------
   3. Estruturas de seção
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--alt { background: var(--ink-800); }

.section--edge {
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-width: 44rem;
  margin-bottom: var(--s-6);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

.eyebrow::before {
  content: "";
  inline-size: 28px;
  block-size: 2px;
  background: var(--brand);
  flex: none;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-2);
  max-width: var(--maxw-text);
}

.muted { color: var(--text-3); }

.hl { color: var(--brand-soft); }

/* --------------------------------------------------------------------------
   4. Botões
   -------------------------------------------------------------------------- */
.btn {
  --od-gap: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--od-gap);
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn--ghost {
  background: var(--glass);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--link {
  background: none;
  padding-inline: 0;
  color: var(--brand-soft);
  min-height: 44px;
}

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (hover: hover) {
  .btn--primary:hover { background: var(--brand-soft); }
  .btn--ghost:hover { background: var(--glass-strong); border-color: var(--brand); }
  .btn--link:hover { color: var(--text); }
}

.btn-row { --od-gap: var(--s-2); }

/* --------------------------------------------------------------------------
   5. Cabeçalho
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(10, 21, 36, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}

.site-header.is-stuck {
  background: rgba(6, 12, 21, 0.94);
  border-bottom-color: var(--line);
}

.header-inner {
  --od-gap: var(--s-3);
  min-height: var(--header-h);
}

.brand {
  --od-gap: 12px;
  gap: var(--od-gap);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}

.brand img {
  display: block;
  inline-size: auto;
  block-size: 34px;
}

.brand-sub {
  display: none;
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-3);
  max-inline-size: 15ch;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 12px;
}

@media (min-width: 1100px) {
  .brand img { block-size: 40px; }
  .brand-sub { display: block; }
}

.nav {
  display: none;
}

.nav ul { display: flex; align-items: center; gap: 16px; }

.nav a {
  display: inline-block;
  padding: 10px 4px;
  white-space: nowrap;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  block-size: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--ease-out);
}

.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (hover: hover) {
  .nav a:hover { color: var(--text); }
  .nav a:hover::after { transform: scaleX(1); }
}

@media (min-width: 1280px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
}

.nav-toggle {
  --od-icon-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

/* Gaveta mobile */
.mobile-nav {
  position: fixed;
  inset-block-start: var(--header-h);
  inset-inline: 0;
  z-index: 99;
  background: var(--ink-950);
  border-bottom: 1px solid var(--line);
  padding: var(--s-2) var(--gutter) var(--s-4);
  display: none;
}

.mobile-nav.is-open { display: block; animation: drawer-in var(--t-base) var(--ease-out); }

@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.mobile-nav .btn { margin-top: var(--s-3); inline-size: 100%; }

@media (min-width: 1280px) {
  .mobile-nav { display: none !important; }
}

/* --------------------------------------------------------------------------
   6. Herói
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block-start: calc(var(--header-h) + var(--s-6));
  padding-block-end: var(--s-8);
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(5, 161, 237, 0.22) 0%, transparent 55%),
    radial-gradient(90% 70% at 10% 95%, rgba(2, 119, 184, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 60%, var(--ink-900) 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  block-size: 160px;
  background: linear-gradient(180deg, transparent, var(--ink-900));
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy { display: flex; flex-direction: column; gap: var(--s-3); }

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 600;
}

.hero h1 .hl { display: block; }

.hero-pills {
  --od-gap: 10px;
  margin-top: var(--s-1);
}

.pill {
  --od-gap: 8px;
  --od-icon-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: var(--od-gap);
  padding: 9px 16px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  color: var(--text);
}

.pill .od-icon { color: var(--brand-soft); }

.hero-figure {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: end;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  padding: 40px 12px 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at 65% 20%, rgba(5, 161, 237, 0.18), transparent 65%),
    linear-gradient(160deg, #132E46, var(--ink-800));
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
}

.hero-figure > img { position: relative; z-index: 1; }

.hero-figure img {
  display: block;
  inline-size: 100%;
  max-inline-size: 420px;
  block-size: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

.hero-xray {
  position: absolute;
  inset-block-start: 7%;
  inset-inline-start: 6%;
  inline-size: clamp(100px, 28%, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  box-shadow: 0 0 40px rgba(5, 161, 237, 0.35);
}

.hero-xray img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  filter: saturate(1.3) brightness(0.95);
  max-inline-size: none;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-8); }
  .hero-figure img { max-inline-size: 460px; }
}

/* --------------------------------------------------------------------------
   7. Cartões
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease-out),
              background-color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}

.card h3 { font-size: 1.1875rem; }

.card p { font-size: var(--fs-small); color: var(--text-3); }

.card-icon {
  --od-icon-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 52px;
  block-size: 52px;
  border-radius: var(--r-sm);
  background: var(--brand-wash);
  color: var(--brand-soft);
  border: 1px solid var(--line-strong);
}

a.card {
  text-decoration: none;
  color: var(--text-2);
}

.card-more {
  --od-gap: 8px;
  --od-icon-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: var(--od-gap);
  margin-top: auto;
  padding-top: var(--s-1);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--brand-soft);
}

.card-more .od-icon {
  transition: transform var(--t-fast) var(--ease-out);
}

@media (hover: hover) {
  a.card:hover {
    border-color: var(--brand);
    background: var(--glass-strong);

  }
  a.card:hover .card-more .od-icon { transform: translateX(4px); }
}

/* Cartão com miniatura: a imagem é a primeira faixa, o texto ocupa o resto */
.card.od-tile {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.card.od-tile > .od-media {
  filter: saturate(0.72) brightness(0.8) contrast(1.05);
  transition: filter var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--s-3);
}

@media (hover: hover) {
  a.card.od-tile:hover > .od-media { filter: saturate(0.95) brightness(0.92) contrast(1.05); }
}

.grid-areas {
  --od-cols: 1;
  --od-gap: var(--s-2);
  grid-auto-rows: 1fr;
}

.grid-areas > li { display: flex; min-width: 0; }
.grid-areas > li > .card { width: 100%; height: 100%; }

@media (min-width: 640px) { .grid-areas { --od-cols: 2; } }
@media (min-width: 1024px) { .grid-areas { --od-cols: 3; --od-gap: var(--s-3); } }

/* Lista de sinais de alerta */
.signal-list {
  display: grid;
  gap: var(--s-2);
}

@media (min-width: 768px) {
  .signal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-4); }
}

.signal-list li {
  --od-gap: 14px;
  --od-icon-size: 20px;
  display: flex;
  align-items: flex-start;
  gap: var(--od-gap);
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}

.signal-list .od-icon { color: var(--brand); margin-block-start: 3px; }

/* Figura emoldurada */
.figure-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-800);
}

.figure-frame img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  filter: saturate(0.75) contrast(1.05) brightness(0.82);
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(5, 161, 237, 0.16), transparent 55%, rgba(6, 12, 21, 0.55));
  pointer-events: none;
}

.figure-note {
  display: block;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* Bloco de duas colunas (texto + imagem) */
.split {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .split--reverse > :first-child { order: 2; }
}

/* --------------------------------------------------------------------------
   8. Corpo clínico
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  gap: var(--s-3);
}

@media (min-width: 860px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.doctor {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-3);
  background: linear-gradient(170deg, rgba(5, 161, 237, 0.10), var(--glass) 45%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

@media (min-width: 520px) {
  .doctor { grid-template-columns: 150px 1fr; align-items: start; gap: var(--s-4); }
}

.doctor-photo {
  position: relative;
  border-radius: var(--r-md);
  background: radial-gradient(circle at 50% 25%, rgba(5, 161, 237, 0.26), transparent 70%), var(--ink-800);
  display: grid;
  justify-items: center;
  align-items: end;
  overflow: hidden;
}

.doctor-photo img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.doctor-name { font-size: 1.3125rem; }

.doctor-areas {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--brand-soft);
}

.doctor-reg {
  --od-gap: 8px;
  margin-block: 12px;
}

.reg-chip {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  color: var(--text-2);
  white-space: nowrap;
}

.doctor-bio { --od-gap: 8px; display: grid; }

.doctor-bio li {
  --od-icon-size: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-small);
  color: var(--text-3);
}

.doctor-bio .od-icon { color: var(--brand); margin-block-start: 4px; }

/* --------------------------------------------------------------------------
   9. Etapas da consulta
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--s-3);
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.step {
  position: relative;
  display: grid;
  gap: 10px;
  padding: var(--s-3);
  padding-block-start: var(--s-4);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.step h3 { font-size: 1.0625rem; }
.step p { font-size: var(--fs-small); color: var(--text-3); }

/* --------------------------------------------------------------------------
   10. Conteúdo educativo
   -------------------------------------------------------------------------- */
.edu-grid { display: grid; gap: var(--s-3); }

@media (min-width: 768px) { .edu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.edu-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.section--alt .edu-card { background: var(--ink-900); }

.edu-media {
  position: relative;
  overflow: hidden;
}

.edu-media img {
  display: block;
  inline-size: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.78);
  transition: transform var(--t-base) var(--ease-out);
}

.edu-body { display: grid; gap: 10px; padding: var(--s-3); }
.edu-body h3 { font-size: 1.0625rem; }
.edu-body p { font-size: var(--fs-small); color: var(--text-3); }

@media (hover: hover) {
  .edu-card:hover .edu-media img { transform: scale(1.04); }
}

/* Citação científica */
.science {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--glass);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
}

.science cite {
  display: block;
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   11. Perguntas frequentes
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; max-width: 52rem; }

.faq-item {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.faq-q {
  --od-icon-size: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  inline-size: 100%;
  min-block-size: 56px;
  padding: 16px var(--s-3);
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.faq-q .od-icon {
  color: var(--brand);
  transition: transform var(--t-fast) var(--ease-out);
}

.faq-q[aria-expanded="true"] .od-icon { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 var(--s-3) var(--s-3);
  font-size: var(--fs-small);
  color: var(--text-3);
  max-width: var(--maxw-text);
}

.faq-a.is-open { display: block; animation: fade-up var(--t-base) var(--ease-out); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) {
  .faq-q:hover { background: var(--glass-strong); }
}

/* --------------------------------------------------------------------------
   12. Localização e contato
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--s-5);
  align-items: start;
}

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 0.95fr 1.05fr; gap: var(--s-8); }
}

.info-list { display: grid; gap: var(--s-2); }

.info-item {
  --od-gap: 14px;
  --od-icon-size: 20px;
  display: flex;
  align-items: flex-start;
  gap: var(--od-gap);
  padding-block: var(--s-2);
  border-bottom: 1px solid var(--line);
}

.info-item > .od-icon { color: var(--brand); margin-block-start: 4px; }

.info-label {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2px;
}

.info-value {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: var(--fs-body);
}

.info-value a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); }

@media (hover: hover) {
  .info-value a:hover { color: var(--brand-soft); border-bottom-color: var(--brand); }
}

.map-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-800);
  aspect-ratio: 4 / 3;
}

.map-frame iframe {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  border: 0;
  filter: grayscale(0.25) contrast(1.05);
}

@media (min-width: 960px) {
  .map-frame { aspect-ratio: 16 / 11; }
}

/* Formulário */
.form {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.section--alt .form { background: var(--ink-900); }

.form-row { display: grid; gap: var(--s-3); }

@media (min-width: 620px) {
  .form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field { display: grid; gap: 6px; }

.field label {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text);
}

.field .req { color: var(--brand-soft); }

.field input,
.field select,
.field textarea {
  inline-size: 100%;
  min-block-size: 48px;
  padding: 12px 14px;
  background: rgba(6, 12, 21, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-body);
  transition: border-color var(--t-fast) var(--ease-out);
}

.field textarea { min-block-size: 112px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(148, 167, 190, 0.65); }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--brand); }

.field-error {
  display: none;
  font-size: 0.8125rem;
  color: #FFB4A8;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #FF8E7A; }

.field.has-error .field-error { display: block; }

.consent {
  --od-gap: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--od-gap);
  font-size: var(--fs-small);
  color: var(--text-3);
}

.consent label { font-family: var(--font-body); font-weight: 400; color: var(--text-3); flex: 1 1 240px; }
.consent .field-error { flex-basis: 100%; }

.consent input {
  inline-size: 22px;
  block-size: 22px;
  min-block-size: 0;
  margin-block-start: 2px;
  accent-color: var(--brand);
  flex: none;
}

.form-status {
  display: none;
  --od-gap: 10px;
  --od-icon-size: 20px;
  align-items: flex-start;
  gap: var(--od-gap);
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
}

.form-status.is-visible { display: flex; }
.form-status--ok { background: rgba(5, 161, 237, 0.14); border: 1px solid var(--line-strong); color: var(--text); }
.form-status--err { background: rgba(255, 142, 122, 0.12); border: 1px solid rgba(255, 142, 122, 0.4); color: #FFD6CD; }

.form-errors {
  display: none;
  padding: 14px 16px;
  border: 1px solid rgba(255, 142, 122, 0.4);
  border-radius: var(--r-sm);
  background: rgba(255, 142, 122, 0.1);
  font-size: var(--fs-small);
  color: #FFD6CD;
}

.form-errors.is-visible { display: block; }
.form-errors ul { display: grid; gap: 4px; margin-top: 8px; }
.form-errors a { color: #FFD6CD; }

.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn .spinner { display: none; }
.btn.is-loading .spinner {
  display: inline-block;
  inline-size: 16px;
  block-size: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.btn.is-loading .btn-label-default { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   13. Rodapé
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-950);
  border-top: 1px solid var(--line);
  padding-block: var(--s-8) var(--s-4);
  font-size: var(--fs-small);
}

.footer-grid {
  display: grid;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}

@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-8); }
}

.footer-col h4 {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-2);
}

.footer-col ul { display: grid; gap: 10px; }

.footer-col a {
  color: var(--text-2);
  text-decoration: none;
}

@media (hover: hover) {
  .footer-col a:hover { color: var(--brand-soft); }
}

.footer-brand img { block-size: 38px; inline-size: auto; display: block; margin-bottom: var(--s-2); }

.footer-legal {
  display: grid;
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8125rem;
}

.footer-legal strong { color: var(--text-2); font-weight: 600; }

.social {
  --od-gap: 10px;
  --od-icon-size: 20px;
  margin-top: var(--s-2);
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--text-2);
}

@media (hover: hover) {
  .social a:hover { color: var(--brand-soft); border-color: var(--brand); }
}

/* --------------------------------------------------------------------------
   14. Ação flutuante
   -------------------------------------------------------------------------- */
.fab {
  position: fixed;
  inset-block-end: 20px;
  inset-inline-end: 20px;
  z-index: 95;
  --od-gap: 10px;
  --od-icon-size: 22px;
  display: inline-flex;
  align-items: center;
  gap: var(--od-gap);
  padding: 14px 20px;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}

.fab-label { display: none; }

@media (min-width: 560px) {
  .fab-label { display: inline; }
}

@media (hover: hover) {
  .fab:hover { background: var(--brand-soft); transform: translateY(-2px); }
}

/* --------------------------------------------------------------------------
   15. Aviso de cookies
   -------------------------------------------------------------------------- */
.cookie-bar {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 110;
  display: none;
  background: var(--ink-950);
  border-top: 1px solid var(--line-strong);
  padding: var(--s-3) var(--gutter);
}

.cookie-bar.is-visible { display: block; animation: fade-up var(--t-base) var(--ease-out); }

.cookie-inner {
  --od-gap: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--od-gap);
  max-width: var(--maxw);
  margin-inline: auto;
  font-size: var(--fs-small);
  color: var(--text-3);
}

.cookie-inner p { flex: 1 1 260px; }

body.cookie-open .fab { inset-block-end: 124px; }

@media (min-width: 720px) {
  body.cookie-open .fab { inset-block-end: 96px; }
}

/* --------------------------------------------------------------------------
   16. Páginas de área
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block-start: calc(var(--header-h) + var(--s-6));
  padding-block-end: var(--s-6);
  background:
    radial-gradient(100% 80% at 80% 0%, rgba(5, 161, 237, 0.20) 0%, transparent 60%),
    linear-gradient(180deg, var(--ink-950), var(--ink-900));
  overflow: hidden;
}

.page-hero-grid {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}

@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); }
}

.breadcrumb {
  --od-gap: 8px;
  --od-icon-size: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--od-gap);
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-bottom: var(--s-2);
}

.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb .od-icon { opacity: 0.6; }

@media (hover: hover) {
  .breadcrumb a:hover { color: var(--brand-soft); }
}

.page-hero h1 { font-size: var(--fs-h1); }

.prose { max-width: var(--maxw-text); }
.prose h3 { margin-top: var(--s-4); margin-bottom: var(--s-1); }
.prose h3:first-child { margin-top: 0; }

.treat-list { display: grid; gap: var(--s-2); }

.treat-item {
  display: grid;
  gap: 6px;
  padding: var(--s-3);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.treat-item h3 { font-size: 1.0625rem; }
.treat-item p { font-size: var(--fs-small); color: var(--text-3); }

@media (min-width: 768px) {
  .treat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.callout {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4);
  background: linear-gradient(150deg, rgba(5, 161, 237, 0.14), var(--glass) 60%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
}

.cta-band {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-6) var(--s-4);
  text-align: center;
  justify-items: center;
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(5, 161, 237, 0.22), transparent 70%),
    var(--ink-800);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
}

.cta-band p { max-width: 46ch; }

/* --------------------------------------------------------------------------
   17. Revelação ao rolar / movimento reduzido
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Espaçamento do cabeçalho e ícones dos canais de contato. */
.header-inner { max-width: 1440px; --od-gap: 16px; }
[hidden] { display: none !important; }
[data-contact-action] .od-icon {
  inline-size: 22px;
  block-size: 22px;
  flex: 0 0 22px;
}
@media (min-width: 1280px) {
  .nav-toggle { display: none; }
}


/* Retratos do corpo clínico com enquadramento uniforme de busto. */
.doctor-photo { aspect-ratio: 150 / 174; }
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
@media (min-width: 520px) {
  .doctor-photo { align-self: center; }
}

/* Elevação uniforme dos cards, incluindo os blocos das páginas de área. */
.card, .doctor, .step, .edu-card, .treat-item, .callout, .science, .faq-item {
  transition: translate var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              background-color var(--t-base) var(--ease-out),
              opacity var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover, .doctor:hover, .step:hover, .edu-card:hover,
  .treat-item:hover, .callout:hover, .science:hover, .faq-item:hover {
    translate: 0 -4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card, .doctor, .step, .edu-card, .treat-item, .callout, .science, .faq-item {
    translate: none !important;
  }
}
/* Carrossel editorial: imagem compacta e leitura sob demanda. */
.edu-toolbar, .edu-controls, .edu-reading-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.edu-toolbar { margin-bottom: 16px; }
.edu-controls { font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.edu-arrow { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--glass); color: var(--text); font-size: 22px; cursor: pointer; }
.edu-arrow:disabled { opacity: .35; cursor: default; }
.edu-arrow:not(:disabled):hover { background: var(--brand-wash); }
.edu-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 0 24px; }
.edu-track::-webkit-scrollbar { display: none; }
.edu-track::after { content: ''; flex: 0 0 calc(28% - 24px); }
.edu-slide { flex: 0 0 72%; display: grid; grid-template-columns: 40% 60%; scroll-snap-align: start; min-width: 0; }
.edu-slide .edu-media { min-width: 0; height: 280px; }
.edu-slide .edu-media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.edu-slide .edu-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 28px; }
.edu-slide .edu-body h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); }
.edu-category { color: var(--brand-soft); text-transform: uppercase; letter-spacing: .1em; font-size: .6875rem; font-weight: 600; }
.edu-read { display: inline-flex; gap: 16px; align-items: center; margin-top: auto; padding: 8px 0 0; background: none; border: 0; color: var(--brand-soft); font: inherit; font-size: var(--fs-small); font-weight: 600; cursor: pointer; }
.edu-dots { display: flex; justify-content: center; gap: 4px; }
.edu-dots button { width: 36px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.edu-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 8px; background: var(--text-3); transition: width var(--t-base), background var(--t-base); }
.edu-dots button[aria-current="true"]::before { width: 24px; background: var(--brand); }
.edu-reading { margin-top: 20px; }
@media (max-width: 767px) {
  .edu-track { gap: 16px; }
  .edu-slide { flex-basis: 88%; grid-template-columns: minmax(0, 1fr); grid-template-rows: 160px 1fr; }
  .edu-slide .edu-media { height: 160px; }
  .edu-slide .edu-body { padding: 20px; }
  .edu-slide .edu-body h3 { font-size: 1.25rem; }
  .edu-track::after { flex-basis: calc(12% - 16px); }
}

.location-map { min-width: 0; }
.map-actions { display: flex; justify-content: center; margin-top: 20px; }
