/* ═══════════════════════════════════════════════════════════════
   GROWTH REBELS · base.css — shared foundation
   Tokens + site-wide components (nav, buttons, section system,
   footer, reveal, utilities). Link this from every page:
     <link rel="stylesheet" href="/styles/base.css">
   Page-specific sections (hero, outcomes, pillars, etc.) stay in
   each page's own <style> until migrated. Nothing here should be
   duplicated inline once a page links this file.
   Palette: F2 Steel + Soft Persimmon · Typekit kpn3xgx
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-primary: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-dark: #1B1B1B;
  --bg-dark-surface: #252525;

  --accent: #E8734A;
  --accent-hover: #D4653F;
  --accent-light: #FFF0EB;
  --steel: #245F73;
  --steel-light: #EDF4F7;

  --text-primary: #1B1B1B;
  --text-secondary: #6B6B6B;
  --text-tertiary: #999999;
  --text-muted: #999999;
  --text-on-dark: #FFFFFF;
  --text-on-dark-secondary: #B0B0B0;

  --border: #E8E8E8;
  --border-hover: #D0D0D0;

  --cta-bg: #1B1B1B;
  --cta-text: #FFFFFF;

  --font-serif: 'new-spirit', 'Georgia', serif;
  --font-display: 'articulat-cf', system-ui, sans-serif;
  --font-body: 'articulat-cf', system-ui, sans-serif;

  --nav-height: 72px;
  --container: 1140px;
  --section-pad: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snappy: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ═══════════ SECTION SYSTEM ═══════════ */

.section { padding: var(--section-pad) 0; }
.section--light { background: var(--bg-primary); }
.section--surface { background: var(--bg-surface); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark-secondary); }
.section--steel { background: var(--steel); color: rgba(255,255,255,0.8); }
.section--accent-light { background: var(--accent-light); }

.section__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section--dark .section__label { color: var(--accent); }

.section__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  color: var(--text-primary);
  max-width: 760px;
}
.section--dark .section__title { color: var(--text-on-dark); }
.section--steel .section__title { color: #fff; }

.section__subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 640px;
  margin-top: 1rem;
  color: var(--text-secondary);
}
.section--dark .section__subtitle { color: var(--text-on-dark-secondary); }

/* ═══════════ BUTTONS ═══════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-snappy);
  white-space: nowrap;
}
.btn--primary { background: var(--cta-bg); color: var(--cta-text); }
.btn--primary:hover { background: #333; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,115,74,0.25); }
.btn--ghost { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--text-primary); transform: translateY(-1px); }
.btn--ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.25); }
.btn--ghost-light:hover { border-color: rgba(255,255,255,0.6); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn--lg { padding: 16px 34px; font-size: 0.95rem; }

/* ═══════════ NAVIGATION ═══════════ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  display: flex; align-items: center;
  background: rgba(250,250,250,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav--scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 8px rgba(0,0,0,0.04); }

.nav__inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px); width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav__logo-mark { border-bottom: 4px solid var(--accent); padding-bottom: 2px; line-height: 1; }
.nav__logo-mark span { font-family: var(--font-serif); font-weight: 700; font-style: italic; font-size: 2rem; color: var(--text-primary); }

.nav__links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav__links a { font-family: var(--font-display); font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; letter-spacing: 0.01em; }
.nav__links a:hover { color: var(--text-primary); }

.nav__links a.nav__cta, .nav__cta {
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  padding: 10px 20px; background: var(--accent); color: var(--bg-primary);
  border-radius: 5px; transition: background 0.2s, color 0s;
}
.nav__links a.nav__cta:hover, .nav__cta:hover { background: var(--accent-hover); color: var(--bg-primary); }

.nav__dropdown { position: relative; }
.nav__dropdown > a::after {
  content: ''; display: inline-block; width: 5px; height: 5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-left: 5px; margin-bottom: 2px; transition: transform 0.2s;
}
.nav__dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 12px; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
.nav__dropdown:hover .nav__dropdown-menu, .nav__dropdown-menu:hover { opacity: 1; visibility: visible; }
.nav__dropdown:hover > a::after { transform: rotate(-135deg); }
.nav__dropdown-menu ul {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08); list-style: none; padding: 8px 0; min-width: 220px;
}
.nav__dropdown-menu a { display: block; padding: 10px 20px; font-size: 0.84rem; color: var(--text-secondary); transition: background 0.15s, color 0.15s; }
.nav__dropdown-menu a:hover { background: var(--accent-light); color: var(--accent); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg-primary); }
  .nav__links {
    position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: var(--bg-surface); flex-direction: column; justify-content: flex-start;
    padding: 40px 32px; gap: 0; transform: translateX(100%); transition: transform 0.35s var(--ease);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; font-size: 1.1rem; padding: 16px 0; border-bottom: 1px solid var(--border); }
  .nav__links .nav__cta { display: block; text-align: center; margin-top: 24px; padding: 14px 24px; }
  .nav__dropdown-menu { position: static; transform: none; padding-top: 0; opacity: 1; visibility: visible; }
  .nav__dropdown-menu ul { background: none; border: none; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .nav__dropdown-menu a { font-size: 0.95rem; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav__dropdown-menu a:hover { background: none; }
  .nav__dropdown > a { pointer-events: none; }
}

/* ═══════════ FOOTER ═══════════ */

.footer { background: var(--bg-dark); color: var(--text-on-dark-secondary); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer__brand { max-width: 280px; }
.footer__logo { border-bottom: 3px solid var(--accent); padding-bottom: 2px; line-height: 1; display: inline-block; margin-bottom: 16px; }
.footer__logo span { font-family: var(--font-serif); font-weight: 700; font-style: italic; font-size: 1.6rem; color: #fff; }
.footer__tagline { font-size: 0.88rem; line-height: 1.7; color: var(--text-on-dark-secondary); }
.footer__heading { font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__list a { font-size: 0.88rem; color: var(--text-on-dark-secondary); transition: color 0.2s; }
.footer__list a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.8rem; color: rgba(255,255,255,0.35); }
@media (max-width: 1080px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; gap: 36px; } }
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ═══════════ ANIMATIONS / UTILITIES ═══════════ */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
