/* ============================================================
   FormTact — Global stylesheet (the shared design system).

   Edit colors, fonts, the nav, buttons, and the footer HERE,
   once, and every page updates. Page-specific styles live in
   each page's own <style> block ({% block head %}).
   ============================================================ */

/* ---- Design tokens (colors, fonts, sizing) ----------------- */
:root {
  --cream: #f8f7f3; --cream-deep: #f0efe9; --white: #ffffff;
  --ink: #0a0a0c; --ink-soft: #1a1a1f; --ink-muted: #3d3d42;
  --gray-warm: #6b6a65; --gray-mid: #6a6962; --gray-light: #c8c7c0; --gray-whisper: #e8e7e2;
  --border-light: rgba(0,0,0,0.06);
  --dark: #0a0a0c; --dark-surface: #131316; --dark-surface-2: #1a1a1f; --dark-surface-3: #222228;
  --dark-text: #e8e6e1; --dark-text-dim: #8b8992; --dark-text-muted: #84828c;
  --dark-border: rgba(255,255,255,0.06);
  --green: #2F8651; --green-bright: #3DA567; --green-light: #bbf7d0; --green-wash: #dcfce7;
  --green-dim: rgba(47,134,81,0.08); --green-glow: rgba(47,134,81,0.15);
  --red: #ef4444; --red-bright: #f87171; --red-dim: rgba(239,68,68,0.08); --red-glow: rgba(239,68,68,0.15); --red-wash: #fef2f2;
  --amber: #f59e0b; --amber-dim: rgba(245,158,11,0.08); --amber-wash: #fef3c7;
  --blue: #3b82f6; --blue-dim: rgba(59,130,246,0.08); --blue-wash: #dbeafe;
  --purple: #8b5cf6; --purple-dim: rgba(139,92,246,0.08); --purple-wash: #ede9fe;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --max-w: 1200px;
  --radius: 16px; --radius-sm: 10px; --radius-xs: 6px;
  --section-pad: clamp(80px, 10vw, 140px);
}

/* ---- Reset / base ------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); background: var(--cream); color: var(--ink);
  -webkit-font-smoothing: antialiased; line-height: 1.6; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ---- Reveal-on-scroll utilities ---------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.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; }

/* ---- Nav --------------------------------------------------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(248,247,243,0.8);
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border-light);
}
nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.04); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(20px,4vw,48px); height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.5px; display: inline-flex; align-items: center; }
.nav-logo span { color: var(--green); }
.nav-logo img { height: 28px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(20px,3vw,36px); }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--gray-warm); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--green) !important; color: white !important;
  padding: 8px 20px; border-radius: var(--radius-sm);
  font-weight: 700 !important; font-size: 13px !important;
  transition: all 0.25s !important;
}
.nav-cta:hover { background: var(--green-bright) !important; transform: translateY(-1px); }

/* ---- Buttons ----------------------------------------------- */
.btn-primary {
  background: var(--green); color: white;
  padding: 15px 32px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  border: none; cursor: pointer; transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: var(--green-bright); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(22,163,74,0.3); }
.btn-secondary {
  background: transparent; color: var(--ink-muted);
  padding: 15px 32px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  border: 1px solid var(--gray-whisper); cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--gray-light); background: var(--white); color: var(--ink); }

/* ---- Footer ------------------------------------------------ */
footer { background: var(--ink); color: var(--dark-text-dim); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .f-logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--dark-text); margin-bottom: 12px; }
.footer-brand .f-logo span { color: var(--green); }
.footer-brand .f-logo img { height: 26px; width: auto; display: block; }
.footer-brand p { font-size: 14px; color: var(--dark-text-dim); line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--dark-text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: var(--dark-text-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--dark-text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--dark-border); font-size: 13px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ---- Animations -------------------------------------------- */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
