/*
 Theme Name:   HEPO Child
 Theme URI:    https://hepopartnership.org
 Description:  HEPO – Partnership for Leadership Development. Child theme for Divi.
               University of Gold Coast Leadership Academy in collaboration with
               the Chartered Management Institute Leadership Academy, United Kingdom.
 Author:       University of Gold Coast Leadership Academy
 Author URI:   https://hepopartnership.org
 Template:     Divi
 Version:      1.0.0
*/

/* ============================================================
   HEPO DESIGN TOKENS — Chartered Emerald & Champagne
   A corporate, institutional, chartered-grade palette.
   Deliberately distinct from any sibling brand.
   ============================================================ */

:root {
  /* Brand core */
  --emerald:        #0B3D2E;   /* primary dark — chartered green */
  --emerald-mid:    #14543E;   /* mid green — gradients, secondary panels */
  --emerald-deep:   #072A20;   /* darkest — footer, deep bands */
  --emerald-tint:   #0F4734;   /* hover/elevated surfaces on dark */

  --champagne:      #C2A14D;   /* accent gold */
  --champagne-lt:   #D8BE7E;   /* lighter gold — hover */
  --champagne-dk:   #A8862F;   /* deeper gold — borders on light */

  --ivory:          #F6F1E7;   /* warm panel */
  --ivory-deep:     #ECE4D3;   /* deeper warm panel */

  --ink:            #1A1F1C;   /* near-black body text */
  --ink-soft:       #4C544E;   /* muted body text */
  --ink-faint:      #7A817C;   /* captions / meta */

  --line:           #DDD4C0;   /* hairline on light surfaces */
  --line-dark:      rgba(255,255,255,0.14); /* hairline on dark surfaces */

  --white:          #FFFFFF;

  /* Pathway level accents (tonal, all within the emerald/gold family) */
  --level-one:      #1F7A57;   /* lighter emerald — foundational */
  --level-two:      #14543E;   /* core emerald — operational */
  --level-three:    #0B3D2E;   /* deepest emerald — executive */

  /* Typography */
  --font-display:   'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:      'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shadows */
  --shadow-sm:      0 2px 10px rgba(11,61,46,0.06);
  --shadow-md:      0 12px 36px rgba(11,61,46,0.10);
  --shadow-lg:      0 24px 60px rgba(7,42,32,0.18);
}

/* ============================================================
   GLOBAL BASE
   ============================================================ */

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.et_pb_text p,
.et_pb_text li,
.et_pb_text td {
  font-family: var(--font-body);
  line-height: 1.7;
}

/* Eyebrow / kicker label — the signature HEPO label motif */
.hepo-eyebrow,
.et_pb_text .hepo-eyebrow {
  display: inline-block;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--champagne) !important;
  margin: 0 0 18px !important;
  position: relative;
}

/* Eyebrow on light surfaces gets a deeper gold for contrast */
.hepo-section-ivory .hepo-eyebrow,
.hepo-section-white .hepo-eyebrow { color: var(--champagne-dk) !important; }

/* Editorial pull-quote / conviction text */
.hepo-lede,
.et_pb_text .hepo-lede {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.6rem) !important;
  line-height: 1.5 !important;
}

/* Champagne hairline rule — used as a refined divider */
.hepo-rule {
  width: 64px;
  height: 2px;
  background: var(--champagne);
  border: 0;
  margin: 0 0 28px;
}
.hepo-rule--center { margin-left: auto; margin-right: auto; }

/* ============================================================
   DIVI CORE FIXES
   ============================================================ */

.et_fixed_nav #page-container,
.et_fixed_nav #main-content { padding-top: 0 !important; }

.et_pb_section:first-of-type { margin-top: 0 !important; }
.et_pb_row { border-bottom: none !important; }

.et_pb_button {
  font-family: var(--font-body) !important;
  letter-spacing: 0.04em !important;
  border-radius: 2px !important;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.15s ease !important;
}

/* ============================================================
   NAVIGATION — emerald bar, champagne accents
   Distinct hover: full-width underline grow from left + letter-spacing
   ============================================================ */

#main-header,
.et-fixed-header {
  background-color: var(--emerald) !important;
  border-bottom: 1px solid rgba(194,161,77,0.35) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 6px 28px rgba(7,42,32,0.30) !important;
  transition: box-shadow 0.25s ease, background-color 0.25s ease !important;
}

.et-fixed-header {
  background-color: var(--emerald-deep) !important;
  box-shadow: 0 6px 34px rgba(7,42,32,0.45) !important;
}

#logo { max-height: 58px; }

/* Desktop nav links */
#main-header .nav li a,
#et-top-navigation .nav li a {
  color: rgba(255,255,255,0.88) !important;
  position: relative;
  transition: color 0.2s ease !important;
}

/* Underline grows from the left (different from sibling-brand center-out) */
#main-header .nav li a::after,
#et-top-navigation .nav li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--champagne);
  transition: width 0.28s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}

#main-header .nav li a:hover::after,
#main-header .nav li.current-menu-item > a::after,
#main-header .nav li.current-menu-ancestor > a::after,
#et-top-navigation .nav li a:hover::after,
#et-top-navigation .nav li.current-menu-item > a::after,
#et-top-navigation .nav li.current-menu-ancestor > a::after {
  width: 100%;
}

#main-header .nav li a:hover,
#main-header .nav li.current-menu-item > a,
#main-header .nav li.current-menu-ancestor > a,
#et-top-navigation .nav li a:hover,
#et-top-navigation .nav li.current-menu-item > a,
#et-top-navigation .nav li.current-menu-ancestor > a {
  color: var(--champagne-lt) !important;
}

#main-header .nav li.menu-item-has-children > a::after,
#et-top-navigation .nav li.menu-item-has-children > a::after { display: none !important; }

/* "Become a Member" — champagne pill CTA in the nav */
#main-header .nav li a[href*="membership"],
#et-top-navigation .nav li a[href*="membership"] {
  background: var(--champagne) !important;
  color: var(--emerald) !important;
  padding: 9px 20px !important;
  border-radius: 2px !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-left: 12px !important;
  box-shadow: 0 2px 12px rgba(194,161,77,0.30) !important;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
}
#main-header .nav li a[href*="membership"]:hover,
#et-top-navigation .nav li a[href*="membership"]:hover {
  background: var(--champagne-lt) !important;
  color: var(--emerald) !important;
  box-shadow: 0 6px 20px rgba(194,161,77,0.50) !important;
  transform: translateY(-1px) !important;
}
#main-header .nav li a[href*="membership"]::after,
#et-top-navigation .nav li a[href*="membership"]::after { display: none !important; }

/* Dropdown panel — HEPO colours only; size & spacing left to Divi default */
#main-header .nav li > ul.sub-menu,
#et-top-navigation .nav li > ul.sub-menu {
  background: var(--emerald-deep) !important;
  border-top: 2px solid var(--champagne) !important;
}

#main-header .nav li > ul.sub-menu li a,
#et-top-navigation .nav li > ul.sub-menu li a {
  color: rgba(255,255,255,0.80) !important;
  background: transparent !important;
  border-left: 3px solid transparent !important;
  transition: color 0.15s, background 0.15s, border-left-color 0.15s !important;
}
#main-header .nav li > ul.sub-menu li a:hover,
#et-top-navigation .nav li > ul.sub-menu li a:hover {
  color: var(--champagne-lt) !important;
  background: rgba(194,161,77,0.08) !important;
  border-left-color: var(--champagne) !important;
}
#main-header .nav li > ul.sub-menu li a::after,
#et-top-navigation .nav li > ul.sub-menu li a::after { display: none !important; }

/* ============================================================
   BUTTONS
   ============================================================ */

/* Champagne solid (primary CTA) */
.et_pb_button.hepo-btn-gold,
.hepo-btn-gold .et_pb_button {
  background-color: var(--champagne) !important;
  color: var(--emerald) !important;
  border: 1px solid var(--champagne) !important;
  border-radius: 2px !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-size: 0.82rem !important;
  padding: 15px 34px !important;
}
.et_pb_button.hepo-btn-gold:hover,
.hepo-btn-gold .et_pb_button:hover {
  background-color: var(--champagne-lt) !important;
  border-color: var(--champagne-lt) !important;
  transform: translateY(-1px) !important;
}

/* Emerald solid */
.et_pb_button.hepo-btn-emerald,
.hepo-btn-emerald .et_pb_button {
  background-color: var(--emerald) !important;
  color: var(--white) !important;
  border: 1px solid var(--emerald) !important;
  border-radius: 2px !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-size: 0.82rem !important;
  padding: 15px 34px !important;
}
.et_pb_button.hepo-btn-emerald:hover,
.hepo-btn-emerald .et_pb_button:hover {
  background-color: var(--emerald-mid) !important;
  border-color: var(--emerald-mid) !important;
}

/* Ghost / outline on dark */
.et_pb_button.hepo-btn-ghost,
.hepo-btn-ghost .et_pb_button {
  background-color: transparent !important;
  color: var(--champagne-lt) !important;
  border: 1px solid rgba(194,161,77,0.55) !important;
  border-radius: 2px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-size: 0.82rem !important;
  padding: 15px 34px !important;
}
.et_pb_button.hepo-btn-ghost:hover,
.hepo-btn-ghost .et_pb_button:hover {
  background-color: var(--champagne) !important;
  color: var(--emerald) !important;
  border-color: var(--champagne) !important;
}

/* Outline on light */
.et_pb_button.hepo-btn-outline,
.hepo-btn-outline .et_pb_button {
  background-color: transparent !important;
  color: var(--emerald) !important;
  border: 1px solid var(--emerald) !important;
  border-radius: 2px !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-size: 0.82rem !important;
  padding: 15px 34px !important;
}
.et_pb_button.hepo-btn-outline:hover,
.hepo-btn-outline .et_pb_button:hover {
  background-color: var(--emerald) !important;
  color: var(--white) !important;
}

/* ============================================================
   SECTION SURFACES
   ============================================================ */

.hepo-section-emerald { background-color: var(--emerald) !important; }
.hepo-section-deep    { background-color: var(--emerald-deep) !important; }
.hepo-section-ivory   { background-color: var(--ivory) !important; }
.hepo-section-ivory-deep { background-color: var(--ivory-deep) !important; }
.hepo-section-white   { background-color: var(--white) !important; }

.hepo-section-emerald h1, .hepo-section-emerald h2, .hepo-section-emerald h3,
.hepo-section-emerald h4, .hepo-section-emerald p, .hepo-section-emerald li,
.hepo-section-deep h1, .hepo-section-deep h2, .hepo-section-deep h3,
.hepo-section-deep h4, .hepo-section-deep p, .hepo-section-deep li {
  color: var(--white) !important;
}

/* Subtle champagne hairline at the top of a section (institutional seam) */
.hepo-seam { border-top: 1px solid var(--line) !important; }
.hepo-seam-gold { border-top: 2px solid var(--champagne) !important; }

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

.hepo-hero {
  background-color: var(--emerald);
  position: relative;
  overflow: hidden;
}

/* faint champagne crest watermark behind hero text */
.hepo-hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border: 1px solid rgba(194,161,77,0.16);
  border-radius: 50%;
  pointer-events: none;
}
.hepo-hero::before {
  content: '';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  height: 360px;
  border: 1px solid rgba(194,161,77,0.10);
  border-radius: 50%;
  pointer-events: none;
}

.hepo-hero__kicker {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
}

/* ============================================================
   PARTNERSHIP LOCKUP STRIP
   Co-branding band: UGC × CMI
   ============================================================ */

.hepo-partner-strip {
  background: var(--ivory-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
  text-align: center;
}
.hepo-partner-strip .hepo-partner-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.hepo-partner-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hepo-partner-lockup .hepo-partner-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--emerald);
}
.hepo-partner-lockup .hepo-partner-x {
  color: var(--champagne-dk);
  font-size: 1.1rem;
  font-weight: 400;
}

/* ============================================================
   PILLAR / FEATURE CARDS — corporate, hairline, champagne corner
   ============================================================ */

.hepo-card,
.et_pb_blurb.hepo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 38px 34px !important;
  height: 100%;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.hepo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 46px;
  border-top: 2px solid var(--champagne);
  border-left: 2px solid var(--champagne);
  opacity: 0.0;
  transition: opacity 0.25s ease;
}
.hepo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--champagne);
}
.hepo-card:hover::before { opacity: 1; }

.hepo-card .et_pb_blurb_container,
.hepo-card .et_pb_main_blurb_image { text-align: left !important; }

/* Card on ivory background — keep white card, deeper hairline */
.hepo-section-ivory .hepo-card { border-color: var(--line); }

/* ============================================================
   THREE-LEVEL PATHWAY — ascending tier blocks (signature)
   Roman numerals I / II / III, ascending emerald depth
   ============================================================ */

.hepo-tier {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--champagne);
  border-radius: 3px;
  padding: 34px 36px;
  margin-bottom: 22px;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.hepo-tier:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }

.hepo-tier__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--champagne);
  flex-shrink: 0;
  min-width: 64px;
}
.hepo-tier__body { flex: 1; }
.hepo-tier__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne-dk);
  margin-bottom: 6px;
}
.hepo-tier__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 10px;
  line-height: 1.2;
}
.hepo-tier__desc {
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 16px;
}
.hepo-tier__meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hepo-tier__meta span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.hepo-tier__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--emerald);
  font-weight: 600;
}
.hepo-tier__link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald);
  text-decoration: none;
  border-bottom: 2px solid var(--champagne);
  padding-bottom: 3px;
  transition: color 0.15s, border-color 0.15s;
}
.hepo-tier__link:hover { color: var(--champagne-dk); }

/* depth cue down the ladder */
.hepo-tier--one   { border-left-color: var(--level-one); }
.hepo-tier--two   { border-left-color: var(--level-two); }
.hepo-tier--three { border-left-color: var(--level-three); }

/* ============================================================
   PROGRAMME / LEVEL HERO META BAR
   ============================================================ */

.hepo-meta-bar {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 28px;
}
.hepo-meta-bar__item {
  flex: 1 1 160px;
  padding: 20px 26px;
  border-right: 1px solid var(--line-dark);
}
.hepo-meta-bar__item:last-child { border-right: none; }
.hepo-meta-bar__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 6px;
}
.hepo-meta-bar__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}

/* ============================================================
   STAT BLOCKS
   ============================================================ */

.hepo-stat { text-align: center; padding: 14px 18px; }
.hepo-stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--champagne);
  line-height: 1;
  margin-bottom: 10px;
}
.hepo-stat__label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
}
.hepo-section-ivory .hepo-stat__label { color: var(--ink-soft); }
.hepo-section-ivory .hepo-stat__num { color: var(--champagne-dk); }

/* ============================================================
   CONVICTION BAND
   ============================================================ */

.hepo-conviction {
  background: var(--emerald-deep);
  padding: 90px 8%;
  text-align: center;
  position: relative;
}
.hepo-conviction::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 6rem;
  color: rgba(194,161,77,0.30);
  line-height: 0.5;
  display: block;
  margin-bottom: 10px;
}
.hepo-conviction p,
.hepo-conviction .et_pb_text_inner {
  font-family: var(--font-display) !important;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem) !important;
  color: var(--ivory) !important;
  line-height: 1.5 !important;
  max-width: 920px;
  margin: 0 auto !important;
}

/* ============================================================
   BENEFIT ITEMS
   ============================================================ */

.hepo-benefit,
.et_pb_blurb.hepo-benefit {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 30px 8px !important;
  height: 100%;
  transition: background 0.2s ease;
}
.hepo-benefit__title,
.hepo-benefit .et_pb_module_header {
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: var(--emerald) !important;
  margin-bottom: 10px !important;
  position: relative;
  padding-left: 22px;
}
.hepo-benefit__title::before,
.hepo-benefit .et_pb_module_header::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 10px; height: 10px;
  border: 2px solid var(--champagne);
  transform: rotate(45deg);
}
.hepo-benefit__desc,
.hepo-benefit .et_pb_blurb_description {
  font-family: var(--font-body) !important;
  color: var(--ink-soft) !important;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  padding-left: 22px;
}

/* ============================================================
   RECOGNITION TIER CARDS (Chartered ladder)
   ============================================================ */

.hepo-recognition {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 34px 30px;
  height: 100%;
  position: relative;
  border-top: 3px solid var(--champagne);
}
.hepo-recognition__rank {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne-dk);
  margin-bottom: 8px;
}
.hepo-recognition__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 12px;
  line-height: 1.2;
}
.hepo-recognition__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ============================================================
   "WHO SHOULD JOIN" — organisation chips
   ============================================================ */

.hepo-org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.hepo-org-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--champagne);
  border-radius: 2px;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.hepo-org-chip:hover {
  border-left-color: var(--champagne-dk);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* ============================================================
   STEP PROCESS (How to become a member)
   ============================================================ */

.hepo-steps { counter-reset: hepo-step; }
.hepo-step {
  display: flex;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.hepo-step:last-child { border-bottom: none; }
.hepo-step__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  background: var(--emerald);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--champagne);
}
.hepo-step__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 8px;
}
.hepo-step__desc {
  font-family: var(--font-body);
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.98rem;
}

/* ============================================================
   FAQ — Divi toggles, HEPO styled
   ============================================================ */

.hepo-faq .et_pb_toggle {
  background: var(--white) !important;
  border: 1px solid var(--line) !important;
  border-radius: 3px !important;
  margin-bottom: 14px !important;
  padding: 6px 8px !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}
.hepo-faq .et_pb_toggle.et_pb_toggle_open {
  border-color: var(--champagne) !important;
  box-shadow: var(--shadow-sm) !important;
}
.hepo-faq .et_pb_toggle_title {
  font-family: var(--font-display) !important;
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  color: var(--emerald) !important;
  padding: 14px 50px 14px 16px !important;
}
.hepo-faq .et_pb_toggle_content {
  font-family: var(--font-body) !important;
  color: var(--ink-soft) !important;
  font-size: 0.98rem !important;
  line-height: 1.7 !important;
  padding: 0 16px 16px !important;
}
.hepo-faq .et_pb_toggle_title:before {
  color: var(--champagne-dk) !important;
  font-size: 22px !important;
  right: 16px !important;
}

/* ============================================================
   CTA BAND
   ============================================================ */

.hepo-cta-band { background: var(--emerald); position: relative; overflow: hidden; }
.hepo-cta-band::after {
  content: '';
  position: absolute;
  left: 50%; top: -160px;
  transform: translateX(-50%);
  width: 640px; height: 640px;
  border: 1px solid rgba(194,161,77,0.14);
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================================
   FORM PAGE WRAPPER
   ============================================================ */

.hepo-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--champagne);
  border-radius: 3px;
  padding: 14px 8px;
  box-shadow: var(--shadow-sm);
}
.hepo-form-note {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-faint);
  line-height: 1.6;
  border-left: 3px solid var(--champagne);
  padding: 4px 0 4px 18px;
  margin-bottom: 8px;
}

/* WPForms light styling to fit HEPO */
.wpforms-container .wpforms-field-label { font-family: var(--font-body) !important; color: var(--ink) !important; font-weight: 600 !important; }
.wpforms-container input[type=text],
.wpforms-container input[type=email],
.wpforms-container input[type=tel],
.wpforms-container input[type=url],
.wpforms-container select,
.wpforms-container textarea {
  border: 1px solid var(--line) !important;
  border-radius: 2px !important;
  font-family: var(--font-body) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
  border-color: var(--champagne) !important;
  box-shadow: 0 0 0 3px rgba(194,161,77,0.16) !important;
  outline: none !important;
}
.wpforms-container button[type=submit],
.wpforms-submit {
  background-color: var(--champagne) !important;
  color: var(--emerald) !important;
  border: none !important;
  border-radius: 2px !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 14px 32px !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
}
.wpforms-container button[type=submit]:hover,
.wpforms-submit:hover { background-color: var(--champagne-lt) !important; transform: translateY(-1px) !important; }

/* ============================================================
   BREADCRUMB
   ============================================================ */

.hepo-breadcrumb {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.hepo-breadcrumb a { color: rgba(255,255,255,0.78); text-decoration: none; }
.hepo-breadcrumb a:hover { color: var(--champagne-lt); }
.hepo-breadcrumb span { color: rgba(255,255,255,0.38); margin: 0 8px; }

/* ============================================================
   FOOTER
   ============================================================ */

#footer-widgets,
.footer-widget { background-color: var(--emerald) !important; }

#footer-info {
  background-color: var(--emerald-deep) !important;
  color: rgba(255,255,255,0.55) !important;
  font-family: var(--font-body);
  font-size: 0.84rem;
}

.footer-widget h4,
.footer-widget .widget-title {
  font-family: var(--font-display);
  color: var(--white) !important;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(194,161,77,0.35);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.footer-widget p,
.footer-widget a,
.footer-widget li {
  color: rgba(255,255,255,0.68) !important;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer-widget a:hover { color: var(--champagne-lt) !important; text-decoration: none; }

.et_pb_social_media_follow li a.icon {
  background-color: rgba(255,255,255,0.08) !important;
  transition: background-color 0.2s;
}
.et_pb_social_media_follow li a.icon:hover { background-color: var(--champagne) !important; }

/* ============================================================
   GENERIC PAGE HERO (interior pages)
   ============================================================ */

.hepo-page-hero {
  background-color: var(--emerald);
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}
.hepo-page-hero::after {
  content: '';
  position: absolute;
  right: -90px; top: -90px;
  width: 320px; height: 320px;
  border: 1px solid rgba(194,161,77,0.14);
  border-radius: 50%;
  pointer-events: none;
}
.hepo-page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

/* ============================================================
   LUCIDE ICONS — base sizing & inline behaviour (v1.1)
   ============================================================ */

[data-lucide] {
  width: 1em;
  height: 1em;
  stroke-width: 1.7;
  display: inline-block;
  vertical-align: -0.14em;
  flex-shrink: 0;
}

/* Icon circle used on pathway tiers */
.hepo-tier__ic {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(11,61,46,0.22);
  transition: transform 0.4s var(--ease, cubic-bezier(.22,1,.36,1));
}
.hepo-tier:hover .hepo-tier__ic { transform: rotate(-7deg) scale(1.05); }

/* small champagne icons inside tier meta */
.hepo-tier__meta span [data-lucide] {
  color: var(--champagne-dk);
  font-size: 1rem;
  margin-right: 6px;
}

/* ------------------------------------------------------------
   FEATURE ITEM GRID — icon + title + text (replaces emoji/diamond)
   Use in custom-HTML et_pb_text blocks.
   ------------------------------------------------------------ */
.hepo-fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.hepo-fitem {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.hepo-fitem:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--champagne);
}
.hepo-section-ivory .hepo-fitem { background: var(--white); }
.hepo-fitem__ic {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: rgba(194,161,77,0.13);
  color: var(--champagne-dk);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.hepo-fitem__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--emerald);
  font-size: 1.12rem;
  line-height: 1.25;
  margin-bottom: 7px;
}
.hepo-fitem__body p {
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}

/* compact list variant (single column, hairline separated) */
.hepo-flist .hepo-fitem {
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 22px 4px;
}
.hepo-flist .hepo-fitem:hover { transform: none; box-shadow: none; }
.hepo-flist .hepo-fitem:last-child { border-bottom: none; }

/* ------------------------------------------------------------
   RECOGNITION CARD ICON
   ------------------------------------------------------------ */
.hepo-recognition__ic {
  color: var(--champagne-dk);
  font-size: 1.7rem;
  margin-bottom: 16px;
  display: block;
}

/* ------------------------------------------------------------
   STAT ICON
   ------------------------------------------------------------ */
.hepo-stat__ic {
  color: var(--champagne);
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}
.hepo-section-ivory .hepo-stat__ic { color: var(--champagne-dk); }

/* ------------------------------------------------------------
   META BAR — inline label icon
   ------------------------------------------------------------ */
.hepo-meta-bar__label [data-lucide] {
  font-size: 0.95rem;
  margin-right: 6px;
  vertical-align: -0.1em;
}

/* ------------------------------------------------------------
   STEP — accent icon beside the numeral
   ------------------------------------------------------------ */
.hepo-step__ic {
  color: var(--champagne-dk);
  font-size: 1.15rem;
  margin-left: 10px;
  vertical-align: -0.1em;
}

/* ------------------------------------------------------------
   ORG CHIP — leading icon
   ------------------------------------------------------------ */
.hepo-org-chip {
  display: flex;
  align-items: center;
  gap: 11px;
}
.hepo-org-chip [data-lucide] {
  color: var(--champagne-dk);
  font-size: 1.1rem;
}

/* ------------------------------------------------------------
   CONTACT DETAIL ROWS
   ------------------------------------------------------------ */
.hepo-contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.hepo-contact-row:last-child { border-bottom: none; }
.hepo-contact-row__ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(194,161,77,0.13);
  color: var(--champagne-dk);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.hepo-contact-row__label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 3px;
}
.hepo-contact-row__value {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.hepo-contact-row__value a { color: var(--champagne-dk); text-decoration: none; }

/* ------------------------------------------------------------
   HERO NOTE WITH ICON
   ------------------------------------------------------------ */
.hepo-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: rgba(255,255,255,0.78);
}
.hepo-hero-note [data-lucide] {
  color: var(--champagne);
  font-size: 1.25rem;
}

/* ------------------------------------------------------------
   DECORATIVE DIAMOND DIVIDER
   ------------------------------------------------------------ */
.hepo-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--champagne);
  margin: 0 auto;
}
.hepo-divider::before,
.hepo-divider::after {
  content: '';
  width: 56px;
  height: 1px;
  background: var(--line);
}
.hepo-divider [data-lucide] { font-size: 1.05rem; color: var(--champagne-dk); }

/* faq toggle leading icon */
.hepo-faq .et_pb_toggle_title [data-lucide] {
  color: var(--champagne-dk);
  font-size: 1.05rem;
  margin-right: 9px;
  vertical-align: -0.1em;
}

/* button inline icon nudge */
.et_pb_button [data-lucide] {
  font-size: 1em;
  margin-left: 8px;
  vertical-align: -0.12em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
  .hepo-conviction { padding: 64px 6%; }
  .hepo-tier { flex-direction: column; gap: 14px; }
  .hepo-tier:hover { transform: none; }
  .hepo-tier__num { font-size: 2.2rem; }
  .hepo-meta-bar__item { flex: 1 1 50%; }
}

@media (max-width: 767px) {
  .hepo-card { padding: 28px 24px !important; }
  .hepo-step { gap: 18px; }
  .hepo-step__num { width: 48px; height: 48px; font-size: 1.25rem; }
  #logo { max-height: 46px; }
  .hepo-meta-bar__item { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--line-dark); }
  .hepo-meta-bar__item:last-child { border-bottom: none; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

:focus-visible { outline: 3px solid var(--champagne); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--champagne); color: var(--emerald);
  font-weight: 700; padding: 12px 24px; z-index: 99999;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   MOBILE NAV — Divi native menu, HEPO styled
   ============================================================ */

@media (min-width: 981px) {
  .mobile_menu_bar { display: none !important; }
}

@media (max-width: 980px) {
  /* HEPO colours on Divi's native mobile menu — layout, spacing and the
     expand/collapse behaviour are all left to Divi's defaults. */
  #et_mobile_nav_menu .et_mobile_menu,
  #et_mobile_nav_menu .et_mobile_menu .sub-menu {
    background-color: var(--emerald-deep) !important;
    border-color: var(--champagne) !important;
  }
  #et_mobile_nav_menu .et_mobile_menu li a {
    color: rgba(255,255,255,0.88) !important;
    border-left: 3px solid transparent !important;
    transition: color 0.15s, background 0.15s, border-left-color 0.15s !important;
  }
  #et_mobile_nav_menu .et_mobile_menu li a:hover,
  #et_mobile_nav_menu .et_mobile_menu li.current-menu-item > a {
    color: var(--champagne-lt) !important;
    background: rgba(194,161,77,0.10) !important;
    border-left-color: var(--champagne) !important;
  }
}

/* ============================================================
   FONT-DISPLAY SWAP
   ============================================================ */

@font-face { font-family: 'Fraunces'; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; font-display: swap; }
