/* ============================================================
   WILSON TRAINING SERVICES — Global Stylesheet
   All design tokens live here. Edit this file to change
   colours, fonts, or spacing site-wide.
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Brand colours */
  --colour-navy:       #1e1b3a;
  --colour-navy-dark:  #141228;
  --colour-lime:       #d4e800;
  --colour-lime-dark:  #b8cc00;
  --colour-white:      #ffffff;
  --colour-off-white:  #f5f5f0;
  --colour-grey:       #6b7280;
  --colour-grey-light: #e5e7eb;
  --colour-text:       #1a1a2e;

  /* Typography */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'Inter', 'Segoe UI', Arial, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  4rem;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;

  /* Layout */
  --container-max: 1200px;
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     16px;

  /* Transitions */
  --transition: 0.2s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
}

/* ------------------------------------------------------------
   1b. SKIP LINK (keyboard accessibility)
   ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  top: -48px;
  left: var(--space-sm);
  z-index: 1100;
  background: var(--colour-lime);
  color: var(--colour-navy);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--colour-text);
  background: var(--colour-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* <picture> is just a wrapper for <source>/<img>; make it transparent to
   layout so the <img> inside fills its real parent as before. */
picture {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--colour-navy);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  max-width: 65ch;
  line-height: 1.7;
}

@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

/* ------------------------------------------------------------
   4. LAYOUT UTILITIES
   ------------------------------------------------------------ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Keeps anchor-linked sections (e.g. /contact/#nvq-section) from
   landing under the sticky nav bar. */
section[id] {
  scroll-margin-top: 112px;
}

.section {
  padding: var(--space-2xl) 0;
}

.section--dark {
  background: var(--colour-navy);
  color: var(--colour-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--colour-white);
}

.section--grey {
  background: var(--colour-off-white);
}

.section--lime {
  background: var(--colour-lime);
  color: var(--colour-navy);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

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

  .container { padding: 0 var(--space-sm); }
  .section   { padding: var(--space-xl) 0; }
}

.flex        { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--gap-sm { gap: var(--space-sm); }
.flex--gap-md { gap: var(--space-md); }

.text-center { text-align: center; }
.text-white  { color: var(--colour-white); }
.text-lime   { color: var(--colour-lime); }
.text-navy   { color: var(--colour-navy); }
.text-grey   { color: var(--colour-grey); }

/* ------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--colour-lime);
  color: var(--colour-navy);
}

.btn--primary:hover {
  background: var(--colour-lime-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--colour-white);
  border: 2px solid var(--colour-lime);
}

.btn--secondary:hover {
  background: var(--colour-lime);
  color: var(--colour-navy);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--colour-navy);
  color: var(--colour-white);
}

.btn--dark:hover {
  background: var(--colour-navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Physical press feedback */
.btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: none;
}

/* ------------------------------------------------------------
   5b. FOCUS VISIBLE (keyboard users)
   ------------------------------------------------------------ */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--colour-lime);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Lime button on a lime ring would vanish, so ring it in navy */
.btn--primary:focus-visible,
.topbar a:focus-visible {
  outline-color: var(--colour-navy);
}

a.card:focus-visible {
  outline: 3px solid var(--colour-lime);
  outline-offset: 3px;
}

.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ------------------------------------------------------------
   6. NAV
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--colour-navy);
  box-shadow: var(--shadow-md);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  padding: 0 var(--space-lg);
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--colour-white);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.nav__logo-text span {
  color: var(--colour-lime);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--colour-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.nav__link:not(.nav__cta):hover,
.nav__link--active {
  color: var(--colour-lime);
  border-bottom-color: var(--colour-lime);
}

/* The CTA shares .nav__link for layout, but must keep full .btn styling
   (bold display font, navy text) instead of the plain nav-link text
   style — .nav__cta.btn wins on specificity regardless of source order. */
.nav__cta.btn {
  margin-left: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: normal;
  letter-spacing: 0.05em;
  color: var(--colour-navy);
  border-bottom: none;
  padding: 0.875rem 2rem;
}

.nav__cta.btn:hover {
  color: var(--colour-navy);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--colour-white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--colour-navy-dark);
  padding: var(--space-md);
  gap: var(--space-sm);
}

.nav__mobile .nav__link {
  font-size: var(--text-base);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav__mobile .btn {
  margin-top: var(--space-xs);
  text-align: center;
}

.nav__mobile.is-open {
  display: flex;
}

@media (max-width: 900px) {
  .nav__links    { display: none; }
  .nav__hamburger { display: flex; }
}

/* Top bar */
.topbar {
  background: var(--colour-lime);
  color: var(--colour-navy);
  text-align: center;
  padding: 0.5rem var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.topbar a {
  color: var(--colour-navy);
  font-weight: 700;
}

/* ------------------------------------------------------------
   7. FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--colour-navy-dark);
  color: var(--colour-white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand img {
  width: 88px;
  margin-bottom: var(--space-sm);
}

.footer__brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  max-width: 28ch;
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--colour-lime);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--colour-lime);
}

.footer__contact-item {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__bottom-text {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.footer__social-link:hover {
  background: var(--colour-lime);
  color: var(--colour-navy);
}

.footer__accreditations {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* ------------------------------------------------------------
   16. CONTACT ICONS (small chip for opaque-bg icon files, inline pin)
   ------------------------------------------------------------ */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--colour-grey-light);
  flex-shrink: 0;
}

.icon-chip img {
  width: 12px;
  height: 12px;
}

.icon-inline {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   17. ACCREDITATION CHIP (white card for full-colour badge logos)
   ------------------------------------------------------------ */
.accred-chip {
  background: var(--colour-white);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}

.accred-chip img {
  height: 32px;
  width: auto;
  max-width: 110px;
}

/* Larger variant: dedicated accreditation showcase sections */
.accred-chip--lg {
  height: 72px;
}

.accred-chip--lg img {
  height: 42px;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ------------------------------------------------------------
   8. SECTION HEADINGS (reusable module)
   ------------------------------------------------------------ */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  /* Lime (#d4e800) on white is only ~1.4:1 — fails WCAG. Navy on light,
     lime stays on dark/lime sections where it has plenty of contrast. */
  color: var(--colour-navy);
  margin-bottom: var(--space-xs);
}

.section--dark .eyebrow {
  color: var(--colour-lime);
}

/* .section--lime has a lime background, so navy already applies (default) */

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--colour-grey);
  font-size: var(--text-lg);
}

.section--dark .section-header p {
  color: rgba(255,255,255,0.7);
}

/* Divider accent */
.divider {
  width: 48px;
  height: 4px;
  background: var(--colour-lime);
  border-radius: 2px;
  margin: var(--space-sm) 0;
}

.section-header--center .divider {
  margin: var(--space-sm) auto;
}

/* ------------------------------------------------------------
   9. CARDS (reusable module)
   ------------------------------------------------------------ */
.card {
  display: block;
  background: var(--colour-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--colour-grey-light);
}

.card__body {
  padding: var(--space-md);
}

.card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--colour-navy);
  background: var(--colour-lime);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xs);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--colour-navy);
  margin-bottom: var(--space-xs);
}

/* Compact variant: image-less title-only cards packed into a dense grid */
.card__title--sm {
  font-size: var(--text-lg);
  margin-bottom: 0;
}

.card__text {
  font-size: var(--text-sm);
  color: var(--colour-grey);
  margin-bottom: var(--space-md);
  max-width: none;
}

/* ------------------------------------------------------------
   18. PRICE LIST (reusable module)
   ------------------------------------------------------------ */
.price-list .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--colour-grey-light);
}

.price-list .price-row:last-child {
  border-bottom: none;
}

.price-row__amount {
  color: var(--colour-navy);
  font-weight: 700;
}

.price-row__tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--colour-navy);
  background: var(--colour-lime);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: 0.4rem;
}

/* ------------------------------------------------------------
   10. FORMS (reusable module)
   ------------------------------------------------------------ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: var(--space-sm);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--colour-navy);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--colour-text);
  background: var(--colour-white);
  border: 2px solid var(--colour-grey-light);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--colour-navy);
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 3px solid var(--colour-lime);
  outline-offset: 2px;
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid,
[aria-invalid="true"] {
  border-color: #dc2626;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Segmented toggle: General enquiry / NVQ enrolment */
.form-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: var(--space-lg);
  background: var(--colour-off-white);
  border: 1px solid var(--colour-grey-light);
  border-radius: var(--radius-md);
}

.form-toggle__btn {
  padding: 0.55rem 1.15rem;
  font-family: var(--font-display);
  font-size: var(--text-base);
  letter-spacing: 0.04em;
  color: var(--colour-grey);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.form-toggle__btn:hover { color: var(--colour-navy); }

.form-toggle__btn.is-active {
  background: var(--colour-navy);
  color: var(--colour-white);
}

@media (max-width: 480px) {
  .form-toggle { display: flex; width: 100%; }
  .form-toggle__btn { flex: 1; padding: 0.55rem 0.5rem; }
}

.form-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.form-radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  cursor: pointer;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--colour-grey);
}

.form-required {
  color: #dc2626;
  margin-left: 2px;
}

.form-error {
  display: none;
  font-size: var(--text-xs);
  color: #dc2626;
}

.form-success {
  display: none;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  background: rgba(212, 232, 0, 0.15);
  border-left: 4px solid var(--colour-lime);
  font-weight: 600;
  color: var(--colour-navy);
}

/* ------------------------------------------------------------
   11. IMAGE PLACEHOLDER (for build phase)
   ------------------------------------------------------------ */
.img-placeholder {
  background: var(--colour-grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--colour-grey);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  min-height: 200px;
}

/* ------------------------------------------------------------
   12. BADGE / TRUST STRIP
   ------------------------------------------------------------ */
.trust-strip {
  background: var(--colour-navy);
  padding: var(--space-lg) 0;
  border-top: 3px solid var(--colour-lime);
}

.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--colour-white);
}

.trust-item__icon {
  width: 40px;
  height: 40px;
  background: var(--colour-lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--colour-navy);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.trust-item__label {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ------------------------------------------------------------
   13. ALERT / NOTICE BOX
   ------------------------------------------------------------ */
.notice {
  background: rgba(212, 232, 0, 0.15);
  border-left: 4px solid var(--colour-lime);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-sm);
}

/* ------------------------------------------------------------
   14. SCROLL REVEAL (JS hook classes)
   Gated behind .js so that without JavaScript the content is simply
   visible instead of stuck at opacity:0. `document.documentElement`
   gets the `js` class from an inline <script> at the top of <head>.
   ------------------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   15. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------
   19. EXIT-INTENT EMAIL POPUP
   ------------------------------------------------------------ */
.exit-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 40, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.exit-popup-overlay.is-visible {
  display: flex;
}

.exit-popup {
  position: relative;
  background: var(--colour-white);
  border-radius: var(--radius-lg);
  border-top: 6px solid var(--colour-lime);
  max-width: 420px;
  width: 100%;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.exit-popup h3 {
  margin: var(--space-xs) 0 var(--space-sm);
}

.exit-popup p {
  color: var(--colour-grey);
  font-size: var(--text-sm);
  margin: 0 auto var(--space-md);
}

.exit-popup .form-group {
  text-align: left;
}

.exit-popup__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--colour-off-white);
  color: var(--colour-navy);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exit-popup__close:hover {
  background: var(--colour-grey-light);
}

.exit-popup .form-success {
  text-align: left;
}

/* ------------------------------------------------------------
   21. TESTIMONIALS (reusable module)
   ------------------------------------------------------------ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--colour-white);
  border: 1px solid var(--colour-grey-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.section--dark .testimonial {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.testimonial__stars {
  color: var(--colour-lime);
  font-size: var(--text-base);
  letter-spacing: 0.15em;
}

.testimonial__quote {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--colour-text);
  max-width: none;
  margin: 0;
}

.section--dark .testimonial__quote { color: rgba(255, 255, 255, 0.9); }

.testimonial__meta {
  margin-top: auto;
  padding-top: var(--space-xs);
  font-size: var(--text-sm);
}

.testimonial__name {
  font-weight: 700;
  color: var(--colour-navy);
}

.section--dark .testimonial__name { color: var(--colour-white); }

.testimonial__detail { color: var(--colour-grey); }

.section--dark .testimonial__detail { color: rgba(255, 255, 255, 0.6); }

/* Rating summary strip */
.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--colour-grey);
}

.section--dark .rating-summary { color: rgba(255, 255, 255, 0.7); }

.rating-summary__stars {
  color: var(--colour-lime);
  letter-spacing: 0.1em;
  font-size: var(--text-lg);
}

/* ------------------------------------------------------------
   24. LOCATION MAP
   ------------------------------------------------------------ */
.map-embed {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--colour-grey-light);
}

.location-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.location-block__meta {
  font-size: var(--text-sm);
  color: var(--colour-grey);
  line-height: 1.6;
}

.location-block__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: 0.02em;
  color: var(--colour-navy);
  margin-bottom: 2px;
}

/* ------------------------------------------------------------
   23. CARD PATHWAY (Red to Blue stepper)
   ------------------------------------------------------------ */
.pathway {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.pathway__step {
  background: var(--colour-white);
  border-radius: var(--radius-md);
  border-left: 6px solid var(--colour-grey);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.pathway__step--red  { border-left-color: #d64545; }
.pathway__step--blue { border-left-color: #2f6fb3; }

.pathway__step h4 {
  font-size: var(--text-xl);
  color: var(--colour-navy);
  margin-bottom: 2px;
}

.pathway__step p {
  font-size: var(--text-sm);
  color: var(--colour-grey);
  max-width: none;
  margin: 0;
}

.pathway__link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: var(--space-xs) 0;
  padding: 0.35rem 0.9rem;
  background: var(--colour-lime);
  color: var(--colour-navy);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
}

.pathway__link::after {
  content: "\2193";
  font-family: var(--font-body);
  font-weight: 700;
}

/* ------------------------------------------------------------
   22. FAQ (reusable module — native <details>)
   ------------------------------------------------------------ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--colour-grey-light);
}

.section--dark .faq__item { border-bottom-color: rgba(255, 255, 255, 0.12); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: 0.02em;
  color: var(--colour-navy);
}

.section--dark .faq__item summary { color: var(--colour-white); }

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--colour-lime);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item summary:hover { color: var(--colour-lime-dark); }

.faq__answer {
  padding: 0 0 var(--space-md);
  color: var(--colour-grey);
  font-size: var(--text-base);
  line-height: 1.7;
}

.faq__answer p { max-width: none; }
.faq__answer p + p { margin-top: var(--space-sm); }

.section--dark .faq__answer { color: rgba(255, 255, 255, 0.7); }

/* ------------------------------------------------------------
   20. QUIZ (Find Your Course)
   ------------------------------------------------------------ */
.quiz {
  max-width: 620px;
  margin: 0 auto;
}

.quiz-progress {
  height: 4px;
  background: var(--colour-grey-light);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.quiz-progress__bar {
  height: 100%;
  width: 0;
  background: var(--colour-lime);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: block;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.quiz-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  background: var(--colour-white);
  border: 2px solid var(--colour-grey-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--colour-text);
  transition: all var(--transition);
}

.quiz-option:hover,
.quiz-option:focus-visible {
  border-color: var(--colour-lime);
  background: rgba(212, 232, 0, 0.1);
  outline: none;
}

.quiz-option__arrow {
  color: var(--colour-grey);
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--colour-grey);
  margin-top: var(--space-lg);
}

.quiz-back:hover {
  color: var(--colour-navy);
}

.quiz-result {
  display: none;
}

.quiz-result.is-active {
  display: block;
}
