/* ════════════════════════════════════════════════════════════════
   STYLE-V3.CSS — Homepage V3 (built from scratch)
   Loads AFTER style.css. Reuses shared tokens, header, footer,
   and audience-card image classes from style.css.
   ════════════════════════════════════════════════════════════════ */

:root {
  --v3-cream:           #F4ECD8;
  --v3-cream-soft:      #FAF3E2;
  --v3-cream-deep:      #E8DBB8;
  --v3-gold-warm:       #9e6e36;
  --v3-gold-glow:       #c69556;
  --v3-brown-soft:      #65553c;
  --v3-blue-deep:       #0A1A38;
  --v3-blue-deeper:     #06122A;
  --v3-blue-elevated:   #13284E;
  --v3-divider-h:       linear-gradient(90deg, transparent, rgba(158, 110, 54, 0.55), transparent);

  --v3-heading: 'Fredoka', 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset body background for V3 (master starts on cream) */
body.is-v3 {
  background: var(--v3-cream);
  color: var(--v3-brown-soft);
}

/* The master container holds the whole homepage */
.layer.is-v3 {
  background: transparent;
  min-height: 100vh;
  position: relative;
}

/* ─── universal heading rule (Fredoka 500, width 75) ─── */
.is-v3 h1,
.is-v3 h2,
.is-v3 h3,
.is-v3 .v3-heading,
.is-v3 .v3-stat-num {
  font-family: var(--v3-heading);
  font-weight: 500;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ───────────────────────────────────────────────
   HEADER STRIP — thin gold gradient line under
   the existing campaign-wordmark / header bar
   ─────────────────────────────────────────────── */
.v3-top-strip {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(158, 110, 54, 0.0) 8%,
    rgba(158, 110, 54, 0.65) 50%,
    rgba(158, 110, 54, 0.0) 92%,
    transparent 100%);
  z-index: 9;
  pointer-events: none;
}

/* On V3 the header should sit on cream — override the dark bg */
body.is-v3 .campaign-wordmark {
  background: rgba(244, 236, 216, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--v3-gold-warm);
  border-bottom-color: rgba(158, 110, 54, 0.18);
}
body.is-v3 .campaign-wordmark .cwm-text {
  color: var(--v3-gold-warm);
}
body.is-v3 .header-action-btn {
  background: rgba(158, 110, 54, 0.08);
  border-color: rgba(158, 110, 54, 0.25);
  color: var(--v3-gold-warm);
}
body.is-v3 .header-action-btn:hover {
  background: rgba(158, 110, 54, 0.15);
  color: var(--v3-gold-glow);
}
body.is-v3 .bh-mark {
  color: var(--v3-gold-warm);
  opacity: 0.7;
}

/* ───────────────────────────────────────────────
   1. HERO — light cream band, text left, image right
   ─────────────────────────────────────────────── */
.v3-hero {
  position: relative;
  min-height: 88vh;
  padding: 9rem 6vw 6rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--v3-cream-soft) 0%, var(--v3-cream) 60%, var(--v3-cream-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.v3-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/hero-bg-wide.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
.v3-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}
.v3-hero-text {
  max-width: 620px;
}
.v3-hero-kicker {
  display: inline-block;
  font-family: var(--v3-heading);
  font-weight: 500;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--v3-gold-warm);
  margin-bottom: 1.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(158, 110, 54, 0.3);
}
.v3-hero-h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.05;
  margin-bottom: 1.8rem;
}
.v3-hero-h1 .hl-maor {
  display: inline;
  color: var(--v3-gold-warm);
}
.v3-hero-h1 .hl-rest {
  display: inline;
  color: var(--v3-brown-soft);
}
.v3-hero-sub {
  font-family: 'Noto Sans', var(--sans);
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.65;
  color: var(--v3-brown-soft);
  margin-bottom: 1.1rem;
  max-width: 56ch;
}
.v3-hero-sub strong {
  color: var(--v3-gold-warm);
  font-weight: 600;
}
.v3-hero-sub:last-child {
  margin-bottom: 0;
}
.v3-hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.v3-hero-image img {
  width: 100%;
  max-width: 620px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(101, 85, 60, 0.25));
}

/* ───────────────────────────────────────────────
   2. STATS — transition band, cream → blue gradient
   ─────────────────────────────────────────────── */
.v3-stats {
  position: relative;
  padding: 5rem 4vw 6rem;
  background:
    linear-gradient(180deg,
      var(--v3-cream-deep) 0%,
      var(--v3-cream-deep) 8%,
      #524a4a 50%,
      var(--v3-blue-deep) 92%,
      var(--v3-blue-deep) 100%);
}
.v3-stats-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: start;
}
.v3-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.v3-stat-icon {
  width: 44px;
  height: 44px;
  color: var(--v3-gold-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.v3-stat-icon svg {
  width: 100%;
  height: 100%;
}
.v3-stat-num {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  color: var(--gold-bright);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  line-height: 1;
}
.v3-stat-label {
  font-family: 'Noto Sans', var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 235, 211, 0.78);
}

/* ───────────────────────────────────────────────
   Generic dark-section frame
   ─────────────────────────────────────────────── */
.v3-section {
  position: relative;
  padding: 6rem 6vw;
  background: var(--v3-blue-deep);
  color: var(--text-warm);
  overflow: hidden;
}
.v3-section + .v3-section {
  border-top: 1px solid rgba(232, 201, 125, 0.06);
}
.v3-section-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.v3-section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold-bright);
  text-align: center;
  line-height: 1.15;
  margin-bottom: 1.4rem;
}
.v3-section-lede {
  font-family: 'Noto Sans', var(--sans);
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-warm);
  text-align: center;
  max-width: 64ch;
  margin: 0 auto 3rem;
}
.v3-section-lede strong {
  color: var(--gold-bright);
  font-weight: 600;
}
.v3-divider {
  width: min(560px, 80%);
  height: 1px;
  margin: 3rem auto;
  background: var(--v3-divider-h);
}

/* ───────────────────────────────────────────────
   3. PROBLEM — alternating audience rows with
       reused AI-page audience images
   ─────────────────────────────────────────────── */
.v3-problem-rows {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  margin-top: 3.5rem;
}
.v3-problem-row {
  position: relative;
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 0;
  min-height: 280px;
}
.v3-problem-row.row-image-left {
  grid-template-columns: minmax(220px, 0.9fr) 1.5fr;
}
.v3-problem-row.row-image-right {
  grid-template-columns: 1.5fr minmax(220px, 0.9fr);
}
.v3-problem-img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.5));
  position: relative;
  isolation: isolate;
  margin: 0 auto;
}
.v3-problem-img::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}
.v3-problem-img.img-frum::before {
  background: radial-gradient(ellipse at center, rgba(232, 201, 125, 0.7) 0%, rgba(201, 169, 97, 0.35) 40%, transparent 75%);
}
.v3-problem-img.img-secular::before {
  background: radial-gradient(ellipse at center, rgba(56, 178, 172, 0.65) 0%, rgba(45, 142, 168, 0.3) 40%, transparent 75%);
}
.v3-problem-img.img-world::before {
  background: radial-gradient(ellipse at center, rgba(180, 110, 200, 0.65) 0%, rgba(155, 80, 175, 0.3) 40%, transparent 75%);
}
.v3-problem-row.row-image-right .v3-problem-content {
  order: 1;
}
.v3-problem-row.row-image-right .v3-problem-img-wrap {
  order: 2;
}
.v3-problem-content h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: var(--gold-bright);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  position: relative;
}
.v3-problem-content h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 1px;
  background: rgba(232, 201, 125, 0.45);
}
.v3-problem-content p {
  font-family: 'Noto Sans', var(--sans);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-warm);
}
.v3-problem-content p em {
  color: var(--gold-bright);
  font-style: italic;
}

/* ───────────────────────────────────────────────
   4. SOLUTION — two-line heading, body
   ─────────────────────────────────────────────── */
.v3-solution-h {
  text-align: center;
  margin-bottom: 1.8rem;
}
.v3-solution-h .ln1 {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold-bright);
  line-height: 1.1;
}
.v3-solution-h .ln2 {
  display: block;
  font-family: var(--v3-heading);
  font-weight: 400;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--v3-gold-glow);
  line-height: 1.2;
  margin-top: 0.4rem;
  letter-spacing: 0.005em;
}
.v3-solution-body {
  font-family: 'Noto Sans', var(--sans);
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.85;
  color: var(--text-warm);
  text-align: center;
  max-width: 70ch;
  margin: 0 auto;
}
.v3-solution-body strong {
  color: var(--gold-bright);
  font-weight: 600;
}
.v3-solution-body em {
  color: var(--gold-bright);
  font-style: italic;
}

/* ───────────────────────────────────────────────
   5. BRIDGE — two emphatic centered lines
   ─────────────────────────────────────────────── */
.v3-bridge {
  padding: 5rem 6vw;
  background: var(--v3-blue-deep);
  text-align: center;
}
.v3-bridge p {
  margin: 0;
  font-family: 'Noto Sans', var(--sans);
}
.v3-bridge .l1 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-warm);
  margin-bottom: 0.6rem;
}
.v3-bridge .l2 {
  font-family: var(--v3-heading);
  font-weight: 500;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--gold-bright);
  letter-spacing: -0.005em;
}

/* ───────────────────────────────────────────────
   6. PILLARS — two project cards
   ─────────────────────────────────────────────── */
.v3-pillars {
  background: var(--v3-blue-deep);
  padding: 4rem 6vw 6rem;
}
.v3-pillars-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
}
.v3-pillar-card {
  position: relative;
  background: linear-gradient(180deg, var(--v3-blue-elevated) 0%, var(--v3-blue-deep) 100%);
  border: 1px solid rgba(232, 201, 125, 0.18);
  border-radius: 14px;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.v3-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  opacity: 0.7;
}
.v3-pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 201, 125, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.v3-pillar-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--v3-blue-deeper);
}
.v3-pillar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v3-pillar-body {
  padding: 1.8rem 1.8rem 2rem;
}
.v3-pillar-subtitle {
  font-family: 'Noto Sans', var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--v3-gold-glow);
  margin-bottom: 0.7rem;
}
.v3-pillar-body h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: var(--gold-bright);
  margin-bottom: 1rem;
}
.v3-pillar-summary {
  font-family: 'Noto Sans', var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-warm);
  margin-bottom: 1.2rem;
}
.v3-pillar-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}
.v3-pillar-bullets li {
  font-family: 'Noto Sans', var(--sans);
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--text-warm);
  padding: 0.55rem 0 0.55rem 1.2rem;
  border-top: 1px solid rgba(232, 201, 125, 0.08);
  position: relative;
}
.v3-pillar-bullets li:first-child {
  border-top: none;
}
.v3-pillar-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v3-gold-glow);
}
.v3-pillar-bullets li strong {
  color: var(--gold-bright);
  font-weight: 600;
}
.v3-pillar-bullets li em {
  color: var(--gold-bright);
  font-style: italic;
}
.v3-pillar-closing {
  font-family: 'Noto Sans', var(--sans);
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--text-warm);
  margin-bottom: 1.2rem;
  font-style: italic;
}
.v3-pillar-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold-bright);
  font-family: var(--v3-heading);
  font-weight: 500;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.v3-pillar-cta-arrow {
  transition: transform 0.28s ease;
  display: inline-block;
}
.v3-pillar-card:hover .v3-pillar-cta-arrow {
  transform: translateX(4px);
}

/* ───────────────────────────────────────────────
   7. TWO IMPORTANT POINTS (placeholder)
   ─────────────────────────────────────────────── */
.v3-points-grid {
  max-width: 1080px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.v3-point-card {
  background: var(--v3-blue-elevated);
  border: 1px solid rgba(232, 201, 125, 0.18);
  border-radius: 12px;
  padding: 2rem 1.8rem;
}
.v3-point-card h3 {
  font-size: 1.4rem;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}
.v3-point-card p {
  font-family: 'Noto Sans', var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-warm);
}
.v3-placeholder {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.3rem 0.7rem;
  border: 1px dashed rgba(232, 201, 125, 0.4);
  color: rgba(232, 201, 125, 0.65);
  font-family: 'Noto Sans', var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
}

/* ───────────────────────────────────────────────
   8. STAKES — "what if we don't succeed" placeholder
   ─────────────────────────────────────────────── */
.v3-stakes-block {
  max-width: 760px;
  margin: 2.5rem auto 0;
  padding: 2.2rem 2rem;
  background: rgba(20, 30, 60, 0.5);
  border: 1px solid rgba(232, 201, 125, 0.18);
  border-left: 3px solid var(--v3-gold-warm);
  border-radius: 6px;
}
.v3-stakes-block h3 {
  font-size: 1.4rem;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}
.v3-stakes-block p {
  font-family: 'Noto Sans', var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-warm);
}

/* ───────────────────────────────────────────────
   9. EXPLORE BUTTONS
   ─────────────────────────────────────────────── */
.v3-explore {
  background: var(--v3-blue-deeper);
  padding: 5rem 6vw 6rem;
}
.v3-explore-h {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold-bright);
  margin-bottom: 2.5rem;
}
.v3-explore-ctas {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.v3-explore-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  background: var(--v3-blue-elevated);
  border: 1px solid rgba(232, 201, 125, 0.22);
  border-radius: 10px;
  color: var(--text-warm);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.v3-explore-cta:hover {
  border-color: var(--gold-bright);
  background: #1a3060;
  transform: translateY(-2px);
}
.v3-explore-cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.v3-explore-cta-label {
  font-family: 'Noto Sans', var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--v3-gold-glow);
}
.v3-explore-cta-title {
  font-family: var(--v3-heading);
  font-weight: 500;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  font-size: 1.15rem;
  color: var(--gold-bright);
}
.v3-explore-cta-arrow {
  font-size: 1.4rem;
  color: var(--gold-bright);
  transition: transform 0.25s ease;
}
.v3-explore-cta:hover .v3-explore-cta-arrow {
  transform: translateX(4px);
}

/* ───────────────────────────────────────────────
   Responsive: stack everything below 800 px
   ─────────────────────────────────────────────── */
@media (max-width: 800px) {
  .v3-hero {
    padding: 7rem 5vw 4rem;
    min-height: auto;
  }
  .v3-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .v3-hero-image {
    min-height: 0;
    order: 2;
  }
  .v3-hero-image img {
    max-width: 480px;
  }
  .v3-stats {
    padding: 4rem 5vw 5rem;
  }
  .v3-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem 1.6rem;
  }
  .v3-section {
    padding: 4.5rem 5vw;
  }
  .v3-problem-row,
  .v3-problem-row.row-image-left,
  .v3-problem-row.row-image-right {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    text-align: center;
    padding: 1.4rem 0;
  }
  .v3-problem-row.row-image-right .v3-problem-content,
  .v3-problem-row.row-image-right .v3-problem-img-wrap {
    order: initial;
  }
  .v3-problem-content h3 {
    text-align: center;
  }
  .v3-problem-content h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .v3-pillars-grid,
  .v3-points-grid,
  .v3-explore-ctas {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

@media (max-width: 480px) {
  .v3-stats-grid {
    grid-template-columns: 1fr;
  }
  .v3-hero-h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
}
