/*
Theme Name: Corporate Image Institute
Theme URI: https://corporateimageinstitute.com
Author: Corporate Image Institute
Description: Premium authority-positioning theme for Corporate Image Institute — editorial, conversion-focused, whitespace-driven.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: cii
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors */
  --forest:       #1C4A35;
  --forest-deep:  #112D20;
  --forest-mid:   #2A6B4E;
  --forest-light: #3D8A66;
  --gold:         #C9A84C;
  --gold-light:   #DFC07A;
  --gold-pale:    #F0E4C2;
  --cream:        #FAF7F0;
  --ivory:        #F5F0E8;
  --parchment:    #EDE6D6;
  --charcoal:     #1A1A1A;
  --slate:        #3D3D3D;
  --mid-gray:     #6B6B6B;
  --light-gray:   #C4C4C4;
  --border:       #E0D9CC;
  --white:        #FFFFFF;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;
  --font-accent:  'Cormorant SC', 'Georgia', serif;

  /* Spacing Scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 10rem;

  /* Layout */
  --max-width:       1320px;
  --max-width-text:  740px;
  --max-width-narrow: 580px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
  --duration-fast:   200ms;
  --duration-base:   400ms;
  --duration-slow:   700ms;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(28,74,53,0.08);
  --shadow-md:  0 8px 32px rgba(28,74,53,0.12);
  --shadow-lg:  0 20px 60px rgba(28,74,53,0.18);
  --shadow-gold: 0 4px 24px rgba(201,168,76,0.25);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--charcoal);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--forest);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover { color: var(--gold); }

ul, ol { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--forest-deep);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 500; }
h6 { font-size: 1rem; }

.display-serif {
  font-family: var(--font-display);
  font-style: italic;
}

.label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.label--light { color: var(--gold-light); }
.label--forest { color: var(--forest-mid); }

p {
  margin-bottom: 1.25em;
  color: var(--slate);
}

p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 3rem;
  padding-right: 3rem;
}

.container--text {
  max-width: var(--max-width-text);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section--lg {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section--sm {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.btn-primary {
  background: var(--gold);
  color: var(--forest-deep);
  border-color: var(--gold);
}

.btn-primary::before {
  background: var(--gold-light);
}

.btn-primary:hover {
  color: var(--forest-deep);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}

.btn-outline:hover {
  background: var(--forest);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline--white {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline--white:hover {
  background: var(--white);
  color: var(--forest-deep);
  border-color: var(--white);
}

.btn-outline--gold {
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline--gold:hover {
  background: var(--gold);
  color: var(--forest-deep);
}

.btn-lg {
  padding: 1.125rem 2.75rem;
  font-size: 0.875rem;
}

.btn-sm {
  padding: 0.625rem 1.375rem;
  font-size: 0.75rem;
}

/* ============================================================
   DIVIDERS & ORNAMENTS
   ============================================================ */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.ornament-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-lg) 0;
}

.divider--gold {
  border-color: var(--gold);
  opacity: 0.3;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--duration-base) var(--ease-out);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  transition: padding var(--duration-base) var(--ease-out);
}

/* Transparent state (on hero) */
#site-header.header-transparent {
  background: transparent;
}

#site-header.header-transparent .site-logo { color: var(--white); }
#site-header.header-transparent .logo-sub { color: rgba(255,255,255,0.7); }
#site-header.header-transparent nav a { color: rgba(255,255,255,0.85); }
#site-header.header-transparent nav a:hover { color: var(--gold-light); }
#site-header.header-transparent .header-cta { border-color: rgba(255,255,255,0.6); color: var(--white); }
#site-header.header-transparent .header-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); }

/* Scrolled state */
#site-header.header-scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

#site-header.header-scrolled .header-inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#site-header.header-scrolled .site-logo { color: var(--forest-deep); }
#site-header.header-scrolled .logo-sub { color: var(--mid-gray); }
#site-header.header-scrolled nav a { color: var(--slate); }

/* Logo */
.site-logo-wrap {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.site-logo {
  font-family: var(--font-accent);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--forest-deep);
  line-height: 1;
  transition: color var(--duration-base) var(--ease-out);
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-top: 3px;
  transition: color var(--duration-base) var(--ease-out);
}

/* Nav — handle WordPress ul > li > a output */
.site-nav,
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
  white-space: nowrap;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--duration-base) var(--ease-out);
}

.site-nav a:hover::after,
.site-nav li.current-menu-item > a::after,
.site-nav li.current_page_item > a::after {
  width: 100%;
}

/* Header CTA */
.header-cta {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.625rem 1.375rem;
  border: 1.5px solid var(--forest);
  color: var(--forest);
  transition: all var(--duration-base) var(--ease-out);
}

.header-cta:hover {
  background: var(--forest);
  color: var(--white);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: all var(--duration-base) var(--ease-out);
}

/* ============================================================
   HERO
   ============================================================ */



/* ============================================================
   HERO — PREMIUM EDITORIAL v4
   Full viewport height, controlled. Left: copy. Right: image
   that fills its column completely, dark gradient overlay,
   stats stacked on lower-left of the photo (like reference).
   ============================================================ */

/* ── Outer shell — exactly 100vh, no overflow ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #0d2218;
}

/* Deep forest radial on left side */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 120% at 0% 50%, #1C4A35 0%, transparent 55%),
    linear-gradient(150deg, #112D20 0%, #0a1c11 60%, #060e08 100%);
}

/* Crosshatch texture — barely visible */
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.022;
  background-image:
    repeating-linear-gradient( 45deg, #C9A84C 0, #C9A84C 1px, transparent 1px, transparent 72px),
    repeating-linear-gradient(-45deg, #C9A84C 0, #C9A84C 1px, transparent 1px, transparent 72px);
  background-size: 101px 101px;
  pointer-events: none;
}

/* ── Two-column grid — FULL WIDTH (outside .container) ── */
.hero-editorial {
  display: grid;
  grid-template-columns: 52% 48%;
  gap: 0;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 2;
  align-items: stretch;
}

/* ══ LEFT: Copy column — self-padded to match container ══ */
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Mirror the container's 3rem side padding + centre offset */
  padding-left: calc((100vw - 1320px) / 2 + 3rem);
  padding-right: 3.5rem;
  padding-top: 0;
  padding-bottom: 0;
  /* Fallback for narrow viewports */
  min-padding-left: 3rem;
  animation: ciiFadeUp 0.85s 0.05s cubic-bezier(0.16,1,0.3,1) both;
}

@media (max-width: 1380px) {
  .hero-copy {
    padding-left: 3rem;
  }
}

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.hero-eyebrow-rule {
  display: block;
  width: 32px;
  height: 1px;
  background: #C9A84C;
  flex-shrink: 0;
}
.hero-eyebrow-text {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}

/* Headline */
.hero-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: normal;
  /* Scales so it never needs 50% zoom to see */
  font-size: clamp(2rem, 3.2vw, 3.75rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 1.5rem;
}
.hero-headline em {
  font-style: italic;
  color: #DFC07A;
  font-weight: 400;
  display: block;
}
.hero-h1-sub {
  display: block;
  font-size: 0.55em;
  color: rgba(255,255,255,0.32);
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.05em;
  margin-top: 0.7em;
  font-family: 'Jost', sans-serif;
}

/* Body copy */
.hero-sub {
  font-family: 'Jost', sans-serif;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.58);
  max-width: 40ch;
  line-height: 1.82;
  margin: 0 0 1.75rem;
  font-weight: 300;
}

/* Checklist */
.hero-check-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.hero-check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}
.hero-check-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #C9A84C;
}

/* CTA */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}
.hero-trust-note {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.025em;
  line-height: 1.6;
  max-width: 38ch;
}

/* ══ RIGHT: Image — fills full column height ══ */
.hero-visual {
  position: relative;
  /* stretch to full grid row height (= 100vh) */
  align-self: stretch;
  animation: ciiFadeUp 0.85s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}

/* Image wrapper — matches column height exactly */
.hero-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;           /* fills .hero-visual which fills the row */
  overflow: hidden;
}

/* The photo */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;   /* keep faces visible */
  display: block;
  transition: transform 12s ease;
}
.hero:hover .hero-img {
  transform: scale(1.04);
}

/* ── Multi-layer gradient — dark editorial treatment like reference ── */
.hero-img-blend {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    /* Left edge — hard merge into forest bg */
    linear-gradient(to right,
      #0a1c11 0%,
      rgba(10,28,17,0.75) 12%,
      rgba(10,28,17,0.3) 28%,
      transparent 50%
    ),
    /* Overall dark tint — brings the mood down */
    linear-gradient(to bottom,
      rgba(6,14,9,0.55) 0%,
      rgba(6,14,9,0.15) 35%,
      rgba(6,14,9,0.25) 65%,
      rgba(6,14,9,0.9)  100%
    ),
    /* Warm gold-tinted centre vignette — like reference Image 2 */
    radial-gradient(ellipse 90% 80% at 65% 40%,
      rgba(30,22,8,0.0) 0%,
      rgba(30,22,8,0.45) 70%,
      rgba(15,10,4,0.75) 100%
    );
}

/* Gold corner — top right */
.hero-img-corner {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}
.hero-img-corner--tr {
  top: 0; right: 0;
  width: 40px; height: 40px;
  border-top: 1.5px solid rgba(201,168,76,0.55);
  border-right: 1.5px solid rgba(201,168,76,0.55);
}

/* ── Stats overlay — lower LEFT of image, vertical stack ── */
.hero-stats-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 0 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Gold top rule above stats */
.hero-stats-overlay::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: #C9A84C;
  opacity: 0.7;
  margin-bottom: 1.25rem;
}

/* Individual stat */
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 1.1rem;
}
.hero-stat:last-child {
  padding-bottom: 0;
}

/* Number + unit on same line */
.hero-stat-num-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  line-height: 1;
}

/* The big animated counter */
.hero-stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 300;
  color: #DFC07A;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-unit {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  color: #C9A84C;
  font-weight: 300;
  letter-spacing: 0;
}

/* Label text */
.hero-stat-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.hero-stat-label em {
  display: block;
  font-style: normal;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: rgba(201,168,76,0.55);
  margin-top: 0.1rem;
  text-transform: uppercase;
}

/* Thin gold divider between stats */
.hero-stat-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(201,168,76,0.3), transparent);
  width: 100%;
  margin-bottom: 1.1rem;
}

/* In-image pull quote block */
.hero-quote-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201,168,76,0.2);
}
.hero-quote-block p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin: 0 0 0.35rem;
}
.hero-quote-block span {
  font-family: 'Jost', sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
  font-style: normal;
}

/* Pull quote — below image column, hidden on desktop (shown mobile) */
.hero-pullquote {
  display: none; /* visible on mobile only */
  margin: 0;
  padding: 1rem 1.5rem 1rem 1.5rem;
  background: rgba(201,168,76,0.05);
  border-left: 2px solid #C9A84C;
}
.hero-pullquote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  margin: 0 0 0.375rem;
}
.hero-pullquote cite {
  font-family: 'Jost', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A84C;
  opacity: 0.7;
  font-style: normal;
}

/* ── Pull quote as inline element on desktop — lives inside image ── */
.hero-quote-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  /* sits just below the stats but we keep them separate */
}

/* ── Keyframe ── */
@keyframes ciiFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero-editorial { grid-template-columns: 55% 45%; }
  .hero-stat-num  { font-size: clamp(1.75rem, 2.5vw, 2.75rem); }
}

@media (max-width: 820px) {
  .hero {
    height: auto;
    max-height: none;
  }
  .hero-editorial {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 7rem 0 2.5rem;
  }
  .hero-visual {
    height: 70vw;
    min-height: 320px;
  }
  .hero-img-blend {
    background:
      linear-gradient(to bottom, rgba(6,14,9,0.45) 0%, transparent 30%),
      linear-gradient(to top, rgba(6,14,9,0.95) 0%, rgba(6,14,9,0.5) 40%, transparent 70%);
  }
  .hero-stats-overlay {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding: 1rem 1.25rem;
    align-items: flex-start;
  }
  .hero-stats-overlay::before { display: none; }
  .hero-stat { padding-bottom: 0; flex: 0 0 auto; }
  .hero-stat-divider { display: none; }
  .hero-pullquote { display: block; }
  .hero-stat-num { font-size: 1.75rem; }
}



/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem-section {
  background: var(--cream);
  padding: var(--space-xl) 0;
}

.problem-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
}

.problem-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height var(--duration-slow) var(--ease-out);
}

.problem-card:hover::before { height: 100%; }

.problem-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color var(--duration-base) var(--ease-out);
}

.problem-card:hover .problem-num { color: var(--gold-pale); }

.problem-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--forest-deep);
}

.problem-card p {
  font-size: 0.9375rem;
  color: var(--mid-gray);
  line-height: 1.65;
}

/* ============================================================
   BELIEF SHIFT
   ============================================================ */
.belief-section {
  background: var(--forest-deep);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.belief-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.belief-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: center;
}

.belief-left h2 {
  color: var(--white);
  font-style: italic;
}

.belief-left h2 em {
  color: var(--gold-light);
  font-style: normal;
  display: block;
}

.belief-quote {
  position: relative;
  padding: 2.5rem;
  border: 1px solid rgba(201,168,76,0.25);
  background: rgba(255,255,255,0.03);
}

.belief-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  line-height: 1;
}

.belief-quote p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.belief-quote cite {
  display: block;
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.5rem;
}

/* ============================================================
   FRAMEWORK
   ============================================================ */
.framework-section {
  padding: var(--space-xl) 0;
  background: var(--white);
}

.framework-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 5rem;
}

.framework-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.pillar {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  border-bottom: 2px solid var(--border);
  transition: border-color var(--duration-base) var(--ease-out);
}

.pillar:hover {
  border-color: var(--gold);
}

.pillar-number {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.pillar p {
  font-size: 0.875rem;
  color: var(--mid-gray);
  line-height: 1.65;
}

/* ============================================================
   LEAD MAGNET OPT-IN
   ============================================================ */
.optin-section {
  background: var(--ivory);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-xl) 0;
}

.optin-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.optin-book-mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

.book-cover {
  width: 220px;
  height: 290px;
  background: linear-gradient(135deg, var(--forest-deep), var(--forest));
  border-radius: 3px 6px 6px 3px;
  box-shadow:
    -8px 0 0 rgba(0,0,0,0.3),
    var(--shadow-lg),
    inset 3px 0 0 rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.book-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(201,168,76,0.05) 0px, rgba(201,168,76,0.05) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(-45deg, rgba(201,168,76,0.05) 0px, rgba(201,168,76,0.05) 1px, transparent 1px, transparent 28px);
}

.book-cover-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-style: italic;
  color: var(--white);
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.book-cover-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto;
}

.book-cover-sub {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  position: relative;
  z-index: 1;
}

.optin-content h2 { margin-bottom: 1rem; }
.optin-content > p { margin-bottom: 2rem; }

.optin-bullets {
  margin-bottom: 2rem;
}

.optin-bullets li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.optin-bullets li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: var(--gold);
  clip-path: polygon(14% 44%, 0% 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  margin-top: 3px;
}

/* Form placeholder */
.form-placeholder {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
}

.form-placeholder .form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--mid-gray);
  margin-top: 1rem;
}

/* Styled input elements */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.field-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

.field-group input {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--charcoal);
  transition: border-color var(--duration-fast) var(--ease-out);
  outline: none;
  width: 100%;
  background: var(--white);
}

.field-group input:focus {
  border-color: var(--forest-mid);
}

/* ============================================================
   BRIDGE / TRANSITION
   ============================================================ */
.bridge-section {
  background: var(--parchment);
  padding: var(--space-lg) 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.bridge-section .container {
  max-width: 700px;
}

.bridge-section p {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-style: italic;
  color: var(--forest-deep);
  line-height: 1.6;
}

/* ============================================================
   EBOOK SALES SECTION
   ============================================================ */
.ebook-section {
  background: var(--white);
  padding: var(--space-xl) 0;
}

.ebook-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.ebook-details h2 { margin-bottom: 1.5rem; }

.ebook-outcomes {
  margin: 2rem 0;
}

.ebook-outcomes li {
  display: flex;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  align-items: flex-start;
}

.ebook-outcomes li:last-child { border-bottom: none; }

.outcome-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--forest);
  clip-path: polygon(14% 44%, 0% 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  margin-top: 2px;
}

/* Price card */
.price-card {
  border: 1px solid var(--border);
  padding: 2.5rem;
  background: var(--cream);
  position: sticky;
  top: 8rem;
}

.price-card-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.price-badge {
  display: inline-block;
  background: var(--forest-deep);
  color: var(--gold-light);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  margin-bottom: 1.25rem;
}

.price-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--forest-deep);
  margin-bottom: 0.5rem;
}

.price-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
}

.price-currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest);
  margin-top: 0.5rem;
}

.price-number {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--forest-deep);
  line-height: 1;
}

.price-included {
  margin: 1.5rem 0;
}

.price-included li {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.price-included li:last-child { border-bottom: none; }

.price-included li::before {
  content: '✓';
  color: var(--forest);
  font-weight: 700;
  flex-shrink: 0;
}

.price-cta { width: 100%; text-align: center; justify-content: center; }

.price-guarantee {
  text-align: center;
  font-size: 0.75rem;
  color: var(--mid-gray);
  margin-top: 1rem;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-section {
  background: var(--cream);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background: var(--white);
  margin-top: 3rem;
}

.comparison-table th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: var(--forest-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.comparison-table th:first-child { background: var(--charcoal); }

.comparison-table th.highlight { background: var(--gold); color: var(--forest-deep); }

.comparison-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  vertical-align: middle;
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table tr:nth-child(even) td { background: var(--cream); }

.comparison-table td.check { color: var(--forest); font-size: 1.125rem; }
.comparison-table td.cross { color: var(--light-gray); font-size: 1.125rem; }
.comparison-table td.highlight-col { background: rgba(201,168,76,0.07); font-weight: 500; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--white);
  padding: var(--space-xl) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--forest-deep);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--forest-mid);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--mid-gray);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  background: var(--ivory);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}

.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  user-select: none;
  gap: 1.5rem;
}

.faq-question h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color var(--duration-fast) var(--ease-out);
}

.faq-question:hover h4 { color: var(--forest); }

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: all var(--duration-base) var(--ease-out);
}

.faq-icon svg {
  width: 12px;
  height: 12px;
  fill: var(--mid-gray);
  transition: transform var(--duration-base) var(--ease-out);
}

.faq-item.active .faq-icon {
  background: var(--forest);
  border-color: var(--forest);
}

.faq-item.active .faq-icon svg { fill: var(--white); transform: rotate(45deg); }
.faq-item.active .faq-question h4 { color: var(--forest); }

.faq-answer {
  display: none;
  padding: 0 0 1.5rem;
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.faq-item.active .faq-answer { display: block; }

/* ============================================================
   TRUST / CREDIBILITY
   ============================================================ */
.trust-section {
  background: var(--forest-deep);
  padding: var(--space-xl) 0;
  position: relative;
}

.trust-section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.trust-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(201,168,76,0.15);
  transition: border-color var(--duration-base) var(--ease-out);
}

.trust-item:hover { border-color: rgba(201,168,76,0.4); }

.trust-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.trust-text {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta-section {
  background: var(--gold);
  padding: var(--space-lg) 0;
  text-align: center;
}

.final-cta-section h2 {
  color: var(--forest-deep);
  font-style: italic;
  margin-bottom: 1rem;
}

.final-cta-section p {
  color: var(--forest-deep);
  opacity: 0.75;
  max-width: 48ch;
  margin: 0 auto 2rem;
}

.final-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-brand .site-logo {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-brand .logo-sub {
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-col h6 {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.625rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8125rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal a:hover { color: var(--gold-light); }

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-banner {
  background: var(--forest-deep);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(201,168,76,0.03) 0px, rgba(201,168,76,0.03) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(-45deg, rgba(201,168,76,0.03) 0px, rgba(201,168,76,0.03) 1px, transparent 1px, transparent 40px);
}

.page-banner h1 {
  color: var(--white);
  font-style: italic;
  position: relative;
}

.page-banner p {
  color: rgba(255,255,255,0.65);
  max-width: 52ch;
  font-size: 1.125rem;
  margin-top: 1rem;
  position: relative;
}

.page-content {
  padding: var(--space-xl) 0;
}

/* Blog Index */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.post-card {
  border-bottom: 2px solid var(--border);
  padding-bottom: 2rem;
  transition: border-color var(--duration-base) var(--ease-out);
}

.post-card:hover { border-color: var(--gold); }

.post-cat {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.post-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.post-card h3 a { color: var(--forest-deep); }
.post-card h3 a:hover { color: var(--forest-mid); }

.post-card p {
  font-size: 0.9375rem;
  color: var(--mid-gray);
  margin-bottom: 1.25rem;
}

.post-meta {
  font-size: 0.75rem;
  color: var(--light-gray);
  letter-spacing: 0.05em;
}

/* Single Post */
.single-post-content {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.single-post-content h2 { font-size: 2rem; margin: 2em 0 0.75em; }
.single-post-content h3 { font-size: 1.5rem; margin: 1.75em 0 0.75em; }
.single-post-content p { font-size: 1.0625rem; line-height: 1.8; margin-bottom: 1.5em; }
.single-post-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  background: var(--cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  margin: 2em 0;
}

/* In-article CTA */
.article-cta {
  background: var(--forest-deep);
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
}

.article-cta p {
  font-size: 1.125rem;
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.25rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
}

.contact-info h3 { margin-bottom: 1.5rem; }
.contact-info p { font-size: 0.9375rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

/* JS adds .js-animate-ready to <body> before painting — then animations activate */
.js-animate-ready .animate-in {
  opacity: 0;
  transform: translateY(20px);
}

.animate-in.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }

/* Hero entrance */
/* Hero entrance handled by ciiFadeUp on .hero-copy and .hero-visual */

/* Nav wrapper — desktop layout */
.nav-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
}

/* Force nav ul to be a horizontal row on desktop */
.nav-wrapper .site-nav,
.nav-wrapper .site-nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-wrapper .site-nav li {
  display: flex;
  align-items: center;
  flex-direction: row;
  margin: 0;
  padding: 0;
}

/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */
@media (max-width: 900px) {
  .menu-toggle { display: flex; color: inherit; }

  .nav-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(360px, 100vw);
    height: 100vh;
    background: var(--forest-deep);
    padding: 5rem 2.5rem 2.5rem;
    transition: right var(--duration-slow) var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 999;
  }

  .nav-wrapper.open { right: 0; }

  .site-nav,
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .site-nav li {
    width: 100%;
    display: block;
  }

  .site-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    white-space: normal;
  }

  .site-nav a::after { display: none; }

  .header-cta {
    border-color: var(--gold);
    color: var(--gold);
    align-self: flex-start;
    margin-top: 1rem;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-out);
    z-index: 998;
  }

  .nav-overlay.open {
    opacity: 1;
    pointer-events: all;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .framework-pillars { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --space-xl:  4rem;
    --space-2xl: 6rem;
  }

  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .grid-2,
  .grid-3,
  .belief-inner,
  .optin-inner,
  .ebook-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .problem-grid,
  .testimonials-grid { grid-template-columns: 1fr; }

  .blog-grid { grid-template-columns: 1fr 1fr; }

  .framework-pillars { grid-template-columns: 1fr 1fr; }

  .hero-proof { flex-wrap: wrap; gap: 1.5rem; }

  .comparison-table { font-size: 0.875rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .price-card { position: static; }

  .trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr; }
  .framework-pillars { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .final-cta-btns { flex-direction: column; align-items: center; }
  .trust-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   GUTENBERG COMPATIBILITY
   ============================================================ */
.wp-block-group { margin: 2rem 0; }
.wp-block-separator { border-color: var(--border); }
.wp-block-quote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  font-style: italic;
}
.wp-block-button__link {
  background: var(--forest);
  color: var(--white);
  font-family: var(--font-body);
  letter-spacing: 0.1em;
}
.alignfull { margin-left: calc(-50vw + 50%); width: 100vw; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #site-header, #site-footer, .hero-ctas, .optin-section, .final-cta-section { display: none; }
  body { font-size: 12pt; color: #000; }
  h1, h2, h3 { color: #000; }
}

/* ============================================================
   EBOOK PRODUCT SALES PAGE (page-ebook-sales.php)
   ============================================================ */

/* ── Hero ── */
.ep-hero {
  position: relative;
  background: var(--forest-deep);
  overflow: hidden;
  padding: 9rem 0 7rem;
}

.ep-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at 15% 50%, rgba(28,74,53,0.7) 0%, transparent 65%),
    linear-gradient(145deg, var(--forest-deep) 0%, #0d2218 50%, #080f0b 100%);
}

.ep-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    repeating-linear-gradient(45deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 56px),
    repeating-linear-gradient(-45deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 56px);
  background-size: 79px 79px;
}

.ep-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .ep-hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Eyebrow */
.ep-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}

.ep-eyebrow-rule {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
}

.ep-eyebrow-text {
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  font-family: var(--font-body);
}

/* Title */
.ep-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(2.75rem, 4.5vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.ep-title em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}

/* Subtitle */
.ep-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.6);
  max-width: 48ch;
  line-height: 1.8;
  margin-bottom: 1.75rem;
  font-weight: 300;
}

/* Meta row */
.ep-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.ep-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

.ep-meta-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.ep-meta-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.9rem;
}

/* Hero CTAs */
.ep-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ep-cta-primary { }

.ep-cta-secondary {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
}

.ep-cta-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Trust micro-line */
.ep-trust-micro {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.03em;
}

/* Book mockup */
.ep-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ep-book-wrap {
  position: relative;
  width: 280px;
}

.ep-book-shadow {
  position: absolute;
  bottom: -24px;
  left: 12px;
  right: -12px;
  height: 40px;
  background: rgba(0,0,0,0.35);
  filter: blur(16px);
  border-radius: 50%;
}

.ep-book-cover {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(201,168,76,0.25);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--forest-deep);
}

.ep-book-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CSS-rendered book cover fallback */
.ep-book-rendered {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse 100% 100% at 50% 0%, rgba(44,107,78,0.4) 0%, transparent 70%),
    var(--forest-deep);
}

.ep-book-rendered-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
}

.ep-book-label {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-body);
}

.ep-book-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.ep-book-rendered-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.25;
  text-align: center;
}

.ep-book-rendered-title em {
  font-style: italic;
  color: var(--gold-light);
}

.ep-book-edition {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* Book spine illusion */
.ep-book-spine {
  position: absolute;
  top: 0;
  left: -10px;
  width: 10px;
  height: 100%;
  background: linear-gradient(to right, #0a1a12, #1C4A35);
  transform-origin: right center;
  z-index: 1;
}

/* Badge on book */
.ep-book-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 64px;
  height: 64px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}

.ep-badge-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1;
}

.ep-badge-label {
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28,18,10,0.7);
  font-weight: 600;
}

/* ── Stat bar ── */
.ep-stat-bar {
  background: var(--forest);
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ep-stat-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.ep-stat-item {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.5rem 2.5rem;
  flex-wrap: wrap;
}

.ep-stat-item--source {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.ep-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
}

.ep-stat-unit {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--gold);
  font-weight: 300;
}

.ep-stat-desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
  line-height: 1.4;
  max-width: 20ch;
}

.ep-stat-div {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .ep-stat-bar-inner { gap: 0.5rem; }
  .ep-stat-div { display: none; }
  .ep-stat-item { padding: 0.5rem 1.25rem; }
}

/* ── Overview section ── */
.ep-overview {
  background: var(--cream);
}

.ep-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.ep-two-col--overview {
  gap: 4rem;
}

@media (max-width: 860px) {
  .ep-two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.ep-section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 1rem 0 1.5rem;
}

.ep-section-heading em {
  font-style: italic;
  color: var(--forest);
}

.ep-section-heading--light {
  color: var(--white);
}

.ep-section-heading--light em {
  color: var(--gold-light);
}

.ep-section-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 52ch;
  line-height: 1.8;
  margin: 0 auto;
}

.ep-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.ep-section-header--left {
  text-align: left;
}

.ep-overview-copy p {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.82;
  margin-bottom: 1.125rem;
}

/* Outcome list */
.ep-outcome-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ep-outcome-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.55;
}

.ep-outcome-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--gold);
  border-radius: 50%;
  position: relative;
  margin-top: 2px;
}

.ep-outcome-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 5px;
  height: 8px;
  border-right: 1.5px solid var(--forest-deep);
  border-bottom: 1.5px solid var(--forest-deep);
  margin-top: -1px;
}

/* ── Pillars section ── */
.ep-pillars {
  background: var(--forest-deep);
  padding: var(--space-xl) 0;
}

.ep-pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.06);
}

@media (max-width: 1100px) {
  .ep-pillars-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .ep-pillars-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 440px) {
  .ep-pillars-grid { grid-template-columns: 1fr; }
}

.ep-pillar {
  background: var(--forest-deep);
  padding: 2.25rem 1.75rem;
  position: relative;
  transition: background var(--duration-base) var(--ease-out);
}

.ep-pillar:hover {
  background: rgba(28,74,53,0.7);
}

.ep-pillar-num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.18);
}

.ep-pillar-icon {
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.ep-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.625rem;
  line-height: 1.3;
}

.ep-pillar p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin: 0;
}

/* ── Testimonials ── */
.ep-testimonials {
  background: var(--ivory);
}

.ep-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 860px) {
  .ep-testimonials-grid { grid-template-columns: 1fr; }
}

.ep-testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.ep-testimonial::before {
  content: '\201C';
  position: absolute;
  top: 1.25rem;
  left: 1.75rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.25;
}

.ep-testimonial p {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.75;
  margin: 0;
  padding-top: 1.5rem;
}

.ep-testimonial footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.ep-testimonial-avatar {
  width: 40px;
  height: 40px;
  background: var(--forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-light);
  flex-shrink: 0;
}

.ep-testimonial-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  font-style: normal;
  margin-bottom: 0.125rem;
}

.ep-testimonial-role {
  display: block;
  font-size: 0.72rem;
  color: var(--mid-gray);
  letter-spacing: 0.03em;
}

.ep-testimonials-disclaimer {
  text-align: center;
  font-size: 0.7rem;
  color: var(--light-gray);
  font-style: italic;
}

/* ── Purchase section ── */
.ep-purchase {
  background: var(--cream);
}

.ep-purchase-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .ep-purchase-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.ep-includes-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.ep-includes-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--slate);
}

.ep-includes-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--forest);
}

/* Guarantee badge */
.ep-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-left: 3px solid var(--forest);
}

.ep-guarantee-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.ep-guarantee strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.375rem;
  letter-spacing: 0.03em;
}

.ep-guarantee p {
  font-size: 0.83rem;
  color: var(--mid-gray);
  line-height: 1.65;
  margin: 0;
}

/* Price card */
.ep-price-card {
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 8rem;
}

.ep-price-card-header {
  background: var(--forest-deep);
  padding: 2rem 2rem 1.75rem;
  text-align: center;
}

.ep-price-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.35);
  padding: 0.375rem 0.875rem;
  margin-bottom: 1rem;
}

.ep-price-title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.ep-price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* WooCommerce price inside ep-price-amount */
.ep-price-amount .woocommerce-Price-amount {
  font-family: var(--font-display);
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
}

.ep-price-currency {
  font-size: 0.55em;
  vertical-align: super;
}

.ep-price-note {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
  letter-spacing: 0.03em;
}

.ep-price-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ep-buy-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.ep-price-security {
  font-size: 0.72rem;
  color: var(--mid-gray);
  text-align: center;
  margin: 0;
  line-height: 1.6;
}

.ep-price-includes {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ep-price-includes li {
  font-size: 0.8125rem;
  color: var(--slate);
  letter-spacing: 0.02em;
}

/* ── Final CTA ── */
.ep-final-cta {
  background: var(--ivory);
  padding: 6rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.ep-final-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.ep-final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--charcoal);
}

.ep-final-cta p {
  font-size: 1rem;
  color: var(--mid-gray);
  line-height: 1.8;
  max-width: 48ch;
}

/* WooCommerce empty products style for ebook page */
.cii-woo-empty {
  text-align: center;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.cii-woo-empty-icon {
  opacity: 0.5;
}

.cii-woo-empty h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--charcoal);
}

.cii-woo-empty p {
  color: var(--mid-gray);
  max-width: 44ch;
  line-height: 1.7;
}
