/* ==========================================================
   Excel Education Initiative — Design System
   Colors and fonts pull from theme.json presets automatically.
   ========================================================== */

/* Hexagon signature shape — reused on badges, photos, markers */
.eei-hex,
.eei-mark,
.eei-hero-badge img {
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
}

/* ---- Hero section ---- */
.eei-hero {
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--chalk);
  padding: 72px 32px 88px;
}
.eei-hero .eei-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--brass);
  margin-bottom: 12px;
}
.eei-hero-title {
  color: #fff !important;
  font-size: 44px;
  max-width: 680px;
  margin-bottom: 18px !important;
}
.eei-hero-lede {
  color: #c7cce0;
  font-size: 18px;
  max-width: 520px;
}
@media (max-width: 600px) {
  .eei-hero-title { font-size: 30px; }
}

/* Buttons inside the hero */
.eei-btn-primary .wp-block-button__link {
  background: var(--wp--preset--color--brass) !important;
  color: var(--wp--preset--color--ink) !important;
  font-weight: 700;
  border-radius: 0;
}
.eei-btn-ghost .wp-block-button__link {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 0;
}

/* ---- Journey ribbon (JSS-3 -> SS1-3 -> 100L) ---- */
.eei-journey {
  background: var(--wp--preset--color--chalk);
  padding: 24px;
  gap: 8px;
}
.eei-stage {
  font-weight: 600;
  font-size: 14px;
  color: var(--wp--preset--color--ink);
  background: #fff;
  padding: 10px 18px;
  border: 1px solid rgba(24,36,68,0.12);
  margin: 0;
}
.eei-arrow {
  color: var(--wp--preset--color--slate);
  margin: 0 4px;
}

/* ---- Section kicker + heading (reused above Programs, and future sections) ---- */
.eei-programs-wrap {
  padding: 56px 32px 0;
}
.eei-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--brass);
  margin-bottom: 8px !important;
}
.eei-section-heading {
  font-size: 30px;
  margin-bottom: 32px !important;
  max-width: 560px;
}

/* ---- Program cards ---- */
.eei-programs {
  gap: 28px;
}
.eei-program-card {
  background: var(--wp--preset--color--paper);
  border: 1px solid rgba(24,36,68,0.12);
  padding: 28px 24px;
}
.eei-program-card .eei-mark {
  width: 48px;
  height: 48px;
  background: var(--wp--preset--color--chalk);
  color: var(--wp--preset--color--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.eei-program-card h3 {
  font-size: 18px;
  margin-bottom: 8px !important;
}
.eei-program-card p {
  font-size: 15px;
  color: var(--wp--preset--color--slate);
}

/* ---- Director welcome ---- */
.eei-director {
  background: var(--wp--preset--color--chalk);
  padding: 56px 32px;
  gap: 40px;
  align-items: center;
}
.eei-director-photo {
  flex-shrink: 0;
  width: 150px !important;
  max-width: 150px !important;
}
.eei-director-photo img {
  width: 150px !important;
  height: 150px !important;
  max-width: 150px !important;
  object-fit: cover !important;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%) !important;
}
.eei-director-text {
  max-width: 560px;
}
.eei-director-quote {
  font-family: var(--wp--preset--font-family--heading);
  font-style: italic;
  font-size: 21px;
  font-weight: 500;
  color: var(--wp--preset--color--ink);
  margin-bottom: 12px !important;
}
.eei-director-name {
  font-weight: 700;
  margin-bottom: 2px !important;
}
.eei-director-role {
  font-size: 13px;
  color: var(--wp--preset--color--slate);
  margin-bottom: 0 !important;
}

/* ---- Latest chapter updates (Query Loop) ---- */
.eei-updates-wrap {
  padding: 56px 32px;
}
.eei-updates-heading {
  margin-bottom: 28px !important;
}
.eei-updates > .wp-block-post-template {
  gap: 28px;
}
.eei-update-card {
  border-top: 3px solid var(--wp--preset--color--brass);
  padding-top: 16px !important;
}
.eei-update-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--slate);
}
.eei-update-title a {
  font-size: 17px;
  color: var(--wp--preset--color--ink) !important;
}
.eei-update-excerpt {
  font-size: 14px;
  color: var(--wp--preset--color--slate);
}

/* ==========================================================
   Responsive tuning — laptop/desktop, tablet, and phone
   ========================================================== */

/* ---- Tablets (iPad portrait/landscape, ~600-1024px):
   3-column grids feel cramped here, so drop to 2 columns ---- */
@media (max-width: 1024px) and (min-width: 601px) {
  .eei-programs .wp-block-column,
  .eei-updates .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .eei-programs {
    flex-wrap: wrap;
  }
  .eei-programs > .wp-block-column {
    flex-basis: 47% !important;
  }
}

/* Phones (up to 600px): everything stacks to a single column,
   hero type scales down, director section stacks and centers */
@media (max-width: 600px) {
  .eei-hero-title { font-size: 28px; }
  .eei-hero-lede { font-size: 16px; }
  .eei-programs { flex-direction: column; }
  .eei-programs > .wp-block-column {
    flex-basis: 100% !important;
    margin-bottom: 0;
  }
  .eei-director-inner {
    flex-direction: column;
    text-align: center;
  }
  .eei-updates .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
  .eei-journey { padding: 20px 16px; }
  .eei-stage { font-size: 13px; padding: 8px 12px; }
}

/* ---- Breathing room between every homepage section ---- */
.eei-hero,
.eei-journey,
.eei-programs,
.eei-director,
.eei-updates-wrap {
  margin: 0 !important;
}
.eei-programs {
  padding: 48px 32px;
}
.eei-update-title a {
  text-decoration: none;
}
.eei-updates .wp-block-post-template {
  gap: 28px;
}
@media (max-width: 780px) {
  .eei-updates .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Site-wide polish ---- */
footer.wp-block-template-part,
.wp-site-blocks > footer,
body > footer {
  background: var(--wp--preset--color--ink) !important;
  color: #c7cce0 !important;
}
footer.wp-block-template-part a,
.wp-site-blocks > footer a,
body > footer a {
  color: #fff !important;
}
footer.wp-block-template-part h1,
footer.wp-block-template-part h2,
footer.wp-block-template-part h3,
footer.wp-block-template-part h4,
.wp-site-blocks > footer h1,
.wp-site-blocks > footer h2,
.wp-site-blocks > footer h3,
.wp-site-blocks > footer h4 {
  color: var(--wp--preset--color--brass-light, #D4A857) !important;
}
.wp-block-navigation a {
  font-weight: 600;
  letter-spacing: 0.02em;
}
.wp-block-post-title a {
  color: var(--wp--preset--color--ink);
}
