/* ═══════════════════════════════════════════
   NHC HEALTH CENTRES — SHARED DESIGN SYSTEM
   Load on every page before page-specific CSS
═══════════════════════════════════════════ */

:root {
  --ink: #0f1a14;
  --deep: #162b1f;
  --teal: #1a7a5e;
  --teal-light: #22a07c;
  --teal-dim: rgba(26,122,94,0.1);
  --teal-border: rgba(26,122,94,0.2);
  --sage: #e8f2ee;
  --paper: #f7f9f7;
  --white: #ffffff;
  --muted: rgba(15,26,20,0.5);
  --faint: rgba(15,26,20,0.07);
  --border: rgba(15,26,20,0.1);
  --warm: #f5f0eb;
  --red: #e05555;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── ANNOUNCEMENT BAR ── */
.announce-bar {
  background: var(--teal);
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.announce-bar a { color: white; font-weight: 600; text-decoration: underline; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 60px;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(15,26,20,0.08); }

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 22px; height: 22px; }
.nav-logo-text strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 18px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1;
}
.nav-logo-text span {
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.nav-links a {
  display: block; padding: 8px 14px;
  font-size: 14px; color: var(--muted);
  text-decoration: none; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--faint); }
.nav-links a.active { color: var(--teal); font-weight: 500; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── BUTTONS ── */
.btn-solid {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: var(--teal); color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  text-decoration: none; border: none;
  border-radius: 8px; cursor: pointer;
  transition: background 0.2s; white-space: nowrap;
}
.btn-solid:hover { background: var(--teal-light); }
.btn-solid.lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: none; color: var(--teal);
  border: 1.5px solid var(--teal);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  text-decoration: none; border-radius: 8px;
  cursor: pointer; transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--teal); color: white; }
.btn-outline.lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--teal);
  text-decoration: none; font-weight: 500;
  transition: gap 0.2s;
}
.btn-ghost:hover { gap: 10px; }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  z-index: 300;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.mobile-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 250;
  background: white;
  flex-direction: column;
  padding: 90px 32px 40px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  overflow-y: auto;
}
.mobile-drawer.open { opacity: 1; pointer-events: all; }
.mobile-drawer nav-links-mob { list-style: none; }
.mobile-drawer ul { list-style: none; }
.mobile-drawer ul li { border-bottom: 1px solid var(--border); }
.mobile-drawer ul a {
  display: block; padding: 18px 0;
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 300;
  color: var(--ink); text-decoration: none;
  transition: color 0.2s;
}
.mobile-drawer ul a:hover,
.mobile-drawer ul a.active { color: var(--teal); }
.mobile-drawer-actions {
  margin-top: 32px; display: flex; flex-direction: column; gap: 12px;
}

/* ── SECTION SHARED ── */
section { padding: 100px 60px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal); font-weight: 500; margin-bottom: 14px;
}
.section-eyebrow::before {
  content: ''; width: 18px; height: 1.5px; background: var(--teal);
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 300; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--ink);
}
.section-title em { font-style: italic; color: var(--teal); }
.section-body {
  font-size: 16px; color: var(--muted);
  line-height: 1.8; margin-top: 16px; max-width: 560px;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--paper);
  padding: 80px 60px 72px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(26,122,94,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-breadcrumb {
  font-size: 12px; color: var(--muted);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.page-hero-breadcrumb a { color: var(--teal); text-decoration: none; }
.page-hero-breadcrumb a:hover { text-decoration: underline; }
.page-hero-eyebrow { margin-bottom: 16px; }
.page-hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 300; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--ink);
  max-width: 700px; margin-bottom: 20px;
}
.page-hero-title em { font-style: italic; color: var(--teal); }
.page-hero-sub {
  font-size: 17px; color: var(--muted);
  line-height: 1.75; max-width: 560px;
}

/* ── PILLS / TAGS ── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-dim); border: 1px solid var(--teal-border);
  padding: 5px 12px; border-radius: 100px;
  font-size: 12px; color: var(--teal); font-weight: 500;
  letter-spacing: 0.03em;
}
.pill::before { content: ''; width: 5px; height: 5px; background: var(--teal); border-radius: 50%; }

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.form-input, .form-select, .form-textarea {
  padding: 12px 16px;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 8px; color: var(--ink);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  outline: none; transition: border-color 0.2s;
  appearance: none; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
  background: white;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── FOOTER ── */
footer {
  background: var(--deep);
  padding: 72px 60px 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; text-decoration: none;
}
.footer-brand-logo .nav-logo-mark { background: rgba(26,122,94,0.4); }
.footer-brand-name {
  font-family: 'Fraunces', serif;
  font-size: 18px; font-weight: 400; color: white;
}
.footer-tagline {
  font-size: 13px; color: rgba(255,255,255,0.4);
  line-height: 1.65; max-width: 250px; margin-bottom: 24px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: rgba(255,255,255,0.45);
  font-size: 13px; font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--teal); color: white; }
.footer-col-title {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 18px; font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px; color: rgba(255,255,255,0.55);
  text-decoration: none; transition: color 0.2s;
}
.footer-col ul a:hover { color: white; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-bottom a { color: rgba(26,122,94,0.7); text-decoration: none; }
.footer-bottom a:hover { color: var(--teal-light); }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-drawer { display: flex; }
  section { padding: 72px 20px; }
  .page-hero { padding: 60px 20px 56px; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 56px 20px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
