/* ============================================================
   FAITHKIT DESIGN SYSTEM
   "Free tools for faithful churches."

   Sanctuary palette. Ministry-first. Accessible.
   Marcelo quality adapted for church context — reverent, not flashy.

   Design Department | MattCreates Hierarchy | June 2026
   ============================================================ */

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

:root {
  /* ─── SANCTUARY PALETTE ─── */

  /* Primary: Deep Sanctuary Blue — trustworthy, stable, hymnals in the pew rack */
  --fk-blue: #1e3a5f;
  --fk-blue-rgb: 30, 58, 95;
  --fk-blue-light: #2a4f7f;
  --fk-blue-dark: #152a45;

  /* Accent: Warm Gold — lamplight through stained glass, Sunday evening */
  --fk-gold: #c8a45c;
  --fk-gold-rgb: 200, 164, 92;
  --fk-gold-light: #d4b574;
  --fk-gold-dark: #b08f48;

  /* Secondary: Forest Green — growth, life, faithfulness */
  --fk-green: #3d6b4e;
  --fk-green-rgb: 61, 107, 78;
  --fk-green-light: #4a8160;

  /* Backgrounds: Warm cream — church bulletin, not sterile white */
  --fk-cream: #faf9f5;
  --fk-white: #ffffff;
  --fk-ivory: #f5f3ed;
  --fk-warm-bg: #f0ede6;

  /* Text: Warm blacks — professional without being stark */
  --fk-text: #1f2937;
  --fk-text-secondary: rgba(31, 41, 55, 0.72);
  --fk-text-muted: rgba(31, 41, 55, 0.4);
  --fk-text-watermark: rgba(31, 41, 55, 0.03);

  /* Borders */
  --fk-border: rgba(31, 41, 55, 0.1);
  --fk-border-medium: rgba(31, 41, 55, 0.18);
  --fk-border-strong: rgba(31, 41, 55, 0.25);

  /* Shadows — soft and warm, never harsh */
  --fk-shadow-sm: 0 1px 3px rgba(31, 41, 55, 0.06);
  --fk-shadow-md: 0 4px 16px rgba(31, 41, 55, 0.08);
  --fk-shadow-lg: 0 8px 32px rgba(31, 41, 55, 0.1);
  --fk-shadow-xl: 0 16px 48px rgba(31, 41, 55, 0.12);

  /* Status colors — warm variants */
  --fk-success: #3d6b4e;
  --fk-warning: #c8a45c;
  --fk-error: #a63d3d;
  --fk-info: #1e3a5f;


  /* ─── TYPOGRAPHY ─── */

  /* Headings: Merriweather — traditional warmth, hymnal quality */
  --fk-font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;

  /* Body: System sans-serif — readable, performant, accessible */
  --fk-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                   'Helvetica Neue', Arial, sans-serif;

  /* Scripture/Quotes: Serif italic accent */
  --fk-font-scripture: 'Merriweather', Georgia, serif;

  /* Monospace: For any code or technical content */
  --fk-font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Type Scale — fluid, accessible, generous for elderly readers */
  --fk-fs-xs: clamp(12px, 1vw, 13px);
  --fk-fs-sm: clamp(13px, 1.1vw, 15px);
  --fk-fs-body: clamp(16px, 1.3vw, 19px);       /* Min 16px — accessibility floor */
  --fk-fs-lg: clamp(18px, 1.8vw, 24px);
  --fk-fs-h4: clamp(20px, 2.2vw, 28px);
  --fk-fs-h3: clamp(24px, 2.8vw, 36px);
  --fk-fs-h2: clamp(30px, 4vw, 54px);
  --fk-fs-h1: clamp(36px, 5.5vw, 72px);
  --fk-fs-display: clamp(42px, 7vw, 96px);
  --fk-fs-watermark: clamp(60px, 12vw, 180px);

  /* Line heights — generous for readability */
  --fk-lh-tight: 1.15;
  --fk-lh-heading: 1.25;
  --fk-lh-body: 1.7;
  --fk-lh-relaxed: 1.85;


  /* ─── SPACING ─── */

  /* More conservative than RunBackHome/OddlyJobs — breathable, not dramatic */
  --fk-space-xs: clamp(4px, 0.5vw, 8px);
  --fk-space-sm: clamp(8px, 1vw, 14px);
  --fk-space-md: clamp(14px, 1.8vw, 24px);
  --fk-space-lg: clamp(24px, 3vw, 40px);
  --fk-space-xl: clamp(40px, 5vw, 72px);
  --fk-space-2xl: clamp(56px, 8vw, 100px);
  --fk-space-section: clamp(60px, 10vh, 120px);


  /* ─── BORDERS & RADIUS ─── */

  /* More conservative radius — trustworthy, not playful */
  --fk-radius-sm: 6px;
  --fk-radius-md: 10px;
  --fk-radius-lg: 16px;
  --fk-radius-xl: 20px;
  --fk-radius-pill: 100px;
  --fk-radius-round: 50%;


  /* ─── LAYOUT ─── */

  --fk-max-width: 1200px;          /* Slightly narrower than MDX's 1440 — warmer feel */
  --fk-content-padding: clamp(20px, 4vw, 64px);
  --fk-reading-width: 680px;       /* Optimal for body text */
  --fk-sidebar-width: 260px;       /* Dashboard sidebar */
  --fk-sidebar-collapsed: 72px;
  --fk-nav-height: 72px;
  --fk-touch-target: 48px;         /* Minimum touch target — accessibility */


  /* ─── TRANSITIONS ─── */

  /* Slower than MDX dark-theme sites — the pace matches the audience */
  --fk-ease: cubic-bezier(0.625, 0.05, 0, 1);     /* MDX signature */
  --fk-ease-gentle: cubic-bezier(0.33, 1, 0.68, 1);
  --fk-ease-snap: cubic-bezier(0.22, 1, 0.36, 1);

  --fk-dur-fast: 0.35s;
  --fk-dur-medium: 0.6s;
  --fk-dur-slow: 1s;
  --fk-dur-reveal: 1.2s;      /* Scroll reveals — gentler than dark themes */


  /* ─── Z-INDEX SCALE ─── */

  --fk-z-base: 0;
  --fk-z-above: 10;
  --fk-z-sticky: 100;
  --fk-z-nav: 1000;
  --fk-z-modal-backdrop: 5000;
  --fk-z-modal: 5100;
  --fk-z-toast: 6000;
  --fk-z-preloader: 10000;
}


/* ─── BASE STYLES ─── */

html {
  scroll-behavior: auto;    /* Lenis handles smooth scrolling */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 100%;           /* Respect user font size preferences */
}

body {
  font-family: var(--fk-font-body);
  font-size: var(--fk-fs-body);
  line-height: var(--fk-lh-body);
  color: var(--fk-text);
  background: var(--fk-cream);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }


/* ─── TYPOGRAPHY STYLES ─── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fk-font-heading);
  line-height: var(--fk-lh-heading);
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--fk-text);
}

h1 { font-size: var(--fk-fs-h1); line-height: var(--fk-lh-tight); }
h2 { font-size: var(--fk-fs-h2); }
h3 { font-size: var(--fk-fs-h3); }
h4 { font-size: var(--fk-fs-h4); }

p {
  line-height: var(--fk-lh-body);
  color: var(--fk-text-secondary);
  max-width: var(--fk-reading-width);
}

/* Label/tag pattern — above headlines */
.fk-label {
  font-family: var(--fk-font-body);
  font-size: var(--fk-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--fk-gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--fk-space-sm);
}
.fk-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--fk-gold);
  border-radius: 1px;
}

/* Scripture styling — KJV */
.fk-scripture {
  font-family: var(--fk-font-scripture);
  font-style: italic;
  font-size: var(--fk-fs-lg);
  line-height: var(--fk-lh-relaxed);
  color: var(--fk-text);
  border-left: 3px solid var(--fk-gold);
  padding-left: var(--fk-space-md);
  margin: var(--fk-space-lg) 0;
}
.fk-scripture cite {
  display: block;
  font-style: normal;
  font-size: var(--fk-fs-sm);
  color: var(--fk-text-muted);
  margin-top: var(--fk-space-xs);
}

/* Watermark text — ultra-subtle depth */
.fk-watermark {
  font-family: var(--fk-font-heading);
  font-size: var(--fk-fs-watermark);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--fk-text-watermark);
  position: absolute;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: var(--fk-z-base);
}

/* Stat numbers */
.fk-stat-number {
  font-family: var(--fk-font-heading);
  font-size: var(--fk-fs-h1);
  font-weight: 800;
  line-height: 1;
  color: var(--fk-blue);
}
.fk-stat-label {
  font-size: var(--fk-fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fk-text-muted);
  margin-top: var(--fk-space-xs);
}


/* ─── LAYOUT ─── */

.fk-container {
  max-width: var(--fk-max-width);
  margin: 0 auto;
  padding: 0 var(--fk-content-padding);
}

.fk-section {
  padding: var(--fk-space-section) 0;
  position: relative;
  min-height: 60vh;    /* Breathable sections — content gets room to land */
}

.fk-section--alt {
  background: var(--fk-warm-bg);
}

.fk-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--fk-space-lg);
}

.fk-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--fk-space-md);
}

.fk-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--fk-space-xl);
  align-items: center;
}

.fk-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--fk-space-lg);
  text-align: center;
  padding: var(--fk-space-xl) 0;
}


/* ─── CARDS ─── */

.fk-card {
  background: var(--fk-white);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-lg);
  padding: var(--fk-space-lg);
  transition: transform var(--fk-dur-medium) var(--fk-ease),
              box-shadow var(--fk-dur-medium) var(--fk-ease),
              border-color var(--fk-dur-medium) var(--fk-ease);
  will-change: transform;
}

.fk-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fk-shadow-lg);
  border-color: var(--fk-border-medium);
}

/* Feature card with icon */
.fk-feature-card {
  background: var(--fk-white);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-lg);
  padding: var(--fk-space-lg);
  position: relative;
  transition: transform var(--fk-dur-medium) var(--fk-ease),
              box-shadow var(--fk-dur-medium) var(--fk-ease),
              border-color var(--fk-dur-medium) var(--fk-ease);
  will-change: transform;
}

.fk-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fk-shadow-lg);
}

.fk-feature-card .fk-icon {
  width: var(--fk-touch-target);
  height: var(--fk-touch-target);
  border-radius: var(--fk-radius-md);
  background: rgba(var(--fk-blue-rgb), 0.08);
  display: grid;
  place-items: center;
  margin-bottom: var(--fk-space-md);
  color: var(--fk-blue);
}

/* Highlighted card variant */
.fk-card--highlight {
  border-color: var(--fk-gold);
  box-shadow: 0 0 0 1px var(--fk-gold);
}

/* Dashboard stat card */
.fk-stat-card {
  background: var(--fk-white);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-md);
  padding: var(--fk-space-md) var(--fk-space-lg);
  display: flex;
  align-items: center;
  gap: var(--fk-space-md);
}

.fk-stat-card .fk-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--fk-radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.fk-stat-card .fk-icon--blue { background: rgba(var(--fk-blue-rgb), 0.1); color: var(--fk-blue); }
.fk-stat-card .fk-icon--gold { background: rgba(var(--fk-gold-rgb), 0.15); color: var(--fk-gold-dark); }
.fk-stat-card .fk-icon--green { background: rgba(var(--fk-green-rgb), 0.1); color: var(--fk-green); }


/* ─── BUTTONS ─── */

/* Primary CTA — warm gold, pill shape, arrow icon */
.fk-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--fk-radius-pill);
  font-family: var(--fk-font-body);
  font-size: var(--fk-fs-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;     /* Church context: no shouting uppercase */
  transition: background var(--fk-dur-medium) var(--fk-ease),
              color var(--fk-dur-medium) var(--fk-ease),
              transform var(--fk-dur-medium) var(--fk-ease),
              box-shadow var(--fk-dur-medium) var(--fk-ease),
              border-color var(--fk-dur-medium) var(--fk-ease);
  cursor: pointer;
  min-height: var(--fk-touch-target);
  will-change: transform;
}

.fk-btn--primary {
  background: var(--fk-blue);
  color: #fff;
  border: none;
}
.fk-btn--primary:hover {
  background: var(--fk-blue-light);
  transform: translateY(-2px);
  box-shadow: var(--fk-shadow-md);
}

.fk-btn--gold {
  background: var(--fk-gold);
  color: var(--fk-blue-dark);
  border: none;
}
.fk-btn--gold:hover {
  background: var(--fk-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--fk-shadow-md);
}

.fk-btn--secondary {
  background: transparent;
  color: var(--fk-blue);
  border: 1.5px solid var(--fk-border-medium);
}
.fk-btn--secondary:hover {
  background: rgba(var(--fk-blue-rgb), 0.04);
  border-color: var(--fk-blue);
}

.fk-btn--ghost {
  background: transparent;
  color: var(--fk-text-secondary);
  border: none;
  padding: 10px 16px;
}
.fk-btn--ghost:hover {
  color: var(--fk-blue);
  background: rgba(var(--fk-blue-rgb), 0.04);
}

/* Arrow circle inside CTA */
.fk-btn .fk-arrow {
  width: 28px;
  height: 28px;
  border-radius: var(--fk-radius-round);
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  transition: transform var(--fk-dur-medium) var(--fk-ease);
}
.fk-btn:hover .fk-arrow {
  transform: translate(3px, -3px);
}

/* CTA group */
.fk-cta-group {
  display: flex;
  align-items: center;
  gap: var(--fk-space-md);
  flex-wrap: wrap;
}

/* Focus states — accessibility */
.fk-btn:focus-visible {
  outline: 3px solid var(--fk-gold);
  outline-offset: 3px;
}


/* ─── FORM INPUTS ─── */

.fk-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--fk-border-medium);
  border-radius: var(--fk-radius-md);
  background: var(--fk-white);
  font-size: var(--fk-fs-body);    /* Large for accessibility */
  line-height: 1.5;
  color: var(--fk-text);
  transition: border-color var(--fk-dur-fast) var(--fk-ease),
              box-shadow var(--fk-dur-fast) var(--fk-ease);
  min-height: var(--fk-touch-target);
}

.fk-input:focus {
  outline: none;
  border-color: var(--fk-blue);
  box-shadow: 0 0 0 3px rgba(var(--fk-blue-rgb), 0.12);
}

.fk-input::placeholder {
  color: var(--fk-text-muted);
}

.fk-input--error {
  border-color: var(--fk-error);
}
.fk-input--error:focus {
  box-shadow: 0 0 0 3px rgba(166, 61, 61, 0.12);
}

.fk-input-label {
  display: block;
  font-size: var(--fk-fs-sm);
  font-weight: 600;
  color: var(--fk-text);
  margin-bottom: 6px;
}

.fk-input-hint {
  font-size: var(--fk-fs-xs);
  color: var(--fk-text-muted);
  margin-top: 4px;
}

.fk-input-error {
  font-size: var(--fk-fs-xs);
  color: var(--fk-error);
  margin-top: 4px;
}

/* Select */
.fk-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

/* Textarea */
.fk-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Checkbox / Radio — large touch targets */
.fk-check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  min-height: var(--fk-touch-target);
  padding: 4px 0;
}
.fk-check input[type="checkbox"],
.fk-check input[type="radio"] {
  width: 22px;
  height: 22px;
  accent-color: var(--fk-blue);
  cursor: pointer;
}


/* ─── NAVIGATION ─── */

.fk-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--fk-z-nav);
  height: var(--fk-nav-height);
  padding: 0 var(--fk-content-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Fully opaque background so page content never bleeds through the fixed
     nav as it scrolls underneath. (A translucent frosted-glass value let the
     centered Features copy ghost through over the nav links.) The scrolled
     state below adds only a shadow — legibility never depends on transparency. */
  background: var(--fk-cream);
  border-bottom: 1px solid var(--fk-border);
  transition: background var(--fk-dur-medium) var(--fk-ease),
              backdrop-filter var(--fk-dur-medium) var(--fk-ease),
              box-shadow var(--fk-dur-medium) var(--fk-ease);
}

.fk-nav.scrolled {
  background: var(--fk-cream);
  box-shadow: var(--fk-shadow-sm);
}

.fk-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fk-font-heading);
  font-size: var(--fk-fs-lg);
  font-weight: 700;
  color: var(--fk-blue);
}

.fk-nav-links {
  display: flex;
  align-items: center;
  gap: var(--fk-space-xs);
  list-style: none;
}

.fk-nav-link {
  padding: 10px 18px;
  border-radius: var(--fk-radius-pill);
  font-size: var(--fk-fs-sm);
  font-weight: 500;
  color: var(--fk-text-secondary);
  transition: color var(--fk-dur-fast) var(--fk-ease),
              background var(--fk-dur-fast) var(--fk-ease);
  min-height: var(--fk-touch-target);
  display: flex;
  align-items: center;
}
.fk-nav-link:hover {
  color: var(--fk-blue);
  background: rgba(var(--fk-blue-rgb), 0.05);
}
.fk-nav-link.active {
  color: var(--fk-blue);
  background: rgba(var(--fk-blue-rgb), 0.08);
  font-weight: 600;
}


/* ─── SIDEBAR (Dashboard) ─── */

.fk-sidebar {
  width: var(--fk-sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0; left: 0;
  background: var(--fk-white);
  border-right: 1px solid var(--fk-border);
  padding: var(--fk-space-md);
  display: flex;
  flex-direction: column;
  z-index: var(--fk-z-sticky);
  overflow-y: auto;
}

.fk-sidebar-logo {
  padding: var(--fk-space-sm) var(--fk-space-sm);
  margin-bottom: var(--fk-space-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fk-font-heading);
  font-weight: 700;
  font-size: var(--fk-fs-lg);
  color: var(--fk-blue);
}

.fk-sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.fk-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--fk-radius-md);
  font-size: var(--fk-fs-sm);
  font-weight: 500;
  color: var(--fk-text-secondary);
  transition: background var(--fk-dur-fast) var(--fk-ease),
              color var(--fk-dur-fast) var(--fk-ease);
  cursor: pointer;
  min-height: var(--fk-touch-target);
}
.fk-sidebar-item:hover {
  background: rgba(var(--fk-blue-rgb), 0.05);
  color: var(--fk-text);
}
.fk-sidebar-item.active {
  background: rgba(var(--fk-blue-rgb), 0.08);
  color: var(--fk-blue);
  font-weight: 600;
}

.fk-sidebar-item .fk-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.7;
}
.fk-sidebar-item.active .fk-icon {
  opacity: 1;
}

.fk-sidebar-section {
  font-size: var(--fk-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fk-text-muted);
  padding: var(--fk-space-md) 14px var(--fk-space-xs);
  font-weight: 600;
}

.fk-sidebar-footer {
  margin-top: auto;
  padding-top: var(--fk-space-md);
  border-top: 1px solid var(--fk-border);
}


/* ─── TABLES ─── */

.fk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fk-fs-sm);
}

.fk-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: var(--fk-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fk-text-muted);
  border-bottom: 2px solid var(--fk-border);
}

.fk-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--fk-border);
  color: var(--fk-text);
}

.fk-table tr:hover td {
  background: rgba(var(--fk-blue-rgb), 0.02);
}


/* ─── TOAST / NOTIFICATIONS ─── */

.fk-toast {
  position: fixed;
  bottom: var(--fk-space-lg);
  right: var(--fk-space-lg);
  background: var(--fk-white);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-md);
  padding: 16px 24px;
  box-shadow: var(--fk-shadow-xl);
  z-index: var(--fk-z-toast);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  font-size: var(--fk-fs-sm);
}

.fk-toast--success { border-left: 4px solid var(--fk-success); }
.fk-toast--warning { border-left: 4px solid var(--fk-warning); }
.fk-toast--error { border-left: 4px solid var(--fk-error); }
.fk-toast--info { border-left: 4px solid var(--fk-info); }


/* ─── BADGES ─── */

.fk-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--fk-radius-pill);
  font-size: var(--fk-fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fk-badge--blue { background: rgba(var(--fk-blue-rgb), 0.1); color: var(--fk-blue); }
.fk-badge--gold { background: rgba(var(--fk-gold-rgb), 0.15); color: var(--fk-gold-dark); }
.fk-badge--green { background: rgba(var(--fk-green-rgb), 0.1); color: var(--fk-green); }
.fk-badge--muted { background: var(--fk-warm-bg); color: var(--fk-text-muted); }


/* ─── HERO (Landing) ─── */

.fk-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--fk-nav-height) + var(--fk-space-xl)) var(--fk-content-padding) var(--fk-space-xl);
  position: relative;
  overflow: hidden;
  background: var(--fk-cream);
}


/* ─── FOOTER ─── */

.fk-footer {
  background: var(--fk-blue-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--fk-space-2xl) var(--fk-content-padding) var(--fk-space-lg);
}

.fk-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--fk-dur-fast) var(--fk-ease);
}
.fk-footer a:hover {
  color: var(--fk-gold-light);
}

.fk-footer-brand {
  font-family: var(--fk-font-heading);
  font-size: var(--fk-fs-h3);
  color: #fff;
  margin-bottom: var(--fk-space-sm);
}

.fk-footer-statement {
  font-family: var(--fk-font-scripture);
  font-style: italic;
  font-size: var(--fk-fs-lg);
  color: var(--fk-gold);
  margin-bottom: var(--fk-space-xl);
  max-width: 500px;
}


/* ─── PRELOADER ─── */

.fk-preloader {
  position: fixed;
  inset: 0;
  z-index: var(--fk-z-preloader);
  background: var(--fk-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}


/* ─── SCROLL INDICATOR ─── */

.fk-scroll-indicator {
  position: absolute;
  bottom: var(--fk-space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--fk-text-muted);
  font-size: var(--fk-fs-xs);
  letter-spacing: 0.1em;
}

.fk-scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--fk-radius-round);
  background: var(--fk-gold);
  animation: fkScrollPulse 2.5s ease-in-out infinite;
}

@keyframes fkScrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.4; }
}


/* ─── RESPONSIVE ─── */

@media (max-width: 1024px) {
  .fk-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .fk-split { grid-template-columns: 1fr; gap: var(--fk-space-lg); }
}

@media (max-width: 768px) {
  :root {
    --fk-content-padding: 20px;
    --fk-space-section: 60px;
  }

  .fk-grid-2, .fk-grid-3 { grid-template-columns: 1fr; }
  .fk-hero { min-height: 80vh; }
  .fk-nav-links { display: none; }
  .fk-scroll-indicator { display: none; }
  .fk-sidebar { display: none; }
  .fk-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .fk-stats-row { grid-template-columns: 1fr; }
  .fk-cta-group { flex-direction: column; align-items: stretch; }
  .fk-cta-group .fk-btn { justify-content: center; }
}


/* ─── ACCESSIBILITY ─── */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fk-preloader { display: none; }
}

/* Focus visible — keyboard users only */
*:focus-visible {
  outline: 3px solid var(--fk-gold);
  outline-offset: 3px;
}

/* High contrast mode support */
@media (forced-colors: active) {
  .fk-card, .fk-feature-card, .fk-stat-card {
    border: 2px solid ButtonText;
  }
  .fk-btn--primary, .fk-btn--gold {
    border: 2px solid ButtonText;
  }
}

/* Skip to content — screen reader accessible */
.fk-skip-link {
  position: absolute;
  top: -100%;
  left: var(--fk-content-padding);
  padding: 12px 24px;
  background: var(--fk-blue);
  color: #fff;
  border-radius: var(--fk-radius-md);
  z-index: calc(var(--fk-z-preloader) + 1);
  font-weight: 600;
}
.fk-skip-link:focus {
  top: var(--fk-space-sm);
}
