/* ============================================
   Clínica Álere — design tokens (editorial clínico)
   ============================================ */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F3F5F4;
  --white: #FFFFFF;
  --ink: #16211F;
  --ink-soft: #52625F;
  --primary: #123F3B;
  --primary-2: #1C5850;
  --primary-tint: #E9EFEE;
  --line: #DBE1DE;
  --accent: #96742F;

  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --shadow-sm: 0 1px 2px rgba(15, 30, 28, .06), 0 1px 0 rgba(15, 30, 28, .04);
  --shadow-md: 0 16px 32px -20px rgba(15, 30, 28, .28);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 3.6vw + 1rem, 3.15rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 1.6vw + 1rem, 2.2rem); }
h3 { font-size: 1.15rem; color: var(--ink); font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--primary); text-decoration: none; }

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-size: .74rem;
  color: var(--accent);
  margin-bottom: .9em;
}
.eyebrow--light { color: #CBD9D6; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--primary); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-2); border-color: var(--primary-2); }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-tint); }

.btn-lg { padding: 15px 28px; font-size: 1rem; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex; align-items: center;
}
.header-inner { display: flex; align-items: center; gap: 28px; width: 100%; }

.logo {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 600;
  margin-right: auto;
}
.logo-tag {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
.logo--footer { font-size: 1.5rem; color: var(--white); margin-bottom: .5em; }
.logo-tag--footer { color: #9FB3AF; border-left-color: rgba(255,255,255,.2); }

.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: .93rem;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right .2s ease;
}
.nav a:hover::after { right: 0; }

.menu-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  margin-left: 4px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto;
    flex-direction: column;
    background: var(--white);
    width: min(78vw, 320px);
    padding: 32px 28px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform .28s ease;
    box-shadow: -20px 0 40px -20px rgba(0,0,0,.15);
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 1.1rem; }
}

/* ============================================
   Hero
   ============================================ */
.hero { padding: 60px 0 44px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: start;
}
.lede { font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 0; }

/* Trust panel */
.trust-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}
.trust-row { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; }
.trust-row:first-child { padding-top: 0; }
.trust-row--rating { flex-direction: row; align-items: center; gap: 16px; }
.trust-num {
  font-family: var(--font-display); font-size: 2.3rem; font-weight: 600;
  color: var(--primary); white-space: nowrap;
}
.trust-num span { color: var(--accent); font-size: 1.3rem; margin-left: 2px; }
.trust-label { font-size: .86rem; color: var(--ink-soft); line-height: 1.4; }
.trust-label strong { color: var(--ink); }
.trust-divider { height: 1px; background: var(--line); }
.trust-label-sm {
  font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.trust-value { font-size: .96rem; color: var(--ink); font-weight: 500; line-height: 1.45; }
.trust-value-sub { font-size: .85rem; color: var(--ink-soft); font-weight: 400; }

.curve-divider { line-height: 0; }
.curve-divider svg { width: 100%; height: 32px; display: block; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
}

/* ============================================
   Sections (generic)
   ============================================ */
.section { padding: 76px 0; }
.section--tint { background: var(--bg-alt); }
.section-head { max-width: 60ch; margin-bottom: 40px; }

/* Sobre */
.sobre-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.sobre-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-num { font-family: var(--font-display); font-size: 1.9rem; color: var(--primary); font-weight: 600; }
.stat-label { font-size: .85rem; color: var(--ink-soft); font-weight: 500; }
.stat-card--wide { grid-column: 1 / -1; background: var(--primary); border-color: var(--primary); }
.stat-card--wide .stat-label { color: #CBD9D6; font-weight: 600; }

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

/* Especialidades */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.service-card {
  background: var(--white);
  padding: 30px 26px;
}
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-tint);
  color: var(--primary);
  margin-bottom: 18px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card p { font-size: .93rem; margin-bottom: 0; }

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

/* A médica */
.medica-grid { display: grid; grid-template-columns: .4fr 1.6fr; gap: 56px; align-items: center; }
.portrait-frame {
  width: 100%; max-width: 220px; aspect-ratio: 3/4; margin-inline: auto;
  border-radius: var(--radius-md);
  background: var(--primary-tint);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.portrait-initials { font-family: var(--font-display); font-size: 2.6rem; color: var(--primary); font-weight: 600; }
.medica-role { color: var(--accent); font-weight: 600; font-size: .92rem; margin-bottom: 1em; }

@media (max-width: 860px) { .medica-grid { grid-template-columns: 1fr; text-align: center; } }

/* Depoimentos */
.testi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.testi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  margin: 0;
}
.testi-card .stars { color: var(--accent); letter-spacing: 1px; font-size: .9rem; }
.testi-card p { color: var(--ink); font-size: .94rem; margin: 12px 0 14px; }
.testi-card cite { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--ink-soft); }

@media (max-width: 980px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .testi-grid { grid-template-columns: 1fr; } }

/* Localização */
.loc-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.loc-address { font-size: 1.02rem; color: var(--ink); }
.loc-note { font-size: .9rem; }
.map-frame {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
@media (max-width: 860px) { .loc-grid { grid-template-columns: 1fr; } }

/* Contato */
.section--contact {
  background: var(--primary);
  color: #fff;
  text-align: center;
}
.section--contact h2 { color: #fff; }
.contact-inner { max-width: 620px; }
.contact-lede { color: #C4D5D1; }
.contact-phone {
  display: block; margin-top: 20px;
  color: #fff; font-weight: 600; font-size: 1.05rem;
  text-decoration: underline; text-underline-offset: 4px;
}

/* Footer */
.site-footer { background: var(--primary); color: #CBD9D6; padding: 52px 0 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; }
.site-footer p { color: #CBD9D6; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 24px; font-size: .82rem;
}
.footer-bottom p { margin: 0; opacity: .75; }
@media (max-width: 560px) { .footer-inner, .footer-bottom { flex-direction: column; } .footer-contact { align-items: flex-start; } }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 54px; height: 54px; border-radius: 50%;
  background: #1FA855; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(15,30,28,.4);
  transition: transform .18s ease;
}
.whatsapp-float:hover { transform: scale(1.05); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
