/* ═══════════════════════════════════════════════
   NNMCCD — SHARED SITE STYLES
   Linked from every page. Defines canonical
   variables, nav, footer and base typography.
   ═══════════════════════════════════════════════ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --forest:       #1a3d2b;
  --forest-mid:   #1e4a34;
  --forest-card:  #2a5c43;
  --forest-soft:  #366b50;
  --forest-deep:  #0f2013;
  --cream:        #f7f3ec;
  --cream-mid:    #efe9df;
  --white:        #ffffff;
  --sage:         #5a8f56;
  --sage-light:   #7ab576;
  --amber:        #c97d45;
  --amber-light:  #dfa06a;
  --ink:          #1a2e1c;
  --ink-mid:      #3a5040;
  --ink-soft:     #4a6050;
  --text-dark:    #1a2e1c;
  --text-mid:     #3a5040;
  --text-muted:   #4a6050;
  --text-on-dark: #edf2ec;
  --border:       #c8d5c4;
  --border-light: #dce8d8;
  --font-serif:   'Lora', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-mono:    'Courier New', monospace;
  --r-lg:         16px;
  --text-muted-dark: rgba(237,242,236,0.65);
  --max:          1200px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── BASE TYPOGRAPHY ── */
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.8;
  font-size: 16px;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest);
  border-bottom: 1px solid rgba(90,143,86,0.25);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 32px;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 13px;
  color: rgba(237,242,236,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: #edf2ec; }
.nav-cta {
  background: var(--sage) !important;
  border: 2px solid rgba(122,181,118,0.6) !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-links.nav-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--forest);
  padding: 16px 32px;
  gap: 16px;
  border-bottom: 1px solid rgba(90,143,86,0.25);
  z-index: 99;
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block !important; }
  .nav-inner { padding: 0 20px; }
}

/* ── FOOTER ── */
footer {
  background: var(--forest);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 40px 24px;
  font-size: 13px;
  line-height: 2;
}
footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
footer a:hover { color: white; }
.footer-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ── LAYOUT UTILITY ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ── HERO BANNER (shared across subpages) ── */
.hero {
  background: var(--forest);
  color: var(--text-on-dark);
  padding: 60px 32px 56px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 400;
  color: var(--text-on-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}
.hero-sub, .hero > p, .hero-inner > div > p:not(.hero-quote) {
  font-size: 15px;
  color: rgba(237,242,236,0.75);
  max-width: 600px;
  line-height: 1.8;
}
/* Hero card quote must be dark on beige background */
.hero-quote {
  color: var(--ink) !important;
}
.hero-card p {
  color: var(--ink) !important;
}

/* ═══════════════════════════════════════════════
   MOBILE / RESPONSIVE — global additions
   ═══════════════════════════════════════════════ */

/* ── 860px BREAKPOINT ── */
@media (max-width: 860px) {

  /* Section padding: 80px → 48px */
  [class*="section-"] { padding: 48px 0 !important; }

  /* Heard + articles 3-column → 1 column */
  .heard-grid-mobile { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Hero stats 2-column → 1 column */
  .hero-stats-grid { grid-template-columns: 1fr !important; }

  /* Hero layout: text + card stack vertically */
  .hero-inner { grid-template-columns: 1fr !important; gap: 32px !important; padding: 0 20px !important; }

  /* Offer split, membership grid, etc — already handled in page style; reinforce */
  .offer-split, .membership-grid, .articles-grid, .pdf-row { grid-template-columns: 1fr !important; }

  /* Touch targets */
  .btn-primary, .btn-ghost, .btn-ghost-light, .nav-cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Partners page footer grid → 1 column */
  .partner-footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; padding: 32px 20px !important; }

  /* Cookie banner: stack vertically on mobile */
  #cookie-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px !important;
    gap: 12px !important;
  }
  #cookie-banner > div:last-child {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
}

/* ── 600px BREAKPOINT ── */
@media (max-width: 600px) {

  /* Prevent iOS auto-zoom on focus */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* ── 480px BREAKPOINT ── */
@media (max-width: 480px) {

  /* Extra padding reduction on very small screens */
  [class*="section-"] { padding: 40px 0 !important; }

  /* Hero padding */
  .hero { padding: 56px 0 48px !important; }

  /* Section headings */
  .section-h2 { font-size: clamp(22px, 6vw, 30px) !important; margin-bottom: 24px !important; }

  /* Nav height can shrink slightly */
  .nav-inner { height: 60px !important; }
}
