/* ========================================
   EJP Design Tokens — Layer 1: Primitives
   ======================================== */
:root {

  /* — Color Palette: Primary (Deep Burgundy) — Updated March 2026 — */
  --color-primary-950: #3a0f16;
  --color-primary-900: #920607;     /* deeper, more saturated */
  --color-primary-800: #961010;     /* main brand red */
  --color-primary-700: #ae4543;     /* lighter variant */
  --color-primary-600: #c45452;     /* hover state */
  --color-primary-500: #d46b69;
  --color-primary-400: #e0918f;
  --color-primary-300: #eab8bf;
  --color-primary-200: #f4d8dc;
  --color-primary-100: #fbeff1;
  --color-primary-50:  #fff5f5;

  /* — Color Palette: Secondary (Gold — replaces Navy) — */
  --color-secondary-800: #8a6d00;
  --color-secondary-700: #a68400;
  --color-secondary-600: #c4a000;
  --color-secondary-500: #e0b800;
  --color-secondary-100: #fef4c4;
  --color-secondary-50:  #fffbe6;

  /* — Color Palette: Accent (Vibrant Gold) — Updated per Figma — */
  --color-accent-700: #d4a800;     /* warmer dark gold, not olive */
  --color-accent-600: #e0b800;
  --color-accent-550: #fecb00;     /* Figma MyTEF button, CPT border */
  --color-accent-500: #fdd201;     /* main gold - warmer, brighter */
  --color-accent-400: #fdd929;
  --color-accent-100: #fef4c4;
  --color-accent-50:  #fffbe6;

  /* — Color Palette: Neutral (warm cream undertone) — Updated March 2026 — */
  --color-neutral-950: #1a0f10;
  --color-neutral-900: #2d2122;
  --color-neutral-800: #3d3233;
  --color-neutral-700: #514546;
  --color-neutral-600: #6b5e5f;
  --color-neutral-500: #897b7c;
  --color-neutral-400: #a69899;
  --color-neutral-300: #c4b9ba;
  --color-neutral-200: #f7eae2;    /* NEW: warm light neutral */
  --color-neutral-100: #fffceb;    /* NEW: warm off-white */
  --color-neutral-50:  #fffdf4;    /* NEW: warm cream background */

  /* — Color Palette: Dark Burgundy (Figma outline variant) — */
  --color-primary-dark: #852633;

  /* — Color Palette: Orange (Secondary Accent) — NEW March 2026 — */
  --color-orange-600: #b34206;
  --color-orange-500: #cb4908;     /* Primary orange */
  --color-orange-400: #eb8e04;
  --color-orange-300: #ffa64d;

  /* — Color Palette: Rose/Coral (Tertiary Accent) — NEW March 2026 — */
  --color-rose-400: #c8817d;       /* Icons, accents */
  --color-rose-300: #e0b8b2;       /* Dividers, subtle backgrounds */
  --color-rose-200: #ecd1ca;       /* Very subtle backgrounds */

  /* — Spacing Scale — */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* — Typography: Font — Poppins (March 2026 design update) */
  --font-family:          'Poppins', sans-serif;
  --font-weight-light:    300;
  --font-weight-regular:  400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;
  --font-weight-extrabold: 800;

  /* — Typography: Scale — Updated per Figma March 2026 reference */
  --text-xs:   0.75rem;     /* 12px — kickers, fine print, event-month */
  --text-sm:   0.8125rem;   /* 13px — buttons, card-link, small body */
  --text-base: 1rem;        /* 16px — body default */
  --text-md:   1.05rem;     /* 16.8px — section body copy (Figma) */
  --text-lg:   1.1875rem;   /* 19px — card h3, intro copy */
  --text-xl:   1.5625rem;   /* 25px — pillar titles (Figma) */
  --text-2xl:  clamp(1.375rem, 1.375rem + 1vw, 1.75rem);   /* 22–28px sub-heading */
  --text-3xl:  clamp(2rem, 2rem + 1.5vw, 3.125rem);         /* 32–50px section h2 (Figma) */
  --text-4xl:  clamp(2.5rem, 2.5rem + 2vw, 4.0625rem);      /* 40–65px hero h1 (Figma) */
  --text-nav:  clamp(1rem, 1.8vw, 1.1875rem);                /* 16–19px nav items (Figma) */

  /* — Typography: Line Height — */
  --leading-none:    1;
  --leading-tight:   1.2;   /* headings */
  --leading-snug:    1.35;
  --leading-base:    1.5;   /* body */
  --leading-relaxed: 1.6;   /* hero deck, event descriptions */

  /* — Typography: Letter Spacing — Updated per Figma March 2026 */
  --tracking-tighter: -1.2px;  /* hero h1 (Figma: -1px at 65px) */
  --tracking-tight:   -0.1px;  /* body/h3 default (Figma) */
  --tracking-normal:  -0.127px; /* body default (Figma nav links) */
  --tracking-wide:    1px;     /* event-month */
  --tracking-wider:   2px;     /* kickers / eyebrows */

  /* — Border Radius — Updated March 2026 for pill buttons */
  --radius-xs:   2px;       /* dividers, thin strips */
  --radius-sm:   6px;       /* logo-mark, small chips */
  --radius-md:   8px;       /* form inputs, small cards */
  --radius-lg:   10px;      /* service-card icons */
  --radius-xl:   12px;      /* cards */
  --radius-2xl:  14px;      /* wizard card icons */
  --radius-pill: 50px;      /* buttons (new — pill shape) */
  --radius-full: 9999px;    /* fully rounded elements */

  /* — Shadows — */
  --shadow-sm:        0 1px 2px rgba(26, 15, 16, 0.05);
  --shadow-md:        0 2px 8px rgba(26, 15, 16, 0.08);
  --shadow-card:      0 4px 24px rgba(133, 38, 51, 0.08);
  --shadow-card-lift: 0 6px 32px rgba(133, 38, 51, 0.12);
  --shadow-lg:        0 12px 40px rgba(26, 15, 16, 0.15);

  /* — Easing Curves — */
  --ease-spring:   cubic-bezier(0.16, 1, 0.30, 1);   /* spring-like, fast in, settles */
  --ease-standard: cubic-bezier(0.40, 0, 0.20, 1);   /* material standard in-out */
  --ease-enter:    cubic-bezier(0.00, 0, 0.20, 1);   /* decelerate — for entering elements */
  --ease-exit:     cubic-bezier(0.40, 0, 1.00, 1);   /* accelerate — for exiting elements */

  /* — Transitions — */
  --transition-fast:   0.15s var(--ease-standard);
  --transition-base:   0.20s var(--ease-standard);
  --transition-slow:   0.22s var(--ease-standard);
  --transition-xslow:  0.30s var(--ease-standard);
  --transition-reveal: 0.50s var(--ease-spring);
  --transition-nav:    0.28s var(--ease-exit);

  /* — Z-index — */
  --z-base:     0;
  --z-raised:   1;
  --z-dropdown: 10;
  --z-sticky:   100;
  --z-modal:    200;
  --z-toast:    300;

  /* — Layout — */
  --max-width: 1200px;


  /* ========================================
     Layer 2: Semantic Tokens — Surfaces
     Updated March 2026 — Warm backgrounds
     ======================================== */
  --color-bg:               var(--color-neutral-50);     /* Warm cream */
  --color-surface:          #fffef5;                     /* Warm white */
  --color-surface-raised:   var(--color-neutral-100);    /* Slightly elevated surface */
  --color-surface-sunken:   var(--color-neutral-50);
  --color-surface-primary:  var(--color-primary-50);
  --color-surface-employer: var(--color-accent-50);
  --color-surface-warm:     var(--color-neutral-200);    /* NEW: warm section background */

  /* ========================================
     Layer 2: Semantic Tokens — Text
     Updated March 2026
     ======================================== */
  --color-text-primary:       var(--color-neutral-900);
  --color-text-secondary:     var(--color-neutral-600);
  --color-text-tertiary:      var(--color-neutral-500);
  --color-text-disabled:      var(--color-neutral-400);
  --color-text-inverse:       #ffffff;
  --color-text-inverse-muted: rgba(255, 255, 255, 0.8);
  --color-text-on-accent:     var(--color-primary-900);
  --color-heading:            var(--color-primary-800);   /* Updated to new burgundy */

  /* ========================================
     Layer 2: Semantic Tokens — Brand / Interactive
     Updated March 2026
     ======================================== */
  --color-brand:          var(--color-primary-800);     /* Updated: main burgundy */
  --color-brand-hover:    var(--color-primary-700);     /* Updated */
  --color-brand-muted:    var(--color-primary-100);
  --color-brand-subtle:   var(--color-primary-50);

  --color-accent:          var(--color-accent-500);     /* Updated: new gold */
  --color-accent-hover:    var(--color-accent-400);     /* Updated */
  --color-accent-subtle:   var(--color-accent-50);
  --color-accent-on-dark:  var(--color-accent-400);

  --color-employer:        var(--color-accent-700);
  --color-employer-hover:  var(--color-accent-600);
  --color-employer-subtle: var(--color-accent-50);
  --color-employer-muted:  var(--color-accent-100);

  /* NEW: Orange accent aliases */
  --color-accent-orange:       var(--color-orange-500);
  --color-accent-orange-hover: var(--color-orange-400);

  /* NEW: Rose accent aliases */
  --color-accent-rose:       var(--color-rose-400);
  --color-accent-rose-subtle: var(--color-rose-300);

  /* ========================================
     Layer 2: Semantic Tokens — Borders
     ======================================== */
  --color-border:              var(--color-neutral-100);
  --color-border-strong:       var(--color-neutral-200);
  --color-border-focus:        var(--color-accent-500);
  --color-border-brand:        var(--color-primary-600);
  --color-border-inverse:      rgba(255, 255, 255, 0.5);
  --color-border-inverse-hover: rgba(255, 255, 255, 0.8);
  --color-surface-inverse-hover: rgba(255, 255, 255, 0.12);

  /* ========================================
     Layer 2: Semantic Tokens — Chrome
     Updated March 2026
     ======================================== */
  --color-header-bg:      var(--color-neutral-50);       /* Figma: warm cream */
  --color-header-top-bg:  var(--color-primary-800);     /* Figma: burgundy top bar */
  --color-header-top-text: #ffffff;                      /* Figma: white text on burgundy */
  --color-header-text:    var(--color-primary-800);      /* Figma: burgundy nav text */
  --color-header-active:  var(--color-primary-700);

  --color-footer-bg:      var(--color-primary-800);     /* Figma: burgundy (not darker) */
  --color-footer-text:    var(--color-neutral-50);      /* Figma: cream text */
  --color-footer-muted:   rgba(255, 253, 240, 0.7);    /* Figma: faded cream */
  --color-footer-divider: rgba(255, 255, 255, 0.15);   /* Figma: subtle line */


  /* ========================================
     Layer 3: Component Tokens — Buttons — Updated March 2026
     ======================================== */
  --btn-font-size:    0.875rem;          /* Figma: 14px contact buttons */
  --btn-font-size-lg: 1rem;             /* Figma: 16px hero/CTA buttons */
  --btn-font-weight:  var(--font-weight-semibold);  /* Figma: Poppins SemiBold */
  --btn-radius:       var(--radius-pill);  /* Figma: pill shape (100px) */
  --btn-padding-y:    0.5rem;            /* Figma: 8px compact */
  --btn-padding-x:    1.5rem;            /* Figma: 24px compact */
  --btn-padding-y-lg: 1rem;             /* Figma: 16px hero */
  --btn-padding-x-lg: 3rem;              /* Figma: 48px hero */

  /* ========================================
     Layer 3: Component Tokens — Cards
     ======================================== */
  --card-padding:      var(--space-lg);
  --card-radius:       var(--radius-xl);
  --card-border:       1px solid var(--color-border);
  --card-shadow:       var(--shadow-md);
  --card-shadow-hover: var(--shadow-card-lift);
  --card-icon-size-sm: 91px;
  --card-icon-size-lg: 106px;
  --card-icon-radius:  var(--radius-lg);

  /* ========================================
     Layer 3: Component Tokens — Sections
     ======================================== */
  --section-padding-y:    var(--space-3xl);   /* 64px — more breathing room */
  --section-padding-y-sm: var(--space-2xl);  /* 48px — more breathing room */

  /* ========================================
     Layer 3: Component Tokens — Kicker / Eyebrow
     ======================================== */
  --kicker-font-size:      var(--text-xs);             /* Figma: 12px */
  --kicker-font-weight:    var(--font-weight-semibold); /* Figma: Poppins SemiBold */
  --kicker-letter-spacing: var(--tracking-wider);       /* Figma: 2px */
  --kicker-color:          var(--color-accent-on-dark);
  --kicker-color-light:    var(--color-neutral-800);    /* Figma: #3d3233 on light bg */

  /* ========================================
     Layer 3: Component Tokens — Section Divider
     ======================================== */
  --divider-width:  48px;
  --divider-height: 3px;
  --divider-color:  var(--color-accent);
  --divider-radius: var(--radius-xs);

  /* ========================================
     Layer 3: Component Tokens — Hero
     ======================================== */
  --hero-image: url('assets/page-hero-new.webp');
}


/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-gutter: stable; }

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);  /* Updated to match Figma */
  color: var(--color-text-primary);
  background: var(--color-bg);
  line-height: var(--leading-base);
  letter-spacing: var(--tracking-normal);
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-weight: var(--font-weight-bold);     /* Figma: Poppins Bold */
  line-height: 1.1;                         /* Figma: ~71.4/65 = 1.098 */
}

h2 {
  font-weight: var(--font-weight-semibold); /* Figma: Poppins SemiBold */
  line-height: var(--leading-tight);
}

h3, h4, h5 {
  font-weight: var(--font-weight-medium);   /* Figma: Poppins Medium */
  line-height: var(--leading-tight);
}

a { color: var(--color-primary-500); text-decoration: none; }
a:hover { color: var(--color-brand-hover); }

:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
}


/* ========================================
   Section Kicker / Eyebrow
   ======================================== */
.section-kicker {
  display: inline-block;
  font-size: var(--kicker-font-size);
  font-weight: var(--kicker-font-weight);
  text-transform: uppercase;
  letter-spacing: var(--kicker-letter-spacing);
  color: var(--kicker-color-light);
  margin-bottom: var(--space-sm);
}


/* ========================================
   Header / Navigation — Updated March 2026 (light background)
   ======================================== */
.site-header {
  background: var(--color-bg);           /* Warm cream background */
  color: var(--color-brand);             /* Burgundy text */
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  border-bottom: 1px solid var(--color-border);
}

.header-top {
  background: var(--color-header-top-bg);  /* Figma: burgundy */
  color: var(--color-header-top-text);     /* Figma: white text */
  padding: var(--space-sm) var(--space-lg);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header-top a,
.header-top button { color: var(--color-header-top-text); }

/* Funds & Resources dropdown in top bar */
.header-top-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.top-dropdown {
  position: relative;
}

.top-dropdown > a,
.top-dropdown > button {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  padding: 0;
  font-weight: 500;
}

.top-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-header-top-bg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: var(--space-xs) 0;
  min-width: 240px;
  z-index: 150;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.top-dropdown.is-open .top-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.top-dropdown-menu li a {
  display: block;
  padding: var(--space-xs) var(--space-md);
  color: var(--color-header-top-text);
  font-size: 13px;
  white-space: nowrap;
}

.top-dropdown-menu li a:hover {
  background: rgba(255,255,255,0.1);
}

.top-dropdown .nav-dropdown-arrow {
  border-top-color: var(--color-header-top-text);
}

/* Social icons in top bar */
.header-social {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header-social a {
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.header-social a:hover {
  opacity: 1;
}

.header-social svg {
  width: 16px;
  height: 16px;
  fill: var(--color-header-top-text);
}

.header-top-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.3);
  margin: 0 var(--space-xs);
}

.header-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
}

.logo span {
  display: none; /* Removed sub-text per feedback */
}

.logo:hover { opacity: 0.8; }

.logo-mark {
  display: none; /* Replaced by SVG img */
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2vw, 3rem);
  list-style: none;
  font-size: var(--text-nav);
  font-weight: var(--font-weight-medium);
}

.nav-links a { color: var(--color-brand); white-space: nowrap; }   /* Burgundy on light header */
.nav-links a:hover { color: var(--color-brand-hover); }
.nav-links .active { color: var(--color-brand-hover); border-bottom: 2px solid var(--color-accent); padding-bottom: 2px; }

.nav-links .nav-cta {
  background: var(--color-accent-550);     /* Figma: #fecb00 */
  color: var(--color-primary-800);         /* Figma: burgundy text */
  padding: 7px 20px;                      /* Figma: compact nav CTA */
  border-radius: 10px;                    /* Figma: rounded-[10.159px] */
  font-weight: var(--font-weight-medium); /* Figma: Poppins Medium */
  font-size: 1.111rem;                    /* Figma: 17.778px */
  white-space: nowrap;
}

.nav-links .nav-cta:hover { background: var(--color-accent-hover); color: var(--color-text-on-accent); }

/* Nav dropdown (Employment tab) */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  transition: transform 0.2s;
}

.nav-dropdown.is-open > a > .nav-dropdown-arrow,
.top-dropdown.is-open > a > .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) 0;
  min-width: 200px;
  z-index: 100;
  list-style: none;
  margin-top: var(--space-xs);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-dropdown.is-open > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  color: var(--color-brand);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
  background: var(--color-neutral-50);
  color: var(--color-brand-hover);
}

/* Inline search bar in header-top */
.header-search-inline {
  display: flex;
  align-items: center;
  position: relative;
}

.header-search-inline input {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  color: var(--color-header-top-text);
  font-size: 13px;
  font-family: inherit;
  padding: 4px 12px 4px 30px;
  width: 180px;
  transition: width 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-search-inline input::placeholder {
  color: rgba(255,255,255,0.6);
}

.header-search-inline input:focus {
  outline: none;
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
  width: 240px;
}

.header-search-inline .header-search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.header-search-inline .header-search-icon svg {
  width: 14px;
  height: 14px;
  fill: rgba(255,255,255,0.6);
}

.header-search-inline input:focus ~ .header-search-icon svg {
  fill: rgba(255,255,255,0.9);
}

/* Legacy search button — kept for backwards compat */
.header-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-header-top-text);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: inherit;
  padding: 0;
}

.header-search-btn:hover {
  opacity: 0.8;
}

.header-search-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Search modal */
.search-modal-box {
  text-align: center;
  max-width: 540px;
}

.search-modal-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
}

.search-modal-form {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.search-modal-form input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: inherit;
}

.search-modal-form input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 2px rgba(114, 28, 36, 0.15);
}

.search-modal-form button {
  padding: var(--space-sm) var(--space-lg);
}

.search-modal-links {
  text-align: left;
}

.search-modal-links h3 {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.search-modal-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-modal-links li a {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--color-brand);
  font-size: var(--text-sm);
}

.search-modal-links li a:hover {
  color: var(--color-brand-hover);
}

/* CPT modal */
.cpt-modal-box {
  text-align: center;
  max-width: 500px;
}

.cpt-modal-badge {
  display: inline-block;
  background: var(--color-brand);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.cpt-modal-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
}

.cpt-modal-body {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.cpt-modal-cta {
  width: 100%;
  justify-content: center;
}

.cpt-modal-footnote {
  margin-top: var(--space-md);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}


/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: var(--hero-image) center 20%/cover no-repeat;
  color: var(--color-text-inverse);
  padding: var(--space-3xl) var(--space-3xl) var(--space-3xl);
  min-height: 560px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Hero ambient dot-drift background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(254, 203, 0, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: dot-drift 28s ease-in-out infinite;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 65%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 65%);
}

.hero-inner.editorial {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  text-align: center;                      /* Figma: centered hero text */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero entry stagger — CSS-only fallback when GSAP is unavailable.
   When GSAP loads, animations.js sets el.style.animation = 'none' per child,
   cancelling this keyframe so only GSAP runs (prevents double-animation fight). */
.hero-inner > * {
  animation: blur-reveal 0.7s var(--ease-spring) both;
}
.hero-inner > *:nth-child(1) { animation-delay:   0ms; }
.hero-inner > *:nth-child(2) { animation-delay: 100ms; }
.hero-inner > *:nth-child(3) { animation-delay: 200ms; }
.hero-inner > *:nth-child(4) { animation-delay: 300ms; }
.hero-inner > *:nth-child(5) { animation-delay: 400ms; }

.hero-kicker {
  display: none;                           /* Figma: no kicker in hero */
}

.hero h1 {
  font-size: clamp(2rem, 2rem + 1.5vw, 3.5rem); /* sized to fit one line on desktop */
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.5px;
  max-width: none;
}

.hero .hero-subtitle {
  display: none;                           /* Figma: no separate subtitle line */
}

.hero .hero-deck {
  font-size: clamp(1.125rem, 1.125rem + 0.25vw, 1.2875rem);  /* 18–20.6px Figma */
  color: var(--color-text-inverse-muted);
  margin-bottom: var(--space-2xl);
  font-weight: var(--font-weight-regular);
  max-width: 660px;                        /* Figma: wider container */
  line-height: var(--leading-relaxed);     /* Figma: ~1.6 */
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;                 /* Figma: centered buttons */
}

/* Hero secondary CTA: burgundy bg, cream text (Figma) */
.btn-hero-outline {
  background: var(--color-neutral-50);
  border: none;
  color: var(--color-brand);
}

.btn-hero-outline:hover {
  background: #fff;
  color: var(--color-brand-hover);
}

/* Page-level hero (inner pages) — Updated March 2026 */
.page-hero {
  background: var(--hero-image) center 20%/cover no-repeat;
  color: var(--color-text-inverse);
  padding: var(--space-3xl) var(--space-3xl) var(--space-2xl); /* Standardized to match main hero */
  min-height: 400px;
  display: flex;
  align-items: center;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  text-align: left;
  padding-left: var(--space-2xl); /* Standardized padding-left */
}

.page-hero h1 {
  font-size: clamp(2rem, 2rem + 1.5vw, 3rem);  /* 32–48px */
  font-weight: var(--font-weight-bold);         /* Figma: Bold */
  margin-bottom: var(--space-md);
  letter-spacing: -1px;                         /* Figma heading tracking */
}

.page-hero p {
  font-size: var(--text-lg);
  color: var(--color-text-inverse-muted);
  max-width: 640px;
  font-weight: var(--font-weight-regular);
}


/* ========================================
   CPT Participant Banner
   ======================================== */
.cpt-banner {
  background: var(--color-accent-subtle);
  border-bottom: 5px solid var(--color-accent-550);  /* Figma: 5px #fecb00 */
  padding: var(--space-md) var(--space-lg);
  text-align: center;
}

.cpt-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cpt-banner strong {
  color: black;                            /* Figma: black text */
  font-weight: var(--font-weight-semibold); /* Figma: Poppins SemiBold */
}

.cpt-banner .btn {
  /* Figma: "Start Here >" inline text link, not a button */
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;                    /* Figma: 14px */
  font-weight: var(--font-weight-medium); /* Figma: Poppins Medium */
  color: black;
  text-decoration: underline;
  border-radius: 0;
  min-width: 0;
  height: auto;
}

.cpt-banner .btn:hover {
  background: none;
  color: var(--color-brand-hover);
}

.returning-modal-box {
  text-align: center;
  max-width: 420px;
}

.returning-modal-icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.returning-modal-icon img {
  width: 91px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.returning-modal-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
}

.returning-modal-body {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
}

.returning-modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ── My TEF portal modal ─────────────────────────────────────── */
.mytef-modal-box {
  text-align: center;
  max-width: 460px;
}

.mytef-modal-logo {
  display: inline-block;
  background: var(--color-brand);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.mytef-modal-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
}

.mytef-modal-body {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.mytef-modal-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-2xl);
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs) var(--space-lg);
}

.mytef-modal-features li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding-left: var(--space-md);
  position: relative;
}

.mytef-modal-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-brand);
  font-weight: 700;
}

.mytef-modal-cta {
  width: 100%;
  justify-content: center;
}

.mytef-modal-footnote {
  margin-top: var(--space-md);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}


/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 48px;
  padding: 0 var(--btn-padding-x);
  border-radius: var(--radius-pill);       /* Figma: rounded-[50px] */
  font-weight: var(--btn-font-weight);
  font-size: var(--btn-font-size);
  cursor: pointer;
  border: none;
  transition: background var(--transition-base), transform var(--transition-fast);
}

.btn-lg {
  min-width: 260px;
  height: 64px;
  padding: 0 var(--btn-padding-x-lg);
  font-size: var(--btn-font-size-lg);
}

.btn:active { transform: scale(0.98); }

/* Primary button: Burgundy background, white text */
.btn-primary { background: var(--color-brand); color: var(--color-text-inverse); }
.btn-primary:hover { background: var(--color-brand-hover); color: var(--color-text-inverse); }

/* Accent button: Gold background, dark text */
.btn-accent { background: var(--color-accent); color: var(--color-text-on-accent); }
.btn-accent:hover { background: var(--color-accent-hover); color: var(--color-text-on-accent); }

/* Outline button: Burgundy border per Figma reference */
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary-800);  /* Figma: burgundy border */
  color: var(--color-primary-800);
}
.driver-popover .btn-outline,
.btn-outline:hover {
  background: rgba(150, 16, 16, 0.06);
}

/* Dark outline variant for partnership buttons */
.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--color-primary-dark);  /* Figma: #852633 */
  color: var(--color-primary-dark);
}
.btn-outline-dark:hover {
  background: rgba(133, 38, 51, 0.06);
}

/* Secondary button: Burgundy bg, white text per Figma hero CTA */
.btn-secondary { background: var(--color-brand); color: var(--color-text-inverse); }
.btn-secondary:hover { background: var(--color-brand-hover); color: var(--color-text-inverse); }


/* ========================================
   Content Sections
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section { padding: var(--section-padding-y) 0; }
.section[id] { scroll-margin-top: 100px; }
.section--neutral { background: var(--color-surface-sunken); }
.section--secondary { background: var(--color-employer-subtle); }
.section--accent { background: var(--color-accent-500); }  /* Figma: full gold #fdd201 */
.section--accent .section-kicker { color: var(--color-primary-800); } /* Figma: burgundy on gold */
.section--accent .section-header h2 { color: var(--color-primary-800); }

.section-header { 
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-header h2 {
  font-size: var(--text-3xl);  /* 32–50px Figma: Poppins SemiBold */
  font-weight: var(--font-weight-semibold);
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
  letter-spacing: var(--tracking-tight);   /* Figma: -0.1px */
}

.section-header p {
  color: var(--color-neutral-800);           /* Figma: #3d3233 */
  font-size: var(--text-md);                 /* Figma: 16.8px */
  font-weight: var(--font-weight-regular);   /* Figma: Poppins Regular */
  max-width: 640px;
  line-height: var(--leading-base);          /* Figma: 25.2/16.8 ≈ 1.5 */
}

.section-header--centered { 
  text-align: center;
  align-items: center;
}
.section-header--centered p { margin: 0 auto; }
.section-header--centered .section-divider { margin: var(--space-md) auto; }

.section-divider {
  display: none;                           /* Figma: no divider bars under headings */
}

.section-cta {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: flex-start;
}

.section--centered .section-cta,
.text-center.section-cta {
  justify-content: center;
}

.text-center .btn {
  margin-top: var(--space-xl);
}


/* ========================================
   Service Cards & Grids
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.services-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
.services-grid.grid-2 > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: none;
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  border: var(--card-border);
  transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: var(--color-brand-muted);
}

/* Base Card Component — Standardized */
.service-card, .value-item, .contact-card, .employer-card, .wizard-card, .pillar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  box-shadow: var(--shadow-md); /* Slightly more prominent default shadow */
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.service-card:hover, .value-item:hover, .contact-card:hover, .employer-card:hover, .wizard-card:hover, .pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--color-brand-muted);
}

.service-card-icon, .value-item-icon, .contact-card-icon, .employer-card-icon, .wizard-card-icon {
  width: var(--card-icon-size-lg);
  height: var(--card-icon-size-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  background: transparent !important; /* Removed backgrounds */
  color: var(--color-brand);
}

.service-card-icon img, .wizard-card-icon img {
  width: 100%;
  height: auto;
  max-width: 91px;
}

.service-card--centered, .value-item--centered, .contact-card--centered {
  text-align: center;
  align-items: center;
}

.service-card h3, .employer-card h3, .wizard-card h3 {
  font-size: var(--text-xl);                 /* Figma: 25px */
  font-weight: var(--font-weight-medium);    /* Figma: Poppins Medium */
  color: var(--color-neutral-900);           /* Figma: #2d2122 */
  margin-bottom: var(--space-sm);
  letter-spacing: var(--tracking-tight);
}

.value-item h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-800);
  margin-bottom: var(--space-xs);
}

.service-card p, .value-item p, .employer-card p, .wizard-card p {
  color: var(--color-neutral-800);            /* Figma: #3d3233 */
  font-size: 0.9375rem;                       /* Figma: 15px */
  font-weight: var(--font-weight-regular);    /* Figma: Poppins Regular */
  line-height: 1.44;                          /* Figma: 21.6/15 */
}

.service-card .card-link, .employer-card .card-link, .service-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-xl);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-800);           /* Maroon */
  text-decoration: underline;
  background: transparent;
  border: none;
  padding: 0;
  transition: color var(--transition-base);
  width: fit-content;
  cursor: pointer;
}

.service-card .card-link:hover, .employer-card .card-link:hover, .service-card .btn:hover {
  color: var(--color-brand-hover);
  text-decoration: underline;
}

/* Allow <button> elements to use card-link styling without browser defaults */
button.card-link {
  background: none;
  border: none;
  font: inherit;
  text-align: left;
}


/* ========================================
   Three Pillars — Listicle Layout (Figma)
   ======================================== */
.pillars-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
  align-items: start;
}

.pillars-intro {
}

.pillars-intro .section-kicker {
  display: block;
  margin-bottom: var(--space-sm);
}

.pillars-intro h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-neutral-900);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}

.pillars-intro p {
  font-size: var(--text-md);
  color: var(--color-neutral-700);
  line-height: var(--leading-base);
}

.pillars-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.pillar-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.pillar-icon {
  flex-shrink: 0;
  width: 113px;
  height: 113px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon img {
  width: 91px;
  height: auto;
}

.pillar-text h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-xs);
  letter-spacing: var(--tracking-tight);
}

.pillar-text p {
  font-size: 0.9375rem;
  color: var(--color-neutral-800);
  line-height: 1.44;
  margin-bottom: var(--space-sm);
}

.pillar-link {
  display: inline-block;
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}

.pillar-link:hover { text-decoration: underline; }
.pillar-link--gold     { color: var(--color-accent-500); }
.pillar-link--burgundy { color: var(--color-primary-800); }
.pillar-link--dark     { color: var(--color-neutral-900); }


/* ========================================
   Event Photo Cards (Figma)
   ======================================== */
.event-photo-cards {
  display: flex;
  justify-content: center;
  gap: 45px;
  margin-bottom: var(--space-2xl);
}

.event-photo-card {
  width: 229px;
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.event-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.event-photo-placeholder {
  height: 166px;
  background: var(--color-accent-100);
}

.event-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scaleX(-1);
}

.event-photo-card-body {
  padding: var(--space-md);
  text-align: center;
}

.event-photo-card-body h3 {
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-xs);
}

.event-photo-card-body p {
  font-size: 0.85rem;
  font-weight: var(--font-weight-light);
  color: var(--color-neutral-600);
}


/* ========================================
   Value / Stats Grid
   ======================================== */
.value-prop { background: var(--color-accent-50); }

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.value-item {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--color-surface);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-brand-muted);
  box-shadow: var(--shadow-md);
}

.value-item-number {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand);
  line-height: var(--leading-none);
  margin-bottom: var(--space-sm);
}

.value-item-icon {
  font-size: var(--text-2xl);
  line-height: var(--leading-none);
  margin: 0 auto var(--space-sm);
}

/* value-item h3 defined above with card h3 rules */
.value-item p  { font-size: var(--text-sm); color: var(--color-text-tertiary); }

.value-item--secondary { border-color: var(--color-employer-muted); }
.value-item--secondary .value-item-number { color: var(--color-primary-700); }


/* ========================================
   About EJP
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about-content h3 {
  font-size: var(--text-lg);
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-xl);
}
.about-content h3:first-child { margin-top: 0; }
.about-content p { color: var(--color-text-secondary); font-size: var(--text-base); }

/* ========================================
   Success Stories / Testimonial Carousel — high-fidelity Figma (node 8:3)
   ======================================== */
.testimonial-section {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

.testimonial-kicker {
  display: inline-block;
  font-size: 0.75rem;                     /* Figma: 12px */
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary-800);
}

.testimonial-kicker-line {
  width: 46px;                            /* Figma: 46.259px */
  height: 3px;
  background: var(--color-primary-800);
  margin: 10px 0 var(--space-lg);
  border-radius: var(--radius-xs);
}

/* Carousel mechanics */
.testimonial-carousel {
  position: relative;
  overflow: hidden;                    /* clip off-screen slides */
}

.testimonial-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  min-width: 100%;
  position: relative;
  min-height: 600px;                 /* Figma: ~639px section height */
}

/* Slide content — left side, aligned to container position */
.testimonial-slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: max(var(--space-lg), calc((100vw - var(--max-width)) / 2 + var(--space-lg)));
  padding-right: var(--space-3xl);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-3xl);
  max-width: 45%;                    /* Figma: text occupies ~40% of section width */
}

.testimonial-quote {
  font-size: clamp(1.25rem, 0.9rem + 1.25vw, 2rem); /* 20–32px — scaled for viewport */
  font-weight: var(--font-weight-medium);
  font-style: normal;
  color: var(--color-primary-800);
  line-height: 1.27;                      /* Figma: 1.273 */
  letter-spacing: -1.2px;                 /* Figma: -1.2px */
  border: none;
  padding: 0;
  margin: 0 0 var(--space-2xl);
  max-width: 522px;
}

.testimonial-attribution {
  color: var(--color-primary-800);
}

.testimonial-name {
  display: block;
  font-size: 0.9375rem;                   /* Figma: 15px */
  font-weight: var(--font-weight-regular);
  line-height: 1.73;
  letter-spacing: -0.6px;
}

.testimonial-org {
  display: block;
  font-size: 1.25rem;                     /* Figma: 20px */
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  letter-spacing: -0.6px;
}

/* Slide image — absolute positioned, organic feathered mask (Figma node 8:13)
   Uses CSS mask-image with an SVG containing feGaussianBlur to create the
   soft blended edge where the photo meets the gold background. */
.testimonial-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;                        /* ~25% smaller than original 55% for better framing */
  line-height: 0;
  overflow: hidden;
  z-index: 1;
  /* Organic mask — clean curved edge without blur (Figma node 8:13) */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 640' preserveAspectRatio='none'%3E%3Cpath d='M160 0C60 65 10 165 10 320S75 575 185 640H600V0z' fill='%23fff'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 640' preserveAspectRatio='none'%3E%3Cpath d='M160 0C60 65 10 165 10 320S75 575 185 640H600V0z' fill='%23fff'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.testimonial-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;       /* Center faces within mask opening */
}

/* Warm radial overlay — approximates Figma mix-blend-multiply ellipse (node 8:17) */
.testimonial-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 70% at 15% 35%,
    rgba(150, 16, 16, 0.22) 0%,
    transparent 65%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

/* Controls — overlaid at bottom-left, aligned to container */
.testimonial-controls {
  position: absolute;
  bottom: var(--space-lg);
  left: max(var(--space-lg), calc((100vw - var(--max-width)) / 2 + var(--space-lg)));
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 3;
}

.testimonial-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--color-primary-800);
  font-size: var(--text-lg);
  transition: color 0.2s ease, background 0.2s ease;
}

.testimonial-btn:hover {
  background: rgba(150, 16, 16, 0.1);
}

.testimonial-dots {
  display: flex;
  gap: var(--space-xs);
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-primary-800);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.testimonial-dot.active {
  background: var(--color-primary-800);
}

.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }

.pillar-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: var(--card-border);
}
.pillar-card h4 { font-size: var(--text-base); color: var(--color-brand); margin-bottom: var(--space-xs); }
.pillar-card p  { font-size: var(--text-xs); color: var(--color-text-tertiary); }


/* ========================================
   Contact / Get Help
   ======================================== */
.contact-section { background: var(--color-neutral-50); }  /* Figma: #fffdf4 */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }

.contact-card {
  padding: var(--space-xl);                /* Figma: 32px */
  border-radius: var(--card-radius);
  border: none;                            /* Figma: no border, shadow only */
  background: var(--color-neutral-50);     /* Figma: #fffdf4 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); /* Figma shadow */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.contact-card h3 {
  font-size: 1.25rem;                     /* Figma: 20px Poppins SemiBold */
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-800);
  margin-bottom: var(--space-sm);
}
.contact-card p  {
  font-size: 0.875rem;                    /* Figma: 14px */
  color: var(--color-neutral-500);        /* Figma: #897b7c */
  margin-bottom: var(--space-md);
  flex: 1;
}
.contact-card .btn {
  margin-top: auto;
  border-radius: 20px;                    /* Figma: rounded-[20px] */
  font-weight: var(--font-weight-medium); /* Figma: Poppins Medium */
}


/* ========================================
   MyTEF Portal Integration
   ======================================== */
.mytef-section { background: var(--color-accent-50); }

.mytef-features { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.mytef-feature {
  flex: 1;
  min-width: 200px;
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-brand-muted);
  text-align: center;
}
.mytef-feature h3 { font-size: var(--text-base); color: var(--color-heading); margin-bottom: var(--space-xs); }
.mytef-feature p  { font-size: var(--text-xs); color: var(--color-text-tertiary); }


/* ========================================
   Event Cards
   ======================================== */
.events-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.event-card {
  display: flex;
  gap: var(--space-xl);
  background: var(--color-surface);
  border-radius: var(--card-radius);
  border: var(--card-border);
  padding: var(--card-padding);
  transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.event-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: var(--color-brand-muted);
}

.event-date-badge {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: var(--color-brand);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-inverse);
  line-height: var(--leading-none);
}

.event-month {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  opacity: 0.85;
}

.event-day {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-extrabold);
  margin-top: 2px;
}

.event-details { flex: 1; }

.event-details h3 {
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.event-meta {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-md);
}

.event-details p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-base);
  margin-bottom: var(--space-md);
}

.event-details .btn {
  font-size: var(--btn-font-size);
  padding: var(--btn-padding-y) var(--btn-padding-x);
}


/* ========================================
   Blockquote
   ======================================== */
blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-lg);
  margin-top: var(--space-md);
  font-style: italic;
  color: var(--color-neutral-700);
}

blockquote footer {
  margin-top: var(--space-sm);
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}


/* ========================================
   Wizard Flow
   ======================================== */
.wizard-step {
  transition:
    opacity   0.25s var(--ease-enter),
    transform 0.25s var(--ease-enter);
}
.wizard-step:not(.active) {
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
}
.wizard-step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.wizard-step.exiting {
  opacity: 0;
  transform: translateX(-16px);
}
.wizard-step--hidden { display: none; }

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

#wizard-step-1 .wizard-cards {
  grid-template-columns: repeat(2, 1fr);
}

#wizard-step-2 .wizard-cards {
  grid-template-columns: repeat(3, 1fr);
}

.wizard-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--transition-slow),
    box-shadow var(--transition-slow),
    transform var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

.wizard-card:hover {
  border-color: var(--color-primary-400);
  box-shadow: var(--shadow-card-lift);
  transform: translateY(-2px);
  color: inherit;
}

.wizard-card-icon {
  width: var(--card-icon-size-lg);
  height: var(--card-icon-size-lg);
  border-radius: var(--radius-2xl);
  background: var(--color-brand-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.wizard-card-icon img {
  width: 76px;
  height: 76px;
  display: block;
}

.wizard-card h3 {
  font-size: var(--text-xl);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-sm);
}

.wizard-card-sub {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-sm);
}

.wizard-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

.wizard-card .btn { margin-top: auto; }


.wizard-back {
  background: none;
  border: none;
  color: var(--color-primary-500);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  margin-bottom: var(--space-lg);
  padding: 0;
  font-family: inherit;
}

.wizard-back:hover { color: var(--color-brand); }

.wizard-result {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--color-surface);
  border-radius: var(--card-radius);
  border: 2px solid var(--color-border);
}

.wizard-result h3 {
  font-size: var(--text-xl);
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.wizard-result p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

/* Member CTA Row */
.member-cta-row {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
}


/* ========================================
   Newsletter
   ======================================== */
.newsletter-block {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-block h2 {
  font-size: clamp(var(--text-2xl), 1.75rem + 0.37vw, var(--text-3xl));
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.newsletter-block > p {
  color: var(--color-text-secondary);
  font-size: var(--text-md);
  margin-bottom: var(--space-xl);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap; /* Allow wrapping on narrow containers */
  justify-content: center;
}

.newsletter-input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--text-base);
  transition: border-color var(--transition-slow);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-brand-muted);
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}


/* ========================================
   Motion — @keyframes Library
   ======================================== */

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blur-reveal {
  from { opacity: 0; filter: blur(4px); transform: translateY(12px); }
  to   { opacity: 1; filter: blur(0px); transform: translateY(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-bottom {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-top {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ambient-breathe {
  0%, 100% { opacity: 0; }
  50%       { opacity: 1; }
}

@keyframes dot-drift {
  0%   { background-position: 0 0; }
  50%  { background-position: 4px 3px; }
  100% { background-position: 0 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fade-scale-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ========================================
   Motion — Animation Utility Classes
   ======================================== */

.animate-fade-in        { animation: fade-in        var(--transition-base)   var(--ease-standard) both; }
.animate-fade-in-up     { animation: fade-in-up      var(--transition-xslow)  var(--ease-enter)    both; }
.animate-blur-reveal    { animation: blur-reveal      var(--transition-reveal) var(--ease-spring)   both; }
.animate-slide-in-right { animation: slide-in-right  var(--transition-xslow)  var(--ease-enter)    both; }
.animate-slide-in-bottom{ animation: slide-in-bottom var(--transition-xslow)  var(--ease-enter)    both; }
.animate-slide-in-top   { animation: slide-in-top    var(--transition-base)   var(--ease-enter)    both; }

/* Stagger delay utilities — 50ms increments */
.stagger-1 { animation-delay:  50ms; }
.stagger-2 { animation-delay: 100ms; }
.stagger-3 { animation-delay: 150ms; }
.stagger-4 { animation-delay: 200ms; }
.stagger-5 { animation-delay: 250ms; }
.stagger-6 { animation-delay: 300ms; }

/* ========================================
   Motion — Scroll Reveal States
   ======================================== */

/* Elements start hidden; GSAP sets filter/transform as inline styles via fromTo().
   The CSS class only holds opacity + transform so the fallback IntersectionObserver path works.
   Filter is NOT set here — if it were, clearProps:'filter' would cause it to snap back blurry. */
.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
}

/* Prevent GSAP flicker on non-hero pages */
main:not(:has(.hero)):not(:has(.page-hero)) {
  opacity: 0;
}

/* Fallback: when GSAP is unavailable, IntersectionObserver adds .is-visible */
.reveal.is-visible,
.reveal-stagger > *.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease-spring), transform 0.5s var(--ease-spring);
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }

.mt-xl { margin-top: var(--space-xl); }

.disclaimer-text {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  font-style: italic;
  margin-top: var(--space-xl);
}

.text-placeholder {
  font-size: var(--text-sm);
  color: var(--color-text-disabled);
  font-style: italic;
}


/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--space-2xl) var(--space-lg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
}

.footer-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1); /* Make logo white for dark footer */
}

.footer-brand span {
  display: none; /* Removed sub-text per feedback */
}

.footer-links { display: flex; gap: var(--space-lg); list-style: none; font-size: 0.67rem; } /* Figma: ~10.7px */
.footer-links a { color: var(--color-footer-muted); font-weight: var(--font-weight-light); } /* Figma: Poppins Light */
.footer-links a:hover { color: var(--color-footer-text); }

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-footer-divider);
  font-size: var(--text-xs);
  color: var(--color-footer-muted);
  text-align: center;
}


/* ========================================
   Section SVG Masks / Curve Transitions — per Figma reference
   Organic curved shapes between sections
   ======================================== */
.section-curve {
  position: relative;
  overflow: hidden;
}

/* Top curve mask — elliptical arc entering from above */
.section-curve::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80px;
  background: var(--color-bg);
  border-radius: 0 0 50% 50%;
  z-index: 1;
}

/* Bottom curve mask — elliptical arc exiting below */
.section-curve::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80px;
  background: var(--color-bg);
  border-radius: 50% 50% 0 0;
  z-index: 1;
}

/* Hero bottom glow — soft elliptical rose/burgundy (Figma node 1:34) */
.hero-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 240px;
  background: radial-gradient(
    ellipse at center,
    rgba(150, 16, 16, 0.25) 0%,
    rgba(150, 16, 16, 0.10) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

/* Pillars section — positioned for gold arc (no overflow-x clip so arc reaches viewport edge) */
.pillars-section {
  position: relative;
  overflow-y: hidden;
  overflow-x: visible;
  padding-bottom: 120px;             /* Room for gold arc below text */
}

/* Gold arc — crisp-edged elliptical sweep from bottom-left, blending pillars
   into the gold testimonial section. Single solid-gold ellipse with a short
   linear-gradient fade on top so only the outer rim dissolves. */
.pillars-arc {
  display: none; /* replaced by ::before pseudo-element */
}

.pillars-section::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -20vw;
  width: 85vw;
  height: 550px;
  background: radial-gradient(
    ellipse 55% 75% at 25% 100%,
    var(--color-accent-500) 0%,
    var(--color-accent-500) 35%,
    rgba(253, 210, 1, 0.5) 55%,
    rgba(253, 210, 1, 0.15) 70%,
    transparent 85%
  );
  pointer-events: none;
  z-index: 0;
}

.pillars-section::after {
  display: none;
}

/* Events section — positioned for starburst */
.events-section {
  position: relative;
  overflow: hidden;
}

/* Starburst removed per design direction */


/* ========================================
   Mobile Navigation — Updated March 2026
   ======================================== */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  margin-right: calc(-1 * var(--space-sm));
}
.mobile-nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-brand); border-radius: var(--radius-xs); transition: transform var(--transition-xslow) var(--ease-spring), opacity var(--transition-base); }
.mobile-nav-toggle span + span { margin-top: 6px; }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav { display: none; background: var(--color-bg); }
.mobile-nav-inner { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--transition-nav); overflow: hidden; }
.mobile-nav.is-open .mobile-nav-inner { grid-template-rows: 1fr; }
.mobile-nav-inner > ul { overflow: hidden; }
.mobile-nav ul { list-style: none; padding: var(--space-sm) var(--space-lg) var(--space-lg); }
.mobile-nav li { border-bottom: 1px solid var(--color-border); }
.mobile-nav li:last-child { border-bottom: none; padding-top: var(--space-sm); }
.mobile-nav a { display: block; padding: var(--space-md) 0; color: var(--color-brand); font-size: var(--text-base); font-weight: var(--font-weight-medium); }
.mobile-nav a:hover { color: var(--color-brand-hover); }
.mobile-nav .nav-cta { display: inline-block; text-align: center; width: 100%; }


/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .value-grid    { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links          { display: none; }
  .header-top         { display: none; }
  .mobile-nav-toggle  { display: block; }
  .mobile-nav         { display: block; }
  .pillars-layout          { grid-template-columns: 1fr; gap: var(--space-xl); }
  .pillars-intro           { position: static; }
  .event-photo-cards       { flex-direction: column; align-items: center; gap: var(--space-lg); }
  .event-photo-card        { width: 280px; }
  .about-grid              { grid-template-columns: 1fr; }
  /* Mobile testimonial: explicit carousel height → track stretches → slide
     becomes a flex column → image fills all remaining space after text.
     Photo crops at the section's bottom edge; controls overlay the photo. */
  /* Mobile testimonial: fixed-height slide with absolutely positioned photo
     anchored to bottom edge. No flex height chain needed. */
  .testimonial-section     { overflow: hidden; padding: 0 !important; }
  .testimonial-carousel    { overflow: hidden; }
  .testimonial-slide       { height: 640px; min-height: 640px; position: relative; }
  .testimonial-slide-content { position: relative; z-index: 2; max-width: 100%; padding: var(--space-xl) var(--space-lg) var(--space-sm); }
  .testimonial-controls    { bottom: var(--space-sm); left: var(--space-lg); z-index: 4; }
  .testimonial-image       { position: absolute; left: 0; right: 0; top: auto; bottom: 0; height: 65%; width: 100%; -webkit-mask-image: none; mask-image: none; overflow: hidden; border-radius: 0; }
  .testimonial-image img   { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(0.75); transform-origin: center bottom; }
  .testimonial-image::after { display: none; }

  /* Hide gold arc on mobile — it doesn't work at small widths */
  .pillars-section::before { display: none; }
  .contact-grid       { grid-template-columns: 1fr; }
  .wizard-cards,
  #wizard-step-1 .wizard-cards,
  #wizard-step-2 .wizard-cards { grid-template-columns: 1fr; }
  .services-grid,
  .services-grid.grid-2 { grid-template-columns: 1fr; }
  .cpt-banner-inner   { flex-direction: column; text-align: center; }
  .about-pillars      { grid-template-columns: 1fr; }
  .hero               { padding: var(--space-2xl) var(--space-lg); min-height: 400px; }
  .hero-inner.editorial { padding-left: 0; }
  .page-hero          { padding: var(--section-padding-y-sm) var(--space-md); }
  .section            { padding: var(--section-padding-y-sm) 0; }
  .footer-inner       { flex-direction: column; text-align: center; }
  .footer-links       { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .container              { padding: 0 var(--space-md); }
  .value-grid             { grid-template-columns: 1fr; }
  .hero h1                { font-size: 2.25rem; }
  .hero                   { min-height: auto; }
  .section-header h2      { font-size: 1.75rem; }
  .page-hero h1           { font-size: 2rem; }
  .service-card h3        { font-size: 1.125rem; }
  .mytef-features         { flex-direction: column; }
  .mytef-feature          { min-width: unset; }
  .event-card             { flex-direction: column; gap: var(--space-md); }
  .event-date-badge       { width: 60px; height: 60px; }
  .event-day              { font-size: var(--text-xl); }
  .event-meta             { flex-direction: column; gap: var(--space-xs); }
  .form-actions           { flex-direction: column; }
  .modal-box              { padding: var(--space-xl); }
  .btn                    { padding: 0.875rem 1.5rem; font-size: 0.9375rem; }
}


/* ========================================
   Modal Overlay — B3
   ======================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 15, 16, 0.6); /* neutral-900 at 60% */
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-xslow), visibility var(--transition-xslow);
}

.modal-overlay.hidden {
  display: none;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-box {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95) translateY(8px);
  opacity: 0;
  transition:
    transform var(--transition-xslow) var(--ease-spring),
    opacity   var(--transition-xslow);
}

.modal-overlay.is-open .modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-tertiary);
  font-size: var(--text-xl);
  line-height: 1;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}

.modal-close:hover {
  color: var(--color-primary);
}

body.modal-open {
  overflow: hidden;
}

/* ── Form components ─────────────────── */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
  width: 100%;
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-family: 'Roboto', sans-serif;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--color-surface);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent-500);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group--checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group--checkbox-group label,
.form-group--radio-group label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 400;
  cursor: pointer;
  margin-bottom: 0;
}

.form-group--radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

/* ── Form success state ──────────────── */

.form-success {
  text-align: center;
  padding: var(--space-2xl);
  animation: fade-scale-in 0.35s var(--ease-spring) both;
}

.form-success-icon {
  font-size: 4.2rem;
  margin-bottom: var(--space-md);
}

.form-success h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

/* ── Inline wizard form ──────────────── */

.wizard-form {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-top: var(--space-xl);
}

.wizard-form h3 {
  margin-bottom: var(--space-sm);
}

.wizard-form > p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

/* ── Return visitor banner ───────────── */

.returning-banner {
  background: var(--color-accent-50);
  border: 1px solid var(--color-accent-400);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.returning-banner .banner-actions {
  display: flex;
  gap: var(--space-sm);
  margin-left: auto;
  flex-shrink: 0;
}

.returning-banner .btn-sm {
  font-size: var(--text-xs);
  padding: var(--space-xs) var(--space-md);
}

/* ========================================
   Tour — Floating Trigger Button
   ======================================== */
.tour-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-brand);
  color: var(--color-text-inverse);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.tour-trigger:hover {
  background: var(--color-brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.tour-trigger:focus-visible {
  outline: 3px solid var(--color-border-focus);
  outline-offset: 2px;
}

.tour-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ========================================
   Tour — Driver.js Popover Theme
   ======================================== */
.driver-popover {
  font-family: var(--font-family) !important;
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border-strong) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14) !important;
  padding: var(--space-xl) !important;
  max-width: 340px !important;
}

.driver-popover-title {
  font-size: var(--text-lg) !important;
  font-weight: var(--font-weight-bold) !important;
  color: var(--color-heading) !important;
  margin-bottom: var(--space-sm) !important;
  line-height: 1.3 !important;
}

.driver-popover-description {
  font-size: var(--text-sm) !important;
  color: var(--color-text-secondary) !important;
  line-height: 1.6 !important;
}

.driver-popover-footer {
  margin-top: var(--space-lg) !important;
  gap: var(--space-sm) !important;
}

.driver-popover-prev-btn,
.driver-popover-next-btn,
.driver-popover-close-btn {
  font-family: var(--font-family) !important;
  font-size: var(--text-sm) !important;
  font-weight: var(--font-weight-semibold) !important;
  border-radius: var(--radius-pill) !important;
  padding: var(--space-xs) var(--space-lg) !important;
  cursor: pointer !important;
  transition: background var(--transition-base) !important;
  text-shadow: none !important;
}

.driver-popover-next-btn {
  background: var(--color-brand) !important;
  color: #fff !important;
  border: none !important;
}

.driver-popover-next-btn:hover {
  background: var(--color-brand-hover) !important;
}

.driver-popover-prev-btn {
  background: transparent !important;
  color: var(--color-text-secondary) !important;
  border: 1px solid var(--color-border-strong) !important;
}

.driver-popover-prev-btn:hover {
  background: var(--color-neutral-100) !important;
}

.driver-popover-close-btn {
  color: var(--color-text-tertiary) !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.driver-popover-progress-text {
  font-size: var(--text-xs) !important;
  color: var(--color-text-tertiary) !important;
}

/* Employer tour — burgundy next button (matches job-seeker tour) */
.employer-tour .driver-popover-next-btn {
  background: var(--color-brand) !important;
}

.employer-tour .driver-popover-next-btn:hover {
  background: var(--color-brand-hover) !important;
}

@media (max-width: 480px) {
  .driver-popover {
    max-width: calc(100vw - 2rem) !important;
  }

  .tour-trigger {
    bottom: 1rem;
    right: 1rem;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
  }
}

/* ========================================
   Language Toggle (header)
   ======================================== */
.header-lang-toggle {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  color: var(--color-header-top-text);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  padding: 4px 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.header-lang-toggle:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
  background: var(--color-surface-warm, var(--color-neutral-200));
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong, #e5e5e5);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.faq-item summary {
  padding: var(--space-lg) var(--space-xl);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-base);
  color: var(--color-neutral-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  transition: color var(--transition-base);
}

.faq-item summary:hover {
  color: var(--color-primary-800);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary-800);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-primary-100);
  transition: transform 0.3s var(--ease-spring), background 0.2s ease;
}

.faq-item[open] summary::after {
  content: '\2212';
  transform: rotate(180deg);
  background: var(--color-primary-800);
  color: #fff;
}

.faq-item-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s var(--ease-spring), opacity 0.25s ease;
}

.faq-item[open] .faq-item-body {
  opacity: 1;
}

.faq-item p {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--color-neutral-700);
  line-height: 1.7;
  margin: 0;
  font-size: 0.9375rem;
}

/* ========================================
   Wizard myTEF Callout
   ======================================== */
.wizard-mytef-callout {
  text-align: center;
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-surface, #f8f8f8);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border, #e5e5e5);
}

.wizard-mytef-callout a {
  font-weight: 500;
  color: var(--color-primary-800);
}

.wizard-mytef-callout a:hover {
  color: var(--color-primary-700);
  text-decoration: underline;
}

/* ========================================
   CPT Page — CTA Block
   ======================================== */
.cpt-cta-section {
  background: var(--color-primary-900);
  color: #fff;
}

.cpt-cta-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cpt-cta-block h2 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.cpt-cta-block p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
}

.cpt-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
}

.cpt-cta-actions .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.cpt-cta-actions .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.cpt-expectations-body {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cpt-expectations-body p {
  font-size: var(--text-lg, 1.125rem);
  line-height: 1.7;
  color: var(--color-neutral-700);
}

.cpt-training-link {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-neutral-300);
}

.cpt-training-link p {
  font-size: var(--text-base);
  color: var(--color-neutral-600);
  margin-bottom: var(--space-md);
}

.cpt-cta-section {
  padding: var(--space-3xl) 0;
}

/* ========================================
   Accessibility — Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1      !important;
    transition-duration:       0.01ms !important;
    scroll-behavior:           auto   !important;
  }
}
