/* ============================================================
   Dr. Cid Fraga · Estilos compartilhados (todas as páginas)
   ============================================================ */

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: var(--lh-tight); color: var(--ink); letter-spacing: -0.015em; font-optical-sizing: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--canvas); }
.section--tint { background: linear-gradient(180deg, var(--green-50), var(--white)); }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-700);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green-400); border-radius: 2px; }
.section-head { max-width: 640px; margin-bottom: var(--space-8); }
.section-head h2 { font-size: var(--fs-h2); margin-top: 0.7rem; }
.section-head p { color: var(--text-soft); font-size: var(--fs-lead); margin-top: 0.9rem; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 0.95rem 1.6rem; border-radius: var(--radius-pill);
  min-height: 48px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-cta { background: var(--cta-bg); color: var(--cta-text); box-shadow: var(--shadow-cta); }
.btn-cta:hover { background: var(--cta-bg-hover); transform: translateY(-2px); color: #fff; }
.btn-outline { background: var(--white); color: var(--green-700); border-color: var(--green-200); }
.btn-outline:hover { border-color: var(--green-400); background: var(--green-50); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--blue-700); padding-inline: 0.4rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
/* Marca = assinatura vetorial "Dr. Cid Fraga" (assets/logo-assinatura.svg).
   Proporção fixa 6,72:1 (viewBox 671.55x100). Altura sempre definida em CSS +
   width/height no HTML => o navegador reserva a caixa antes do SVG carregar (CLS 0).
   A especialidade não repete no header: já aparece no hero, na nav e no rodapé. */
.brand { display: inline-flex; align-items: center; padding-block: 0.4rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 40px; width: auto; }
@media (max-width: 900px) { .brand-logo { height: 34px; } }
@media (max-width: 480px) { .brand-logo { height: 30px; } .brand { padding-block: 0.5rem; } } /* hit-area >=44px */

.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-links a.navlink {
  color: var(--ink-soft); font-weight: 500; font-size: 0.98rem;
  padding: 0.5rem 0.8rem; border-radius: var(--radius-pill); text-decoration: none;
  transition: color 0.18s, background-color 0.18s;
}
.nav-links a.navlink:hover { color: var(--green-700); background: var(--green-50); }
.nav-links a.navlink[aria-current="page"] { color: var(--green-700); font-weight: 600; }
.nav-cta { margin-left: 0.4rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line-strong);
  background: var(--white); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: var(--white); padding: 1rem var(--gutter) 1.6rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a.navlink { padding: 0.85rem 0.9rem; font-size: 1.05rem; }
  .nav-cta { margin: 0.5rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--white); }
/* Sem "blob" radial duplo (trope de template DTC). Um único wash linear discreto. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--canvas) 0%, var(--white) 46%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
}
.hero-copy { max-width: 560px; }
.hero h1 { font-size: var(--fs-hero); margin-top: 1rem; letter-spacing: -0.02em; }
/* destaque sóbrio: mesma tipografia/peso, só a cor muda (sem itálico "marketing trick") */
.hero h1 em { font-style: normal; color: var(--bordeaux-700); }
.hero .lead { font-size: var(--fs-lead); color: var(--text-soft); margin-top: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-cred {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.7rem;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.hero-cred li { font-size: var(--fs-small); color: var(--ink-soft); display: flex; align-items: center; gap: 0.45rem; }
.hero-cred li strong { color: var(--ink); font-weight: 700; }
.hero-cred svg { width: 17px; height: 17px; color: var(--green-600); flex: none; }

.hero-media { position: relative; }

/* ---------- Foto real do médico (troca de 1 linha) ----------
   Quando a foto chegar em assets/img/dr-cid-fraga.jpg: descomentar o <img class="dr-photo">
   no HTML e remover o .photo-placeholder irmão. */
.dr-photo {
  width: 100%; border-radius: var(--radius-lg); object-fit: cover;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-md); display: block;
}
.dr-photo--wide { aspect-ratio: 16 / 10; }

/* ---------- Placeholder de foto (marcado, dessaturado) ---------- */
.photo-placeholder {
  position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--canvas);
  border: 1px dashed var(--line-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem; color: var(--ink-soft);
  aspect-ratio: 4 / 5;
}
.photo-placeholder .pp-icon { width: 54px; height: 54px; opacity: 0.75; margin-bottom: 0.7rem; }
.photo-placeholder .pp-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.photo-placeholder .pp-note { font-size: 0.82rem; color: var(--ink-mute); margin-top: 0.35rem; max-width: 240px; }
.photo-placeholder .pp-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.9);
  color: var(--ink-soft); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: var(--radius-pill);
}
.photo-placeholder--wide { aspect-ratio: 16 / 10; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--ink); color: #eaf1f0; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding-block: 1.6rem; text-align: center;
}
.trust-grid .t-num { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); color: #fff; }
.trust-grid .t-lbl { font-size: 0.82rem; color: #b9cbc9; margin-top: 0.15rem; letter-spacing: 0.02em; }
.trust-grid > div { padding: 0.4rem 0.6rem; }
.trust-grid > div + div { border-left: 1px solid rgba(255,255,255,0.12); }

/* ---------- Cards grid (áreas / diferenciais) ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-xs);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-200); }
.card .c-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--green-50); color: var(--green-600); margin-bottom: 1rem;
}
.card .c-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--fs-h3); }
.card p { color: var(--text-soft); font-size: var(--fs-body); margin-top: 0.5rem; }

/* ---------- Sobre split ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.rev { grid-template-columns: 1.1fr 0.9fr; }
/* itens de grid não podem crescer além da faixa (evita overflow-x) */
.split > *, .hero-inner > *, .grid > * { min-width: 0; }
.prose p { color: var(--text-soft); font-size: var(--fs-lead); }
.prose p + p { margin-top: 1rem; }
.prose h2 { font-size: var(--fs-h2); }
.quote-block {
  margin-top: 1.6rem; padding: 1.2rem 1.4rem; border-left: 3px solid var(--green-400);
  background: var(--green-50); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); font-style: italic; line-height: 1.4;
}

/* ---------- Convênios ---------- */
.chip-grid { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 0.7rem 1.15rem; font-weight: 600; font-size: 0.98rem; color: var(--ink-soft);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-400); flex: none; }

/* ---------- Selos / prova social segura ---------- */
.seals { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.seal {
  display: flex; align-items: center; gap: 0.7rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.2rem; box-shadow: var(--shadow-xs);
}
.seal .s-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center; flex: none; }
.seal .s-mark svg { width: 22px; height: 22px; }
.seal strong { display: block; font-size: 0.95rem; color: var(--ink); }
.seal span { font-size: 0.8rem; color: var(--ink-mute); }

/* ---------- Agendamento / localização ---------- */
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem; box-shadow: var(--shadow-sm);
}
.contact-list li { display: flex; gap: 0.9rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; }
.contact-list .ci { width: 40px; height: 40px; border-radius: 10px; background: var(--green-50); color: var(--green-600);
  display: flex; align-items: center; justify-content: center; flex: none; }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list li > div { min-width: 0; }
.contact-list .cl { display: block; font-size: 0.78rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.15rem; }
.contact-list .cv { display: block; font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.contact-list .cv a { color: var(--ink); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 320px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.pending {
  color: var(--blue-700); background: var(--blue-50); border: 1px dashed var(--blue-300);
  border-radius: 8px; padding: 0.15rem 0.5rem; font-size: 0.82rem; font-weight: 600;
}

/* ---------- Form (contato) ---------- */
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--ink); }
.form-field input, .form-field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.85rem 1rem; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--white);
  transition: border-color 0.18s;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--green-400); outline: none; }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-error { color: #b23a48; font-size: 0.85rem; margin-top: 0.35rem; display: none; }
.form-field.invalid input, .form-field.invalid textarea { border-color: #d08a92; }
.form-field.invalid .form-error { display: block; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--text-soft); }
.consent input { width: 20px; height: 20px; margin-top: 0.15rem; flex: none; accent-color: var(--green-600); }
.form-note { font-size: 0.82rem; color: var(--ink-mute); margin-top: 0.9rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--green-600), var(--blue-600)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 1.4rem + 3vw, 3.4rem); text-align: center; }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); }
.cta-band p { color: rgba(255,255,255,0.92); font-size: var(--fs-lead); margin: 0.8rem auto 1.6rem; max-width: 560px; }
.cta-band .btn-cta { background: #fff; color: var(--green-700); box-shadow: 0 8px 22px rgba(0,0,0,0.18); }
.cta-band .btn-cta:hover { background: #f4faf7; color: var(--green-700); }

/* ---------- Aviso médico ---------- */
.med-notice {
  display: flex; gap: 0.7rem; align-items: flex-start; background: var(--canvas);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem;
  font-size: 0.9rem; color: var(--ink-soft);
}
.med-notice svg { width: 20px; height: 20px; color: var(--blue-600); flex: none; margin-top: 0.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d7e2e0; padding-block: 3rem 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8fa8a4; margin-bottom: 0.9rem; }
.footer-grid a { color: #d7e2e0; }
.footer-grid a:hover { color: #fff; }
/* rodapé escuro (--ink) => variante branca da assinatura */
.footer-brand .brand { padding-block: 0; }
.footer-brand .brand-logo { height: 46px; }
@media (max-width: 480px) { .footer-brand .brand-logo { height: 38px; } }
.footer-femme { font-size: 0.9rem; color: #a9bcb9; margin-top: 0.9rem; }
.footer-femme strong { color: #cddad7; font-weight: 600; }
.footer-brand p { color: #a9bcb9; font-size: 0.92rem; margin-top: 0.9rem; max-width: 340px; }
.footer-cred { font-size: 0.9rem; color: #c3d2cf; margin-top: 1rem; }
.footer-cred strong { color: #fff; }
.footer-links li { margin-bottom: 0.55rem; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; font-size: 0.82rem; color: #8fa8a4; }
.footer-disclaimer { max-width: 620px; }

/* ---------- Floating CTA ---------- */
.fab {
  position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem); z-index: 60;
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--green-600); color: #fff; font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.2rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-cta);
  text-decoration: none; transition: transform 0.18s var(--ease), background-color 0.2s;
}
.fab:hover { background: var(--green-700); transform: translateY(-2px); color: #fff; text-decoration: none; }
.fab svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 560px) { .fab .fab-label { display: none; } .fab { padding: 0.9rem; } }

/* ---------- Page hero (internas) ---------- */
.page-hero { background: linear-gradient(180deg, var(--green-50), var(--white)); padding-block: clamp(2.6rem, 2rem + 3vw, 4rem); }
.page-hero .eyebrow { margin-bottom: 0.6rem; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); max-width: 780px; }
.page-hero p { color: var(--text-soft); font-size: var(--fs-lead); margin-top: 1rem; max-width: 660px; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-mute); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- Utilidades ---------- */
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.stack-lg > * + * { margin-top: 1.6rem; }
.text-soft { color: var(--text-soft); }

/* ---------- Reveal on scroll (transform+opacity; safety-net no JS) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* Se JS não rodar, tudo visível (progressive enhancement) */
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; }
  .split, .split.rev { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .trust-grid > div + div { border-left: none; }
  .trust-grid > div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.12); }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-list li { align-items: flex-start; }
}
