@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #123B4A;
  --accent: #2FA7A0;
  --bg: #F7F9F8;
  --white: #FFFFFF;
  --text: #172126;
  --muted: #68777C;
  --line: #E3E9E8;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; background: var(--white);
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
}
.brand { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.01em; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--primary); color: #fff; padding: 11px 22px; border-radius: 6px;
  font-size: 0.88rem; font-weight: 600; transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--accent); }

.header-right { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  font-size: 1.15rem; cursor: pointer; color: var(--primary);
}

@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; box-shadow: 0 8px 18px rgba(18,59,74,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-cta { margin-top: 8px; }
  .menu-toggle { display: flex; }
}

/* Layout */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

.section { padding: 70px 0; }
.section-eyebrow { color: var(--accent); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.section-title { font-size: 2rem; margin-bottom: 14px; }
.section-subtitle { color: var(--muted); font-size: 1rem; max-width: 560px; margin-bottom: 40px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center;
  padding: 60px 0 80px;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 40px 0 50px; } }
.hero h1 { font-size: 2.7rem; line-height: 1.15; margin-bottom: 18px; color: var(--primary); }
.hero p { color: var(--muted); font-size: 1.05rem; margin-bottom: 30px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--primary); color: #fff; border: none; padding: 15px 28px; border-radius: 8px;
  font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: background 0.15s ease; display: inline-block;
}
.btn-primary:hover { background: var(--accent); }
.btn-secondary {
  background: transparent; color: var(--primary); border: 1.5px solid var(--primary);
  padding: 15px 28px; border-radius: 8px; font-size: 0.92rem; font-weight: 600; cursor: pointer; display: inline-block;
}
.btn-secondary:hover { background: var(--primary); color: #fff; }
.hero-image { border-radius: 20px; overflow: hidden; aspect-ratio: 4/3.2; background: var(--line); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Cards grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.service-card, .provider-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover, .provider-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(18,59,74,0.08); }
.service-card img, .provider-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.provider-card img { aspect-ratio: 3/3.6; }
.card-body { padding: 20px; }
.card-eyebrow { color: var(--accent); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.card-title { font-size: 1.05rem; margin-bottom: 8px; color: var(--primary); }
.card-desc { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; }
.card-link { color: var(--primary); font-weight: 600; font-size: 0.86rem; }
.card-link:hover { color: var(--accent); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step-num { font-size: 0.78rem; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.step-title { font-size: 1.05rem; color: var(--primary); }

/* Patient portal preview */
.portal-preview {
  background: var(--primary); border-radius: 20px; padding: 50px 40px; color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 800px) { .portal-preview { grid-template-columns: 1fr; padding: 36px 24px; } }
.portal-preview h2 { color: #fff; }
.portal-preview p { color: rgba(255,255,255,0.75); }
.portal-card { background: #fff; border-radius: 14px; padding: 24px; color: var(--text); }
.portal-card-greeting { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.portal-card-appt { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.portal-badge { display: inline-block; background: #E6F5F3; color: var(--accent); font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-top: 10px; }

/* Why section */
.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .why-list { grid-template-columns: 1fr; } }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex-shrink: 0; }
.why-item h4 { color: var(--primary); font-size: 0.98rem; margin-bottom: 4px; }
.why-item p { color: var(--muted); font-size: 0.88rem; }

/* Final CTA */
.final-cta { text-align: center; padding: 80px 24px; }
.final-cta h2 { color: var(--primary); margin-bottom: 12px; }
.final-cta p { color: var(--muted); margin-bottom: 30px; }

.empty-state { padding: 60px 0; text-align: center; color: var(--muted); }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 30px 0; text-align: center; font-size: 0.8rem; color: var(--muted); background: var(--white); }

.page-header { padding: 50px 0 10px; }
.page-header h1 { font-size: 2.1rem; color: var(--primary); margin-bottom: 10px; }
.page-header p { color: var(--muted); }
