@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,700&family=Manrope:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0060ad;
  --primary-dim: #005498;
  --primary-container: #9ac3ff;
  --on-primary: #f8f8ff;
  --on-primary-container: #003d71;
  --secondary: #136d41;
  --secondary-container: #a6fbc2;
  --on-secondary-container: #006238;
  --tertiary: #8f4f14;
  --tertiary-container: #ffab69;
  --on-tertiary-container: #5d2e00;
  --surface: #f8f9fa;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f2f4f5;
  --surface-container: #ebeef0;
  --surface-container-high: #e5e9eb;
  --on-surface: #2e3335;
  --on-surface-variant: #5a6062;
  --outline-variant: #aeb3b5;
  --error: #ac3434;
  --font-headline: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --r-sm: 0.75rem; --r-md: 1.5rem; --r-lg: 2rem; --r-xl: 3rem; --r-full: 9999px;
  --shadow-soft: 0px 20px 40px rgba(46,51,53,0.06);
  --shadow-card: 0px 8px 24px rgba(46,51,53,0.08);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--surface); color: var(--on-surface); line-height: 1.6; overflow-x: hidden; }

/* LAYOUT */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
@media (max-width: 860px) { .section { padding: 3rem 0; } }
@media (max-width: 480px) { .section { padding: 2.25rem 0; } }
img { display: block; max-width: 100%; }

/* TYPE */
.display { font-family: var(--font-headline); font-size: clamp(2.2rem,5vw,3.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.h1 { font-family: var(--font-headline); font-size: clamp(1.8rem,3.5vw,2.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.h2 { font-family: var(--font-headline); font-size: clamp(1.4rem,2.5vw,1.875rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.h3 { font-family: var(--font-headline); font-size: clamp(1.1rem,2vw,1.25rem); font-weight: 700; line-height: 1.3; }
em.accent { color: var(--primary); font-style: italic; }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.muted { color: var(--on-surface-variant); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.6rem; border-radius: var(--r-full);
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 14px rgba(0,96,173,.28); }
.btn-primary:hover { background: var(--primary-dim); }
.btn-secondary { background: var(--surface-container-lowest); color: var(--primary); border: 1.5px solid rgba(0,96,173,.2); }
.btn-secondary:hover { background: var(--surface-container-low); }
.btn-white { background: #fff; color: var(--on-primary-container); }
.btn-ghost-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost-white:hover { background: rgba(255,255,255,.1); }

/* CHIPS */
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.8rem; border-radius: var(--r-full); font-size: 0.75rem; font-weight: 600; }
.chip-green { background: var(--secondary-container); color: var(--on-secondary-container); }
.chip-orange { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.chip-blue { background: var(--primary-container); color: var(--on-primary-container); }

/* NAV */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(248,249,250,.9); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(174,179,181,.15);
  transition: box-shadow .25s;
}
#nav.scrolled { box-shadow: var(--shadow-soft); }

/* nav-wrap defined below */

/* logo defined below */

/* mobile nav defined below */

/* Mobile Drawer - NO LOGO, clean layout */
#mobile-nav {
  display: none;
  position: fixed;
  inset: 62px 0 0 0;
  z-index: 190;
  background: var(--surface-container-lowest);
  flex-direction: column;
  padding: 2rem 1.5rem 1.5rem;
  overflow-y: auto;
  align-items: center;
  text-align: center;
}
#mobile-nav.open { display: flex; }

#mobile-nav a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--on-surface);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--surface-container);
  width: 100%;
  text-align: center;
}
#mobile-nav a:hover, #mobile-nav a.current { color: var(--primary); }

#mobile-nav .btn {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 280px;
  color: #fff !important;
}

/* Desktop only */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: 1 1 auto;
  justify-content: center;
}
.nav-links a {
  font-size: 0.79rem;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.current { color: var(--primary); font-weight: 700; }

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-end .btn {
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-end { display: none; }
  .hamburger { display: flex; }
}

/* FOOTER */
footer { background: var(--surface-container); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: 0.82rem; color: var(--on-surface-variant); margin-top: 0.6rem; line-height: 1.65; max-width: 220px; }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--primary); margin-bottom: 0.85rem; }
.footer-col a, .footer-col p { display: block; font-size: 0.83rem; color: var(--on-surface-variant); text-decoration: none; margin-bottom: 0.5rem; line-height: 1.5; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.25rem; border-top: 1px solid var(--surface-container-high); gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.78rem; color: var(--on-surface-variant); }
.footer-social { display: flex; gap: 0.6rem; }
.social-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-container-high); display: flex; align-items: center; justify-content: center; font-size: 0.82rem; color: var(--on-surface-variant); text-decoration: none; transition: background .2s, color .2s; }
.social-btn:hover { background: var(--primary); color: #fff; }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Misc */
.card { background: var(--surface-container-lowest); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow-soft); }
.cta-block { background: var(--primary); border-radius: var(--r-xl); padding: 3.5rem 2.5rem; text-align: center; }
.cta-block h2 { font-family: var(--font-headline); font-size: clamp(1.4rem,2.5vw,2rem); font-weight: 800; color: #fff; margin-bottom: 0.6rem; }
.cta-block p { color: rgba(255,255,255,.82); font-size: 0.93rem; max-width: 480px; margin: 0 auto 1.75rem; }
.cta-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.cta-wrap { padding: 3.5rem 0; background: var(--surface-container-low); }

.stars { color: #f5a623; }
.tag { display: inline-block; background: var(--surface-container); border-radius: var(--r-full); padding: 0.22rem 0.7rem; font-size: 0.75rem; font-weight: 500; color: var(--on-surface-variant); }

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
  }
  /* CTA actions centered on mobile */
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
  }
  /* Intro/welcome action buttons */
  .intro-actions,
  .welcome-actions,
  .portal-actions {
    flex-direction: column;
    align-items: center;
  }
  .intro-actions .btn,
  .welcome-actions .btn,
  .portal-actions .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
  }
}
/* ══════════════════════════════════════════════════════
   NAV + LOGO — SVG vector, scales perfectly at any size
   Logo viewBox 3100x1600 → aspect ratio 1.938:1
   At 44px tall → ~85px wide
══════════════════════════════════════════════════════ */

/* ── Nav shell ── */
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
  gap: 1rem;
}

#mobile-nav { top: 72px; }
main { padding-top: 72px; }

/* ── Logo link ── */
.nav-logo-link,
.footer-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}

/* ── Logo image — SVG scales crisply at any size ── */
.nav-logo-img {
  display: block;
  height: 44px;
  width: 85px;           /* 44px × 1.94 aspect ratio */
  min-width: 85px;
  object-fit: contain;
}
.nav-logo-link:hover .nav-logo-img { opacity: .82; }
.nav-logo-link { transition: opacity .18s; }

/* ── Footer logo ── */
.footer-logo-img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 180px;
  margin-bottom: 0.6rem;
}

/* ── Desktop nav links ── */
.nav-links { gap: 1.15rem; }
.nav-links a { font-size: 0.79rem; letter-spacing: -0.01em; }

/* ── Patient Portal button ── */
.nav-end .btn {
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* ══════════════════════════════════
   MOBILE — logo centered, hamburger right
══════════════════════════════════ */
@media (max-width: 860px) {
  .nav-wrap {
    height: 62px;
    padding: 0 1rem;
    justify-content: center;
    position: relative;
  }
  /* Center logo */
  .nav-logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 100px);  /* never overlap hamburger */
  }
  .nav-logo-img {
    height: 38px;
    width: 74px;
  }
  /* Hamburger floats right */
  .hamburger {
    position: absolute;
    right: 1rem;
    display: flex;
  }
  #mobile-nav { top: 62px; }
  main { padding-top: 62px; }
}

@media (max-width: 480px) {
  .nav-wrap { height: 56px; padding: 0 0.85rem; }
  #mobile-nav { top: 56px; }
  main { padding-top: 56px; }
  .nav-logo-img {
    height: 32px;
    width: 62px;
  }
}

@media (max-width: 360px) {
  .nav-wrap { height: 52px; }
  #mobile-nav { top: 52px; }
  main { padding-top: 52px; }
  .nav-logo-img { height: 28px; width: 54px; }
}

/* ── First section on inner pages: extra top breathing room ── */
@media (max-width: 860px) {
  section.section[style*="padding-top:3.5rem"],
  section.section[style*="padding-top: 3.5rem"] {
    padding-top: 2.75rem !important;
  }
}
@media (max-width: 480px) {
  section.section[style*="padding-top:3.5rem"],
  section.section[style*="padding-top: 3.5rem"] {
    padding-top: 2.25rem !important;
  }
}
