/* ===========================================================
   Impact Zone — Design System
   Source of truth: ../Impact Zone – Visual Style Guide.pdf
   =========================================================== */

/* Self-hosted fonts (variable weight files — one file per family
   covers every weight in use via the font-weight range below). */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/figtree-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/newsreader-variable.woff2') format('woff2');
}

:root {
  /* Blue (primary) */
  --azure: #1668B8;
  --deep-blue: #0D4E8C;
  --cool-tint: #E8F0F9;
  --cool-tint-2: #EFF3F8;

  /* Gold (accent) */
  --cta-gold: #D9A227;
  --bright-gold: #F2C464;
  --pale-gold: #FBE3AE;
  --gold-text: #6F5310;

  /* Neutrals */
  --paper: #F8F7F2;
  --card-white: #FFFFFF;
  --body-text: #3A4350;
  --secondary-text: #5A6270;
  --muted-text: #6D7684;

  /* Type */
  --font-headline: "Newsreader", Georgia, serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radii / spacing rhythm */
  --radius-card: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 8px 30px rgba(13, 78, 140, 0.08);
  --shadow-glass: 0 8px 32px rgba(13, 78, 140, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--body-text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .headline {
  font-family: var(--font-headline);
  font-weight: 400;
  color: var(--deep-blue);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

p { margin: 0 0 1.2em; }
a { color: var(--azure); }

img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-text);
  margin: 0 0 0.9em;
  display: block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; position: relative; }
section.tight { padding: 64px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(180deg, var(--bright-gold), var(--cta-gold));
  color: #3A2A05;
  box-shadow: 0 6px 18px rgba(217, 162, 39, 0.35);
}
.btn-gold:hover { box-shadow: 0 10px 24px rgba(217, 162, 39, 0.45); }

.btn-outline {
  background: transparent;
  border-color: var(--azure);
  color: var(--azure);
}
.btn-outline:hover { background: var(--cool-tint); }

.btn-outline-light {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.18); }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* Glass variant — used over the homepage ripple hero */
.site-nav.glass {
  background: rgba(13, 78, 140, 0.22);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

/* Solid variant — used on inner pages / after scroll. Still glass, just tuned for a light background. */
.site-nav.solid {
  background: rgba(248, 247, 242, 0.58);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(13,78,140,0.08);
  box-shadow: 0 2px 20px rgba(13,78,140,0.06);
}

.site-nav.intro-hidden { opacity: 0; pointer-events: none; }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo span {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 500;
}
.site-nav.glass .nav-logo span { color: #fff; }
.site-nav.solid .nav-logo span { color: var(--deep-blue); }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.site-nav.glass .nav-links a { color: rgba(255,255,255,0.92); }
.site-nav.solid .nav-links a { color: var(--body-text); }
.nav-links a:hover { opacity: 0.75; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- Glass panel ---------- */
.glass-panel {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass);
}

/* ---------- Cards ---------- */
.card {
  background: var(--card-white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

/* ---------- Wave section divider ---------- */
.wave-divider {
  display: block;
  width: 100%;
  height: 80px;
  margin-top: -1px;
}
.wave-divider path { fill: var(--paper); }
.wave-divider.to-tint path { fill: var(--cool-tint); }
.wave-divider.to-deep path { fill: var(--deep-blue); }
.wave-divider.to-white path { fill: var(--card-white); }

/* ---------- Ribbon accent ---------- */
.ribbon-accent {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
}

/* ---------- Stat tiles ---------- */
.stat-tile {
  background: var(--card-white);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
}
.stat-tile .eyebrow { color: var(--gold-text); font-size: 12px; margin-bottom: 10px; }
.stat-tile .stat-number {
  font-family: var(--font-headline);
  font-size: 2.6rem;
  color: var(--deep-blue);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-tile .stat-caption { font-size: 14px; color: var(--secondary-text); margin-bottom: 4px; }
.stat-tile .stat-source { font-size: 12px; color: var(--muted-text); }

/* ---------- Section header ---------- */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin: 0 0 56px; text-align: left; }

/* ---------- Tint / dark sections ---------- */
.section-tint { background: var(--cool-tint); }
.section-deep {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--deep-blue), #0A3E70);
  color: #fff;
  box-shadow: inset 0 -40px 70px -40px rgba(0,0,0,0.35), inset 0 40px 70px -40px rgba(0,0,0,0.2);
}
.section-deep h2, .section-deep h3 { color: #fff; }
.section-deep p { color: rgba(255,255,255,0.82); }
.section-deep > .container { position: relative; z-index: 2; }

.deep-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.deep-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.wave-edge {
  position: absolute;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 1;
  pointer-events: none;
  display: block;
}
.wave-edge path { fill: var(--deep-blue); }
.wave-edge-top { top: 0; transform: translateY(-99%); }
.wave-edge-bottom { bottom: 0; transform: translateY(99%) scaleY(-1); }

@media (max-width: 640px) {
  .wave-edge { height: 34px; }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--deep-blue);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
}
footer.site-footer a { color: #fff; text-decoration: none; }
footer.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 30px; }
.footer-logo span { font-family: var(--font-headline); font-size: 19px; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
footer.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Placeholder / embed slots ---------- */
.embed-slot {
  border: 2px dashed rgba(22, 104, 184, 0.35);
  border-radius: 20px;
  background: var(--cool-tint-2);
  padding: 40px 28px;
  text-align: center;
}
.embed-slot .embed-slot-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--azure);
  margin-bottom: 10px;
  display: block;
}
.embed-slot p { color: var(--secondary-text); font-size: 15px; margin-bottom: 0; }

/* ---------- Pill badge (step / label) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--azure);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

/* ---------- Hero / opening sequence ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  background: var(--deep-blue);
  transition: opacity 1s ease;
}
.hero-video.is-ambient { opacity: 0.38; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(13,78,140,0.42), rgba(8,47,88,0.72));
  pointer-events: none;
}

.hero-logo-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(170px, 28vw);
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25));
}
.hero-logo-mark.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hero-logo-mark.is-parked {
  top: 25%;
  width: min(140px, 24vw);
  transform: translate(-50%, -50%) scale(1);
  transition: top 1.2s cubic-bezier(0.4, 0, 0.2, 1), width 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
}

.hero-content {
  max-width: 640px;
  margin-top: 46vh;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.hero-content.is-visible { opacity: 1; transform: translateY(0); }

.eyebrow-light { color: var(--pale-gold); }
.hero-content h1 { color: #fff; }
.hero-sub { color: rgba(255,255,255,0.88); font-size: 19px; max-width: 560px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }

.skip-intro {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 5;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.skip-intro:hover { background: rgba(255,255,255,0.2); }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.scroll-cue.is-visible { opacity: 1; }
.scroll-cue .line { width: 1px; height: 28px; background: linear-gradient(rgba(255,255,255,0.8), transparent); }

.hero { padding-bottom: 90px; }

@media (max-width: 640px) {
  .scroll-cue { display: none; }
  .hero-content { margin-top: 40vh; }
  .skip-intro { top: 20px; right: 20px; padding: 7px 14px; font-size: 12px; }
}

/* ---------- Mobile nav ---------- */
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle-btn span { width: 22px; height: 2px; background: currentColor; display: block; }
.site-nav.glass .nav-toggle-btn { color: #fff; }
.site-nav.solid .nav-toggle-btn { color: var(--deep-blue); }

.mobile-menu {
  position: fixed;
  top: 68px; left: 0; right: 0;
  z-index: 99;
  background: var(--card-white);
  box-shadow: 0 12px 24px rgba(13,78,140,0.12);
  padding: 16px 24px 28px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--cool-tint);
  color: var(--body-text);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 860px) {
  .nav-toggle-btn { display: flex; }
}

/* ---------- Pain items (numbered, on dark) ---------- */
.pain-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  background: rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 22px 24px;
}
.pain-item .badge { background: var(--cta-gold); color: #2A1E04; }
.pain-item p { margin: 0; line-height: 1.6; font-size: 16px; color: rgba(255,255,255,0.92); }
.pain-item strong { font-weight: 700; }

/* ---------- Featured offer card (dark, reusable) ---------- */
.offer-feature {
  position: relative;
  background: linear-gradient(160deg, var(--deep-blue), #0A3E70);
  border-radius: 32px;
  padding: 44px;
  color: #fff;
  overflow: hidden;
}
.offer-feature .offer-ring {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  opacity: 0.5;
  pointer-events: none;
}
.offer-feature-inner { position: relative; display: flex; flex-direction: column; gap: 16px; }
.offer-feature ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.offer-feature li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; line-height: 1.6; font-size: 16px; color: rgba(255,255,255,0.9); }
.offer-feature li span.arrow { color: var(--bright-gold); }

/* ---------- Mini bar chart ---------- */
.bar-mini { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bar-mini .bar-track { width: 100%; height: 120px; display: flex; align-items: flex-end; justify-content: center; }
.bar-mini .bar-fill { width: 48px; background: var(--azure); border-radius: 8px 8px 0 0; }
.bar-mini .bar-value { font-family: var(--font-headline); font-size: 1.25rem; color: var(--deep-blue); }
.bar-mini .bar-label { font-size: 13px; color: var(--secondary-text); text-align: center; line-height: 1.4; }
.bar-mini .bar-source { font-size: 11px; color: var(--muted-text); text-align: center; }

/* ---------- Step track (dashed connector) ---------- */
.step-track { position: relative; }
.step-track .step-line {
  position: absolute;
  top: 22px;
  left: 0;
  width: 100%;
  height: 4px;
  border-top: 2px dashed #9BC0E2;
  z-index: 0;
}
.step-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card-white); border: 3px solid var(--azure);
  display: flex; align-items: center; justify-content: center;
}
.step-num span {
  width: 26px; height: 26px; border-radius: 50%; background: var(--azure); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-headline); font-size: 13px;
}

/* ---------- ICP cards ---------- */
.icp-card { background: var(--card-white); border-radius: 28px; overflow: hidden; border: 1px solid #DFE5EC; display: flex; flex-direction: column; }
.icp-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.icp-card .icp-body { padding: 32px 36px 36px; display: flex; flex-direction: column; gap: 14px; }
.icp-tag { align-self: flex-start; font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 14px; border-radius: var(--radius-pill); }
.icp-tag.primary { background: var(--pale-gold); color: #4A3608; }
.icp-tag.also { background: var(--cool-tint); color: var(--deep-blue); }

/* ---------- Bridge line (pull quote between sections) ---------- */
.bridge-line {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--azure);
  margin: 8px 0 0;
}

/* ---------- Form fields ---------- */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field span { font-size: 14px; color: var(--secondary-text); font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid #D9DEE6;
  background: var(--card-white);
  color: var(--body-text);
  outline: none;
}
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--azure); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Status badge (in development) ---------- */
.status-badge {
  background: var(--pale-gold); color: #4A3608; font-weight: 700; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted-text); }
