/*
Theme Name: iLEAD Hybrid Studio
Theme URI: https://ileadhybridstudio.org
Description: Custom theme for iLEAD Hybrid Studio. Warm, learner-driven design. Hand-coded, no page builder, no framework.
Version: 2.2.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: ilead-hybrid-studio
*/

:root {
  /* --- Brand palette ---------------------------------------------------- */
  --hs-blue:            #226193;  /* primary — iLEAD network blue */
  --hs-blue-deep:       #1a4b73;  /* hover / pressed */
  --hs-blue-darker:     #143a58;  /* footer, dark bands */
  --hs-blue-tint:       #e6f1fb;  /* icon tiles, badges */
  --hs-blue-tint-soft:  #f2f7fc;  /* very light section wash */

  --hs-gold:            #e2af25;  /* iLEAD Gold */
  --hs-gold-deep:       #a8790a;  /* readable on a tint */
  --hs-gold-ink:        #5a4200;  /* readable text ON gold */
  --hs-gold-tint:       #faeeda;

  --hs-rust:            #d46227;  /* iLEAD Rust */
  --hs-rust-deep:       #a8451a;
  --hs-rust-tint:       #fbede7;

  --hs-green:           #638c3d;  /* iLEAD Green */
  --hs-green-deep:      #4a6b2c;
  --hs-green-tint:      #eff4e8;

  --hs-aqua:            #007481;  /* iLEAD Aqua */
  --hs-aqua-deep:       #005c66;
  --hs-aqua-tint:       #e3f2f3;

  /* --- Neutrals ---------------------------------------------------------- */
  --hs-canvas:          #faf8f4;  /* warm off-white page background */
  --hs-surface:         #ffffff;  /* cards */
  --hs-ink:             #1a1a1a;  /* headings */
  --hs-body:            #5c5c5c;  /* body copy */
  --hs-muted:           #8a8a8a;  /* captions, meta */
  --hs-line:            #efe9df;  /* warm hairline borders */

  --hs-font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                     Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --hs-font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                     Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  --hs-size-hero: clamp(34px, 21px + 3.6vw, 54px);
  --hs-size-h2: clamp(27px, 19px + 1.9vw, 38px);
  --hs-size-h3: 19px;
  --hs-size-body: 17px;
  --hs-size-small: 14px;
  --hs-size-eyebrow: 12px;

  /* --- Shape & rhythm ---------------------------------------------------- */
  --hs-radius-pill:  999px;
  --hs-radius-card:  18px;
  --hs-radius-sm:    10px;

  --hs-section-y:        clamp(3.5rem, 2rem + 6vw, 6.5rem);
  --hs-container:        1160px;
  --hs-container-narrow: 760px;

  --hs-shadow-card:  0 1px 2px rgba(26, 26, 26, 0.04),
                     0 8px 24px rgba(26, 26, 26, 0.05);
  --hs-shadow-lift:  0 4px 10px rgba(34, 97, 147, 0.08),
                     0 16px 40px rgba(34, 97, 147, 0.10);

  --hs-ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--hs-canvas);
  color: var(--hs-body);
  font-family: var(--hs-font-body);
  font-size: var(--hs-size-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--hs-font-display);
  color: var(--hs-ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

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

a { color: var(--hs-blue); text-decoration: none; }
a:hover { color: var(--hs-blue-deep); }

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

/* Visible keyboard focus — accessibility floor. Do not remove. */
:focus-visible {
  outline: 3px solid var(--hs-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.hs-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;
}

.hs-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--hs-blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--hs-radius-sm) 0;
}
.hs-skip:focus { left: 0; color: #fff; }

.hs-container {
  width: 100%;
  max-width: var(--hs-container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.hs-container--narrow { max-width: var(--hs-container-narrow); }


.hs-section { padding-block: var(--hs-section-y); }
.hs-section--tint  { background: var(--hs-blue-tint-soft); }
.hs-section--white { background: var(--hs-surface); }

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

.hs-grid    { display: grid; gap: 20px; }
.hs-grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.hs-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.hs-eyebrow {
  font-family: var(--hs-font-body);
  font-size: var(--hs-size-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hs-blue);
  margin: 0 0 0.9rem;
}

.hs-lede {
  font-size: 18px;
  color: var(--hs-body);
  line-height: 1.8;
  max-width: 56ch;
}
.hs-lede.hs-center,
.hs-center .hs-lede { margin-inline: auto; }

/* The accent word in a headline. Blue — gold is reserved. */
.hs-accent { color: var(--hs-blue); }

.hs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--hs-font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 15px 30px;
  border-radius: var(--hs-radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--hs-ease),
              background-color 0.18s var(--hs-ease),
              box-shadow 0.18s var(--hs-ease),
              color 0.18s var(--hs-ease);
}
.hs-btn:hover  { transform: translateY(-2px); }
.hs-btn:active { transform: translateY(0); }

.hs-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.hs-icon-default svg { width: 20px; height: 20px; }

.hs-btn--primary {
  background: var(--hs-blue);
  color: #fff;
  box-shadow: var(--hs-shadow-lift);
}
.hs-btn--primary:hover { background: var(--hs-blue-deep); color: #fff; }

.hs-btn--outline {
  background: var(--hs-surface);
  color: var(--hs-blue);
  border-color: var(--hs-blue);
}
.hs-btn--outline:hover { background: var(--hs-blue); color: #fff; }

.hs-btn--gold       { background: var(--hs-gold); color: var(--hs-gold-ink); }
.hs-btn--gold:hover { background: var(--hs-gold-deep); color: var(--hs-gold-ink); }

.hs-btn--onblue       { background: #fff; color: var(--hs-blue); }
.hs-btn--onblue:hover { background: var(--hs-blue-tint); color: var(--hs-blue-deep); }

.hs-btn--ghost-onblue {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.hs-btn--ghost-onblue:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.hs-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.hs-btn-row.hs-center,
.hs-center .hs-btn-row { justify-content: center; }

.hs-badge {
  display: inline-block;
  background: var(--hs-blue-tint);
  color: var(--hs-blue);
  font-size: var(--hs-size-eyebrow);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: var(--hs-radius-pill);
  margin-bottom: 1.5rem;
}

.hs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible; /* the front-page badge hangs below the bar — never clip it */
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--hs-ease),
              background-color 0.3s var(--hs-ease),
              backdrop-filter 0.3s var(--hs-ease);
}
.hs-header.is-stuck {
  border-bottom-color: var(--hs-line);
  background: rgba(250, 248, 244, 0.96);
}

.hs-header--overlay {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.hs-header--overlay .hs-brand,
.hs-header--overlay .hs-brand:hover,
.hs-header--overlay .hs-nav__menu a { color: #fff; }

.hs-header--overlay:not(.is-stuck) .hs-nav__menu a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.4);
}

.hs-header--overlay .hs-brand__mark {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.hs-header--overlay .hs-nav-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hs-header--overlay.is-stuck {
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--hs-line);
}
.hs-header--overlay.is-stuck .hs-brand,
.hs-header--overlay.is-stuck .hs-brand:hover,
.hs-header--overlay.is-stuck .hs-nav__menu a { color: var(--hs-ink); }

.hs-header--overlay.is-stuck .hs-brand__mark {
  background: var(--hs-blue);
  border-color: transparent;
  backdrop-filter: none;
}

.hs-header--overlay.is-stuck .hs-nav-toggle {
  color: var(--hs-ink);
  border-color: var(--hs-line);
}

@media (max-width: 860px) {
  .hs-header--overlay .hs-nav .hs-nav__menu a { color: var(--hs-ink); }
}

.hs-header .hs-container {
  max-width: none;
  padding-inline: clamp(1rem, 2.5vw, 34px);
}

/* Overlay float: lift the primary menu toward the utility strip. */
@media (min-width: 861px) {
  .hs-header--overlay:not(.is-stuck) .hs-nav { transform: translateY(-26px); }
}

/* Utility bar — the thin top tier of action links. */
.hs-utilitybar {
  background: var(--hs-blue-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hs-utilitybar__inner {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  min-height: 38px;
  align-items: center;
}
.hs-utilitybar a {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hs-utilitybar a:hover { color: #fff; }
.hs-utilitybar a + a { padding-left: 1.5rem; }
.hs-utilitybar a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 1px;
  height: 12px;
  background: var(--hs-gold);
}

/* The overlay header floats on the hero: the utility bar goes transparent
   over the photo, then reverts to its solid strip once the header solidifies. */
.hs-header--overlay:not(.is-stuck) .hs-utilitybar {
  background: transparent;
  border-bottom-color: transparent;
}
.hs-header--overlay:not(.is-stuck) .hs-utilitybar a {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* The copy of the utility links inside the mobile drawer — desktop hides it. */
.hs-nav__utility { display: none; }

.hs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.hs-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--hs-ink);
  flex-shrink: 0;
}
.hs-brand:hover { color: var(--hs-ink); }

/* Name + tagline stack beside the badge. */
.hs-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.hs-brand__tagline {
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  color: var(--hs-body);
  white-space: nowrap;
}

.hs-brand__logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  display: block;
  transition: height 0.3s var(--hs-ease), margin 0.3s var(--hs-ease);
}

.hs-header--overlay:not(.is-stuck) .hs-brand {
  --hs-logo-h: clamp(84px, 8.5vw, 108px);
  align-items: center;
  gap: 18px;
  margin-left: clamp(-30px, -2.2vw, -8px);  /* pull the lockup tight into the corner */
  position: relative;
  z-index: 2;                      /* layer the logo + name above the top bar */
}

.hs-header--overlay:not(.is-stuck) .hs-brand__text {
  transform: translateY(calc((74px - var(--hs-logo-h)) / 2));
}

.hs-header--overlay:not(.is-stuck) .hs-brand__logo {
  height: var(--hs-logo-h);
  margin-top: calc(74px - var(--hs-logo-h));   /* bleed up into the utility strip */
  margin-bottom: 4px;
  /* Lifts the badge off the photo so it reads as an object, not a sticker. */
  filter: drop-shadow(0 4px 20px rgba(10, 32, 50, 0.4));
}

.hs-header--overlay:not(.is-stuck) .hs-brand__name {
  color: #fff;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 16px rgba(10, 32, 50, 0.55);
}

.hs-header--overlay:not(.is-stuck) .hs-brand__tagline {
  color: rgba(255, 255, 255, 0.93);
  font-size: clamp(14px, 1.05vw, 17px);
  text-shadow: 0 1px 10px rgba(10, 32, 50, 0.5);
}

@media (max-width: 700px) {
  .hs-header--overlay:not(.is-stuck) .hs-brand {
    --hs-logo-h: 64px;
    gap: 12px;
    margin-left: 0;
  }
  .hs-header--overlay:not(.is-stuck) .hs-brand__name { font-size: 18px; }
  .hs-brand__tagline { display: none; }
}

.hs-header--overlay.is-stuck .hs-brand__tagline { display: none; }

/* Which file shows, where ---------------------------------------------- */

/* Default (solid cream header, interior pages): colour logo. */
.hs-brand__logo--light { display: none; }

/* Transparent header over the hero photo: white logo. */
.hs-header--overlay .hs-brand__logo--color { display: none; }
.hs-header--overlay .hs-brand__logo--light { display: block; }

.hs-header--overlay.is-stuck .hs-brand__logo--color { display: block; }
.hs-header--overlay.is-stuck .hs-brand__logo--light { display: none; }

/* Footer is dark blue and only ever ships the white logo. */
.hs-footer .hs-brand__logo--light { display: block; }

.hs-brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hs-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--hs-font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.hs-brand__name {
  font-family: var(--hs-font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hs-nav { display: flex; align-items: center; gap: 2rem; }

.hs-nav__menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hs-nav__menu a {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--hs-ink);
  padding-block: 6px;
}

/* Gold hairline on hover/active — accent use #2 of 3. */
.hs-nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--hs-gold);
  border-radius: 2px;
  transition: width 0.22s var(--hs-ease);
}
.hs-nav__menu a:hover::after,
.hs-nav__menu .current-menu-item > a::after { width: 100%; }

/* Dropdowns — for any menu item that has children in Appearance → Menus. */
.hs-nav__menu .menu-item-has-children { position: relative; }
.hs-nav__menu .sub-menu {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 240px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--hs-surface);
  border: 1px solid var(--hs-line);
  border-radius: 12px;
  box-shadow: var(--hs-shadow-lift);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s var(--hs-ease), transform 0.18s var(--hs-ease), visibility 0.18s;
  z-index: 20;
}
.hs-nav__menu .menu-item-has-children:hover > .sub-menu,
.hs-nav__menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.hs-nav__menu .sub-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--hs-ink);
  border-left: 3px solid transparent;
  transition: background-color 0.15s var(--hs-ease), color 0.15s var(--hs-ease), border-color 0.15s var(--hs-ease);
}
.hs-nav__menu .sub-menu a::after { display: none; }
.hs-nav__menu .sub-menu a:hover {
  background: var(--hs-blue-tint);
  color: var(--hs-blue);
  border-left-color: var(--hs-gold);
}

/* Overlay header: submenu stays a solid light panel even over the photo —
   it must not inherit the nav's over-photo text-shadow, or the text blurs. */
.hs-header--overlay:not(.is-stuck) .hs-nav__menu .sub-menu a {
  color: var(--hs-ink);
  text-shadow: none;
}

.hs-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-sm);
  cursor: pointer;
  color: var(--hs-ink);
}

.hs-nav-toggle__bar,
.hs-nav-toggle__bar::before,
.hs-nav-toggle__bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--hs-ease), opacity 0.2s var(--hs-ease);
}
.hs-nav-toggle__bar { position: relative; }
.hs-nav-toggle__bar::before { content: ""; position: absolute; top: -6px; }
.hs-nav-toggle__bar::after  { content: ""; position: absolute; top: 6px; }

.hs-nav-toggle[aria-expanded="true"] .hs-nav-toggle__bar { background: transparent; }
.hs-nav-toggle[aria-expanded="true"] .hs-nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.hs-nav-toggle[aria-expanded="true"] .hs-nav-toggle__bar::after  { transform: translateY(-6px) rotate(-45deg); }

.hs-footer {
  background: var(--hs-blue-darker);
  color: rgba(255, 255, 255, 0.7);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
  font-size: var(--hs-size-small);
}

.hs-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hs-footer .hs-brand,
.hs-footer .hs-brand:hover { color: #fff; }
.hs-footer .hs-brand__mark { background: rgba(255, 255, 255, 0.14); }

.hs-footer__blurb {
  margin-top: 1rem;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

.hs-footer__title {
  font-family: var(--hs-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
}

.hs-footer__list { list-style: none; margin: 0; padding: 0; }
.hs-footer__list li { margin-bottom: 0.65rem; }
.hs-footer__list a { color: rgba(255, 255, 255, 0.7); }
.hs-footer__list a:hover { color: #fff; }

.hs-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}
.hs-footer__bottom a { color: rgba(255, 255, 255, 0.7); }
.hs-footer__bottom a:hover { color: #fff; }

.hs-footer__address {
  margin: 0 0 1.35rem;
  font-style: normal;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}
.hs-footer__address a { color: rgba(255, 255, 255, 0.7); }
.hs-footer__address a:hover { color: #fff; }

.hs-footer__social { display: flex; gap: 12px; }
.hs-footer__social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: background-color 0.18s var(--hs-ease), color 0.18s var(--hs-ease), transform 0.18s var(--hs-ease);
}
.hs-footer__social a:hover {
  background: var(--hs-gold);
  color: var(--hs-blue-darker);
  transform: translateY(-2px);
}
.hs-footer__social svg { width: 18px; height: 18px; }

/* ==========================================================================
   Section nav (Testing, Ordering) — pill bar under the page hero
   ========================================================================== */
.isec-navwrap { border-block: 1px solid var(--hs-line); background: var(--hs-surface); }
.isec-nav { padding-block: 14px; }

.isec-menu { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.isec-menu > li { position: relative; flex: 0 0 auto; }
.isec-menu > li > a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 18px; border-radius: var(--hs-radius-pill);
  font-size: 14px; font-weight: 600; line-height: 1;
  color: var(--hs-blue); background: var(--hs-blue-tint);
  border: 1px solid transparent;
  transition: background-color 0.18s var(--hs-ease), color 0.18s var(--hs-ease);
}
.isec-menu > li > a:hover { background: var(--hs-blue); color: #fff; }
.isec-menu > li.current-menu-item > a,
.isec-menu > li.current-menu-parent > a,
.isec-menu > li.current-menu-ancestor > a { background: var(--hs-blue); color: #fff; }

.isec-menu .menu-item-has-children > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 4px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.isec-menu .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  margin: 6px 0 0; padding: 6px 0; list-style: none;
  background: var(--hs-surface); border: 1px solid var(--hs-line);
  border-radius: 12px; box-shadow: var(--hs-shadow-lift); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s var(--hs-ease), transform 0.18s var(--hs-ease), visibility 0.18s;
  z-index: 30;
}
.isec-menu > li:hover > .sub-menu,
.isec-menu > li:focus-within > .sub-menu,
.isec-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.isec-menu .sub-menu a {
  display: block; padding: 9px 18px; font-size: 14px; font-weight: 500;
  color: var(--hs-ink); border-left: 3px solid transparent;
  transition: background-color 0.15s var(--hs-ease), color 0.15s var(--hs-ease), border-color 0.15s var(--hs-ease);
}
.isec-menu .sub-menu a:hover { background: var(--hs-blue-tint); color: var(--hs-blue); border-left-color: var(--hs-gold); }

.isec-crumb { padding-block: 14px; font-size: 13px; color: var(--hs-muted); }
.isec-crumb a { color: var(--hs-blue); }
.isec-crumb a:hover { color: var(--hs-blue-deep); }
.isec-crumb .sep { margin-inline: 8px; color: var(--hs-muted); opacity: 0.5; }

.hs-page-hero {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0;
  text-align: center;
}
.hs-page-hero h1 { max-width: 18ch; margin-inline: auto; }

.hs-content { padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) var(--hs-section-y); }

/* Keep running prose at a readable measure, but let full-width blocks (the
   wp:html card grids) use the whole container. */
.hs-content > .hs-container > p,
.hs-content > .hs-container > h2,
.hs-content > .hs-container > h3,
.hs-content > .hs-container > h4,
.hs-content > .hs-container > ul,
.hs-content > .hs-container > ol,
.hs-content > .hs-container > blockquote {
  max-width: var(--hs-container-narrow);
  margin-inline: auto;
}
.hs-content h2 { font-size: var(--hs-size-h2); margin-top: 2.25rem; }
.hs-content h3 { font-size: var(--hs-size-h3); margin-top: 1.75rem; }
.hs-content ul,
.hs-content ol { padding-left: 1.35rem; margin-bottom: 1.25rem; }
.hs-content li { margin-bottom: 0.5rem; }
.hs-content img { border-radius: var(--hs-radius-card); margin-block: 1.75rem; }
.hs-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 3px solid var(--hs-gold);
  background: var(--hs-surface);
  border-radius: 0 var(--hs-radius-sm) var(--hs-radius-sm) 0;
  font-style: italic;
}

/* Learner-outcome rows — full-width stacked bands, one per outcome.
   Add in the editor (Text tab):

     <div class="hs-outcome hs-outcome--blue">
       <h3>Lifelong Learner</h3>
       <p>I am a self-directed learner…</p>
     </div>

   Swap the modifier for --rust / --aqua / --green on the others. */
.hs-content .hs-outcome {
  position: relative;
  margin: 1rem 0;
  padding: 1.5rem 1.75rem 1.5rem 2.25rem;
  background: var(--hs-surface);
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-card);
  overflow: hidden;
}
/* The colour band down the left edge. */
.hs-content .hs-outcome::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--c, var(--hs-blue));
}
.hs-content .hs-outcome h3 {
  margin: 0 0 0.35rem;
  font-size: var(--hs-size-h3);
  color: var(--c-deep, var(--hs-blue));
}
.hs-content .hs-outcome p {
  margin: 0;
  font-style: italic;
  color: var(--hs-body);
  line-height: 1.65;
}

.hs-content .hs-outcome--blue  { --c: #226193; --c-deep: #226193; }
.hs-content .hs-outcome--rust  { --c: #d46227; --c-deep: #a8451a; }
.hs-content .hs-outcome--aqua  { --c: #007481; --c-deep: #005c66; }
.hs-content .hs-outcome--green { --c: #638c3d; --c-deep: #4a6b2c; }
.hs-content .hs-outcome--gold  { --c: #e2af25; --c-deep: #a8790a; }

/* Centered lead-in line, e.g. "iLEAD by being a/an…" */
.hs-content .hs-lead-in {
  text-align: center;
  font-size: var(--hs-size-h3);
  margin: 2.5rem 0 1.25rem;
}
.hs-content .hs-lead-in strong { color: var(--hs-blue); }

.hs-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--hs-ease), transform 0.6s var(--hs-ease);
}
.hs-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .hs-footer__grid { grid-template-columns: 1fr 1fr; }
  .hs-footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .hs-nav-toggle { display: inline-flex; }

  .hs-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--hs-canvas);
    border-bottom: 1px solid var(--hs-line);
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--hs-ease),
                transform 0.22s var(--hs-ease),
                visibility 0.22s;
  }
  .hs-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .hs-nav { pointer-events: none; }
  .hs-nav.is-open { pointer-events: auto; }
  .hs-nav__menu { flex-direction: column; align-items: stretch; gap: 0; }
  .hs-nav__menu li { border-bottom: 1px solid var(--hs-line); }
  .hs-nav__menu a { display: block; padding: 15px 0; font-size: 17px; }
  .hs-nav__menu a::after { display: none; }

  /* Submenus stack inline in the drawer — no hover on touch. */
  .hs-nav__menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: inherit;
    transform: none;
    min-width: 0;
    margin: 0;
    padding: 0 0 0.5rem 1rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
  }
  .hs-nav__menu .sub-menu li { border-bottom: 0; }
  .hs-nav__menu .sub-menu a { padding: 10px 0; font-size: 15px; color: var(--hs-muted); }

  /* The top utility bar collapses into the drawer on mobile. */
  .hs-utilitybar { display: none; }
  .hs-nav__utility {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0 0 0.5rem;
    padding: 0 0 0.5rem;
    list-style: none;
    border-bottom: 1px solid var(--hs-line);
  }
  .hs-nav__utility a {
    display: block;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hs-blue);
  }

  .hs-nav .hs-btn { margin-top: 1.25rem; width: 100%; }
}

@media (max-width: 620px) {
  .hs-btn-row { flex-direction: column; }
  .hs-btn-row .hs-btn { width: 100%; }
  .hs-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hs-reveal { opacity: 1; transform: none; }
}