/* ============================================================
   Turning 65 in the Carolinas — shared mobile-first stylesheet
   Loaded by all top-level pages and detail-page templates.
   Convention: base styles target the smallest viewport (320px).
   Layer up with min-width media queries at 480 / 640 / 768 / 1024.
   ============================================================ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --deep-navy:   #1a2a6c;
  --mid-blue:    #2a3f8f;
  --light-blue:  #3a5cbf;
  --periwinkle:  #a8b8e8;
  --accent-blue: #8ab0e8;
  --border:      #4a6ab0;

  --text-body:    #2d3748;
  --text-muted:   #4a5568;
  --text-soft:    #6b7280;
  --text-faint:   #9ca3af;
  --bg-light:     #f4f6f9;
  --bg-card:      #ffffff;
  --border-light: #e2e8f0;

  --grad-hero: linear-gradient(135deg, #1a2a6c 0%, #2a3f8f 60%, #3a5cbf 100%);
  --grad-cta:  linear-gradient(135deg, #1a2a6c 0%, #2a3f8f 50%, #3a5cbf 100%);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  --shadow-card:  0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 6px 24px rgba(26,42,108,0.12);
  --shadow-cta:   0 4px 20px rgba(0,0,0,0.2);
  --shadow-modal: 0 20px 60px rgba(0,0,0,0.35);

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --radius-xl:   16px;
  --radius-pill: 50px;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, iframe {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

a {
  color: var(--mid-blue);
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

/* ─── BASE TYPOGRAPHY (mobile-first) ─────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--deep-navy);
  line-height: 1.2;
}

h1 { font-size: clamp(1.85rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); line-height: 1.25; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1rem; }

p { line-height: 1.7; }

/* ─── LAYOUT PRIMITIVES ──────────────────────────────────── */
.container        { max-width: 1100px; margin: 0 auto; padding: 0 1rem; width: 100%; }
.container-narrow { max-width: 720px;  margin: 0 auto; padding: 0 1rem; width: 100%; }
.container-wide   { max-width: 1280px; margin: 0 auto; padding: 0 1rem; width: 100%; }

.section       { padding: 3rem 1rem; }
.section-light { background: var(--bg-light); }
.section-white { background: #fff; }
.section-dark  { background: var(--grad-cta); color: #fff; }

.aspect-16-9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
.aspect-16-9 > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── SITE NAV ───────────────────────────────────────────── */
.site-nav {
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(74,106,176,0.4);
  color: #fff;
  position: relative;
  flex-wrap: wrap;
  z-index: 100;
  gap: 0.5rem;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}
.nav-brand-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.nav-brand-tag {
  display: none;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--periwinkle);
  font-weight: 400;
  margin-top: 3px;
  white-space: nowrap;
  opacity: 0.8;
}
.nav-right { display: none; }
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* NAV DRAWER (mobile) */
.nav-drawer {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--deep-navy);
  padding: 1rem 1.25rem 1.5rem;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 9999;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer .drawer-cta {
  margin-top: 0.85rem;
  background: #fff;
  color: var(--deep-navy);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
  justify-content: center;
  border-bottom: none;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  line-height: 1.2;
  text-align: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: #fff;
  color: var(--deep-navy);
  border: none;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: rgba(255,255,255,0.92); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); }
.btn-dark {
  background: var(--deep-navy);
  color: #fff;
  border: none;
  box-shadow: 0 4px 18px rgba(26,42,108,0.22);
}
.btn-dark:hover { background: var(--mid-blue); }
.btn-outline-dark {
  background: transparent;
  color: var(--deep-navy);
  border: 1.5px solid var(--deep-navy);
}
.btn-outline-dark:hover { background: rgba(26,42,108,0.05); }
.btn-block { width: 100%; }

.nav-cta-btn {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-md);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--grad-cta);
  padding: 2.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.site-footer-inner {
  width: 100%;
  max-width: 700px;
}
.footer-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.footer-tag {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
  font-weight: 400;
}
.footer-address {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.footer-address a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-bar {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0.5rem;
}
.footer-disclaimer { font-size: 0.75rem; color: rgba(255,255,255,0.4); line-height: 1.65; }
.footer-disclaimer a { color: rgba(255,255,255,0.5); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); margin-top: 0.5rem; }
.footer-copy a { color: rgba(255,255,255,0.3); }
.footer-links { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ─── MODAL (generic, reusable) ───────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,18,45,0.65);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow-y: auto;
}
.modal.open { display: flex; }
body.modal-open { overflow: hidden; }
.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 1.5rem);
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-modal);
}
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1;
}
.modal-close:hover { background: rgba(0,0,0,0.1); }
.modal-body { padding: 2rem 1.25rem 1.5rem; }
.modal-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 1.25rem;
  padding-right: 2.5rem;
}

/* ─── LEAD CAPTURE FORM (modal body, used by gate + intro popup) ─ */
.lead-modal:not(.is-dismissible) .modal-close { display: none; }
.lead-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.lead-form { display: flex; flex-direction: column; gap: 1rem; }
.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--deep-navy);
}
.lead-form input,
.lead-form select {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font: inherit;
  color: var(--text-body);
  background: #fff;
}
.lead-form input:focus,
.lead-form select:focus {
  outline: 2px solid var(--mid-blue);
  outline-offset: 1px;
  border-color: var(--mid-blue);
}
.lead-form .btn { margin-top: 0.5rem; }
.lead-error { color: #c0392b; font-size: 0.85rem; }

/* ─── VIDEO GATE FACADE (per-video detail pages before unlock) ── */
.video-gate-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: #fff;
  background-color: #000;
  background-size: cover;
  background-position: center;
}
.video-gate-facade::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(26,42,108,0.4), rgba(26,42,108,0.62));
}
.video-gate-play {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-gate-play svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.video-gate-label { position: relative; font-size: 1rem; font-weight: 600; }

/* ─── PAGE HERO (used by /articles, /videos, /workshops, /about) ─ */
.page-hero {
  background: var(--grad-hero);
  padding: 3rem 1rem 3.5rem;
  text-align: center;
  color: #fff;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-hero h1 span { color: var(--accent-blue); }
.page-hero p {
  font-size: 1rem;
  color: var(--periwinkle);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto;
}
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(168,184,232,0.12);
  border: 1px solid rgba(168,184,232,0.3);
  color: var(--periwinkle);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* ─── CTA BANNER ─────────────────────────────────────────── */
.cta-banner {
  background: var(--grad-cta);
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 6vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 680px;
}
.cta-headline span { color: var(--accent-blue); }
.cta-sub {
  font-size: 1rem;
  color: var(--periwinkle);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 1.75rem;
}
.cta-buttons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 360px;
}
.cta-buttons .btn { flex: 1 1 auto; }

/* ─── SECTION LABELS (eyebrow + headline pattern) ────────── */
.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  font-weight: 600;
  color: var(--mid-blue);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  display: block;
}
.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--deep-navy);
  line-height: 1.2;
  margin-bottom: 2rem;
}

/* ============================================================
   RESPONSIVE — min-width breakpoints (mobile-first layered)
   480px : tiny tablet / large phone landscape
   640px : small tablet portrait
   768px : tablet / desktop nav kicks in
   1024px: full desktop layout
   ============================================================ */

@media (min-width: 480px) {
  .modal { padding: 1rem; }
}

@media (min-width: 640px) {
  .site-nav { padding: 1rem 1.5rem; }
  .container,
  .container-narrow,
  .container-wide { padding: 0 1.5rem; }
  .section       { padding: 4rem 1.5rem; }
  .page-hero     { padding: 4rem 1.5rem 4.5rem; }
  .cta-banner    { padding: 4rem 1.5rem; }
  .site-footer   { padding: 3rem 1.5rem; }
  .modal-body    { padding: 2.25rem 1.75rem 2rem; }
  .modal-title   { font-size: 1.4rem; }
  .nav-brand-title { font-size: 1.35rem; }
  .cta-buttons   { max-width: none; }
  .cta-buttons .btn { flex: 0 1 auto; }
}

@media (min-width: 768px) {
  .site-nav { padding: 1rem 2rem; }
  .nav-brand-title { font-size: 1.5rem; }
  .nav-brand-tag   { display: block; }
  .nav-right {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-shrink: 0;
  }
  .nav-hamburger { display: none; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
  }
  .nav-links a {
    color: var(--periwinkle);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.5rem 0;
  }
  .nav-links a.active { color: #fff; font-weight: 600; }

  .container,
  .container-narrow,
  .container-wide { padding: 0 2rem; }
  .section     { padding: 4.5rem 2rem; }
  .page-hero   { padding: 5rem 2rem 5.5rem; }
  .cta-banner  { padding: 5rem 2rem; }
  .site-footer { padding: 3rem 2rem; }

  .page-hero h1 { font-size: clamp(2.4rem, 4vw, 3.2rem); }

  .footer-address {
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .site-nav { padding: 1rem 2.5rem; }
  .nav-brand-title { font-size: 1.65rem; }
  .nav-right { gap: 2rem; }
  .nav-links { gap: 2rem; }
  .container,
  .container-narrow,
  .container-wide { padding: 0 2.5rem; }
  .section     { padding: 5rem 2.5rem; }
  .page-hero   { padding: 5rem 2.5rem 6rem; }
  .cta-banner  { padding: 5rem 2.5rem; }
  .site-footer { padding: 3rem 2.5rem; }
}
