/* ============================================================
   Forging Tomorrow — main.css
   Tokens + component styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces-VariableFont_SOFT_WONK_opsz_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces-Italic-VariableFont_SOFT_WONK_opsz_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --ft-orange:        #F06020;
  --ft-orange-600:    #D9521A;
  --ft-orange-700:    #B8430F;
  --ft-orange-200:    #FBC9AE;
  --ft-orange-100:    #FDE3D3;
  --ft-orange-50:     #FEF3EB;

  --ft-teal:          #0E4A48;

  --ft-ink:           #0F0F10;
  --ft-ink-2:         #2A2A2C;
  --ft-ink-3:         #5C5C60;
  --ft-ink-4:         #8C8C92;
  --ft-line:          #E6E1DA;
  --ft-line-strong:   #C9C2B7;
  --ft-paper:         #FFFFFF;
  --ft-cream:         #FBF7F2;
  --ft-cream-2:       #F4EEE5;
  --ft-charcoal:      #1A1A1B;
  --ft-charcoal-2:    #232325;

  --ft-bg:            var(--ft-paper);
  --ft-fg:            var(--ft-ink);
  --ft-fg-muted:      var(--ft-ink-3);
  --ft-fg-on-dark:    #FBF7F2;
  --ft-fg-on-orange:  #FFFFFF;
  --ft-accent:        var(--ft-orange);
  --ft-link:          var(--ft-orange-600);

  --ft-font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --ft-font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --ft-fraunces-display: "opsz" 144, "SOFT" 50, "WONK" 0;
  --ft-fraunces-text:    "opsz" 24,  "SOFT" 30, "WONK" 0;

  --ft-space-1:  4px;
  --ft-space-2:  8px;
  --ft-space-3:  12px;
  --ft-space-4:  16px;
  --ft-space-5:  24px;
  --ft-space-6:  32px;
  --ft-space-7:  48px;
  --ft-space-8:  64px;
  --ft-space-9:  96px;
  --ft-space-10: 128px;

  --ft-radius-sm:   4px;
  --ft-radius-md:   8px;
  --ft-radius-lg:   14px;
  --ft-radius-pill: 999px;

  --ft-shadow-sm:     0 2px 6px rgba(15,15,16,.06), 0 1px 2px rgba(15,15,16,.04);
  --ft-shadow-md:     0 8px 24px rgba(15,15,16,.08), 0 2px 6px rgba(15,15,16,.04);
  --ft-shadow-lg:     0 24px 60px rgba(15,15,16,.12), 0 6px 14px rgba(15,15,16,.06);
  --ft-shadow-orange: 0 14px 40px rgba(240,96,32,.28);

  --ft-border:        1px solid var(--ft-line);
  --ft-border-strong: 1px solid var(--ft-line-strong);

  --ft-ease:      cubic-bezier(.22, .61, .36, 1);
  --ft-dur:       220ms;
  --ft-dur-fast:  140ms;

  --ft-container:        1240px;
  --ft-container-narrow: 880px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  font-family: var(--ft-font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ft-fg);
  background: var(--ft-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0;
}
img { max-width: 100%; display: block; }
a { color: var(--ft-link); text-decoration: none; }
a:hover { color: var(--ft-orange-700); }
p { margin: 0 0 16px; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; }
::selection { background: var(--ft-orange); color: #fff; }

/* ---- Typography utilities ---- */
.ft-eyebrow {
  font-family: var(--ft-font-body);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ft-orange);
  display: inline-block;
  margin-bottom: 14px;
}
.ft-lede {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--ft-ink-2);
  margin: 0;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--ft-container);
  margin: 0 auto;
  padding-left: var(--ft-space-5);
  padding-right: var(--ft-space-5);
}

/* ---- Buttons ---- */
.ft-btn {
  font-family: var(--ft-font-body);
  font-weight: 600;
  font-size: 17px;
  padding: 15px 26px;
  border-radius: var(--ft-radius-md);
  cursor: pointer;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all var(--ft-dur) var(--ft-ease);
  line-height: 1;
  white-space: nowrap;
}
.ft-btn i { width: 18px; height: 18px; transition: transform var(--ft-dur) var(--ft-ease); }
.ft-btn:hover i { transform: translateX(3px); }
.ft-btn-sm { padding: 11px 18px; font-size: 15px; }
.ft-btn-block { width: 100%; justify-content: center; padding: 17px 26px; }

.ft-btn-primary { background: var(--ft-orange); color: #fff; box-shadow: 0 6px 18px rgba(240,96,32,.22); }
.ft-btn-primary:hover { background: var(--ft-orange-600); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(240,96,32,.32); color: #fff; text-decoration: none; }
.ft-btn-primary:active { transform: translateY(0) scale(.98); background: var(--ft-orange-700); }

.ft-btn-secondary { background: #fff; color: var(--ft-ink); border: 1.5px solid var(--ft-ink); }
.ft-btn-secondary:hover { background: var(--ft-ink); color: #fff; text-decoration: none; }

.ft-btn-ghost { background: transparent; color: var(--ft-ink); padding-left: 6px; padding-right: 6px; }
.ft-btn-ghost:hover { color: var(--ft-orange-700); text-decoration: none; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0);
  transition: background var(--ft-dur) var(--ft-ease), border-color var(--ft-dur) var(--ft-ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--ft-line);
}
.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 76px;
  gap: var(--ft-space-6);
}
.logo-link img { height: 32px; }
.site-nav { display: flex; gap: var(--ft-space-6); justify-self: center; }
.site-nav a {
  color: var(--ft-ink-2);
  font-weight: 500;
  font-size: 15px;
  transition: color var(--ft-dur) var(--ft-ease);
}
.site-nav a:hover { color: var(--ft-orange-700); text-decoration: none; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 100% 0%, var(--ft-orange-50), transparent 60%),
    var(--ft-paper);
}
.hero-watermark {
  position: absolute;
  right: -120px; top: -80px;
  width: 540px; height: auto;
  opacity: .07;
  transform: rotate(-12deg);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 980px; }
.hero-title {
  font-family: var(--ft-font-display);
  font-weight: 600;
  font-size: clamp(56px, 9vw, 120px);
  line-height: .96;
  letter-spacing: -0.025em;
  font-variation-settings: var(--ft-fraunces-display);
  margin: 18px 0 24px;
  color: var(--ft-ink);
}
.hero-title em { font-style: italic; font-weight: 600; }
.hero-dot { color: var(--ft-orange); font-style: normal; }
.hero-lede { max-width: 640px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---- Section heads ---- */
.section-head { max-width: 740px; margin-bottom: var(--ft-space-7); }
.section-head h2 {
  font-family: var(--ft-font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-variation-settings: var(--ft-fraunces-display);
  color: var(--ft-ink);
  margin: 0 0 16px;
}

/* ---- Services ---- */
.services { padding: var(--ft-space-9) 0; background: var(--ft-paper); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ft-space-6); }
.service-card {
  background: var(--ft-paper);
  border: 1px solid var(--ft-line);
  border-radius: var(--ft-radius-lg);
  padding: var(--ft-space-6);
  display: flex; flex-direction: column; gap: 10px;
  transition: all var(--ft-dur) var(--ft-ease);
}
.service-card:hover {
  border-color: var(--ft-line-strong);
  box-shadow: var(--ft-shadow-md);
  transform: translateY(-2px);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--ft-radius-md);
  background: var(--ft-orange-50);
  color: var(--ft-orange-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.service-icon i { width: 26px; height: 26px; }
.service-card h3 {
  font-family: var(--ft-font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 4px 0 6px;
  color: var(--ft-ink);
}
.service-copy { color: var(--ft-ink-2); font-size: 16px; line-height: 1.6; margin: 0; }
.service-bullets { list-style: none; margin: 12px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.service-bullets li { display: flex; align-items: center; gap: 10px; color: var(--ft-ink-2); font-size: 15px; }
.service-bullets i { width: 16px; height: 16px; color: var(--ft-orange); flex: none; }
.service-link { color: var(--ft-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.service-link i { width: 16px; height: 16px; transition: transform var(--ft-dur) var(--ft-ease); }
.service-link:hover { color: var(--ft-orange-700); text-decoration: none; }
.service-link:hover i { transform: translateX(3px); }

/* ---- Process ---- */
.process { padding: var(--ft-space-9) 0; background: var(--ft-cream); }
.process-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ft-space-5); }
.process-step {
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: var(--ft-radius-lg);
  padding: var(--ft-space-6);
  display: flex; flex-direction: column; gap: 8px;
}
.process-num {
  font-family: var(--ft-font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--ft-orange);
  margin-bottom: 6px;
}
.process-step h3 {
  font-family: var(--ft-font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ft-ink);
  margin: 0 0 4px;
}
.process-copy { color: var(--ft-ink-2); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ---- Tiers ---- */
.tiers { padding: var(--ft-space-9) 0; background: var(--ft-paper); }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ft-space-5); align-items: stretch; }
.tier-card {
  background: var(--ft-paper);
  border: 1px solid var(--ft-line);
  border-radius: var(--ft-radius-lg);
  padding: var(--ft-space-6);
  display: flex; flex-direction: column; gap: 10px;
  transition: all var(--ft-dur) var(--ft-ease);
  position: relative;
}
.tier-card:hover { border-color: var(--ft-line-strong); box-shadow: var(--ft-shadow-md); }
.tier-card.is-featured {
  background: var(--ft-charcoal);
  color: var(--ft-fg-on-dark);
  border-color: var(--ft-charcoal);
  box-shadow: var(--ft-shadow-lg);
}
.tier-card.is-featured .tier-tag { color: var(--ft-orange); }
.tier-card.is-featured .tier-copy { color: rgba(255,255,255,.78); }
.tier-card.is-featured .tier-bullets li { color: rgba(255,255,255,.85); }
.tier-flag {
  position: absolute; top: -12px; left: 24px;
  background: var(--ft-orange); color: #fff;
  font-family: var(--ft-font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.tier-tag {
  font-family: var(--ft-font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ft-orange);
}
.tier-tag--neutral {
  color: var(--ft-ink-3);
}
.tier-card h3 {
  font-family: var(--ft-font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 6px 0 4px;
  color: inherit;
}
.tier-copy { color: var(--ft-ink-2); font-size: 15px; line-height: 1.55; margin: 0; }
.tier-bullets { list-style: none; margin: 12px 0 24px; display: flex; flex-direction: column; gap: 8px; }
.tier-bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--ft-ink-2); }
.tier-bullets i { width: 16px; height: 16px; color: var(--ft-orange); flex: none; margin-top: 3px; }
.tier-card .ft-btn { margin-top: auto; align-self: flex-start; }
.non-profit-note {
  margin-top: var(--ft-space-6);
  background: var(--ft-orange-50);
  border: 1px solid var(--ft-orange-200);
  border-radius: var(--ft-radius-lg);
  padding: var(--ft-space-5);
  display: flex; gap: 14px;
  color: var(--ft-ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.non-profit-note i { width: 22px; height: 22px; color: var(--ft-orange); flex: none; margin-top: 2px; }
.non-profit-note strong { color: var(--ft-ink); }

/* ---- Testimonial ---- */
.testimonial {
  padding: var(--ft-space-9) 0;
  background: var(--ft-teal);
  color: var(--ft-fg-on-dark);
}
.testimonial-inner {
  max-width: 820px;
  text-align: center;
}
.testimonial-mark {
  width: 62px; height: 62px;
  margin: 0 auto var(--ft-space-5);
}
.testimonial-eyebrow {
  font-family: var(--ft-font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ft-orange);
  margin: 0 0 var(--ft-space-4);
  display: block;
}
.testimonial-quote {
  font-family: var(--ft-font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.018em;
  font-variation-settings: var(--ft-fraunces-display);
  color: #FBF7F2;
  margin: 0 auto var(--ft-space-6);
  max-width: 24ch;
  text-wrap: pretty;
}
.testimonial-attribution {
  font-size: 15px;
  color: rgba(244,238,229,.72);
  line-height: 1.5;
}
.testimonial-attribution strong {
  color: #FBF7F2;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}
.testimonial-quote,
.testimonial-attribution {
  transition: opacity 450ms ease;
}
.testimonial-fading {
  opacity: 0;
}

/* ---- Contact ---- */
.contact { padding: var(--ft-space-9) 0; background: var(--ft-cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ft-space-7); align-items: start; }
.contact-copy h2 {
  font-family: var(--ft-font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-variation-settings: var(--ft-fraunces-display);
  color: var(--ft-ink);
  margin: 0 0 16px;
}
.contact-points { list-style: none; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.contact-points li { display: flex; gap: 10px; align-items: center; color: var(--ft-ink-2); font-size: 15px; }
.contact-points i { width: 18px; height: 18px; color: var(--ft-orange); flex: none; }
.contact-form {
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: var(--ft-radius-lg);
  padding: var(--ft-space-6);
  box-shadow: var(--ft-shadow-md);
  display: flex; flex-direction: column; gap: 16px;
}
.contact-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--ft-font-display); font-weight: 600;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ft-fg-muted);
}
.contact-form input, .contact-form textarea {
  font-family: var(--ft-font-body); font-size: 15px; color: var(--ft-ink);
  padding: 12px 14px;
  border: 1px solid var(--ft-line-strong);
  border-radius: var(--ft-radius-md);
  background: #fff; outline: none;
  transition: all var(--ft-dur) var(--ft-ease);
  text-transform: none;
  letter-spacing: 0;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--ft-orange);
  box-shadow: 0 0 0 3px rgba(240,96,32,.18);
}
.form-row-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* hidden honeypot */
.hp-field { display: none; }

/* thanks state */
.contact-thanks {
  padding: 28px 8px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.contact-thanks i { width: 40px; height: 40px; color: var(--ft-orange); }
.contact-thanks h3 {
  font-family: var(--ft-font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.012em;
  color: var(--ft-ink);
  margin: 4px 0 0;
}
.contact-thanks p { color: var(--ft-ink-2); margin: 0 0 12px; }
.contact-thanks { display: none; }
.contact-form.submitted .contact-fields { display: none; }
.contact-form.submitted .contact-thanks { display: flex; }

/* ---- Footer ---- */
.site-footer { background: var(--ft-charcoal); color: var(--ft-fg-on-dark); padding: var(--ft-space-9) 0 var(--ft-space-6); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--ft-space-7);
  padding-bottom: var(--ft-space-7);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 38px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,.72); font-size: 14.5px; line-height: 1.55; max-width: 38ch; margin: 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ft-space-6); }
.footer-cols h5 {
  font-family: var(--ft-font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ft-orange);
  margin: 0 0 14px;
}
.footer-cols a { display: block; color: rgba(255,255,255,.85); font-size: 14.5px; padding: 4px 0; transition: color var(--ft-dur) var(--ft-ease); }
.footer-cols a:hover { color: var(--ft-orange); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; color: rgba(255,255,255,.5); font-size: 13px; }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .site-nav { display: none; }
  .service-grid,
  .process-list,
  .tier-grid,
  .contact-grid,
  .footer-grid,
  .footer-cols,
  .form-row-two { grid-template-columns: 1fr; }
  .hero { padding: 88px 0 72px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

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