/*
Theme Name:   Kadence Child — Exponentia Prime
Theme URI:    https://exponentiaprime.org
Description:  Exponentia Prime child theme for Kadence. Brand colors, Staatliches + Arimo fonts, full component library.
Author:       Exponentia Prime
Author URI:   https://exponentiaprime.org
Template:     kadence
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  kadence-child-ep
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Staatliches&family=Arimo:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES — BRAND TOKENS
   ============================================================ */
:root {
  --ep-blue:        #01ADEF;
  --ep-orange:      #F9A32B;
  --ep-pink:        #FF92F1;
  --ep-yellow:      #EEDD51;
  --ep-red:         #F2652D;
  --ep-white:       #FFFFFF;
  --ep-dark:        #111111;

  --font-headline:  'Staatliches', Impact, sans-serif;
  --font-body:      'Arimo', Arial, sans-serif;

  --radius:         6px;
  --radius-lg:      12px;
  --shadow:         0 4px 18px rgba(0,0,0,0.12);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.18);

  --container-max:  1200px;
}

/* ============================================================
   BASE RESETS & TYPOGRAPHY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--ep-dark);
  background: var(--ep-white);
  line-height: 1.65;
  font-size: 18px;
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.ep-headline {
  font-family: var(--font-headline);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h4 { font-size: clamp(1.3rem, 2.5vw, 2rem); }

p { margin-bottom: 1.2em; }

a { color: var(--ep-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   BUTTONS
   ============================================================ */
.ep-btn,
.wp-block-button__link {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65em 1.6em;
  border-radius: var(--radius);
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1;
}
.ep-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }

/* Orange primary */
.ep-btn-primary,
.wp-block-button.ep-btn-primary .wp-block-button__link {
  background: var(--ep-orange);
  color: var(--ep-dark);
  border-color: var(--ep-orange);
}
.ep-btn-primary:hover { background: #e8911f; border-color: #e8911f; }

/* White outline */
.ep-btn-outline-white,
.wp-block-button.ep-btn-outline-white .wp-block-button__link {
  background: transparent;
  color: var(--ep-white);
  border-color: var(--ep-white);
}
.ep-btn-outline-white:hover { background: rgba(255,255,255,0.15); }

/* White filled, red text */
.ep-btn-white-red,
.wp-block-button.ep-btn-white-red .wp-block-button__link {
  background: var(--ep-white);
  color: var(--ep-red);
  border-color: var(--ep-white);
}

/* White filled, orange text */
.ep-btn-white-orange,
.wp-block-button.ep-btn-white-orange .wp-block-button__link {
  background: var(--ep-white);
  color: var(--ep-orange);
  border-color: var(--ep-white);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.ep-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.ep-section {
  padding: 80px 24px;
}
.ep-section-sm { padding: 48px 24px; }

.ep-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ep-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ep-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

@media (max-width: 900px) {
  .ep-grid-2 { grid-template-columns: 1fr; }
  .ep-grid-3 { grid-template-columns: 1fr; }
  .ep-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ep-grid-4 { grid-template-columns: 1fr; }
}

.ep-center { text-align: center; }
.ep-white { color: var(--ep-white); }
.ep-blue-text { color: var(--ep-blue); }
.ep-orange-text { color: var(--ep-orange); }
.ep-dark-text { color: var(--ep-dark); }

/* Background helpers */
.ep-bg-blue    { background-color: var(--ep-blue); }
.ep-bg-orange  { background-color: var(--ep-orange); }
.ep-bg-pink    { background-color: var(--ep-pink); }
.ep-bg-yellow  { background-color: var(--ep-yellow); }
.ep-bg-red     { background-color: var(--ep-red); }
.ep-bg-dark    { background-color: var(--ep-dark); }
.ep-bg-white   { background-color: var(--ep-white); }

/* ============================================================
   EYEBROW / LABEL
   ============================================================ */
.ep-eyebrow {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4em;
  display: block;
}
.ep-eyebrow-blue  { color: var(--ep-blue); }
.ep-eyebrow-orange { color: var(--ep-orange); }
.ep-eyebrow-yellow { color: var(--ep-yellow); }

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.ep-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 36px 24px;
  position: relative;
  overflow: hidden;
}
.ep-hero-blue   { background-color: var(--ep-blue); }
.ep-hero-red    { background-color: var(--ep-red); }
.ep-hero-yellow { background-color: var(--ep-yellow); }
.ep-hero-pink   { background-color: var(--ep-pink); }
.ep-hero-orange { background-color: var(--ep-orange); }

.ep-hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.ep-hero-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 768px) {
  .ep-hero-two-col { grid-template-columns: 1fr; }
  .ep-hero-two-col .ep-hero__image { order: -1; }
}

.ep-hero__headline {
  font-family: var(--font-headline);
  color: var(--ep-white);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}
.ep-hero__headline--dark { color: var(--ep-dark); }

.ep-hero__subhead {
  font-family: var(--font-body);
  color: var(--ep-white);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 1.8em;
  line-height: 1.5;
}
.ep-hero__subhead--dark { color: var(--ep-dark); }

.ep-hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.ep-hero__image {
  width: 100%;
  text-align: center;
}
.ep-hero__image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* Image placeholder box */
.ep-img-placeholder {
  background: rgba(255,255,255,0.15);
  border: 3px dashed rgba(255,255,255,0.4);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: 0.95rem;
  gap: 12px;
  padding: 24px;
  text-align: center;
}
.ep-img-placeholder svg { width: 48px; height: 48px; opacity: 0.5; }
.ep-img-placeholder--dark {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.2);
  color: rgba(0,0,0,0.4);
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.ep-stats-strip {
  padding: 56px 24px;
}
.ep-stats-strip__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
@media (max-width: 700px) {
  .ep-stats-strip__inner { grid-template-columns: 1fr; }
}

.ep-stat__number {
  font-family: var(--font-headline);
  font-size: clamp(3.5rem, 7vw, 6rem);
  color: var(--ep-white);
  line-height: 1;
  display: block;
}
.ep-stat__number--orange { color: var(--ep-orange); }
.ep-stat__number--blue   { color: var(--ep-blue); }
.ep-stat__label {
  font-family: var(--font-body);
  color: var(--ep-white);
  font-size: 1rem;
  margin-top: 0.3em;
  line-height: 1.4;
}
.ep-stat__label--dark { color: var(--ep-dark); }

.ep-stats-note {
  text-align: center;
  margin-top: 32px;
  font-style: italic;
  color: var(--ep-white);
  font-family: var(--font-body);
}

/* 5-stat strip */
.ep-stats-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
  padding: 64px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .ep-stats-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .ep-stats-5 { grid-template-columns: 1fr 1fr; }
}

/* 6-stat grid */
.ep-stats-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--container-max);
  margin: 0 auto;
}
@media (max-width: 700px) {
  .ep-stats-6 { grid-template-columns: 1fr 1fr; }
}

.ep-stat-card {
  background: var(--ep-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.ep-stat-card__number {
  font-family: var(--font-headline);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--ep-blue);
  display: block;
  line-height: 1;
}
.ep-stat-card__label {
  font-family: var(--font-body);
  color: var(--ep-dark);
  font-size: 0.95rem;
  margin-top: 0.4em;
  line-height: 1.4;
}

/* ============================================================
   PROGRAM CARDS
   ============================================================ */
.ep-programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--container-max);
  margin: 40px auto 0;
}
@media (max-width: 900px) {
  .ep-programs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .ep-programs-grid { grid-template-columns: 1fr; }
}

.ep-program-card {
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: var(--ep-white);
  box-shadow: var(--shadow);
  border-top: 6px solid var(--ep-blue);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ep-program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.ep-program-card--blue   { border-top-color: var(--ep-blue); }
.ep-program-card--orange { border-top-color: var(--ep-orange); }
.ep-program-card--yellow { border-top-color: var(--ep-yellow); }
.ep-program-card--pink   { border-top-color: var(--ep-pink); }
.ep-program-card--red    { border-top-color: var(--ep-red); }

.ep-program-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ep-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.6rem;
}
.ep-program-card__title {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  color: var(--ep-dark);
  margin-bottom: 0.5em;
  text-transform: uppercase;
}
.ep-program-card__body {
  font-family: var(--font-body);
  color: #444;
  font-size: 1rem;
  flex: 1;
  margin-bottom: 1.2em;
}
.ep-program-card__link {
  font-family: var(--font-headline);
  color: var(--ep-blue);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.ep-program-card__link:hover { text-decoration: underline; }

/* ============================================================
   PIPELINE SECTION
   ============================================================ */
.ep-pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  max-width: var(--container-max);
  margin: 40px auto 0;
}
@media (max-width: 768px) {
  .ep-pipeline {
    grid-template-columns: 1fr;
  }
  .ep-pipeline-arrow { display: none; }
}

.ep-pipeline-step {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ep-pipeline-step__bar {
  height: 8px;
}
.ep-pipeline-step__bar--blue   { background: var(--ep-blue); }
.ep-pipeline-step__bar--orange { background: var(--ep-orange); }
.ep-pipeline-step__bar--red    { background: var(--ep-red); }

.ep-pipeline-step__content {
  padding: 28px 24px;
  background: var(--ep-white);
}
.ep-pipeline-step__grade {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  color: var(--ep-dark);
  margin-bottom: 0.4em;
}
.ep-pipeline-step__programs {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.8em;
  line-height: 1.5;
}
.ep-pipeline-step__outcome {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  color: #777;
  line-height: 1.5;
}

.ep-pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--ep-dark);
  padding: 0 8px;
  margin-top: 60px;
}

/* ============================================================
   QUOTE CARDS
   ============================================================ */
.ep-quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--container-max);
  margin: 40px auto 0;
}
@media (max-width: 768px) {
  .ep-quotes-grid { grid-template-columns: 1fr; }
}

.ep-quote-card {
  background: var(--ep-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--ep-blue);
  position: relative;
}
.ep-quote-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--ep-blue);
  opacity: 0.15;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
}
.ep-quote-card__text {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ep-dark);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1em;
  position: relative;
  z-index: 1;
}
.ep-quote-card__attribution {
  font-family: var(--font-headline);
  color: var(--ep-orange);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   DETAIL BOX
   ============================================================ */
.ep-detail-box {
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  margin: 32px 0;
}
.ep-detail-box--yellow { background: var(--ep-yellow); }
.ep-detail-box--orange { background: var(--ep-orange); }

.ep-detail-box p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin-bottom: 0.7em;
  color: var(--ep-dark);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.ep-timeline {
  position: relative;
  max-width: 820px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.ep-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 4px;
  background: var(--ep-blue);
  transform: translateX(-50%);
}
@media (max-width: 640px) {
  .ep-timeline::before { left: 20px; }
}

.ep-timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 16px;
  margin-bottom: 48px;
  align-items: start;
}
@media (max-width: 640px) {
  .ep-timeline-item {
    grid-template-columns: 60px 1fr;
  }
  .ep-timeline-item__left { display: none; }
}

.ep-timeline-item__left { text-align: right; }
.ep-timeline-item__right { }

.ep-timeline-item__year {
  font-family: var(--font-headline);
  font-size: 2rem;
  color: var(--ep-white);
  background: var(--ep-blue);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  letter-spacing: 0;
  flex-shrink: 0;
}

.ep-timeline-item__title {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  color: var(--ep-dark);
  margin-bottom: 0.3em;
}
.ep-timeline-item__body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* ============================================================
   BELIEF CARDS
   ============================================================ */
.ep-belief-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 40px auto 0;
}
@media (max-width: 600px) {
  .ep-belief-cards { grid-template-columns: 1fr; }
}

.ep-belief-card {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: var(--ep-white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ============================================================
   FOUR-STEP HOW IT WORKS
   ============================================================ */
.ep-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container-max);
  margin: 40px auto 0;
}
@media (max-width: 900px) {
  .ep-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .ep-steps { grid-template-columns: 1fr; }
}

.ep-step {
  text-align: center;
  padding: 24px 16px;
}
.ep-step__number {
  font-family: var(--font-headline);
  font-size: 3rem;
  display: block;
  margin-bottom: 0.2em;
}
.ep-step__title {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}
.ep-step__body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.ep-cta-banner {
  padding: 56px 24px;
}
.ep-cta-banner__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.ep-cta-banner__text h2 {
  color: var(--ep-white);
  margin-bottom: 0.3em;
}
.ep-cta-banner__text p {
  color: var(--ep-white);
  font-size: 1rem;
  max-width: 560px;
  margin: 0;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.ep-faq { max-width: 780px; margin: 40px auto 0; }

.ep-faq-item {
  border-bottom: 2px solid #e5e5e5;
  padding: 0;
}
.ep-faq-question {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  color: var(--ep-dark);
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  user-select: none;
  list-style: none;
}
.ep-faq-question::after {
  content: '+';
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--ep-blue);
  flex-shrink: 0;
  transition: transform 0.2s;
}
details[open] .ep-faq-question::after {
  transform: rotate(45deg);
}
.ep-faq-answer {
  padding: 0 0 20px;
  font-family: var(--font-body);
  color: #444;
  line-height: 1.7;
}

/* ============================================================
   CONTACT THREE-COL
   ============================================================ */
.ep-contact-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--container-max);
  margin: 40px auto 0;
}
@media (max-width: 768px) {
  .ep-contact-paths { grid-template-columns: 1fr; }
}

.ep-contact-path {
  background: var(--ep-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.ep-contact-path__icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}
.ep-contact-path__title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  color: var(--ep-dark);
  margin-bottom: 0.5em;
}
.ep-contact-path__text {
  font-family: var(--font-body);
  color: #555;
  margin-bottom: 1.4em;
  font-size: 0.95rem;
}

/* ============================================================
   PARTNER LOGOS ROW
   ============================================================ */
.ep-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  max-width: var(--container-max);
  margin: 32px auto 0;
}
.ep-partner-name {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  color: var(--ep-dark);
  background: #f4f4f4;
  padding: 12px 20px;
  border-radius: var(--radius);
}

/* ============================================================
   DATA COMPARISON TABLE
   ============================================================ */
.ep-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 860px;
  margin: 32px auto 0;
}
@media (max-width: 580px) {
  .ep-comparison { grid-template-columns: 1fr; }
}

.ep-comparison-col {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ep-comparison-col__header {
  padding: 20px 24px;
  font-family: var(--font-headline);
  font-size: 1.4rem;
  color: var(--ep-white);
  text-transform: uppercase;
}
.ep-comparison-col__header--blue  { background: var(--ep-blue); }
.ep-comparison-col__header--dark  { background: #555; }
.ep-comparison-col__body {
  padding: 24px;
  background: var(--ep-white);
}
.ep-comparison-col__stat {
  font-family: var(--font-headline);
  font-size: 3rem;
  color: var(--ep-blue);
  display: block;
}
.ep-comparison-col__stat--gray { color: #999; }
.ep-comparison-col__label {
  font-family: var(--font-body);
  color: #555;
  font-size: 0.95rem;
}

/* ============================================================
   HEADER / NAV OVERRIDES (Kadence)
   ============================================================ */
#masthead,
.site-header {
  background: var(--ep-white) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.main-navigation a,
.kadence-navigation a {
  font-family: var(--font-headline) !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--ep-dark) !important;
}
.main-navigation a:hover { color: var(--ep-blue) !important; }

/* Dropdown */
.main-navigation .sub-menu {
  background: var(--ep-white);
  border-top: 3px solid var(--ep-blue);
  box-shadow: var(--shadow);
}
.main-navigation .sub-menu a { font-size: 0.95rem !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer,
#colophon {
  background: var(--ep-dark);
  color: var(--ep-white);
  padding: 64px 24px 0;
  font-family: var(--font-body);
}

.ep-footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 768px) {
  .ep-footer-grid { grid-template-columns: 1fr; }
}

.ep-footer-col__title {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  color: var(--ep-orange);
  margin-bottom: 1em;
  letter-spacing: 0.08em;
}
.ep-footer-col a {
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 0.5em;
  font-size: 0.95rem;
}
.ep-footer-col a:hover { color: var(--ep-white); }

.ep-footer-mission {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 12px 0;
}

.ep-footer-bar {
  background: var(--ep-blue);
  padding: 18px 24px;
  margin-top: 0;
}
.ep-footer-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ep-footer-bar p {
  color: var(--ep-white);
  font-size: 0.85rem;
  margin: 0;
}
.ep-footer-bar a { color: var(--ep-white); text-decoration: underline; }

.ep-social-links { display: flex; gap: 16px; }
.ep-social-links a {
  color: var(--ep-white);
  font-family: var(--font-headline);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

/* ============================================================
   EVENTS (The Events Calendar override)
   ============================================================ */
.tribe-events-calendar .tribe-events-calendar-month__calendar-event-title a,
.tribe-event-url {
  font-family: var(--font-headline) !important;
  color: var(--ep-dark) !important;
}
.tribe-events-c-ical__link,
.tribe-events-pro-photo__event-date-tag-month {
  font-family: var(--font-headline) !important;
}
.tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button {
  background: var(--ep-orange) !important;
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #respond input#submit {
  background: var(--ep-orange) !important;
  color: var(--ep-dark) !important;
  font-family: var(--font-headline) !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-radius: var(--radius) !important;
  border: none !important;
}
.woocommerce .button:hover { background: #e8911f !important; }

/* ============================================================
   WPFORMS OVERRIDES
   ============================================================ */
.wpforms-container .wpforms-submit {
  background: var(--ep-orange) !important;
  color: var(--ep-dark) !important;
  font-family: var(--font-headline) !important;
  font-size: 1.2rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 14px 32px !important;
  border: none !important;
  border-radius: var(--radius) !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.wpforms-container .wpforms-submit:hover {
  background: #e8911f !important;
}
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container select,
.wpforms-container textarea {
  border: 2px solid #ddd !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  padding: 10px 14px !important;
  transition: border-color 0.2s !important;
}
.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
  border-color: var(--ep-blue) !important;
  outline: none !important;
}

/* ============================================================
   NEWSLETTER STRIP
   ============================================================ */
.ep-newsletter {
  background: var(--ep-blue);
  padding: 64px 24px;
  text-align: center;
}
.ep-newsletter h2 { color: var(--ep-white); }
.ep-newsletter p  { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 2em; }

/* ============================================================
   NEWS CARDS
   ============================================================ */
.ep-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--container-max);
  margin: 32px auto 0;
}
@media (max-width: 768px) {
  .ep-news-grid { grid-template-columns: 1fr; }
}

.ep-news-card {
  background: #1a1a1a;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ep-news-card img { width: 100%; height: 200px; object-fit: cover; }
.ep-news-card__body { padding: 20px; }
.ep-news-card__source {
  font-family: var(--font-headline);
  color: var(--ep-orange);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.ep-news-card__title {
  font-family: var(--font-headline);
  color: var(--ep-white);
  font-size: 1.2rem;
  margin: 0.4em 0;
}
.ep-news-card__date { color: #888; font-size: 0.85rem; }
.ep-news-card a { color: var(--ep-blue); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.ep-mt-0  { margin-top: 0; }
.ep-mt-sm { margin-top: 24px; }
.ep-mt-md { margin-top: 40px; }
.ep-mt-lg { margin-top: 64px; }
.ep-mb-sm { margin-bottom: 24px; }
.ep-mb-md { margin-bottom: 40px; }

.ep-divider {
  border: none;
  border-top: 3px solid #eee;
  margin: 56px auto;
  max-width: 200px;
}

.ep-italic { font-style: italic; }

/* ============================================================
   PAGE TITLE STRIP — hide text, slim down the blue band
   ============================================================ */

/* Hide the "HOMEPAGE", "PROGRAMS" etc. auto-generated title */
.entry-hero.page-hero-section .entry-title {
  display: none;
}

/* Reduce the blue band from 200px to a slim 8px accent line */
.entry-hero.page-hero-section .entry-header {
  min-height: 8px !important;
}

.entry-hero-container-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Mobile general */
@media (max-width: 600px) {
  .ep-section { padding: 48px 16px; }
  .ep-hero { min-height: auto; padding: 56px 16px; }
}


/* Reduce gap between header/nav and page content */
.content-area {
  margin-top: 16px !important;
}


/* Dropdown nav menu — light blue background, black text */
.primary-menu .sub-menu,
.primary-navigation ul ul,
nav .sub-menu,
.nav--primary .sub-menu,
.header-navigation .sub-menu {
  background-color: #01ADEF !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}
.primary-menu .sub-menu li a,
.primary-navigation ul ul li a,
nav .sub-menu li a,
.nav--primary .sub-menu li a,
.header-navigation .sub-menu li a {
  color: #000 !important;
  background-color: transparent !important;
}
.primary-menu .sub-menu li a:hover,
.primary-navigation ul ul li a:hover,
nav .sub-menu li a:hover,
.nav--primary .sub-menu li a:hover,
.header-navigation .sub-menu li a:hover {
  background-color: rgba(255,255,255,0.2) !important;
  color: #000 !important;
}


/* ====================================================
   SITEWIDE SPACING & LINE-HEIGHT FIX
   ==================================================== */

/* Hero section — kill excess vertical space */
.ep-hero__headline {
  line-height: 1.0 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  padding-top: 0 !important;
}
.ep-hero__subhead {
  line-height: 1.2 !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}
.ep-hero {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}

/* All headings — tight line-height and margins */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.05 !important;
  margin-top: 0.2em !important;
  margin-bottom: 0.3em !important;
}

/* Body text — modest line-height reduction */
p, li, td, th, blockquote {
  line-height: 1.35 !important;
}

/* Section headings inside cards/boxes */
.ep-card h2, .ep-card h3, .ep-card h4,
.ep-section h2, .ep-section h3,
section h2, section h3, section h4 {
  line-height: 1.0 !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}


/* ====================================================
   MOBILE RESPONSIVE FIXES (max-width: 768px)
   ==================================================== */
@media (max-width: 768px) {

  /* --- Global --- */
  .ep-hero {
    padding: 24px 16px !important;
    min-height: auto !important;
  }
  .ep-hero__headline {
    font-size: 2.2rem !important;
  }
  .ep-hero__subhead {
    font-size: 0.95rem !important;
  }
  .ep-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .ep-section {
    padding: 32px 16px !important;
  }

  /* --- FOR FAMILIES: stack grid, shrink step boxes --- */
  .ep-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  /* Step number boxes */
  [style*="border-radius:50%"] {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
  }
  /* Program link grid inside step box */
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  /* --- FOR SCHOOLS: stack cards --- */
  [style*="display:flex"][style*="gap:24px"],
  [style*="display: flex"][style*="gap: 24px"] {
    flex-direction: column !important;
  }
  /* Service sub-boxes grid */
  [style*="display:grid"][style*="grid-template-columns:1fr 1fr"],
  [style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* --- IMPACT: stat grid + photo layout --- */
  /* Stats + photo section: stack vertically */
  [style*="display:flex"][style*="align-items:flex-start"] {
    flex-direction: column !important;
  }
  /* Stats grid: 2-col on mobile is fine, but shrink font */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  /* Impact photo: full width */
  [style*="max-width:380px"],
  [style*="max-width: 380px"] {
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 20px !important;
  }
  /* Stats card: full width */
  [style*="max-width:580px"],
  [style*="max-width: 580px"] {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* --- FOR SCHOOLS: cards full width --- */
  [style*="max-width:460px"],
  [style*="max-width: 460px"],
  [style*="flex:1"],
  [style*="flex: 1"] {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* General: any flex row → column on mobile */
  section > div > [style*="display:flex"],
  .ep-section [style*="display:flex"] {
    flex-wrap: wrap !important;
  }

  /* Font size sanity for card headings */
  section h2 {
    font-size: 1.4rem !important;
  }
  section h3 {
    font-size: 1.1rem !important;
  }

  /* Inline-block buttons: full width on mobile */
  .ep-btn,
  [style*="display:inline-block"][style*="border-radius:8px"] {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* News grid: 1 column */
  [style*="grid-template-columns:repeat(auto-fill"] {
    grid-template-columns: 1fr !important;
  }

  /* Timeline: shrink year pill and card */
  [style*="min-width:88px"] {
    min-width: 64px !important;
  }
}


/* ====================================================
   IMPACT PAGE — TARGETED MOBILE FIX
   ==================================================== */
@media (max-width: 768px) {

  /* Stats + photo: 2-col grid → 1-col stack */
  [style*="grid-template-columns:1fr 420px"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Stats card: reduce heavy padding */
  [style*="border-radius:20px"][style*="padding:48px 40px"] {
    padding: 24px 18px 20px !important;
  }

  /* Stats card heading: shrink font */
  [style*="font-size:2.8rem"] {
    font-size: 1.6rem !important;
  }

  /* Stats numbers: shrink */
  [style*="font-size:1.8rem"][style*="font-weight:800"] {
    font-size: 1.3rem !important;
  }

  /* Stats grid gap: tighten */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:32px 20px"] {
    gap: 16px 12px !important;
  }

  /* Impact photo: full width */
  [style*="border-radius:16px"][style*="object-fit:cover"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 260px !important;
  }

  /* For Families / For Schools inline flex rows → wrap */
  [style*="display:flex"][style*="gap"] {
    flex-wrap: wrap !important;
    gap: 16px !important;
  }

  /* For Schools: two card boxes → full width */
  [style*="background:#FEF0D3"][style*="border-radius:16px"],
  [style*="background:#fef0d3"][style*="border-radius:16px"] {
    width: 100% !important;
    min-width: unset !important;
  }

  /* For Families steps: full width */
  [style*="border-radius:12px"][style*="background:#f0f8ff"],
  [style*="border-radius:12px"][style*="background:#EBF7FD"] {
    width: 100% !important;
  }
}
