/* ============================================================
   New Horizons Primary Care
   Design system — inspired by getgrav.org (event-horizon theme)
   Dark palette  ·  Purple + Blue accent DNA
   ============================================================ */

/* ── Google Fonts (matching getgrav.org typography) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Design tokens (mirroring getgrav.org CSS variables) ── */
:root {
  --bg:              #15151A;
  --bg-elevated:     #1D1D24;
  --bg-subtle:       #23232C;
  --surface-1:       #2A2A34;
  --surface-2:       #33333F;
  --surface-3:       #3E3E4E;

  --fg:              #FAFAFA;
  --fg-muted:        #A6A6B0;
  --fg-subtle:       #6B6B78;

  --border:          rgba(255,255,255,0.08);
  --border-strong:   rgba(255,255,255,0.14);

  --purple:          #8428DF;
  --purple-bright:   #A855F7;
  --purple-soft:     rgba(132,40,223,0.18);
  --purple-glow:     rgba(132,40,223,0.40);

  --blue:            #2F9EFF;
  --blue-bright:     #5FB3FF;
  --blue-soft:       rgba(47,158,255,0.15);

  --success:         #10D981;
  --warning:         #F5B94F;
  --danger:          #F2365A;

  --gradient-hero:   linear-gradient(135deg, #8428DF 0%, #2F9EFF 100%);
  --gradient-text:   linear-gradient(90deg, #FAFAFA 0%, #A855F7 55%, #2F9EFF 100%);
  --glow-radial:     radial-gradient(60% 80% at 50% 0%, rgba(132,40,223,0.35) 0%, rgba(132,40,223,0) 70%);

  --shadow-sm:  0 2px 8px rgba(0,0,0,.45);
  --shadow-md:  0 8px 24px rgba(0,0,0,.55), 0 0 0 1px rgba(47,158,255,0.06);
  --shadow-lg:  0 24px 56px rgba(0,0,0,.65), 0 0 0 1px rgba(47,158,255,0.08);
  --glow-ring:  0 0 0 1px rgba(132,40,223,0.35), 0 0 32px -4px rgba(132,40,223,0.45);

  --font:        'Inter', ui-sans-serif, system-ui, sans-serif;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   22px;
  --radius-pill: 999px;

  --nav-h:       64px;
  --container:   1160px;
  --pad:         1.5rem;

  color-scheme: dark;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-bright); text-decoration: none; }
a:hover { color: var(--fg); }
ul { list-style: none; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Gradient text utility ── */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────
   NAVIGATION  (mirrors getgrav.org dark nav)
───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(21,21,26,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

/* Brand */
.site-brand .brand-link { display: flex; align-items: center; gap: 0.6rem; color: var(--fg); }
.brand-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.brand-tagline {
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav links */
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-list { display: flex; align-items: center; gap: 0.1rem; }
.nav-link {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-item.active .nav-link {
  color: var(--fg);
  background: var(--surface-1);
}

/* CTA button in nav */
.nav-cta {
  margin-left: 0.75rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--gradient-hero);
  color: #fff;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 var(--purple-glow);
}
.nav-cta:hover { opacity: 0.9; box-shadow: 0 0 24px -4px var(--purple-glow); color: #fff; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg-muted); border-radius: 2px; }

/* ── Page banner (inner pages) ── */
.page-banner {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}
.page-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.breadcrumbs { font-size: 0.82rem; color: var(--fg-subtle); margin-top: 0.5rem; }
.breadcrumbs a { color: var(--fg-muted); }
.breadcrumbs a:hover { color: var(--fg); }

/* ─────────────────────────────────────────
   HERO  (dark + purple→blue gradient, radial glow)
   — matches getgrav.org hero visual system
───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}

/* Radial glow behind hero content — same as getgrav.org --grav-glow-radial */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glow-radial);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 740px;
  padding: 7rem var(--pad) 6rem;
}

/* Chip badge (like getgrav.org "Stable 2.0.13") */
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-1);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 1.75rem;
}
.hero-chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* Grav logo used as hero image decoration */
.hero-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
  filter: drop-shadow(0 0 24px rgba(132,40,223,0.6));
  animation: hero-float 4s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ─────────────────────────────────────────
   BUTTONS  (getgrav.org button style)
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-hero);
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover { opacity: 0.88; box-shadow: 0 0 28px -4px var(--purple-glow); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--fg-muted);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--surface-1); color: var(--fg); border-color: rgba(255,255,255,0.2); }
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; justify-content: center; margin-top: 0.6rem; }

/* ─────────────────────────────────────────
   ANNOUNCEMENT BAR
───────────────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, rgba(132,40,223,0.12) 0%, rgba(47,158,255,0.08) 100%);
  border-bottom: 1px solid var(--border-strong);
  padding: 0.7rem 0;
  font-size: 0.875rem;
  text-align: center;
  color: var(--fg-muted);
}
.announcement-bar strong { color: var(--fg); }
.announcement-bar a { color: var(--blue-bright); }

/* ─────────────────────────────────────────
   FEATURE CARDS  (getgrav.org card style)
───────────────────────────────────────── */
.features-section {
  padding: 5rem 0;
  background: var(--bg);
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 3rem;
}
.text-center { text-align: center; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.feature-card {
  background: var(--bg-elevated);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-subtle); }
.feature-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  margin-bottom: 1rem;
  font-family: monospace;
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--purple-soft);
  border: 1px solid rgba(132,40,223,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--purple-bright);
}
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--fg); }
.feature-body { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.6; }

/* ─────────────────────────────────────────
   HOME CONTENT SPLIT
───────────────────────────────────────── */
.home-content { padding: 5rem 0; background: var(--bg-elevated); }
.content-split {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
/* Content area */
.content-main h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.content-main h2:first-child { margin-top: 0; }
.content-main h3 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 0.4rem; color: var(--fg); }
.content-main p  { margin-bottom: 1rem; color: var(--fg-muted); }
.content-main ul { padding-left: 1.25rem; list-style: none; margin-bottom: 1rem; }
.content-main li {
  margin-bottom: 0.45rem;
  color: var(--fg-muted);
  padding-left: 1rem;
  position: relative;
}
.content-main li::before {
  content: '→';
  position: absolute;
  left: -0.25rem;
  color: var(--purple-bright);
  font-size: 0.85em;
}
.content-main strong { color: var(--fg); }
.content-main blockquote {
  border-left: 2px solid var(--purple);
  padding: 0.75rem 1.25rem;
  background: var(--surface-1);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  color: var(--fg-muted);
  font-style: italic;
}

/* Sidebar cards */
.content-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h3 { font-size: 0.925rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--fg); }
.sidebar-card p  { font-size: 0.825rem; color: var(--fg-muted); margin-bottom: 0; line-height: 1.5; }
.card-appointment { border-top: 2px solid var(--purple); }
.card-portal      { border-top: 2px solid var(--blue); }
.card-redirect    { border-top: 2px solid var(--warning); }

/* ─────────────────────────────────────────
   INNER PAGE CONTENT
───────────────────────────────────────── */
.page-content { padding: 3.5rem 0 5rem; }
.content-body { max-width: 780px; }
.content-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.content-body h2:first-child { margin-top: 0; }
.content-body h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 0.4rem; color: var(--fg); }
.content-body p  { margin-bottom: 1rem; color: var(--fg-muted); }
.content-body ul { list-style: none; padding-left: 1.25rem; margin-bottom: 1rem; }
.content-body ul li { padding-left: 1rem; position: relative; margin-bottom: 0.4rem; color: var(--fg-muted); }
.content-body ul li::before { content: '→'; position: absolute; left: -0.25rem; color: var(--purple-bright); font-size: 0.85em; }
.content-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.content-body ol li { margin-bottom: 0.4rem; color: var(--fg-muted); }
.content-body strong { color: var(--fg); }
.content-body a { color: var(--blue-bright); }
.content-body a:hover { color: var(--fg); }
.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.content-body th, .content-body td { border: 1px solid var(--border); padding: 0.65rem 1rem; text-align: left; }
.content-body th { background: var(--surface-1); font-weight: 600; color: var(--fg); }
.content-body td { color: var(--fg-muted); }
.content-body blockquote {
  border-left: 2px solid var(--purple);
  padding: 0.75rem 1.25rem;
  background: var(--surface-1);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  color: var(--fg-muted);
  font-style: italic;
}
.content-body hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ─────────────────────────────────────────
   FOOTER  (dark, 3-col like getgrav.org)
───────────────────────────────────────── */
.site-footer {
  background: #0A0A0C;
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.75fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand .brand-name { font-size: 1.05rem; font-weight: 700; color: var(--fg); margin-bottom: 0.6rem; }
.footer-brand p { font-size: 0.85rem; color: var(--fg-subtle); line-height: 1.65; }
.footer-contact { margin-top: 1rem; font-size: 0.825rem; color: var(--fg-muted); line-height: 1.8; }
.footer-contact a { color: var(--blue-bright); }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--fg-muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--fg); }
.footer-hours table { font-size: 0.825rem; border-collapse: collapse; }
.footer-hours td { padding: 0.2rem 1rem 0.2rem 0; color: var(--fg-subtle); }
.footer-hours td:first-child { color: var(--fg-muted); font-weight: 500; }
.emergency-note { margin-top: 0.75rem; font-size: 0.78rem; color: var(--danger); opacity: 0.85; }
.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--fg-subtle);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--fg-subtle); }
.footer-bottom a:hover { color: var(--fg); }
.footer-note { color: var(--fg-subtle); opacity: 0.7; font-size: 0.73rem; }

/* ─────────────────────────────────────────
   TREATMENT INDEX
───────────────────────────────────────── */
.treatment-index { padding: 3rem 0 5rem; }

.treatment-intro { max-width: 780px; margin-bottom: 2.5rem; }
.treatment-intro h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.treatment-intro p  { color: var(--fg-muted); margin-bottom: 0.75rem; }
.treatment-intro a  { color: var(--blue-bright); }
.treatment-intro strong { color: var(--fg); }

.condition-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.condition-search-wrap {
  position: relative;
  flex: 1 1 300px;
  max-width: 520px;
}
.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-subtle);
  pointer-events: none;
}
.condition-search {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  font-size: 0.9rem;
  color: var(--fg);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.condition-search::placeholder { color: var(--fg-subtle); }
.condition-search:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}
.condition-count {
  font-size: 0.8rem;
  color: var(--fg-subtle);
  white-space: nowrap;
}

.condition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.condition-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--surface-3);
  border-radius: var(--radius-md);
  color: var(--fg-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-left-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.condition-card:hover {
  background: var(--bg-subtle);
  border-left-color: var(--purple-bright);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.condition-card-title { flex: 1; }
.condition-card-arrow {
  flex-shrink: 0;
  opacity: 0;
  color: var(--purple-bright);
  transition: opacity 0.15s, transform 0.15s;
}
.condition-card:hover .condition-card-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.condition-no-results {
  text-align: center;
  color: var(--fg-muted);
  padding: 3rem 0;
  font-size: 0.9rem;
}
.condition-no-results a { color: var(--blue-bright); }

.treatment-cta {
  margin-top: 3rem;
  padding: 2rem 2.25rem;
  background: linear-gradient(135deg, rgba(132,40,223,0.1) 0%, rgba(47,158,255,0.07) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.treatment-cta p { color: var(--fg-muted); font-size: 0.925rem; max-width: 580px; margin: 0; }
.treatment-cta strong { color: var(--fg); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .content-split { grid-template-columns: 1fr; }
  .content-sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar-card { flex: 1 1 220px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(21,21,26,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--pad) 1.5rem;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; width: 100%; gap: 0.1rem; }
  .nav-link { display: block; padding: 0.6rem 0.85rem; }
  .nav-cta  { width: 100%; text-align: center; margin-left: 0; margin-top: 0.5rem; }
  .hero-inner { padding: 5rem var(--pad) 4rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-title { font-size: 1.5rem; }
}
