/* ==========================================================================
   FreeTrainings.ca — Redesign stylesheet
   Palette, type and structure per PICS Society redesign brief.
   ========================================================================== */

:root {
  /* Colour tokens */
  --navy: #12304A;
  --green: #269B65;
  --green-dark: #1E7F53;
  --green-tint: #EAF6EF;
  --bg: #F7F9F8;
  --white: #FFFFFF;
  --ink: #192B3A;
  --muted: #64748B;
  --line: #DDE5E1;
  --navy-80: rgba(18, 48, 74, 0.08);

  /* Type */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Manrope', 'Inter', system-ui, sans-serif;

  /* Spacing / rhythm */
  --section-pad: 96px;
  --container: 1240px;
  --gap: 32px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  color: var(--navy);
}

p { margin: 0 0 16px; max-width: 70ch; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: var(--section-pad); }
.section:nth-of-type(odd) { background: var(--white); }
.section:nth-of-type(even) { background: var(--bg); }

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.section-head.split .section-lede { margin-bottom: 0; }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
.section-lede { font-size: 1.075rem; color: var(--muted); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 2.5px solid var(--green);
  outline-offset: 2px;
}
/* Green outline is too faint on navy */
.cta-copy :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

/* ---------- Buttons (text-swap hover) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
  min-height: 44px;
}

/* The label slides up while the clip window slides down by the same amount, so
   the visible area stays put and the copy in ::after rolls into it. Don't use
   overflow: hidden here: it would move with the label and clip the copy. */
.btn .btn-text {
  position: relative;
  display: inline-block;
  clip-path: inset(0 0 0 0);
  transition: transform 320ms var(--ease-out), clip-path 320ms var(--ease-out);
}
.btn .btn-text::after {
  content: attr(data-text);
  content: attr(data-text) / ""; /* keep the copy out of the accessible name */
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  text-align: center;
}

.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-sm { padding: 11px 20px; font-size: 0.875rem; }
.btn-block { width: 100%; }

.btn-textbtn {
  background: none;
  border: none;
  padding: 8px 4px;
  font-size: 0.9rem;
  color: var(--green);
  gap: 6px;
}
.btn-textbtn svg { transition: transform var(--dur) var(--ease-out); }

/* Hover only where there is a real pointer, so it can't stick after a tap */
@media (hover: hover) {
  .btn:hover .btn-text {
    transform: translateY(-100%);
    clip-path: inset(100% 0 -100% 0);
  }
  .btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
  .btn-secondary:hover,
  .btn-outline:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
  .btn-light:hover { background: var(--green-tint); border-color: var(--green-tint); }
  .btn-textbtn:hover { color: var(--green-dark); }
  .btn-textbtn:hover svg { transform: translateX(4px); }
}

/* Press feedback (also covers touch) */
.btn-primary:active { background: var(--green-dark); border-color: var(--green-dark); }
.btn-secondary:active,
.btn-outline:active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-light:active { background: var(--green-tint); border-color: var(--green-tint); }
.btn-textbtn:active { color: var(--green-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease-out);
}
.site-header.scrolled { box-shadow: 0 6px 24px var(--navy-80); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
  transition: color var(--dur) var(--ease-out);
}
.nav-link:hover, .nav-link:focus-visible, .nav-link[aria-expanded="true"] { color: var(--green); }

/* Mega menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(680px, 90vw);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(18, 48, 74, 0.14);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
  z-index: 60;
}
/* Invisible bridge so the menu stays open while the pointer crosses the gap */
.mega-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}
/* Desktop only: this transform would push the stacked mobile menu off-screen */
@media (min-width: 1081px) {
  .nav-item-has-mega:hover .mega-menu,
  .mega-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

.mega-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}
.mega-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  padding: 10px 12px;
  transition: background-color var(--dur) var(--ease-out);
}
.mega-link:hover, .mega-link:focus-visible { background: var(--green-tint); }
.mega-title { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.mega-desc { font-size: 0.8rem; color: var(--muted); }

.mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  transition: background-color var(--dur) var(--ease-out);
}
.mega-footer:hover, .mega-footer:focus-visible { background: var(--green-dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg);
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.trust-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-tint);
  color: var(--green-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.hero-lede { font-size: 1.13rem; color: var(--muted); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-photo-frame {
  position: relative;
  z-index: 1;
}
.hero-photo-frame::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  background: var(--green-tint);
  z-index: -1;
}
.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-stat {
  position: absolute;
  left: -28px;
  bottom: 32px;
  background: var(--navy);
  color: var(--white);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.hero-stat-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--green-tint);
  line-height: 1;
}
.hero-stat-label { font-size: 0.78rem; margin-top: 4px; color: rgba(255,255,255,0.85); max-width: 140px; }

/* ---------- Benefits ---------- */
.benefits { background: var(--white); border-block: 1px solid var(--line); padding: 64px 0; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.benefit-icon { color: var(--green); margin-bottom: 16px; }
.benefit-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.benefit-desc { font-size: 0.92rem; color: var(--muted); margin: 0; }
.benefits-note { margin-top: 36px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cat-card { background: var(--white); }
.cat-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.cat-card-link:hover, .cat-card-link:focus-visible {
  border-color: var(--green);
  box-shadow: 0 16px 32px rgba(18, 48, 74, 0.10);
}
.cat-img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.cat-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-title { font-size: 1.05rem; font-weight: 800; margin: 0; }
.cat-desc { font-size: 0.88rem; color: var(--muted); margin: 0; flex: 1; }
.cat-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green);
  margin-top: 8px;
}
.cat-cta svg { transition: transform var(--dur) var(--ease-out); }
.cat-card-link:hover .cat-cta svg,
.cat-card-link:focus-visible .cat-cta svg { transform: translateX(4px); }

/* ---------- Programs ---------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.program-card:hover {
  box-shadow: 0 20px 40px rgba(18, 48, 74, 0.12);
  transform: translateY(-4px);
  border-color: transparent;
}
.program-img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.program-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.program-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 10px;
}
.tag-cat { color: var(--green-dark); border-color: var(--green); background: var(--green-tint); }
.program-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.program-desc { font-size: 0.9rem; color: var(--muted); flex: 1; }
.program-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.programs-note { margin-top: 36px; font-size: 0.85rem; color: var(--muted); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.about-media { position: relative; isolation: isolate; }
.about-media::after {
  content: "";
  position: absolute;
  inset: 24px 24px -24px -24px;
  background: var(--green-tint);
  z-index: -1;
}
.about-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-copy p:not(.eyebrow) { color: var(--muted); }
.about-copy .btn { margin-top: 12px; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
/* Connector: from this number to the next one, through the number's centre */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 35px;
  left: 72px;
  right: -16px;
  height: 2px;
  background: var(--line);
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 18px;
}
.step:nth-child(even) .step-number { background: var(--green); }
.step-icon { display: block; color: var(--green); margin-bottom: 10px; }
.step-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.step-desc { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.why-list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-list li > svg { flex-shrink: 0; margin-top: 4px; }
.why-list strong { display: block; font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 0.98rem; }
.why-list span { font-size: 0.9rem; color: var(--muted); }
.why-media { position: relative; }
.why-media img { aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.why-media-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 48, 74, 0.92);
  color: var(--white);
  padding: 18px 22px;
}
.why-media-kicker {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7FD6AC;
  margin-bottom: 4px;
}
.why-media-text { font-size: 0.9rem; }

/* ---------- Stories ---------- */
.stories-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--green-tint);
  border-left: 3px solid var(--green);
  color: var(--navy);
  font-size: 0.9rem;
  padding: 14px 18px;
  margin-bottom: 32px;
  max-width: 760px;
}
.stories-note svg { flex-shrink: 0; margin-top: 2px; color: var(--green); }
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story-card {
  background: var(--white);
  border: 1.5px dashed var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.story-placeholder { opacity: 0.75; }
.story-quote { color: var(--navy); margin-bottom: 16px; }
.story-text { font-size: 0.95rem; color: var(--muted); font-style: italic; flex: 1; }
.story-meta { display: flex; flex-direction: column; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.story-name { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 0.92rem; }
.story-role { font-size: 0.8rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.faq-intro { position: sticky; top: 110px; }
.faq-intro .btn { margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--line); background: var(--white); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-question { margin: 0; }
.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  padding: 20px 4px;
  cursor: pointer;
  min-height: 44px;
  transition: color var(--dur) var(--ease-out);
}
.faq-toggle:hover { color: var(--green); }
.faq-icon { flex-shrink: 0; transition: transform var(--dur) var(--ease-out); }
.faq-toggle[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { height: 0; overflow: hidden; transition: height 280ms var(--ease-out); }
.faq-answer-inner { padding: 0 4px 22px; }
.faq-answer p { font-size: 0.93rem; color: var(--muted); margin: 0; }

/* ---------- CTA + form ---------- */
.cta {
  background: var(--navy);
  color: var(--white);
  padding-block: var(--section-pad);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.cta-title { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.cta-lede { color: rgba(255, 255, 255, 0.78); font-size: 1.08rem; margin-bottom: 28px; }
.cta-actions { margin-bottom: 40px; }
.cta-contact { display: flex; flex-direction: column; gap: 14px; }
.cta-contact li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
.cta-contact svg { color: #7FD6AC; flex-shrink: 0; }
.cta-contact a { color: var(--white); text-decoration-color: rgba(255,255,255,0.4); }
.cta-contact a:hover { color: #7FD6AC; }

.enquiry-form {
  background: var(--white);
  color: var(--ink);
  padding: 36px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.25);
}
.form-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.form-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: block; margin-bottom: 18px; }
.form-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-label em { font-style: normal; font-weight: 500; color: var(--muted); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}
.form-field.invalid input, .form-field.invalid select { border-color: #C0392B; }
.form-error {
  display: block;
  font-size: 0.78rem;
  color: #C0392B;
  margin-top: 5px;
  min-height: 0;
}
.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  font-size: 0.9rem;
  border-left: 3px solid var(--green);
  background: var(--green-tint);
  color: var(--navy);
}
.form-status.error { border-left-color: #C0392B; background: #FBEDEB; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.15); /* separates it from the navy CTA */
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: rgba(255, 255, 255, 0.6); }
.footer-desc { margin-top: 18px; color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.footer-social a:hover { background: var(--green); border-color: var(--green); }
.footer-heading {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}
.footer-col a:hover { color: #7FD6AC; }
.footer-col address { font-style: normal; line-height: 1.7; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal ---------- */
/* Uses `translate`, not `transform`, so it can't override hover transforms */
.reveal {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 600ms var(--ease-out) var(--reveal-delay, 0ms),
              translate 600ms var(--ease-out) var(--reveal-delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  translate: 0 0;
}
/* Cards that also have a hover state need both sets of transitions */
.program-card.reveal {
  transition: opacity 600ms var(--ease-out) var(--reveal-delay, 0ms),
              translate 600ms var(--ease-out) var(--reveal-delay, 0ms),
              transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

/* ---------- Responsive ---------- */
/* Header collapses here: the full nav does not fit below this width.
   Keep in sync with mobileNav in script.js. */
@media (max-width: 1080px) {
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(18, 48, 74, 0.15);
    padding: 16px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .btn-nav { margin-top: 16px; }

  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transition: none;
    display: none;
  }
  .mega-menu::before { display: none; }
  .mega-menu.open { display: block; padding: 8px 0 12px; }
  .nav-link-btn svg { transition: transform var(--dur) var(--ease-out); }
  .nav-link-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
  .mega-footer { margin-top: 8px; }
}

@media (max-width: 1024px) {
  :root { --section-pad: 72px; --gap: 24px; }
  .hero-grid { gap: 48px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .mega-cols { grid-template-columns: 1fr; }

  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-stat { left: 0; bottom: 16px; }
  .hero-photo-frame::before { inset: 16px -12px -12px 16px; }

  .about-grid, .why-grid, .faq-grid, .cta-grid { grid-template-columns: 1fr; gap: 48px; }
  .faq-intro { position: static; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .stories-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .enquiry-form { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 480px) {
  :root { --section-pad: 56px; }
  .cat-grid, .program-grid, .benefits-grid, .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .program-actions { flex-wrap: wrap; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; translate: none; }
  .btn:hover .btn-text { transform: none; clip-path: none; }
  .program-card:hover { transform: none; }
}
