/* ============================================================
   FLYFORWARD BRAND THEME — shared design tokens & components
   Canonical source for colors, type scale, spacing, shadows and
   the handful of components (buttons, nav, cards, stats) that
   repeat across every page. See brand-guidelines.html for the
   documented palette this file implements.

   Usage: link this file on every page, AFTER the Google Fonts
   link and BEFORE the page's own <style> block. A page's inline
   <style> should only contain page-unique layout — not its own
   copy of these tokens or components.

   Dark-surface pages (brand-guidelines.html, member-portal/*)
   override just the color tokens in their own :root — the
   spacing/shadow/motion/radius scale and component rules here
   stay the same everywhere.
   ============================================================ */

:root{
  /* ---- Brand palette (brand-guidelines.html) ---- */
  --sky:#26a2dc;            /* Sky Blue — primary interactive color */
  --sky-bright:#26a2dc;
  --sky-dark:#1c7ea6;       /* hover / active state for sky-blue elements */
  --horizon:#8ad0ea;        /* Horizon — light decorative blue */
  --accent:#fe5d26;         /* Runway Orange — secondary vibrant accent (badges, highlights, icons, primary CTA gradient) */
  --accent-bright:#ff7a4d;
  --cloud:#fffff2;          /* Cloud White */
  --success:#22c55e;
  --danger:#ef4444;

  /* Secondary decorative hues used sparingly for variety on stat
     numbers / career-card accents — not for primary actions */
  --mint:#4db9e6;
  --violet:#1c7ea6;
  --coral:#ff7a4d;

  /* ---- Role tokens (light surface — marketing/content pages) ---- */
  --bg:#fffdf5;
  --bg-alt:#fdf6e6;
  --surface:#fffff2;        /* card / panel background */
  --border:#f0ddb0;
  --ink:#0f2f52;             /* high-contrast text */
  --body:#4b6785;            /* body copy */
  --muted:#64809d;           /* least-prominent text */

  /* ---- Spacing scale (8px grid) ---- */
  --space-1:0.5rem;   /* 8px */
  --space-2:1rem;     /* 16px */
  --space-3:1.5rem;   /* 24px */
  --space-4:2rem;     /* 32px */
  --space-5:3rem;     /* 48px */
  --space-6:4rem;     /* 64px */
  --space-7:6rem;     /* 96px */
  --space-8:8rem;     /* 128px */
  --section-py:clamp(3.5rem, 7vw, 6rem);      /* standard section breathing room */
  --section-py-lg:clamp(4.5rem, 9vw, 8rem);   /* hero / feature sections */

  /* ---- Shadows (soft, brand-navy tinted — never heavy/black) ---- */
  --shadow-sm:0 4px 14px rgba(15,47,82,0.08);
  --shadow-md:0 10px 30px rgba(15,47,82,0.12);
  --shadow-lg:0 20px 50px rgba(15,47,82,0.16);

  /* ---- Motion ---- */
  --transition:all 0.3s ease-in-out;

  /* ---- Radius ---- */
  --radius-sm:8px;
  --radius-md:16px;
  --radius-lg:24px;
  --radius-pill:999px;

  /* ---- Legacy aliases (do not use in new work — kept only so
     untouched inline styles referencing the old inverted names
     keep rendering correctly during migration) ---- */
  --navy:var(--bg);
  --white:var(--ink);
  --card-bg:var(--surface);
  --card-border:var(--border);
}

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

body{
  font-family:'Outfit',sans-serif;
  font-weight:400;
  line-height:1.6;
}

h1,h2,h3,h4,h5,h6{
  font-family:'Montserrat',sans-serif;
  font-weight:800;
  line-height:1.2;
}

/* ============================================================
   NAV
   ============================================================ */
nav{
  position:fixed;top:0;left:0;right:0;z-index:200;
  display:flex;align-items:center;justify-content:space-between;
  padding:var(--space-2) 5vw;
  /* derived from --surface, not a literal, so this reads correctly
     on dark-surface pages (member-portal, brand-guidelines.html) too */
  background:color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
  transition:padding 0.3s ease,box-shadow 0.3s ease;
}
nav.scrolled{padding:var(--space-1) 5vw;box-shadow:var(--shadow-sm);}
.nav-logo{
  font-family:'Montserrat',sans-serif;font-weight:800;font-size:1.6rem;
  letter-spacing:0.12em;color:var(--ink);text-decoration:none;
  display:flex;align-items:center;
}
.nav-logo span{color:var(--sky);}
.nav-links{display:flex;gap:var(--space-4);list-style:none;padding:0;margin:0;}
.nav-links li{position:relative;}
.nav-links a{
  color:var(--body);text-decoration:none;font-size:0.82rem;font-weight:600;
  letter-spacing:0.06em;text-transform:uppercase;transition:var(--transition);
}
.nav-links a:hover,.nav-links a.active{color:var(--sky);}
@media(max-width:768px){.nav-links{display:none;}}

/* ============================================================
   BUTTONS — one canonical shape, used everywhere
   ============================================================ */
.nav-cta,.btn-primary,.btn-ghost{
  border-radius:var(--radius-pill);
  font-weight:600;font-size:0.85rem;letter-spacing:0.06em;text-transform:uppercase;
  text-decoration:none;display:inline-block;transition:var(--transition);
}
.nav-cta{
  background:var(--sky);color:var(--cloud);
  padding:0.6rem var(--space-3);
  box-shadow:0 4px 14px rgba(38,162,220,0.35);
}
.nav-cta:hover{background:var(--sky-dark);transform:translateY(-2px);box-shadow:0 8px 22px rgba(38,162,220,0.45);}

.btn-primary{
  background:linear-gradient(135deg,var(--accent),var(--accent-bright));
  color:var(--cloud);
  padding:0.95rem 2.2rem;
  box-shadow:0 8px 24px rgba(254,93,38,0.35);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(254,93,38,0.45);filter:brightness(1.06);}
.btn-primary i{margin-left:0.55rem;transition:transform 0.3s ease;}
.btn-primary:hover i{transform:translateX(5px);}

.btn-ghost{
  /* derived from --ink/--surface, not literals, so this reads
     correctly on dark-surface pages too */
  border:1.5px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background:color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  color:var(--ink);
  padding:0.95rem 2.2rem;
}
.btn-ghost:hover{border-color:var(--sky);color:var(--sky);transform:translateY(-2px);background:var(--surface);}
.btn-ghost i{margin-left:0.55rem;transition:transform 0.3s ease;}
.btn-ghost:hover i{transform:translateY(4px);}

/* ============================================================
   SECTIONS & TYPE
   ============================================================ */
section{padding:var(--section-py) 5vw;}
@media(max-width:640px){section{padding:calc(var(--section-py) * 0.7) 6vw;}}

.section-tag{
  font-family:'Outfit',monospace;font-size:0.7rem;letter-spacing:0.14em;
  text-transform:uppercase;color:var(--sky);margin-bottom:var(--space-2);
}
.section-headline{
  font-family:'Montserrat',sans-serif;font-weight:800;
  font-size:clamp(2.2rem,4.5vw,3.6rem);line-height:1.1;letter-spacing:0.02em;
  margin-bottom:var(--space-3);color:var(--ink);
}
.section-body{font-size:0.97rem;line-height:1.6;color:var(--body);max-width:560px;}
.hl{background:var(--sky);color:var(--cloud);padding:0.04em 0.32em;border-radius:6px;box-decoration-break:clone;-webkit-box-decoration-break:clone;}

/* ============================================================
   CARDS
   ============================================================ */
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
  transition:var(--transition);
}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);}

/* ============================================================
   STATS
   ============================================================ */
.stats-inner{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
  display:flex;align-items:center;justify-content:space-around;gap:var(--space-2);
  padding:var(--space-4) var(--space-4);flex-wrap:wrap;
}
.stat-item{text-align:center;display:flex;flex-direction:column;align-items:center;min-width:120px;}
.stat-number{font-family:'Montserrat',sans-serif;font-weight:800;font-size:2.6rem;line-height:1.1;letter-spacing:0.02em;color:var(--sky);}
.stat-label{font-size:0.72rem;color:var(--muted);letter-spacing:0.08em;text-transform:uppercase;margin-top:var(--space-1);font-weight:600;}
.stat-divider{width:1px;height:44px;background:var(--border);flex-shrink:0;}
@media(max-width:640px){.stat-divider{display:none;}}
