/*
 * Frivilligkorps.dk — 2026 Edition
 * Earth-tone design system for professional volunteer management
 * Author: Senior Frontend / CrewPlan design team
 * Strategy: Mobile-first, accessibility-first, glassmorphism feature cards
 */

/* =========================================
   1. DESIGN TOKENS
   ========================================= */

:root {
  /* Forest Greens */
  --clr-forest-900: #0F2318;
  --clr-forest-800: #1B3529;
  --clr-forest-700: #2D5243;
  --clr-forest-600: #3D6B5C;
  --clr-forest-400: #5A9080;
  --clr-forest-200: #A8C5BB;
  --clr-forest-100: #D4E8E2;

  /* Warm Amber Gold */
  --clr-amber-700: #8B5E1A;
  --clr-amber-600: #C4892A;
  --clr-amber-400: #E8A83E;
  --clr-amber-200: #F5D48A;
  --clr-amber-100: #FFF3D6;
  --clr-amber-50:  #FFFBF2;

  /* Earthy Creams */
  --clr-cream-100: #EDE8DF;
  --clr-cream-50:  #FEFCF8;

  /* Cautionary Rust/Burnt Orange */
  --clr-rust-900: #4A1508;
  --clr-rust-800: #6B2410;
  --clr-rust-700: #8B3A1A;
  --clr-rust-600: #B5522A;
  --clr-rust-400: #D4694A;
  --clr-rust-100: #FDF0EB;
  --clr-rust-50:  #FEF8F5;

  /* Text Scale */
  --clr-text-900: #1C2B26;
  --clr-text-700: #2D4A3E;
  --clr-text-500: #4A6B5D;
  --clr-text-300: #7A9B8E;

  /* Typography */
  /* System font stack first → Urbanist swaps in once loaded (no invisible text) */
  --ff-base: 'Urbanist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-xs:   0.875rem;  /* 14px */
  --fs-sm:   1rem;      /* 16px */
  --fs-base: 1.125rem;  /* 18px – minimum body text */
  --fs-md:   1.25rem;   /* 20px */
  --fs-lg:   1.5rem;    /* 24px */
  --fs-xl:   2rem;      /* 32px */
  --fs-2xl:  2.5rem;    /* 40px */
  --fs-3xl:  3rem;      /* 48px */
  --fs-4xl:  3.75rem;   /* 60px */

  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-extrabold:800;

  --lh-tight:   1.15;
  --lh-snug:    1.3;
  --lh-base:    1.55;
  --lh-relaxed: 1.75;

  /* Spacing (8-point grid) */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* Shape */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* Shadows (forest-tinted) */
  --shadow-sm:  0 1px 3px rgba(15, 35, 24, 0.06), 0 1px 2px rgba(15, 35, 24, 0.04);
  --shadow-md:  0 4px 16px rgba(15, 35, 24, 0.10), 0 2px 6px rgba(15, 35, 24, 0.06);
  --shadow-lg:  0 12px 40px rgba(15, 35, 24, 0.14), 0 4px 12px rgba(15, 35, 24, 0.08);
  --shadow-xl:  0 24px 64px rgba(15, 35, 24, 0.18);

  /* Layout */
  --nav-height:    72px;
  --container-max: 1200px;
  --container-pad: var(--space-6);

  /* Motion */
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms var(--ease-out);
  --t-spring: 350ms var(--ease-spring);
}


/* =========================================
   2. RESET & BASE
   ========================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--ff-base);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-900);
  background-color: var(--clr-cream-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Reserve space for mobile sticky CTA */
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select { font: inherit; }

p, h1, h2, h3, h4 { overflow-wrap: break-word; }

ul[role="list"] { list-style: none; }

a { color: inherit; text-decoration: none; }


/* =========================================
   3. TYPOGRAPHY
   ========================================= */

h1, h2, h3, h4 {
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--clr-text-900);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw + 1rem, var(--fs-4xl));
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.625rem, 3vw + 1rem, var(--fs-3xl));
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.25rem, 2vw + 0.75rem, var(--fs-xl));
  letter-spacing: -0.015em;
}

p {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-700);
}

strong {
  font-weight: var(--fw-semibold);
  color: var(--clr-text-900);
}


/* =========================================
   4. LAYOUT UTILITIES
   ========================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Anchor scroll offset for fixed nav */
section[id], [id^="sikkerhed"], [id^="rekruttering"], [id^="features"] {
  scroll-margin-top: calc(var(--nav-height) + var(--space-4));
}


/* =========================================
   5. FOCUS & ACCESSIBILITY
   ========================================= */

:focus-visible {
  outline: 3px solid var(--clr-amber-600);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Touch targets: all interactive elements are at least 44×44px */
a, button, [role="button"] {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}


/* =========================================
   6. BUTTONS
   ========================================= */

.btn-primary,
.btn-ghost,
.btn-nav,
.btn-mobile-sticky {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-base);
  font-weight: var(--fw-semibold);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--t-base), color var(--t-base), box-shadow var(--t-base), transform var(--t-spring), border-color var(--t-base);
}

/* Primary: deep forest */
.btn-primary {
  padding: var(--space-3) var(--space-6);
  background-color: var(--clr-forest-700);
  color: var(--clr-cream-50);
  font-size: var(--fs-base);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  min-height: 48px;
}

.btn-primary:hover {
  background-color: var(--clr-forest-800);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--fs-md);
  min-height: 56px;
}

/* Ghost: outlined forest */
.btn-ghost {
  padding: var(--space-3) var(--space-6);
  background-color: transparent;
  color: var(--clr-forest-700);
  font-size: var(--fs-base);
  border-radius: var(--radius-full);
  border: 2px solid rgba(61, 107, 92, 0.45);
  min-height: 48px;
}

.btn-ghost:hover {
  background-color: var(--clr-forest-100);
  border-color: var(--clr-forest-600);
  transform: translateY(-2px);
}

.btn-ghost.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--fs-md);
  min-height: 56px;
}

/* Nav CTA: amber gold */
.btn-nav {
  padding: var(--space-2) var(--space-5);
  background-color: var(--clr-amber-600);
  color: var(--clr-forest-900);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  min-height: 40px;
  border: 2px solid transparent;
}

.btn-nav:hover {
  background-color: var(--clr-amber-400);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}


/* =========================================
   7. NAVIGATION
   ========================================= */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: rgba(254, 252, 248, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(196, 137, 42, 0.15);
  transition: box-shadow var(--t-base);
}

.main-nav.is-scrolled {
  box-shadow: 0 2px 24px rgba(15, 35, 24, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-4);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  min-height: unset;
  height: var(--nav-height);
}

.logo-brand {
  font-size: var(--fs-md);
  font-weight: var(--fw-extrabold);
  color: var(--clr-forest-800);
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-sep {
  color: var(--clr-amber-600);
  font-weight: var(--fw-light);
  font-size: var(--fs-md);
  line-height: 1;
}

.logo-sub {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-300);
  line-height: 1;
}

/* Hamburger Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid rgba(61, 107, 92, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
  min-height: unset;
  flex-shrink: 0;
  transition: border-color var(--t-base);
}

.nav-toggle:hover { border-color: var(--clr-forest-600); }

.nav-toggle span {
  display: block;
  height: 2px;
  background-color: var(--clr-forest-700);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav links — mobile dropdown */
.nav-links {
  display: none;
  list-style: none;
  flex-direction: column;
  gap: var(--space-1);
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--clr-cream-50);
  border-bottom: 1px solid rgba(196, 137, 42, 0.2);
  box-shadow: 0 12px 32px rgba(15, 35, 24, 0.14);
  padding: var(--space-4) var(--container-pad) var(--space-6);
}

.nav-links.is-open { display: flex; }

.nav-links li { width: 100%; }

.nav-links li a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--clr-text-700);
  border-radius: var(--radius-md);
  min-height: 48px;
  transition: background-color var(--t-fast), color var(--t-fast);
}

.nav-links li a:hover {
  background-color: var(--clr-forest-100);
  color: var(--clr-forest-800);
}

.nav-links li:last-child {
  margin-top: var(--space-2);
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .nav-links {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: var(--space-1);
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .nav-links li { width: auto; }

  .nav-links li a {
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-sm);
    min-height: 40px;
  }

  .nav-links li:last-child { margin-top: 0; }
}


/* =========================================
   8. HERO SECTION
   ========================================= */

.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-16);
  background-color: var(--clr-cream-50);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-24));
    padding-bottom: var(--space-24);
  }
}

/* Large organic background bloom — top right */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 65vw;
  height: 65vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(
    ellipse at 40% 40%,
    rgba(61, 107, 92, 0.13) 0%,
    rgba(45, 82, 67, 0.07) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Subtle amber bottom gradient fade */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(196, 137, 42, 0.35) 50%,
    transparent 100%
  );
}

.hero .container { position: relative; z-index: 1; }

.hero-content {
  max-width: 780px;
}

/* Social proof badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: var(--clr-amber-100);
  color: var(--clr-amber-700);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid rgba(196, 137, 42, 0.4);
  margin-bottom: var(--space-6);
  min-height: unset;
}

/* Headline */
.hero h1 {
  color: var(--clr-text-900);
  margin-bottom: var(--space-6);
}

.hero h1 .highlight {
  color: var(--clr-rust-600);
  font-style: normal;
  position: relative;
  display: inline;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 0.06em;
  left: 0;
  right: 0;
  height: 0.07em;
  background-color: var(--clr-rust-400);
  opacity: 0.5;
  border-radius: 2px;
}

/* Lead text */
.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-500);
  margin-bottom: var(--space-8);
  max-width: 620px;
}

/* CTA row */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

/* Trust signals */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  list-style: none;
  padding: 0;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-500);
  min-height: unset;
}

.hero-trust li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: var(--clr-forest-700);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}


/* =========================================
   9. WARNING SECTION (Facebook & Excel)
   ========================================= */

.warning-section {
  padding-block: var(--space-16);
  background-color: var(--clr-rust-50);
  border-top: 1px solid rgba(181, 82, 42, 0.14);
  border-bottom: 1px solid rgba(181, 82, 42, 0.14);
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .warning-section { padding-block: var(--space-20); }
}

/* Decorative heat-blur behind */
.warning-section::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(ellipse at center, rgba(181, 82, 42, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.warning-header {
  text-align: center;
  margin-bottom: var(--space-12);
  max-width: 640px;
  margin-inline: auto;
  position: relative;
}

.warning-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-rust-600);
  margin-bottom: var(--space-4);
  min-height: unset;
}

.warning-header h2 {
  color: var(--clr-rust-800);
  margin-bottom: var(--space-4);
}

.warning-header p {
  font-size: var(--fs-md);
  color: var(--clr-rust-700);
}

/* Warning card grid */
.warning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  position: relative;
}

@media (min-width: 640px)  { .warning-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .warning-grid { grid-template-columns: repeat(3, 1fr); } }

.warning-card {
  padding: var(--space-6) var(--space-6);
  background-color: rgba(255, 248, 245, 0.85);
  border: 1px solid rgba(181, 82, 42, 0.2);
  border-left: 4px solid var(--clr-rust-600);
  border-radius: var(--radius-md);
  transition: transform var(--t-spring), box-shadow var(--t-base);
}

.warning-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(107, 36, 16, 0.14);
}

.warning-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: var(--space-4);
  display: block;
  min-height: unset;
}

.warning-card h3 {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--clr-rust-800);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.warning-card p {
  font-size: var(--fs-sm);
  color: var(--clr-rust-700);
  line-height: var(--lh-relaxed);
}


/* =========================================
   10. DEEP-DIVE FEATURE SECTIONS
   ========================================= */

.deep-dive {
  padding-block: var(--space-16);
  background-color: var(--clr-cream-50);
}

.deep-dive.bg-soft {
  background-color: var(--clr-cream-100);
}

@media (min-width: 1024px) { .deep-dive { padding-block: var(--space-24); } }

.feature-block {
  max-width: 740px;
}

.feature-block-badge {
  margin-bottom: var(--space-4);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-4);
  background-color: var(--clr-forest-100);
  color: var(--clr-forest-700);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid rgba(61, 107, 92, 0.3);
  min-height: unset;
}

.feature-block h2 {
  margin-bottom: var(--space-6);
}

.feature-block-body p {
  margin-bottom: var(--space-5);
}

.feature-block-body p:last-child {
  margin-bottom: 0;
}

/* Feature checklist */
.feature-checklist {
  list-style: none;
  padding: 0;
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 560px) {
  .feature-checklist { grid-template-columns: repeat(2, 1fr); }
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background-color: rgba(254, 252, 248, 0.85);
  border: 1px solid rgba(61, 107, 92, 0.12);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--clr-text-700);
  line-height: var(--lh-snug);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: unset;
}

.feature-checklist li:hover {
  border-color: rgba(61, 107, 92, 0.3);
  box-shadow: var(--shadow-sm);
}

.feature-checklist li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background-color: var(--clr-forest-700);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  flex-shrink: 0;
  margin-top: 2px;
}


/* =========================================
   11. ALL FEATURES — GLASSMORPHISM CARDS
   ========================================= */

.all-features {
  padding-block: var(--space-16);
  background: linear-gradient(155deg, var(--clr-forest-700) 0%, var(--clr-forest-900) 100%);
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) { .all-features { padding-block: var(--space-24); } }

/* Subtle dot grid overlay */
.all-features::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Glowing amber orb — bottom right */
.all-features::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(ellipse at center, rgba(232, 168, 62, 0.1) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.all-features .container,
.all-features .section-header,
.all-features .features-grid { position: relative; z-index: 1; }

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-amber-400);
  margin-bottom: var(--space-4);
  min-height: unset;
}

.section-header h2 {
  color: var(--clr-cream-50);
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--fs-md);
  color: var(--clr-forest-200);
  max-width: 520px;
  margin-inline: auto;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 600px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

/* Glassmorphism card */
.feature-card {
  padding: var(--space-6) var(--space-6);
  background: rgba(254, 252, 248, 0.055);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(196, 137, 42, 0.18);
  border-radius: var(--radius-lg);
  transition:
    background var(--t-base),
    border-color var(--t-base),
    transform var(--t-spring),
    box-shadow var(--t-base);
  position: relative;
  overflow: hidden;
}

/* Subtle sheen on top edge */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
}

.feature-card:hover {
  background: rgba(254, 252, 248, 0.10);
  border-color: rgba(196, 137, 42, 0.45);
  transform: translateY(-6px);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(196, 137, 42, 0.3) inset;
}

.feature-card-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: var(--space-4);
  display: block;
  min-height: unset;
}

.feature-card h3 {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--clr-cream-50);
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--clr-forest-200);
}


/* =========================================
   12. FINAL CTA SECTION
   ========================================= */

.final-cta {
  padding-block: var(--space-16);
  background-color: var(--clr-amber-50);
  text-align: center;
  position: relative;
}

@media (min-width: 1024px) { .final-cta { padding-block: var(--space-24); } }

/* Decorative amber lines top + bottom */
.final-cta::before,
.final-cta::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(196, 137, 42, 0.45), transparent);
}

.final-cta::before { top: 0; }
.final-cta::after  { bottom: 0; }

.final-cta h2 {
  color: var(--clr-forest-800);
  margin-bottom: var(--space-4);
  max-width: 640px;
  margin-inline: auto;
}

.final-cta .lead {
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-inline: auto;
}

.btn-cta {
  padding: var(--space-5) var(--space-10);
  font-size: var(--fs-md);
  min-height: 60px;
  box-shadow: var(--shadow-lg);
}

.btn-cta:hover {
  box-shadow: var(--shadow-xl);
}

.cta-subtext {
  margin-top: var(--space-5);
  font-size: var(--fs-xs);
  color: var(--clr-text-300);
  letter-spacing: 0.03em;
}


/* =========================================
   13. FOOTER
   ========================================= */

footer {
  background-color: var(--clr-forest-900);
  padding-block: var(--space-12);
  color: var(--clr-forest-200);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand .logo {
  height: auto;
  min-height: unset;
  margin-bottom: var(--space-3);
}

.footer-brand .logo-brand {
  color: var(--clr-cream-50);
  font-size: var(--fs-md);
}

.footer-brand .logo-sep { color: var(--clr-amber-400); }

.footer-brand .logo-sub { color: var(--clr-forest-200); }

.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--clr-forest-400);
  max-width: 280px;
  line-height: var(--lh-relaxed);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  align-items: flex-start;
}

.footer-nav a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-forest-200);
  transition: color var(--t-fast);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover { color: var(--clr-amber-400); }

.footer-bottom { padding-top: var(--space-8); }

.footer-bottom p {
  font-size: var(--fs-xs);
  color: var(--clr-forest-400);
  text-align: center;
  line-height: var(--lh-relaxed);
}

.footer-bottom a {
  color: var(--clr-amber-400);
  transition: color var(--t-fast);
  min-height: unset;
  display: inline;
}

.footer-bottom a:hover { color: var(--clr-amber-200); }


/* =========================================
   14. MOBILE STICKY CTA BAR
   ========================================= */

.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background-color: rgba(254, 252, 248, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(196, 137, 42, 0.2);
  box-shadow: 0 -4px 24px rgba(15, 35, 24, 0.12);
  transform: translateY(100%);
  transition: transform var(--t-slow);
  display: block;
}

.mobile-sticky-cta.is-visible { transform: translateY(0); }

@media (min-width: 768px) {
  .mobile-sticky-cta { display: none !important; }
}

.btn-mobile-sticky {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: var(--space-4) var(--space-6);
  background-color: var(--clr-forest-700);
  color: var(--clr-cream-50);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  border-radius: var(--radius-lg);
  transition: background-color var(--t-fast);
  text-decoration: none;
}

.btn-mobile-sticky:hover {
  background-color: var(--clr-forest-800);
}


/* =========================================
   15. SOCIAL PROOF — REFERENCES & CAROUSEL
   ========================================= */

.social-proof {
  padding-block: var(--space-16) var(--space-12);
  background: linear-gradient(158deg, var(--clr-forest-700) 0%, var(--clr-forest-900) 100%);
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .social-proof { padding-block: var(--space-20) var(--space-16); }
}

/* Dot grid (shared aesthetic with features section) */
.social-proof::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Amber bloom — top right */
.social-proof::after {
  content: '';
  position: absolute;
  top: -25%;
  right: -12%;
  width: 55vw;
  height: 55vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(ellipse at center, rgba(232,168,62,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.social-proof .container { position: relative; z-index: 1; }

/* Header */
.social-proof-header {
  text-align: center;
  margin-bottom: var(--space-10);
  position: relative;
  z-index: 1;
}

.social-proof-header h2 {
  color: var(--clr-cream-50);
  margin-bottom: var(--space-4);
}

.social-proof-header p {
  font-size: var(--fs-md);
  color: var(--clr-forest-200);
  max-width: 540px;
  margin-inline: auto;
}


/* ── Marquee / infinite name strip ── */

.marquee-outer {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  /* Fade in/out at edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  margin-block: var(--space-10);
  padding-block: var(--space-2);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: max-content;
  animation: marquee-scroll 42s linear infinite;
}

/* Pause on hover */
.marquee-outer:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(254, 252, 248, 0.065);
  border: 1px solid rgba(196, 137, 42, 0.22);
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: default;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.marquee-chip:hover {
  background: rgba(254, 252, 248, 0.12);
  border-color: rgba(196, 137, 42, 0.5);
}

.marquee-chip-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background-color: var(--clr-amber-400);
  flex-shrink: 0;
  display: block;
  min-height: unset;
}

/* Logo inside marquee chip — real colours, light bg so dark logos show */
.marquee-chip-logo {
  width: 28px;
  height: 28px;
  min-width: 28px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  min-height: unset;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 5px;
  padding: 3px;
}

.marquee-chip-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-cream-50);
  letter-spacing: -0.01em;
  line-height: 1;
  display: block;
  min-height: unset;
}

.marquee-chip-size {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--clr-forest-200);
  padding-left: var(--space-2);
  border-left: 1px solid rgba(255,255,255,0.14);
  line-height: 1;
  display: block;
  min-height: unset;
}


/* ── Testimonial quote cards ── */

.testimonial-carousel {
  max-width: 680px;
  margin-inline: auto;
}

/* CSS Grid trick: stack all cards in one cell → grid height = tallest card */
.testimonial-track {
  display: grid;
  margin-bottom: var(--space-8);
}

.testimonial-card {
  grid-area: 1 / 1;           /* All cards share the same cell */
  padding: var(--space-8) var(--space-8);
  background: rgba(254, 252, 248, 0.07);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(196, 137, 42, 0.2);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;

  /* Hidden state */
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.testimonial-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 1;
}

/* Glass sheen on top edge */
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.22), transparent);
}

/* Decorative amber glow in bottom-right corner of card */
.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(196, 137, 42, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Giant opening quotation mark — leaves room for logo pill top-right */
.testimonial-quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5.5rem;
  line-height: 0.65;
  color: var(--clr-amber-400);
  opacity: 0.75;
  margin-bottom: var(--space-4);
  /* Nudge right so it clears under the logo pill */
  padding-right: 160px;
  user-select: none;
  display: block;
  min-height: unset;
}

/* Quote body */
.testimonial-quote p {
  font-size: clamp(var(--fs-base), 1.5vw + 0.6rem, var(--fs-lg));
  font-weight: var(--fw-medium);
  font-style: italic;
  color: var(--clr-cream-50);
  line-height: var(--lh-relaxed);
}

/* ── Logo: frosted pill, top-right of card ── */
.testimonial-logo-area {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  /* Light enough to show logos in their real colours */
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  max-width: 148px;
  min-height: unset;
  /* Pill-level transparency so it floats on the card */
  opacity: 0.78;
  transition: opacity var(--t-base);
}

.testimonial-card:hover .testimonial-logo-area {
  opacity: 0.92;
}

.testimonial-logo {
  height: 40px;
  width: auto;
  max-width: 108px;
  object-fit: contain;
  display: block;
  min-height: unset;
  /* No filter — show logos in their real colours */
}

/* ── Attribution — clean plain text, no logo repeated ── */
.testimonial-meta {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  padding-left: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid rgba(196, 137, 42, 0.5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.testimonial-author {
  display: block;
  font-style: normal;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--clr-cream-50);
  letter-spacing: 0.01em;
  min-height: unset;
}

.testimonial-org-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-forest-200);
  display: block;
  min-height: unset;
}

.testimonial-org-sep {
  margin-inline: var(--space-2);
  opacity: 0.35;
}

/* Monogram: fallback if no logo file */
.testimonial-monogram {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(196, 137, 42, 0.15);
  border: 1px solid rgba(196, 137, 42, 0.3);
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  color: var(--clr-amber-400);
  line-height: 1;
  min-height: unset;
}


/* ── Carousel controls ── */

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  background: transparent;
  border: 1px solid rgba(196, 137, 42, 0.35);
  border-radius: 50%;
  color: var(--clr-amber-400);
  font-size: var(--fs-base);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-spring);
}

.carousel-btn:hover {
  background: rgba(196, 137, 42, 0.15);
  border-color: var(--clr-amber-400);
  transform: scale(1.1);
}

.carousel-btn:active { transform: scale(0.94); }

/* Dot strip */
.carousel-dots {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  min-height: unset;
  padding: 0;
  border-radius: 50%;
  background: rgba(254,252,248,0.2);
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition:
    background var(--t-base),
    width var(--t-spring),
    border-radius var(--t-spring),
    border-color var(--t-base);
}

.carousel-dot.is-active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--clr-amber-400);
  border-color: var(--clr-amber-400);
}

.carousel-dot:hover:not(.is-active) {
  background: rgba(254,252,248,0.4);
}


/* =========================================
   16. MOTION PREFERENCES
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .mobile-sticky-cta { transition: none; }
  .marquee-track      { animation: none; }
  .testimonial-card   { transition: none; }
}


/* =========================================
   16. PRINT
   ========================================= */

@media print {
  .main-nav,
  .mobile-sticky-cta { display: none !important; }

  body { padding: 0; }

  .hero { padding-top: var(--space-8); }

  .all-features {
    background: none !important;
    color: black;
  }

  .feature-card {
    background: white !important;
    border: 1px solid #ccc !important;
    backdrop-filter: none !important;
  }

  .feature-card h3,
  .section-header h2,
  .section-header p,
  .feature-card p { color: black !important; }
}
