/* FCEA shared design system — linked by every page.
   Page-specific styles live in each page's inline <style>. */

/* Founders Grotesk is FCEA's brand sans (commercial — Klim Type Foundry, not on
   Google Fonts). Drop the licensed .woff2 files into /assets/fonts/ and they light
   up automatically via these @font-face rules. Until then the visible sans is
   Work Sans (loaded via the Google Fonts <link>), the closest free match. */
@font-face { font-family: 'Founders Grotesk'; font-weight: 300; font-style: normal; font-display: swap; src: url('/assets/fonts/founders-grotesk-light.woff2') format('woff2'); }
@font-face { font-family: 'Founders Grotesk'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/founders-grotesk-regular.woff2') format('woff2'); }
@font-face { font-family: 'Founders Grotesk'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/founders-grotesk-medium.woff2') format('woff2'); }
@font-face { font-family: 'Founders Grotesk'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/founders-grotesk-semibold.woff2') format('woff2'); }

:root {
  --white: #FAFAF8;
  --black: #111110;
  --ink: #1E1E1C;
  --warm-gray: #3A3833;
  --light-gray: #E8E6E0;
  --stone: #F5F3EE;
  --accent-green: #6BBF6A;
  --accent-cyan: #3AB8C4;
  --gradient: linear-gradient(135deg, #3AB8C4 0%, #6BBF6A 100%);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Founders Grotesk', 'Work Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-gray);
  transition: padding 0.3s;
}
nav.nav--scrolled { padding-top: 12px; padding-bottom: 12px; }

.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-lockup { height: 40px; width: auto; display: block; flex-shrink: 0; }
.nav-wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.nav-wordmark strong {
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--black);
}
.nav-wordmark span { font-size: 10px; color: var(--warm-gray); letter-spacing: 0.06em; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--warm-gray); font-weight: 400; transition: color 0.2s;
}
.nav-links a:hover { color: var(--black); }
.nav-cta {
  padding: 8px 20px;
  background: var(--black);
  color: var(--white) !important;
  border-radius: 2px;
  font-size: 11.5px !important; letter-spacing: 0.12em !important;
}
.nav-cta:hover { background: var(--ink); color: var(--white) !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--light-gray); border-radius: 2px;
  background: none; cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--black); transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── NAV DROPDOWNS ─── */
.nav-drop { position: relative; }
.nav-drop > .nav-drop-toggle {
  font-family: var(--sans);
  background: none; border: none; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--warm-gray); font-weight: 400; transition: color 0.2s;
}
.nav-drop > .nav-drop-toggle:hover,
.nav-drop.open > .nav-drop-toggle { color: var(--black); }
.nav-drop-toggle .chev {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px); transition: transform 0.2s;
}
.nav-drop.open .nav-drop-toggle .chev { transform: rotate(-135deg) translateY(-1px); }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: -20px;
  min-width: 250px;
  background: var(--white); border: 1px solid var(--light-gray); border-radius: 4px;
  box-shadow: 0 18px 44px rgba(17,17,16,0.14);
  padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 120;
}
.nav-menu::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-drop:hover .nav-menu, .nav-drop.open .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu-group { padding: 8px 10px; }
.nav-menu-group + .nav-menu-group { border-top: 1px solid var(--light-gray); }
.nav-menu-label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-cyan); font-weight: 600; margin-bottom: 8px; display: block;
}
.nav-menu a {
  display: block; padding: 7px 8px;
  font-size: 12.5px; letter-spacing: 0.04em; text-transform: none;
  color: var(--ink); border-radius: 3px; transition: background 0.15s, color 0.15s;
}
.nav-menu a:hover { background: var(--light-gray); color: var(--black); }

/* ─── SECTION SHARED ─── */
section { padding: 100px 56px; }
.section-label {
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-cyan); font-weight: 500; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::after { content: ''; flex: 1; max-width: 40px; height: 1px; background: var(--accent-cyan); }
.section-h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 50px); font-weight: 300;
  line-height: 1.15; color: var(--black); letter-spacing: -0.01em;
}
.section-h2 em { font-style: italic; color: var(--warm-gray); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: var(--black); color: var(--white);
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; border-radius: 2px;
  transition: background 0.2s, transform 0.2s; font-weight: 500;
}
.btn-primary:hover { background: #333; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 0; color: var(--black); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--black);
  font-weight: 500; transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }

/* Page hero used by subpages */
.page-hero {
  padding: 160px 56px 72px;
  max-width: 900px;
}
.page-hero .eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-cyan); font-weight: 500; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.page-hero .eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--accent-cyan); display: inline-block; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 5.5vw, 66px); line-height: 1.08;
  color: var(--black); letter-spacing: -0.01em; margin-bottom: 24px;
}
.page-hero h1 em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero p.lede { font-size: 17px; color: var(--warm-gray); max-width: 620px; line-height: 1.7; font-weight: 300; }
.page-hero .hero-actions { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 36px; align-items: center; }

/* Breadcrumb back link */
.crumb { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warm-gray); text-decoration: none; }
.crumb:hover { color: var(--black); }

/* ─── FOOTER ─── */
footer {
  background: var(--black); color: var(--white);
  padding: 64px 56px 40px;
}
.footer-top {
  display: grid; grid-template-columns: 320px 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 32px;
}
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.7; margin-top: 16px; font-weight: 300; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(255,255,255,0.3); margin-top: 20px; }
.footer-col h5 { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 13px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-contact { display: flex; gap: 24px; }
.footer-contact a, .footer-contact span { font-size: 12px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: var(--white); }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

/* ─── RESPONSIVE (shared chrome) ─── */
@media (max-width: 1100px) {
  nav { padding: 16px 32px; }
  .nav-links { gap: 24px; }
  section { padding: 80px 32px; }
  .page-hero { padding: 128px 32px 56px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  footer { padding: 56px 32px 36px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 32px 20px;
    background: rgba(250,250,248,0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--light-gray);
  }
  .nav-links.open { display: flex; }
  .nav-links > li { border-top: 1px solid var(--light-gray); }
  .nav-links > li:first-child { border-top: none; }
  .nav-links > li:last-child { border-top: none; }
  .nav-links a { display: block; padding: 15px 0; font-size: 13px; }
  .nav-links .nav-cta { margin-top: 14px; padding: 14px 20px; text-align: center; }

  .nav-drop { width: 100%; }
  .nav-drop > .nav-drop-toggle { width: 100%; justify-content: space-between; padding: 15px 0; font-size: 13px; }
  .nav-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0; padding: 0 0 8px 12px;
    min-width: 0; display: none; background: none;
  }
  .nav-menu::before { display: none; }
  .nav-drop.open .nav-menu { display: block; }
  .nav-menu-group { padding: 6px 0; }
  .nav-menu a { padding: 9px 6px; }
}

@media (max-width: 680px) {
  section { padding: 64px 24px; }
  nav { padding: 14px 24px; }
  .nav-lockup { height: 32px; }
  .nav-links { padding: 4px 24px 20px; }
  .page-hero { padding: 112px 24px 48px; }
  footer { padding: 48px 24px 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-contact { flex-wrap: wrap; gap: 16px; }
  .page-hero .hero-actions { gap: 16px; }
}
