/* ==========================================================================
   MOTION Fitness — style.css
   Matches the existing markup (same class names, same palette and fonts).
   Link it in <head> with:  <link rel="stylesheet" href="style.css">
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #0A2A2F;
  --ink-2: #103A41;
  --ink-3: #061C20;
  --orange: #FF6A2B;
  --orange-d: #D94A12;        /* darker orange: passes contrast on light backgrounds */
  --orange-l: #FF8350;
  --ice: #EAF4F2;
  --ice-2: #DCEBE8;
  --chalk: #FFFFFF;
  --text: #3C5256;
  --line: rgba(10, 42, 47, .14);

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;

  --shadow-sm: 0 6px 18px -8px rgba(10, 42, 47, .25);
  --shadow-md: 0 22px 44px -22px rgba(10, 42, 47, .45);
  --shadow-lg: 0 40px 80px -40px rgba(10, 42, 47, .6);

  --font-d: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-b: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  font: 400 1.05rem/1.65 var(--font-b);
  color: var(--text);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: var(--ink); }

img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink-2);
}

a { color: inherit; }
p { text-wrap: pretty; }

h1, h2, h3 {
  font-family: var(--font-d);
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em; }

main:focus { outline: none; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.section { padding: clamp(72px, 10vw, 128px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  color: var(--orange-d);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.dark .eyebrow,
.hero .eyebrow { color: var(--orange); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1 var(--font-b);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(255, 106, 43, .7);
}
.btn-primary:hover { background: var(--orange-l); box-shadow: 0 16px 30px -12px rgba(255, 106, 43, .8); }

.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--chalk); }

.hero .btn-outline,
.cta .btn-outline { color: var(--chalk); }
.hero .btn-outline { border-color: rgba(255, 255, 255, .55); }
.hero .btn-outline:hover { background: var(--chalk); border-color: var(--chalk); color: var(--ink); }

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(10, 42, 47, .92);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 12px 30px -18px rgba(0, 0, 0, .5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height .3s;
}
.site-header.scrolled .header-inner { height: 68px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--chalk);
  font: 800 1.4rem var(--font-d);
  letter-spacing: -.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--orange);
  color: var(--ink);
  transition: transform .35s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-name span { color: var(--orange); }

.primary-navigation { display: flex; align-items: center; gap: 30px; }
.primary-navigation a {
  position: relative;
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  transition: color .2s;
}
.primary-navigation a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.primary-navigation a:not(.nav-cta):hover { color: #fff; }
.primary-navigation a:not(.nav-cta):hover::after { transform: scaleX(1); }

.primary-navigation .nav-cta {
  background: var(--orange);
  color: var(--ink);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: background .2s, transform .25s var(--ease);
}
.primary-navigation .nav-cta:hover { color: var(--ink); background: var(--orange-l); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: top .25s, transform .25s;
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  filter: saturate(.8) contrast(1.05);
  transform: scale(1.04);
  animation: hero-settle 1.6s var(--ease) forwards;
}
@keyframes hero-settle { to { transform: scale(1); } }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(10, 42, 47, .96) 12%, rgba(10, 42, 47, .72) 52%, rgba(10, 42, 47, .25)),
    linear-gradient(0deg, rgba(10, 42, 47, .92), transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 120px;
  max-width: 760px;
  margin-left: max(20px, calc((100% - 1180px) / 2));
  padding-right: 20px;
  animation: hero-in .9s var(--ease) both;
}
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } }

.hero h1 {
  color: #fff;
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.035em;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p {
  max-width: 520px;
  margin: 28px 0 36px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, .84);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  background: rgba(10, 42, 47, .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-stats .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0;
  font-size: .92rem;
  color: rgba(255, 255, 255, .82);
}
.hero-stats b { color: var(--orange); font-weight: 700; }

/* ---------- 6. About ---------- */
.intro { background: var(--ice); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.intro p { margin: 22px 0 30px; max-width: 52ch; }

.text-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 4px;
  transition: background-size .3s var(--ease), color .2s;
}
.text-link:hover { background-size: 100% 100%; }

.intro-img {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.intro-img img { transition: transform .8s var(--ease); }
.intro-img:hover img { transform: scale(1.04); }

/* ---------- 7. Section headings / dark theme ---------- */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-heading p { max-width: 34ch; }

.dark { background: var(--ink); color: rgba(255, 255, 255, .76); }
.dark h2, .dark h3 { color: #fff; }

/* ---------- 8. Programmes ---------- */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 18px;
}
.programme-card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .4s, transform .4s var(--ease);
}
.programme-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.programme-large { grid-column: span 2; grid-row: span 2; border-radius: var(--r-lg); }

.programme-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: transform .8s var(--ease);
}
.programme-card:hover img { transform: scale(1.06); }
.programme-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 42, 47, .94), rgba(10, 42, 47, .12) 66%);
}

.programme-content {
  height: 100%;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.programme-content span { color: var(--orange); font-weight: 600; font-size: .85rem; }
.programme-content h3 { color: #fff; font-size: 1.6rem; }
.programme-large h3 { font-size: clamp(2rem, 4vw, 2.8rem); }
.programme-content p { color: rgba(255, 255, 255, .82); font-size: .98rem; max-width: 30ch; }

.programme-content a {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform .3s var(--ease), background .2s;
}
.programme-card:hover .programme-content a { transform: rotate(45deg); background: #fff; }

/* ---------- 9. Philosophy ---------- */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.philosophy-image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.image-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: var(--orange);
  color: var(--ink);
  font: 700 .95rem var(--font-d);
  padding: 10px 18px;
  border-radius: 999px;
}
.philosophy-content > p { margin: 22px 0 36px; max-width: 50ch; }
.philosophy-points { display: grid; gap: 22px; }
.philosophy-points > div {
  display: flex;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  transition: border-color .3s;
}
.philosophy-points > div:hover { border-top-color: var(--orange); }
.philosophy-points > div > span {
  font: 800 1.4rem var(--font-d);
  color: var(--orange);
  min-width: 34px;
}
.philosophy-points h3 { margin-bottom: 4px; }

/* ---------- 10. Facilities ---------- */
.facilities { background: var(--ice); }
.facilities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facility-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
}
.facility-item img {
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: transform .8s var(--ease);
}
.facility-item:hover img { transform: scale(1.06); }
.facility-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 42, 47, .9), transparent 58%);
}
.facility-item div { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; }
.facility-item h3 { color: #fff; font-size: 1.5rem; }
.facility-item p { margin-top: 4px; font-size: .95rem; color: rgba(255, 255, 255, .82); }

/* ---------- 11. Trainers ---------- */
.trainer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trainer-card {
  background: var(--ice);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.trainer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.trainer-image { aspect-ratio: 4 / 4.4; overflow: hidden; }
.trainer-image img { object-position: center top; transition: transform .8s var(--ease); }
.trainer-card:hover .trainer-image img { transform: scale(1.04); }
.trainer-info { padding: 26px; }
.trainer-info span { font-weight: 600; font-size: .85rem; color: var(--orange-d); }
.trainer-info h3 { margin: 6px 0 8px; }
.trainer-info p { font-size: .98rem; }

.demo-note,
.pricing-note { margin-top: 30px; font-size: .88rem; opacity: .75; max-width: 70ch; }

/* ---------- 12. Membership ---------- */
.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.membership-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  border-radius: var(--r);
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.membership-card:hover { border-color: rgba(255, 106, 43, .55); }
.membership-featured {
  background: var(--chalk);
  color: var(--text);
  border-color: var(--chalk);
  transform: translateY(-14px);
  box-shadow: 0 44px 80px -32px rgba(0, 0, 0, .65);
}
.membership-featured:hover { border-color: var(--orange); }
.membership-featured h3,
.membership-featured .plan-price { color: var(--ink); }

.plan-label { font-size: .85rem; font-weight: 600; color: var(--orange); }
.membership-featured .plan-label { color: var(--orange-d); }
.popular-label {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 16px -8px rgba(255, 106, 43, .8);
}
.membership-card h3 { font-size: 2rem; margin: 8px 0 4px; }
.plan-price {
  font: 800 3.4rem/1 var(--font-d);
  letter-spacing: -.03em;
  color: #fff;
  margin: 24px 0;
}
.plan-price span { font-size: 1.6rem; vertical-align: top; margin-right: 3px; }
.plan-price small { font: 500 1rem var(--font-b); letter-spacing: 0; opacity: .7; }

.membership-card ul { list-style: none; padding: 0; display: grid; gap: 13px; margin-bottom: 32px; flex: 1; }
.membership-card li { padding-left: 30px; position: relative; }
.membership-card li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .42em;
  width: 14px;
  height: 8px;
  border: solid var(--orange);
  border-width: 0 0 3px 3px;
  border-radius: 1px;
  transform: rotate(-45deg);
}
.membership-card .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .4); }
.membership-card .btn-outline:hover { background: #fff; border-color: #fff; color: var(--ink); }
.membership-card .btn { width: 100%; }

/* ---------- 13. Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card {
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-radius: var(--r);
  background: var(--ice);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote-mark { font: 800 4.5rem/.6 var(--font-d); color: var(--orange); height: 36px; }
blockquote {
  margin: 14px 0 26px;
  font: 500 1.15rem/1.5 var(--font-d);
  letter-spacing: -.005em;
  color: var(--ink);
  flex: 1;
}
.testimonial-author { padding-top: 18px; border-top: 1px solid var(--line); }
.testimonial-author strong { display: block; color: var(--ink); }
.testimonial-author span { font-size: .85rem; opacity: .75; }

/* ---------- 14. Call to action ---------- */
.cta {
  position: relative;
  padding: clamp(80px, 12vw, 150px) 0;
  text-align: center;
  background: var(--orange);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.cta::before { width: 520px; height: 520px; right: -140px; top: -200px; }
.cta::after { width: 340px; height: 340px; left: -120px; bottom: -190px; background: rgba(10, 42, 47, .08); }
.cta h2 { font-size: clamp(3rem, 9vw, 7rem); line-height: .95; letter-spacing: -.035em; }
.cta p { margin: 22px auto 34px; max-width: 40ch; font-size: 1.2rem; color: var(--ink); }
.cta .eyebrow { color: var(--ink); justify-content: center; }
.cta .btn-primary { background: var(--ink); color: #fff; box-shadow: 0 14px 28px -12px rgba(10, 42, 47, .7); }
.cta .btn-primary:hover { background: var(--ink-2); }
.cta .btn-outline { color: var(--ink); border-color: var(--ink); }
.cta .btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- 15. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.contact-content > p { margin: 20px 0 34px; max-width: 46ch; }
.contact-details { display: grid; gap: 22px; }
.contact-details span { display: block; font-weight: 600; font-size: .85rem; color: var(--orange); margin-bottom: 2px; }
.contact-details a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  transition: border-color .2s, color .2s;
}
.contact-details a:hover { color: #fff; border-color: var(--orange); }

.contact-form {
  background: var(--chalk);
  color: var(--text);
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--r-lg);
  display: grid;
  gap: 18px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.contact-form h3 { font-size: 1.8rem; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--ice);
  color: var(--ink);
  width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(60, 82, 86, .6); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(10, 42, 47, .3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--orange);
   box-shadow: 0 0 0 4px rgba(255, 106, 43, .2);
}
.field textarea { min-height: 120px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #C0392B; background: #FFF6F5; }
.form-status { min-height: 1.4em; font-weight: 600; color: var(--ink); }
.form-status.error { color: #C0392B; }
#form-disclaimer { font-size: .82rem; opacity: .75; }

/* ---------- 16. Footer ---------- */
footer {
  background: var(--ink-3);
  color: rgba(255, 255, 255, .62);
  padding: 30px 0;
  font-size: .9rem;
  text-align: center;
}
footer a { text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--orange); }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1100px) {
  .programme-grid { grid-auto-rows: 260px; }
  .membership-card { padding: 32px 26px; }
}

@media (max-width: 960px) {
  .intro-grid,
  .philosophy-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .intro-img,
  .philosophy-image { aspect-ratio: 4 / 3.2; }

  .programme-grid { grid-template-columns: 1fr 1fr; }
  .trainer-grid,
  .membership-grid,
  .testimonial-grid,
  .facilities-grid { grid-template-columns: 1fr; }
  .facility-item { aspect-ratio: 16 / 10; }
  .membership-featured { transform: none; }
  .membership-grid { gap: 30px; }
  .trainer-grid { max-width: 520px; margin-inline: auto; }

  .menu-toggle { display: block; }
  .primary-navigation {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 28px;
    background: var(--ink);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .5);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s .35s;
  }
  .primary-navigation.open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .primary-navigation a { padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 1.05rem; }
  .primary-navigation a:not(.nav-cta)::after { display: none; }
  .primary-navigation .nav-cta { margin-top: 16px; text-align: center; border: 0; padding: 15px 20px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .programme-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .programme-large { grid-column: auto; grid-row: auto; }
  .hero-content { padding: 120px 20px 150px 0; margin-left: 20px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats .container { justify-content: flex-start; gap: 4px 20px; padding: 14px 0; font-size: .85rem; }
  .section-heading { margin-bottom: 32px; }
  .testimonial-card { padding: 28px; }
}

/* ---------- 18. Motion & print preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .hero-stats, .skip-link { display: none; }
  .hero { min-height: auto; color: #000; background: none; }
}
