/* ============================================================
   GLOBAL.CSS — Clínica Dentária Dr. António Bexiga
   Sistema de design 2026 · Newsreader + Figtree
   Paleta: #B4CAE0 · #333 · #FFF · #F7F7F7 (+ âncora escura derivada)

   01 Tokens · 02 Reset · 03 Tipografia · 04 Layout/arcada
   05 Botões · 06 Header · 07 Rodapé · 08 Conteúdo
   09 Formulários · 10 Barras e overlays · 11 Movimento/responsivo
   ============================================================ */

/* ── 01 · TOKENS ──────────────────────────────────────────── */
:root {
  /* Paleta */
  --sky:        #B4CAE0;   /* azul da marca — decorativo, nunca texto sobre branco */
  --sky-50:     #F4F8FB;
  --sky-100:    #E7EFF7;
  --sky-200:    #D2E0EE;
  --sky-600:    #6B8FB4;
  --sky-700:    #4C7099;   /* eyebrows e links — AA sobre branco */
  --deep:       #1E2B38;   /* âncora escura derivada do azul */
  --deep-900:   #16202A;
  --ink:        #333333;
  --ink-muted:  #5C6670;
  --ink-soft:   #8A9299;
  --paper:      #FFFFFF;
  --mist:       #F7F7F7;
  --line:       #E6E9EC;
  --line-soft:  #F0F2F4;

  /* Tipografia */
  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-sans:    'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-display: clamp(2.75rem, 6vw, 5.25rem);
  --t-h1:      clamp(2.25rem, 4.6vw, 4rem);
  --t-h2:      clamp(1.9rem, 3.4vw, 3rem);
  --t-h3:      clamp(1.25rem, 1.8vw, 1.6rem);
  --t-body:    1.0625rem;
  --t-lead:    clamp(1.075rem, 1.5vw, 1.25rem);
  --t-small:   0.875rem;
  --t-micro:   0.6875rem;

  /* Layout */
  --shell:  1180px;
  --cb-h:   112px;  /* altura da barra de callback fixa em mobile */
  --gutter: clamp(20px, 5vw, 56px);
  --sp-section: clamp(72px, 9vw, 132px);

  /* Raios */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   22px;
  --radius-full: 999px;
  --arch: var(--radius-full) var(--radius-full) var(--radius-lg) var(--radius-lg);

  /* Sombras — tinta azulada, muito baixas */
  --shadow-sm: 0 1px 2px rgba(30,43,56,.05);
  --shadow-md: 0 4px 18px rgba(30,43,56,.06);
  --shadow-lg: 0 14px 38px rgba(30,43,56,.08);
  --shadow-xl: 0 28px 70px -24px rgba(30,43,56,.22);

  --ease-out: cubic-bezier(.22,1,.36,1);

  /* ── Aliases legados: páginas antigas herdam o novo design ── */
  --primary:            #1E2B38;
  --on-primary:         #FFFFFF;
  --secondary:          #5C6670;
  --accent:             #B4CAE0;
  --accent-hover:       #4C7099;
  --surface:            #F7F7F7;
  --surface-low:        #F4F8FB;
  --surface-white:      #FFFFFF;
  --on-surface:         #333333;
  --on-surface-variant: #5C6670;
  --outline:            #8A9299;
  --outline-variant:    #E6E9EC;
  --font-headline:      var(--font-display);
  --font-body:          var(--font-sans);
}

/* ── 02 · RESET ───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--sky); color: var(--deep); }

:focus-visible { outline: 2px solid var(--sky-700); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--deep); color: #fff; padding: 14px 22px;
  border-radius: 0 0 var(--radius-md) 0; font-size: var(--t-small); font-weight: 600;
}
.skip-link:focus { left: 0; }

.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24; }
.icon-filled { font-variation-settings: 'FILL' 1, 'wght' 300; }

/* ── 03 · TIPOGRAFIA ──────────────────────────────────────── */
.h1, .h2, .h3 { font-family: var(--font-display); color: var(--deep); font-weight: 380; }
.h1 { font-size: var(--t-h1); line-height: 1.04; letter-spacing: -.015em; }
.h2 { font-size: var(--t-h2); line-height: 1.1;  letter-spacing: -.012em; }
.h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -.008em; }

.display {
  font-family: var(--font-display); font-size: var(--t-display); font-weight: 300;
  line-height: 1.02; letter-spacing: -.025em; color: var(--deep);
}

/* Itálico do Newsreader — o acento tipográfico da marca */
.serif-italic, .accent-italic {
  font-family: var(--font-display); font-style: italic; font-weight: 340; color: var(--sky-700);
}
.display .serif-italic, .h1 .serif-italic { font-weight: 300; }

.eyebrow {
  display: block; font-family: var(--font-sans); font-size: var(--t-micro); font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--sky-700); margin-bottom: 18px;
}
.eyebrow--line { display: flex; align-items: center; gap: 12px; }
.eyebrow--line::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.body-lg { font-size: var(--t-lead); line-height: 1.65; color: var(--ink-muted); }
.body-sm { font-size: var(--t-small); line-height: 1.65; color: var(--ink-muted); }
.micro { font-size: var(--t-micro); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.text-center { text-align: center; }

.link-inline {
  color: var(--deep); font-weight: 500; box-shadow: inset 0 -1px 0 0 var(--sky);
  transition: box-shadow .25s var(--ease-out), color .25s;
}
.link-inline:hover { box-shadow: inset 0 -2px 0 0 var(--sky-700); color: var(--sky-700); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-small); font-weight: 600; color: var(--deep); }
.link-arrow::after { content: '→'; transition: transform .3s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ── 04 · LAYOUT + MOTIVO "ARCADA" ────────────────────────── */
.shell, .max-w-site { width: 100%; max-width: var(--shell); margin-inline: auto; }
.shell { padding-inline: var(--gutter); }

.section { padding: var(--sp-section) var(--gutter); }
.section--mist  { background: var(--mist); }
.section--paper { background: var(--paper); }
.section--deep  { background: var(--deep); color: rgba(255,255,255,.72); }
.section--deep .h2, .section--deep .h3 { color: #fff; }
.section--deep .eyebrow { color: var(--sky); }

.section-header { margin-bottom: clamp(40px, 5vw, 68px); max-width: 720px; }
.section-header.center { text-align: center; margin-inline: auto; }
.section-header .body-lg { margin-top: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 40px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }

/* A arcada — elemento assinatura, só em fotografia */
.arch { position: relative; overflow: hidden; border-radius: var(--arch); background: var(--sky-100); }
.arch > img { width: 100%; height: 100%; object-fit: cover; }
.arch--tall   { aspect-ratio: 4/5; }
.arch--wide   { aspect-ratio: 16/11; }
.arch--square { aspect-ratio: 1/1; }
.arch--soft   { border-radius: 180px 180px var(--radius-lg) var(--radius-lg); }

.rule-arch {
  height: 40px; border-top: 1px solid var(--line);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0; max-width: 560px; margin: 0 auto;
}

/* ── 05 · BOTÕES ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: .9375rem; line-height: 1;
  padding: 17px 30px; border: 1px solid transparent; border-radius: var(--radius-full);
  cursor: pointer; transition: all .3s var(--ease-out); text-align: center;
}
.btn-primary { background: var(--deep); color: #fff; }
.btn-primary:hover { background: var(--deep-900); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--deep); border-color: var(--line); }
.btn-outline:hover { border-color: var(--sky-600); background: var(--sky-50); }
.btn-sky { background: var(--sky); color: var(--deep); }
.btn-sky:hover { background: var(--sky-200); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--deep); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 20px 38px; font-size: 1rem; }
.btn-sm { padding: 12px 22px; font-size: var(--t-small); }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── 06 · HEADER ──────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: rgba(255,255,255,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 24px rgba(30,43,56,.04); }
.nav-wrap {
  max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter);
  height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo-img { height: 48px; width: auto; flex-shrink: 0; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo-sub { font-size: .625rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: .9375rem; font-weight: 500; color: var(--ink-muted); white-space: nowrap; transition: color .25s; }
.nav-links a:hover { color: var(--deep); }
.nav-links a.active { color: var(--deep); font-weight: 600; }

.nav-item { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-caret-btn { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; padding: 2px; color: var(--ink-soft); transition: color .25s, transform .25s; }
.nav-caret-btn .material-symbols-outlined { font-size: 19px; }
.nav-item:hover .nav-caret-btn, .nav-item.open .nav-caret-btn { color: var(--deep); }
.nav-item.open .nav-caret-btn { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 14px; /* zona invisível mas ainda "dentro" do elemento, para o :hover não se perder entre o link e o dropdown */
  background: transparent; z-index: 70;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease-out), visibility .2s;
}
.nav-dropdown-inner {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 16px; min-width: 300px;
  transform: translateY(-4px); transition: transform .2s var(--ease-out);
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown, .nav-item.open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.nav-item:hover .nav-dropdown-inner, .nav-item:focus-within .nav-dropdown-inner, .nav-item.open .nav-dropdown-inner {
  transform: translateY(0);
}
.nav-dropdown--sm .nav-dropdown-inner { min-width: 200px; }
.nav-dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.nav-dropdown a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500; color: var(--ink-muted); white-space: nowrap; }
.nav-dropdown a:hover { color: var(--deep); background: var(--sky-50); }
.nav-dropdown-all { margin-top: 8px; padding-top: 12px !important; border-top: 1px solid var(--line); font-size: .8125rem !important; font-weight: 600 !important; color: var(--sky-700) !important; text-align: center; }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; white-space: nowrap; line-height: 1;
  background: var(--deep); color: #fff !important; padding: 13px 22px;
  border-radius: var(--radius-full); font-weight: 600 !important; font-size: .875rem !important;
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.nav-cta:hover { background: var(--deep-900); transform: translateY(-1px); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger .material-symbols-outlined { font-size: 28px; color: var(--deep); }

.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 150; background: var(--paper);
  flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 32px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
/* `:not(.btn)` para não roubar a cor nem o tipo de letra ao CTA — sem isto o
   "Marcar consulta" ficava texto escuro sobre fundo escuro, invisível. */
.mobile-nav a:not(.btn) { font-family: var(--font-display); font-size: 1.9rem; font-weight: 350; color: var(--deep); padding: 10px 0; }
.mobile-nav .btn { margin-top: 20px; }

.mnav-details { width: 100%; max-width: 320px; text-align: center; }
.mnav-details summary {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 350; color: var(--deep);
  padding: 10px 0; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.mnav-details summary::-webkit-details-marker { display: none; }
.mnav-details summary .material-symbols-outlined { font-size: 22px; color: var(--ink-soft); transition: transform .25s; }
.mnav-details[open] summary .material-symbols-outlined { transform: rotate(180deg); }
.mnav-sublist { display: flex; flex-direction: column; padding: 4px 0 14px; }
.mnav-sublist a { font-family: var(--font-sans); font-size: 1rem; font-weight: 500; color: var(--ink-muted); padding: 8px 0; }
.mnav-sublist a:hover { color: var(--deep); }

/* ── 07 · RODAPÉ ──────────────────────────────────────────── */
.site-footer { background: var(--deep); color: rgba(255,255,255,.6); padding: clamp(56px,7vw,88px) var(--gutter) 36px; }
.footer-grid {
  max-width: var(--shell); margin-inline: auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(28px,4vw,56px); padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand .logo-img { height: 44px; }
.footer-brand .logo-sub { color: rgba(255,255,255,.4); }
.footer-brand p { font-size: var(--t-small); line-height: 1.7; max-width: 320px; color: rgba(255,255,255,.5); }
.footer-col h4 { font-size: var(--t-micro); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); margin-bottom: 20px; }
.footer-col li { margin-bottom: 11px; font-size: var(--t-small); }
.footer-col a { color: rgba(255,255,255,.6); transition: color .25s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--shell); margin-inline: auto; border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 24px; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; font-size: .8125rem; color: rgba(255,255,255,.38);
}
/* Bandas horizontais do footer (convénios, zonas, English): listas longas que
   ficariam com 15-20 linhas se fossem colunas. Aqui quebram em linha corrida. */
.footer-inline {
  max-width: var(--shell); margin-inline: auto; display: grid;
  grid-template-columns: 88px 1fr; gap: 8px 20px; align-items: baseline;
  padding-bottom: 14px; font-size: .8125rem;
}
.footer-inline-label {
  font-size: var(--t-micro); font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
}
.footer-inline-links { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.footer-inline-links a { color: rgba(255,255,255,.45); transition: color .25s; }
.footer-inline-links a:hover { color: #fff; }
.footer-grid + .footer-inline { border-top: 1px solid rgba(255,255,255,.09); padding-top: 22px; }
@media (max-width: 600px) { .footer-inline { grid-template-columns: 1fr; gap: 6px; } }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--radius-full); background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); transition: all .25s;
}
.footer-social a:hover { background: var(--sky); color: var(--deep); }

/* ── 08 · CONTEÚDO ────────────────────────────────────────── */
.breadcrumb {
  max-width: var(--shell); margin-inline: auto;
  padding: 96px var(--gutter) 0; font-size: .8125rem; color: var(--ink-soft);
}
.breadcrumb a { color: var(--ink-soft); transition: color .25s; }
.breadcrumb a:hover { color: var(--sky-700); }
.breadcrumb strong { color: var(--ink-muted); font-weight: 500; }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.card:hover { border-color: var(--sky-200); box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-micro); font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--sky-700); background: var(--sky-100); padding: 6px 13px; border-radius: var(--radius-full);
}

.trust-bar { background: var(--paper); border-block: 1px solid var(--line); }
.trust-bar-inner { max-width: var(--shell); margin-inline: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.trust-item { padding: 30px 20px; text-align: center; border-right: 1px solid var(--line-soft); }
.trust-item:last-child { border-right: none; }
.trust-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 350; color: var(--deep); line-height: 1; }
.trust-txt { font-size: var(--t-micro); font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }
.trust-item--link { text-decoration: none; color: inherit; transition: background .25s var(--ease-out); }
.trust-item--link:hover { background: var(--sky-50); }
.trust-item--link:hover .trust-num { color: var(--sky-700); }
.trust-item--link .trust-txt { text-transform: none; letter-spacing: normal; font-weight: 500; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; font-family: inherit;
  padding: 24px 0; font-size: 1.0625rem; font-weight: 600; color: var(--deep); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; transition: color .25s;
}
.faq-question:hover { color: var(--sky-700); }
.faq-toggle {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--radius-full);
  background: var(--sky-50); color: var(--sky-700);
  display: flex; align-items: center; justify-content: center; transition: all .3s var(--ease-out);
}
.faq-item.active .faq-toggle { background: var(--sky); color: var(--deep); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out); }
.faq-item.active .faq-answer { max-height: 640px; }
.faq-answer p { padding-bottom: 24px; line-height: 1.75; color: var(--ink-muted); max-width: 70ch; }

.lead.speakable,
.tratamento-content > .lead.speakable,
article > .lead.speakable {
  font-size: var(--t-lead); line-height: 1.7; color: var(--deep);
  background: var(--sky-50); border-left: 3px solid var(--sky);
  padding: 26px 30px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0 40px; max-width: 72ch;
}
.lead.speakable strong { font-weight: 700; }

/* Bloco de interligação interna */
.hub { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--sky-50); padding: clamp(24px, 3vw, 34px); margin: 44px 0; }
.hub-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--deep); margin-bottom: 6px; }
.hub-sub { font-size: var(--t-small); color: var(--ink-muted); margin-bottom: 20px; }
.hub-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 24px; }
.hub-item {
  display: flex; align-items: baseline; gap: 10px; padding: 11px 0;
  border-bottom: 1px solid var(--line-soft); font-size: var(--t-small); color: var(--deep); transition: color .25s;
}
.hub-item:hover { color: var(--sky-700); }
.hub-item::before { content: '→'; color: var(--sky-600); flex-shrink: 0; transition: transform .25s; }
.hub-item:hover::before { transform: translateX(3px); }
.hub-item span { font-weight: 500; }
.hub-item small { display: block; color: var(--ink-soft); font-weight: 400; font-size: .78rem; line-height: 1.5; }

.art-tag, .area-tag, .doc-tag, .cat-pill, .s-chip {
  display: inline-flex; align-items: center; background: var(--sky-50); border: 1px solid var(--line);
  padding: 7px 15px; border-radius: var(--radius-full); font-size: .78rem; font-weight: 500;
  color: var(--ink-muted); transition: all .25s;
}
a.art-tag:hover, a.area-tag:hover, a.cat-pill:hover, a.s-chip:hover { border-color: var(--sky); color: var(--deep); background: var(--sky-100); }

/* ── 09 · FORMULÁRIOS ─────────────────────────────────────── */
input[type=text], input[type=tel], input[type=email], input[type=date], textarea, select {
  width: 100%; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 14px 16px; font-size: var(--t-small); outline: none;
  transition: border-color .25s, box-shadow .25s;
}
input::placeholder, textarea::placeholder { color: var(--ink-soft); }
input:focus, textarea:focus, select:focus { border-color: var(--sky-600); box-shadow: 0 0 0 3px var(--sky-100); }
label { font-size: var(--t-small); font-weight: 600; color: var(--deep); }

.form-feedback { display: none; padding: 13px 17px; border-radius: var(--radius-md); font-size: var(--t-small); font-weight: 500; margin-top: 12px; }
.form-feedback.success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.form-feedback.error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ── 10 · BARRAS E OVERLAYS ───────────────────────────────── */
.callback-bar {
  position: sticky; bottom: 0; z-index: 40; background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 14px var(--gutter);
}
.callback-inner { max-width: var(--shell); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.callback-label { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.callback-label .icon-circle {
  width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--sky-100);
  display: flex; align-items: center; justify-content: center; color: var(--sky-700);
}
.callback-label p { font-family: var(--font-display); font-size: 1.15rem; color: var(--deep); }
.callback-form { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 640px; }
.callback-form input { flex: 1; }
.callback-form button {
  background: var(--deep); color: #fff; border: none; cursor: pointer; padding: 14px 26px;
  border-radius: var(--radius-full); font-size: var(--t-small); font-weight: 600; white-space: nowrap; transition: all .3s;
}
.callback-form button:hover { background: var(--deep-900); }

.exit-overlay { display: none; position: fixed; inset: 0; z-index: 9998; background: rgba(30,43,56,.55); backdrop-filter: blur(4px); }
.exit-overlay.show { display: flex; align-items: center; justify-content: center; padding: 24px; }
.exit-popup {
  background: var(--paper); border-radius: var(--radius-xl); padding: clamp(32px,5vw,48px);
  max-width: 440px; width: 100%; position: relative; box-shadow: var(--shadow-xl); text-align: center;
  animation: popIn .45s var(--ease-out);
}
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(16px); } to { opacity: 1; transform: none; } }
.exit-popup h3 { font-family: var(--font-display); font-size: 1.65rem; font-weight: 400; color: var(--deep); margin-bottom: 8px; }
.exit-popup p { font-size: var(--t-small); color: var(--ink-muted); margin-bottom: 24px; }
.exit-popup input { margin-bottom: 12px; }
.exit-popup button[type=submit] { width: 100%; background: var(--deep); color: #fff; border: none; cursor: pointer; padding: 16px; border-radius: var(--radius-full); font-weight: 600; }
.exit-popup .close-btn, .exit-close { position: absolute; top: 14px; right: 14px; background: none; border: none; cursor: pointer; color: var(--ink-soft); line-height: 1; }

.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000; background: var(--paper);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 32px rgba(30,43,56,.08); padding: 20px var(--gutter);
}
.btn-cookie { padding: 12px 22px; border-radius: var(--radius-full); font-size: var(--t-small); font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all .25s; }
.btn-cookie-primary { background: var(--deep); color: #fff; }
.btn-cookie-ghost { background: transparent; color: var(--deep); border-color: var(--line); }
.btn-cookie-ghost:hover { border-color: var(--sky-600); }

/* ── 11 · MOVIMENTO E RESPONSIVO ──────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
/* O menu PT tem 8 entradas e deixa de caber bem antes do breakpoint mobile:
   entre 1100px e 1240px aperta-se o espaçamento, abaixo disso passa a hambúrguer. */
@media (max-width: 1240px) {
  .nav-links { gap: 16px; }
  .nav-cta { padding: 12px 18px; }
}
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

@media (max-width: 768px) {
  .nav-wrap { height: 66px; }
  .breadcrumb { padding-top: 84px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-bottom: 1px solid var(--line-soft); }
  .trust-item:nth-child(2n) { border-right: none; }
  .hub-list { grid-template-columns: 1fr; }

  /* Barra de callback fixa no fundo — é o CTA principal em mobile, por isso o
     menu hambúrguer já não repete o botão "Marcar consulta". */
  body { padding-bottom: var(--cb-h); }
  .callback-bar {
    position: fixed; left: 0; right: 0; bottom: 0; height: var(--cb-h);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 20px rgba(30,43,56,.08);
  }
  .callback-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .callback-label { gap: 8px; justify-content: center; }
  .callback-label .icon-circle { width: 26px; height: 26px; }
  .callback-label .icon-circle .material-symbols-outlined { font-size: 16px; }
  .callback-label p { font-size: .95rem; }
  .callback-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; max-width: none; }
  .callback-form input { padding: 11px 12px; min-width: 0; }
  .callback-form button { padding: 11px 16px; }
}

/* ── 12 · PROSA (artigos e páginas de tratamento) ─────────── */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-family: var(--font-display); font-size: clamp(1.55rem, 2.4vw, 2rem); font-weight: 400;
  line-height: 1.2; color: var(--deep); letter-spacing: -.01em;
  margin-top: 2.4em; margin-bottom: .55em; padding-top: .9em; border-top: 1px solid var(--line);
}
.prose h3 {
  font-family: var(--font-display); font-size: clamp(1.2rem, 1.7vw, 1.4rem); font-weight: 400;
  color: var(--deep); margin-top: 1.9em; margin-bottom: .4em;
}
.prose h2:first-child, .prose h3:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.prose p { color: var(--ink); line-height: 1.78; }
.prose a {
  color: var(--deep); font-weight: 500; box-shadow: inset 0 -1px 0 0 var(--sky);
  transition: box-shadow .25s, color .25s;
}
.prose a:hover { box-shadow: inset 0 -2px 0 0 var(--sky-700); color: var(--sky-700); }
.prose strong { font-weight: 700; color: var(--deep); }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; padding-left: 4px; }
.prose ul > li::before {
  content: ''; position: absolute; left: -1.05em; top: .72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--sky);
}
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--sky-700); font-weight: 600; }
.prose li { margin-top: .5em; line-height: 1.75; }
.prose blockquote {
  margin: 2em 0; padding: 26px 30px; background: var(--sky-50);
  border-left: 3px solid var(--sky); border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.prose blockquote p {
  font-family: var(--font-display); font-style: italic; font-weight: 350;
  font-size: 1.3rem; line-height: 1.45; color: var(--deep); margin: 0;
}
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-small); margin: 2em 0; }
.prose th, .prose td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; color: var(--deep); background: var(--sky-50); }
.prose img { border-radius: var(--radius-lg); margin: 2em 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* Cabeçalho de página editorial (tratamento / artigo / categoria) */
.page-head { padding: 108px var(--gutter) 0; }
.page-head .inner { max-width: var(--shell); margin-inline: auto; }
.page-head h1 {
  font-family: var(--font-display); font-size: var(--t-h1); font-weight: 350;
  line-height: 1.05; letter-spacing: -.018em; color: var(--deep); max-width: 18ch;
}
.page-head .subtitle { font-size: var(--t-lead); line-height: 1.6; color: var(--ink-muted); max-width: 58ch; margin-top: 22px; }
.page-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px;
  padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-muted);
}
.page-meta b { color: var(--deep); font-weight: 600; }

/* ── 13 · CORREÇÕES DE COMPOSIÇÃO ─────────────────────────── */
/* Quando existe migalha de pão, o herói seguinte não precisa de
   compensar o header fixo — evita um vazio duplo no topo. */
.breadcrumb + :is(header, section, div) { padding-top: 32px !important; }

/* Blocos de conteúdo com largura própria dentro de secções */
.max-w-site > .section-header:only-child { margin-bottom: 0; }

/* ── Seletor de idioma no header ───────────────────────── */
.nav-lang{
  margin-left:6px;
  padding:6px 12px;
  border:1px solid var(--line);
  border-radius:var(--radius-full);
  font-size:var(--t-micro);
  font-weight:700;
  letter-spacing:.09em;
  color:var(--ink-muted);
  transition:border-color .25s var(--ease-out),color .25s var(--ease-out);
}
.nav-lang:hover,.nav-lang:focus-visible{border-color:var(--sky-600);color:var(--deep)}
