/*
  Dr. Gustavo T. M. Parra — Medicina de Família
  Design tokens: branco (fundo) + azul vívido (marca/CTA) + navy profundo (títulos/estrutura) + teal (acento vital)
  Tipografia: Fraunces (display, uso restrito) + Work Sans (corpo) + Barlow Semi Condensed (utilitária)
*/

/* ---------- Tokens ---------- */
:root {
  /* Cor */
  --navy-900: #0A2A43;     /* navy profundo — títulos, fundos escuros (footer, CTA final) */
  --blue-700: #0B72E0;     /* azul vívido — CTA, links, ícones interativos, marca */
  --blue-800: #094E99;     /* azul vívido escuro — hover, texto de destaque pequeno */
  --blue-300: #6FB3F2;     /* azul claro — ícones sobre fundo escuro */
  --white: #FFFFFF;        /* fundo principal */
  --mist-50: #F3F8FD;      /* névoa azulada — cards, fundos elevados/alternados */
  --teal-500: #12A594;     /* teal vital — acento secundário, contraponto de vida */
  --line-200: #D9E6F2;     /* linha sutil sobre branco/névoa */
  --frost-200: #C9DCEA;    /* texto claro sobre fundos escuros */
  --frost-500: #8CA2B5;    /* texto muted sobre fundos escuros */
  --text-body: #223140;
  --text-muted: #5B7083;

  /* Tipografia */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", Arial, sans-serif;
  --font-utility: "Barlow Semi Condensed", "Segoe UI", Arial, sans-serif;

  /* Escala */
  --step-0: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.4rem, 1.8rem + 2.6vw, 3.75rem);

  /* Layout */
  --max-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 12px 30px -14px rgba(10, 42, 67, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; }

@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;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--blue-700);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

/* ---------- Utility type ---------- */
.eyebrow {
  font-family: var(--font-utility);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--blue-800);
  font-weight: 600;
}
.section-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-3);
  color: var(--navy-900);
  margin-top: 0.5rem;
  max-width: 30ch;
}
.section-lede {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 56ch;
  margin-top: 1rem;
}
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.centered { text-align: center; margin-inline: auto; }
.section-head.centered .section-lede { margin-inline: auto; }

/* divisor "linha da vida" reutilizado entre seções */
.arc-divider {
  display: block;
  width: 100%;
  height: 28px;
  margin-block: 0;
  color: var(--teal-500);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--blue-700);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--blue-800); }
.btn-secondary {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn-secondary:hover { background: rgba(10, 42, 67, 0.08); }
.btn-on-dark {
  background: var(--white);
  color: var(--navy-900);
}
.btn-on-dark:hover { background: var(--mist-50); }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.1rem; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-color: var(--line-200);
  box-shadow: 0 6px 20px -18px rgba(10, 42, 67, 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-900);
}
.brand-meta {
  font-family: var(--font-utility);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--navy-900);
}
.nav-toggle svg { width: 26px; height: 26px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}
.main-nav ul { display: flex; gap: clamp(1rem, 2vw, 1.75rem); }
.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.main-nav a:hover { color: var(--blue-700); border-color: var(--blue-700); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    padding: 5.5rem 1.75rem 2rem;
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    box-shadow: -20px 0 40px -20px rgba(10, 42, 67, 0.35);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.25rem; width: 100%; }
  .main-nav a { display: block; font-size: 1.1rem; }
  .main-nav .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3rem, 8vw, 5rem);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-4);
  line-height: 1.08;
  color: var(--navy-900);
  margin-top: 0.75rem;
}
.hero-sub {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 46ch;
  margin-top: 1.25rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 380px; margin-inline: auto; }
}

/* ---------- Sobre ---------- */
.about .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about-name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--navy-900);
  margin-top: 0.5rem;
}
.about-crm {
  font-family: var(--font-utility);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
}
.about-bio {
  margin-top: 1.25rem;
  max-width: 62ch;
  color: var(--text-body);
}
.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.credential {
  background: var(--mist-50);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}
.credential-icon { color: var(--blue-700); width: 28px; height: 28px; margin-bottom: 0.6rem; }
.credential h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-900);
}
.credential p { margin-top: 0.35rem; font-size: 0.92rem; color: var(--text-muted); }

@media (max-width: 900px) {
  .about .container { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
  .credential-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .credential-grid { grid-template-columns: 1fr; }
}

/* ---------- Atendimento / Linha da vida ---------- */
.care { background: var(--mist-50); }
.timeline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal-500) 0 10px, transparent 10px 18px);
}
.timeline-stage {
  flex: 1;
  text-align: center;
  position: relative;
}
.timeline-dot {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy-900);
  margin: 0 auto 0.9rem;
  position: relative;
  z-index: 1;
}
.timeline-stage:last-child .timeline-dot { border-color: var(--teal-500); }
.timeline-stage h3 {
  font-family: var(--font-utility);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  color: var(--navy-900);
}
.timeline-stage p { margin-top: 0.4rem; font-size: 0.88rem; color: var(--text-muted); }

@media (max-width: 720px) {
  .timeline { flex-direction: column; align-items: flex-start; gap: 1.75rem; padding-left: 1rem; }
  .timeline::before { top: 0; bottom: 0; left: 13px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--teal-500) 0 10px, transparent 10px 18px); }
  .timeline-stage { text-align: left; display: flex; gap: 1rem; align-items: flex-start; }
  .timeline-dot { margin: 0; flex: none; }
}

.care-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.care-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
}
.care-item svg { width: 22px; height: 22px; color: var(--blue-700); flex: none; margin-top: 0.15rem; }
.care-item span { color: var(--text-body); font-size: 0.95rem; }

/* ---------- Diferenciais ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.diff-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.diff-card svg { width: 30px; height: 30px; color: var(--blue-300); }
.diff-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-top: 1rem;
}
.diff-card p { margin-top: 0.6rem; font-size: 0.92rem; color: var(--frost-200); }

@media (max-width: 960px) { .diff-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .diff-grid { grid-template-columns: 1fr; } }

/* ---------- Convênios ---------- */
.insurance { background: var(--mist-50); }
.insurance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.insurance-chip {
  font-family: var(--font-utility);
  letter-spacing: 0.03em;
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  color: var(--navy-900);
}
.insurance-note {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- Localização ---------- */
.location .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.location-detail { display: flex; gap: 0.85rem; margin-top: 1.1rem; align-items: flex-start; }
.location-detail svg { width: 22px; height: 22px; color: var(--blue-700); flex: none; margin-top: 0.15rem; }
.location-detail p { font-size: 0.95rem; }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-200);
  aspect-ratio: 4 / 3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 860px) { .location .container { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.final-cta {
  background: var(--navy-900);
  color: var(--white);
  text-align: center;
}
.final-cta .section-heading { color: var(--white); margin-inline: auto; }
.final-cta .section-lede { color: var(--frost-200); margin-inline: auto; }
.final-cta .btn { margin-top: 2.25rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--frost-200);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.75rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}
.footer-grid h3 {
  font-family: var(--font-utility);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--teal-500);
  margin-bottom: 0.85rem;
}
.footer-grid p, .footer-grid a { color: var(--frost-200); }
.footer-grid ul li { margin-bottom: 0.5rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-disclaimer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  color: var(--frost-500);
}
.footer-bottom {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--frost-500);
}
.footer-bottom a { color: var(--frost-500); }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ---------- WhatsApp floating button (mobile) ---------- */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: none;
  box-shadow: 0 10px 24px -8px rgba(10, 42, 67, 0.45);
}
@media (max-width: 720px) {
  .wa-float { display: inline-flex; }
}
