/* ============================================
   BRIGHT FUTURES FOUNDATION — SHARED STYLES
   Version: 1.0
   Updated: May 2026

   Single source of truth for all pages.
   Covers: design tokens, reset, nav, footer,
   buttons, typography classes, reveals, and
   responsive breakpoints.

   Page-specific styles (hero, sections) live
   in each page's own <style> block or a
   separate page-level CSS file.
   ============================================ */


/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Primary */
  --amber: #BF6B2B;
  --foundry-blue: #112B4A;

  /* Secondary */
  --catalyst-teal: #17806E;
  --harvest-gold: #C4A044;
  --storm: #546478;

  /* Accent / Functional */
  --ignite: #E06030;
  --verified-green: #2C8555;
  --alert-red: #BE3D3D;
  --caution: #CC952B;
  --reference-blue: #3C7DB8;

  /* Neutrals */
  --ink: #1B1F26;
  --graphite: #3C4149;
  --pewter: #878E97;
  --haze: #E6E8EB;
  --ivory: #F8F6F3;
  --white: #FFFFFF;

  /* Accessible text variants — use on light backgrounds */
  --amber-dark: #8C4E1F;
  --catalyst-dark: #0F5C50;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
}


/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}


/* ============================================
   FOCUS STYLES
   ============================================ */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}


/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--foundry-blue);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.nav__logo {
  display: block;
  height: 64px;
}

.nav__logo img {
  height: 100%;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav__link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.nav__link:hover { color: var(--white); }

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--amber);
  transition: width 0.3s ease;
}

.nav__link:hover::after { width: 100%; }

.nav__link--cta {
  font-weight: 600;
  color: var(--white);
  background: var(--amber);
  padding: 9px 28px;
  border-radius: 3px;
  transition: background 0.2s ease;
}

.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: #a85d25; }

.nav__toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}

.nav__toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3.25px) rotate(-45deg);
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer; border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 3px;
}

.btn--primary {
  background: var(--amber);
  color: var(--white);
  padding: 14px 32px;
}

.btn--primary:hover { background: #a85d25; }

.btn--ghost-light {
  background: none;
  color: rgba(255,255,255,0.72);
  padding: 14px 0;
  border-bottom: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 0;
}

.btn--ghost-light:hover {
  color: var(--white);
  border-color: var(--white);
}

.btn--ghost {
  background: none;
  color: var(--foundry-blue);
  padding: 14px 0;
  border-bottom: 1.5px solid var(--foundry-blue);
  border-radius: 0;
}

.btn--ghost:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.btn__arrow { transition: transform 0.2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }


/* ============================================
   SHARED TYPOGRAPHY CLASSES
   ============================================ */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.eyebrow--storm { color: var(--storm); }
.eyebrow--faded { color: rgba(255,255,255,0.35); }

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--foundry-blue);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.headline--lg { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.headline--xl { font-size: clamp(2rem, 3.5vw, 2.5rem); }

/* Inline highlight — accessible amber for light backgrounds */
.hl {
  color: var(--amber-dark);
  font-weight: 600;
}

.hl--white {
  color: var(--white);
  font-weight: 600;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--foundry-blue);
  padding: 48px 0 32px;
  border-top: 2px solid var(--amber);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__logo {
  display: block;
  height: 52px;
  margin-bottom: 12px;
}

.footer__logo img {
  height: 100%;
  width: auto;
  display: block;
}

.footer__tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}

.footer__nav {
  display: flex;
  gap: 56px;
}

.footer__nav-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.footer__nav-col ul { list-style: none; }
.footer__nav-col li + li { margin-top: 8px; }

.footer__nav-col a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__nav-col a:hover { color: var(--white); }

.footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.2);
}


/* ============================================
   REVEALS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }


/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn__arrow,
  .nav__link::after,
  .nav__toggle span {
    transition: none;
  }
}


/* ============================================
   RESPONSIVE — SHARED
   ============================================ */
@media (max-width: 960px) {
  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 4px; }
}

@media (max-width: 640px) {
  .container { padding: 0 24px; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 96px; left: 0; right: 0;
    background: var(--foundry-blue);
    padding: 24px 24px 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 16px;
  }
  .nav__toggle { display: flex; }
}
