/* ==========================================================================
   REST TO SLEEP — Core Design System
   "Learn to Rest. Sleep Follows."
   Nocturnal, calm, intelligent, evidence-informed.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Typography & Font Face (Self-Hosted Lora)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Lora';
  src: url('/lora-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('/lora-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design Tokens & Variables
   -------------------------------------------------------------------------- */
:root {
  /* Reading & Canvas Colors (Warm Mist & Ivory) */
  --bg-canvas: #FAF8F5;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F2EDE6;
  --border-subtle: #E2DBD2;
  --border-strong: #C9BFB2;

  --text-main: #1A202C;
  --text-muted: #4A5568;
  --text-faint: #718096;

  /* Nocturnal Contrast Elements (Night / Sanctuary Sections) */
  --bg-midnight: #0B0F15;
  --bg-midnight-surface: #131A24;
  --bg-midnight-alt: #1A2330;
  --border-midnight: #222C3D;
  --text-midnight-main: #F7FAFC;
  --text-midnight-muted: #A0AEC0;
  --text-midnight-faint: #718096;

  /* Accents & Rest Tones */
  --accent-gold: #916E28;            /* High-contrast gold on light canvas (WCAG AA) */
  --accent-gold-light: #C5A059;      /* Radiant gold on dark nocturnal canvas */
  --accent-gold-bg: rgba(197, 160, 89, 0.08);
  --accent-sage: #2C4A3E;           /* Somatic grounding sage */
  --accent-sage-light: #EBF2EE;
  
  /* Evidence Callout States */
  --evidence-known: #1E3A8A;
  --evidence-known-bg: #EFF6FF;
  --evidence-suggested: #065F46;
  --evidence-suggested-bg: #ECFDF5;
  --evidence-uncertain: #92400E;
  --evidence-uncertain-bg: #FFFBEB;

  /* Typography */
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Sizing & Layout */
  --container-max: 1120px;
  --container-narrow: 760px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition-smooth: 0.25s ease;
}

/* --------------------------------------------------------------------------
   3. Reset & Base Elements
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-smooth);
}

a:hover {
  color: #6E531D;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: 1.1rem; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--text-main);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. Layout Containers & Utility Classes
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-spacing {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-spacing-sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gold { color: var(--accent-gold); }

/* --------------------------------------------------------------------------
   5. Site Navigation Header
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color var(--transition-smooth);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-logo-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-main);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-logo-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--accent-gold);
  font-weight: 500;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background-color: var(--text-main);
  color: #FFFFFF;
  text-decoration: none;
  transition: background-color var(--transition-smooth);
}

.nav-cta:hover {
  background-color: #2D3748;
  color: #FFFFFF;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-main);
}

.mobile-menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 4.5rem;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.mobile-nav-panel.is-open {
  display: flex;
}

@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* --------------------------------------------------------------------------
   6. Buttons & Interactive Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  line-height: 1.3;
}

.btn-primary {
  background-color: var(--text-main);
  color: #FFFFFF;
  border-color: var(--text-main);
}

.btn-primary:hover {
  background-color: #2D3748;
  border-color: #2D3748;
  color: #FFFFFF;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--text-main);
  background-color: var(--bg-surface-alt);
}

.btn-gold {
  background-color: var(--accent-gold-light);
  color: #0B0F15;
  border-color: var(--accent-gold-light);
}

.btn-gold:hover {
  background-color: #D6B570;
  border-color: #D6B570;
  color: #0B0F15;
}

.btn-nocturnal-outline {
  background-color: transparent;
  color: var(--text-midnight-main);
  border-color: var(--border-midnight);
}

.btn-nocturnal-outline:hover {
  border-color: var(--text-midnight-muted);
  background-color: var(--bg-midnight-alt);
  color: var(--text-midnight-main);
}

/* --------------------------------------------------------------------------
   7. Hero Sections
   -------------------------------------------------------------------------- */
.hero-home {
  background: linear-gradient(180deg, #0B0F15 0%, #111722 100%);
  color: var(--text-midnight-main);
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

.hero-home::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-midnight), transparent);
}

.hero-tagline-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.hero-title {
  color: var(--text-midnight-main);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-subhead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--text-midnight-muted);
  max-width: 680px;
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Standard Page Header (Light Editorial) */
.page-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.page-header-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.page-header-title {
  margin-bottom: 1rem;
}

.page-header-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. The 5-Step Framework Visual (Understand → Unload → Downshift → Rest → Sleep)
   -------------------------------------------------------------------------- */
.framework-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.framework-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.framework-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.framework-step-num {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.framework-step-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.framework-step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   9. Problem Cards (Recognisable Situations)
   -------------------------------------------------------------------------- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.problem-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-smooth);
}

.problem-card:hover {
  border-color: var(--border-strong);
}

.problem-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.problem-card p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.problem-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.problem-card-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   10. Evidence Architecture & Citation Callouts
   -------------------------------------------------------------------------- */
.evidence-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.evidence-box {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-left: 4px solid;
}

.evidence-box h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.evidence-box p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.evidence-known {
  background-color: var(--evidence-known-bg);
  border-color: var(--evidence-known);
  color: #1E293B;
}
.evidence-known h4 { color: var(--evidence-known); }

.evidence-suggested {
  background-color: var(--evidence-suggested-bg);
  border-color: var(--evidence-suggested);
  color: #064E3B;
}
.evidence-suggested h4 { color: var(--evidence-suggested); }

.evidence-uncertain {
  background-color: var(--evidence-uncertain-bg);
  border-color: var(--evidence-uncertain);
  color: #78350F;
}
.evidence-uncertain h4 { color: var(--evidence-uncertain); }

/* References List */
.references-list {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 3rem;
  font-size: 0.875rem;
}

.references-list h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.references-list ol {
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.references-list li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. Educational Assessment Styles
   -------------------------------------------------------------------------- */
.assessment-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.assessment-disclaimer {
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.assessment-question-block {
  display: none;
  margin-bottom: 1.5rem;
}

.assessment-question-block.active {
  display: block;
}

.assessment-question-text {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.assessment-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.assessment-option {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.assessment-option:hover {
  background-color: var(--bg-surface-alt);
  border-color: var(--border-strong);
}

.assessment-option input[type="radio"] {
  margin-right: 1rem;
  accent-color: var(--accent-gold);
}

.assessment-progress-bar {
  height: 4px;
  background-color: var(--bg-surface-alt);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.assessment-progress-fill {
  height: 100%;
  width: 10%;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.assessment-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Assessment Result Panel */
.assessment-result-panel {
  display: none;
}

.assessment-result-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.assessment-result-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.assessment-result-pattern {
  font-size: 1.75rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   12. Audio Player Component (Zero Preloading)
   -------------------------------------------------------------------------- */
.audio-player-card {
  background: var(--bg-midnight);
  color: var(--text-midnight-main);
  border: 1px solid var(--border-midnight);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.audio-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.audio-track-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-midnight-main);
}

.audio-track-duration {
  font-size: 0.85rem;
  color: var(--text-midnight-muted);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.audio-play-btn {
  background-color: var(--accent-gold-light);
  color: #0B0F15;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-smooth);
}

.audio-play-btn:hover {
  transform: scale(1.05);
}

.audio-play-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.audio-scrubber-track {
  flex-grow: 1;
  height: 6px;
  background-color: var(--border-midnight);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.audio-scrubber-progress {
  height: 100%;
  width: 0%;
  background-color: var(--accent-gold-light);
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   13. Nocturnal Section (Sanctuary / Night Mode Block)
   -------------------------------------------------------------------------- */
.section-nocturnal {
  background-color: var(--bg-midnight);
  color: var(--text-midnight-main);
  border-top: 1px solid var(--border-midnight);
  border-bottom: 1px solid var(--border-midnight);
}

.section-nocturnal h2, .section-nocturnal h3, .section-nocturnal h4 {
  color: var(--text-midnight-main);
}

.section-nocturnal p {
  color: var(--text-midnight-muted);
}

/* --------------------------------------------------------------------------
   14. Forms & Consultation Intake
   -------------------------------------------------------------------------- */
.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  transition: border-color var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-help {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 0.35rem;
}

/* Honeypot field for anti-spam */
.hp-field {
  display: none !important;
  visibility: hidden !important;
}

.form-status-msg {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1.5rem;
  display: none;
  font-size: 0.95rem;
}

.form-status-msg.is-success {
  display: block;
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-status-msg.is-error {
  display: block;
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* --------------------------------------------------------------------------
   15. Breadcrumbs & Author Box
   -------------------------------------------------------------------------- */
.breadcrumb-nav {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}

.breadcrumb-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin-left: 0.4rem;
  margin-right: 0.4rem;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}

.author-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-main);
  flex-shrink: 0;
}

.author-meta h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.author-meta p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   16. Footer & Legal Disclaimers
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-midnight);
  color: var(--text-midnight-muted);
  border-top: 1px solid var(--border-midnight);
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-midnight-main);
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand-tagline {
  color: var(--accent-gold-light);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-midnight-main);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-midnight-muted);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--text-midnight-main);
}

.footer-disclaimer-box {
  background-color: var(--bg-midnight-surface);
  border: 1px solid var(--border-midnight);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 2.5rem;
  font-size: 0.825rem;
  line-height: 1.5;
  color: var(--text-midnight-faint);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-midnight);
  padding-top: 2rem;
  font-size: 0.825rem;
}

@media (max-width: 840px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
