:root {
  --cream: #faf6f0;
  --cream-2: #f4eee4;
  --navy: #1b144f;
  --navy-2: #261c63;
  --navy-soft: #3a2d7a;
  --red: #e70d3d;
  --red-dark: #c00a33;
  --ink: #14113a;
  --muted: #6a6580;
  --border: #e2dccf;
  --max: 1160px;
  --nav-h: 64px;
  --banner-h: 42px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Familjen Grotesk', sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* === TYPOGRAPHY === */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 1rem;
  text-align: center;
}

.eyebrow-accent { color: var(--red); }

.section-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 1rem;
  text-align: center;
  color: var(--navy);
}

.section-lead {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 3rem;
  color: var(--muted);
  font-size: 1rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  min-height: 44px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
  border-radius: 0;
}

.btn-filled {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-filled:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 42px;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
}

.brand-mark {
  display: flex;
  align-items: center;
  color: var(--navy);
}

.brand-name {
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 160ms ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-links a:not(.nav-cta):hover { color: var(--red); }

.nav-cta {
  color: #fff !important;
  padding: 10px 22px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* === HERO === */
.hero {
  background: var(--cream);
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero .eyebrow { margin-bottom: 1.5rem; }

.hero-title {
  font-size: clamp(3rem, 12vw, 7.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
  margin: 0 0 1.5rem;
  color: var(--navy);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--red);
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

/* Book-spine decorative strip */
.shelf-deco {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 80px;
  margin-top: 2.5rem;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.shelf-deco span {
  display: block;
  width: 14px;
  background: var(--navy);
  border-radius: 0;
  opacity: 0.12;
}
.shelf-deco span:nth-child(3n) { background: var(--red); opacity: 0.22; }
.shelf-deco span:nth-child(4n) { background: var(--navy); opacity: 0.18; }
.shelf-deco span:nth-child(5n) { background: var(--red); opacity: 0.14; }
.shelf-deco span:nth-child(7n) { opacity: 0.08; }

/* === TRUST PILLS === */
.trust {
  background: var(--cream-2);
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-inner { text-align: center; }

.pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pills li {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 8px 18px;
  background: transparent;
}

/* === SERVICES MENU === */
.services {
  background: var(--cream);
  padding: 100px 0;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  margin: 0 auto;
}

.menu-item {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.menu-head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.menu-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  min-width: 2rem;
}

.menu-name {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--navy);
  line-height: 1.15;
}

.menu-desc {
  margin: 0.5rem 0 0 3.5rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 540px;
}

/* === BANNER BAND === */
.banner-band {
  background: var(--navy);
  padding: 24px 0;
  text-align: center;
  overflow: hidden;
}
.banner-band img {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.banner-band-sm { padding: 16px 0; }

/* === COMMUNITY === */
.community {
  background: var(--cream-2);
  padding: 100px 0;
}

.community-inner { max-width: 720px; }

.community-body p {
  margin: 0 0 1rem;
  color: var(--ink);
  line-height: 1.7;
}

.community-body p:first-of-type {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
}

.fund-card {
  margin-top: 2.5rem;
  padding: 28px;
  background: var(--navy);
  color: #fff;
  border-left: 4px solid var(--red);
}

.fund-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.fund-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
}

/* === ABOUT === */
.about {
  background: var(--cream);
  padding: 100px 0;
}

.about-inner { max-width: 720px; }

.about-body p {
  margin: 0 0 1rem;
  line-height: 1.7;
}

.about-body p:first-of-type {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
}

/* === FINAL CTA === */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 100px 0;
}

.cta-inner { text-align: center; }

.cta-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0 0 1rem;
  color: #fff;
}

.cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 4rem;
}

.cta-actions .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.cta-actions .btn-outline:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  margin: 0 0 0.75rem;
}

.contact-val {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.contact-val a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 160ms ease;
}
.contact-val a:hover { color: #fff; }

.hours-table {
  border-collapse: collapse;
  width: 100%;
}
.hours-table td {
  padding: 4px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}
.hours-table td:last-child {
  text-align: right;
  color: rgba(255,255,255,0.6);
}

/* === FOOTER === */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand-mark { color: #fff; }
.footer-tagline {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-land {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  font-style: italic;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: color 160ms ease;
}
.footer-links a:hover { color: #fff; }

.footer-val {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
}
.footer-val a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.footer-val a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.footer-sep { color: var(--red); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 260ms ease, opacity 200ms ease;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    min-height: 48px;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta {
    margin-top: 12px;
    text-align: center;
    justify-content: center;
  }

  .brand-name { font-size: 1rem; }

  .hero { padding: 60px 20px 48px; }
  .hero-title { letter-spacing: -0.03em; }

  .menu-desc { margin-left: 0; }
  .menu-head { gap: 1rem; }
  .menu-num { min-width: 1.5rem; font-size: 0.75rem; }

  .services, .community, .about, .cta-band { padding: 64px 0; }

  .fund-card { padding: 22px; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }

  .shelf-deco span { width: 10px; }
  .shelf-deco { height: 60px; gap: 2px; }
}

@media (max-width: 400px) {
  .container, .nav-inner { padding: 0 16px; }
  .hero-title { font-size: 2.6rem; }
  .pills li { font-size: 0.7rem; padding: 6px 12px; }
}

/* Reveal animation — applied by JS only */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}