/* =========================================================
   GLOBAL STYLES — base, buttons, header, footer, widgets
   and the home page. Colours/fonts: css/variables.css
   Inner-page components: css/pages.css
   ========================================================= */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; } /* stops slide-in animations from causing sideways scroll */
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease), background .25s var(--ease); }
ul { list-style: none; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; font-weight: 700; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-cream { background: var(--cream); }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: .75rem 1.25rem; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Section headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--lime); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--lime); border-radius: 2px; }
.section-title { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: .6rem; letter-spacing: -.01em; }
.section-title .hl { color: var(--green); position: relative; white-space: nowrap; }
.section-title .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .32em;
  background: var(--lime); opacity: .45; z-index: -1; border-radius: 4px;
}
.section-lead { font-size: 1.12rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: var(--radius-pill); border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .95rem; line-height: 1; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--lime); transform: translateY(101%); transition: transform .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(18, 139, 77, .6); color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn i { transition: transform .3s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn-lime { --btn-bg: var(--lime); --btn-fg: var(--ink); }
.btn-lime::before { background: #fff; }
.btn-white { --btn-bg: #fff; --btn-fg: var(--green); }
.btn-ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost::before { background: #fff; }
.btn-ghost:hover { color: var(--green); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--green); border-color: var(--green); }
.btn-outline::before { background: var(--green); }
.btn-outline:hover { color: #fff; }
.btn-sm { padding: .7rem 1.2rem; font-size: .88rem; }
.link-arrow { color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: .45rem; }
.link-arrow i { transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 300;
  background: linear-gradient(90deg, var(--lime), var(--green));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Top bar ---------- */
.topbar { background: var(--green-900); color: rgba(255, 255, 255, .82); font-size: .83rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; }
.topbar a:hover { color: var(--lime); }
.topbar i { color: var(--lime); margin-right: .4rem; }
.topbar-left, .topbar-right, .topbar .tlinks { display: flex; align-items: center; gap: 1.4rem; }
.topbar a, .topbar span { white-space: nowrap; }
.topbar .social a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.topbar .social a i { margin: 0; color: #fff; font-size: .78rem; }
.topbar .social a:hover { background: var(--lime); }
.topbar .social a:hover i { color: var(--ink); }
.topbar .social { display: flex; gap: .4rem; }
.topbar .top-cta { background: var(--lime); color: var(--ink); font-weight: 700; padding: .25rem .8rem; border-radius: var(--radius-pill); }
.topbar .top-cta:hover { background: #fff; color: var(--green); }
.topbar .top-cta i { color: var(--ink); margin: 0 0 0 .3rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease), border-color .35s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(16, 24, 40, .35); border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 108px; transition: height .35s var(--ease); }
.site-header.scrolled .header-inner { height: 80px; }
.logo { flex-shrink: 0; display: block; }
.logo img { height: 88px; width: auto; transition: height .35s var(--ease); }
.site-header.scrolled .logo img { height: 62px; }

.menu { display: flex; align-items: center; gap: .15rem; }
.menu > li { position: relative; }
.menu > li > a {
  display: flex; align-items: center; gap: .35rem;
  padding: .55rem .55rem; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink);
  white-space: nowrap;
}
.menu > li > a .fa-chevron-down { font-size: .62rem; transition: transform .3s var(--ease); color: var(--green); }
.menu > li:hover > a, .menu > li.current > a { background: var(--green-50); color: var(--green); }
.menu > li:hover > a .fa-chevron-down { transform: rotate(180deg); }
.menu > li.current > a { box-shadow: inset 0 -2px 0 var(--lime); }

.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; width: 360px;
  background: #fff; border-radius: var(--radius); padding: .6rem;
  box-shadow: 0 30px 60px -20px rgba(16, 24, 40, .35), 0 0 0 1px var(--border);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-sub:hover .dropdown, .has-sub:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: flex; gap: .9rem; align-items: flex-start; padding: .8rem; border-radius: 12px; }
.dropdown a:hover, .dropdown li.current a { background: var(--green-50); }
.dropdown .dd-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green); transition: background .25s, color .25s;
}
.dropdown a:hover .dd-icon { background: var(--green); color: #fff; }
.dropdown strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; line-height: 1.3; }
.dropdown small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.45; margin-top: .15rem; }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--green); color: #fff; place-items: center;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(7, 63, 36, .45); backdrop-filter: blur(3px); z-index: 400; opacity: 0; visibility: hidden; transition: .35s var(--ease); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); z-index: 401;
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s; /* hide only after sliding out */
}
body.drawer-open .drawer { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.drawer-head img { height: 52px; }
.drawer-close { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--green-50); color: var(--green); font-size: 1.3rem; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: .75rem 1.25rem; }
.drawer-menu > li { border-bottom: 1px solid var(--border); }
.drawer-menu .row { display: flex; align-items: center; }
.drawer-menu .row > a { flex: 1; padding: .95rem 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.drawer-menu li.current > .row > a { color: var(--green); }
.drawer-menu .sub-toggle { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--green-50); color: var(--green); cursor: pointer; transition: transform .3s var(--ease); }
.drawer-menu li.open .sub-toggle { transform: rotate(180deg); }
.drawer-menu .sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.drawer-menu li.open .sub { grid-template-rows: 1fr; }
.drawer-menu .sub ul { overflow: hidden; }
.drawer-menu .sub a { display: block; padding: .6rem 0 .6rem 1rem; border-left: 2px solid var(--lime); margin-left: .25rem; color: var(--ink-soft); font-size: .95rem; }
.drawer-menu .sub li:last-child a { margin-bottom: .9rem; }
.drawer-foot { padding: 1.25rem; border-top: 1px solid var(--border); display: grid; gap: .6rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--green-900); color: rgba(255, 255, 255, .78); margin-top: 0; }
.footer-wave { position: absolute; top: -1px; left: 0; width: 100%; height: 60px; color: var(--white); }
.site-footer.after-cream .footer-wave { color: var(--cream); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 3rem; padding: 7rem 1.25rem 3.5rem; }
.footer-logo { display: inline-block; background: #fff; border-radius: var(--radius); padding: .6rem 1rem; }
.footer-logo img { height: 92px; }
.footer-about p { margin: 1.25rem 0; font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1.2rem; position: relative; padding-bottom: .7rem; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--lime); }
.footer-links li + li { margin-top: .55rem; }
.footer-links a { font-size: .93rem; display: inline-flex; gap: .5rem; align-items: center; }
.footer-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); opacity: .6; transition: transform .3s var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-links a:hover::before { transform: scale(1.6); opacity: 1; }
.footer-contact li { display: flex; gap: .85rem; font-size: .93rem; margin-bottom: 1rem; }
.footer-contact i { color: var(--lime); margin-top: .3rem; width: 16px; }
.footer-contact a:hover { color: var(--lime); }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.footer-social a:hover { background: var(--lime); color: var(--ink); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.4rem; font-size: .85rem; }
.footer-bottom a:hover { color: var(--lime); }

/* ---------- Floating widgets ---------- */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 150; width: 54px; height: 54px; border-radius: 50%;
  background: #fff; color: var(--green); border: 0; cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); pointer-events: none; transition: .35s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 3; }
.to-top .track { stroke: var(--green-100); }
.to-top .ring { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 151; stroke-dashoffset: 151; }
.to-top:hover { background: var(--green); color: #fff; }

.a11y-btn {
  position: fixed; left: 1.4rem; bottom: 1.4rem; z-index: 150; width: 54px; height: 54px; border-radius: 50%;
  border: 0; cursor: pointer; background: var(--green); color: #fff; font-size: 1.35rem; box-shadow: var(--shadow);
  transition: transform .3s var(--ease);
}
.a11y-btn:hover { transform: scale(1.08) rotate(-8deg); }
.a11y-panel {
  position: fixed; left: 1.4rem; bottom: 5.4rem; z-index: 151; width: 300px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.3rem;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transform-origin: bottom left; transition: .3s var(--ease);
}
.a11y-panel.open { opacity: 1; visibility: visible; transform: none; }
.a11y-panel h3 { font-size: 1.05rem; margin-bottom: .9rem; display: flex; justify-content: space-between; align-items: center; }
.a11y-panel h3 button { border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.a11y-row { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; border-top: 1px solid var(--border); font-size: .9rem; color: var(--ink); }
.a11y-size { display: flex; gap: .3rem; }
.a11y-size button, .a11y-switch {
  border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: .3rem .6rem; cursor: pointer; font-weight: 600; color: var(--ink);
}
.a11y-size button.active { background: var(--green); color: #fff; border-color: var(--green); }
.a11y-switch { width: 46px; height: 26px; border-radius: 26px; padding: 0; position: relative; background: var(--border); border: 0; }
.a11y-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: var(--shadow-sm); }
.a11y-switch[aria-pressed="true"] { background: var(--green); }
.a11y-switch[aria-pressed="true"]::after { transform: translateX(20px); }
.a11y-reset { margin-top: .8rem; width: 100%; border: 0; background: var(--green-50); color: var(--green); padding: .6rem; border-radius: 10px; font-weight: 600; cursor: pointer; }

/* ==========================================================
   HOME PAGE
   ========================================================== */

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: center; overflow: hidden; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: -6% 0 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(7, 63, 36, .94) 0%, rgba(11, 93, 52, .82) 38%, rgba(11, 93, 52, .25) 68%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(0deg, rgba(7, 63, 36, .55), transparent 40%);
}
.hero-content { position: relative; padding-block: 6rem 9rem; max-width: 640px; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1.04; margin: 1.1rem 0 1.3rem; letter-spacing: -.02em; }
.hero h1 .word { display: inline-block; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .86); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.play-btn { display: inline-flex; align-items: center; gap: .9rem; color: #fff; font-weight: 600; }
.play-btn .play-icon {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .4);
  display: grid; place-items: center; position: relative; backdrop-filter: blur(6px);
}
.play-btn .play-icon::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(187, 205, 13, .7); animation: pulse 2.2s infinite; }
.play-btn:hover .play-icon { background: var(--lime); color: var(--ink); }
@keyframes pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }

.hero-badge {
  position: absolute; right: 1.25rem; bottom: 8.5rem; width: 300px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; color: #fff;
  animation: float 6s ease-in-out infinite;
}
.hero-badge .badge-top { display: flex; align-items: center; gap: .8rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.hero-badge .badge-top i { width: 38px; height: 38px; border-radius: 12px; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 1rem; }
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 1.7rem; margin-top: .8rem; line-height: 1.1; }
.hero-badge span.sub { font-size: .9rem; color: rgba(255, 255, 255, .85); }
.hero-badge .stars { color: var(--lime); margin-top: .6rem; letter-spacing: .2em; font-size: .8rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; color: #fff; z-index: 1; }
.scroll-cue { position: absolute; left: 50%; bottom: 6.6rem; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 20px; z-index: 2; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--lime); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Quick links ---------- */
.quick-links { position: relative; z-index: 3; margin-top: -4.5rem; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.quick-card {
  background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  display: flex; gap: 1rem; align-items: center; border: 1px solid var(--border);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.quick-card .qi { flex-shrink: 0; width: 54px; height: 54px; border-radius: 16px; background: var(--green-50); color: var(--green); display: grid; place-items: center; font-size: 1.3rem; transition: .35s var(--ease); }
.quick-card:hover .qi { background: var(--green); color: #fff; transform: rotate(-8deg); }
.quick-card strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; }
.quick-card small { color: var(--muted); font-size: .84rem; }

/* ---------- Welcome ---------- */
.welcome-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.collage { position: relative; aspect-ratio: 1 / .95; }
.collage img { position: absolute; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.collage .c1 { left: 0; top: 0; width: 68%; height: 72%; }
.collage .c2 { right: 0; bottom: 0; width: 56%; height: 58%; border: 8px solid #fff; }
.collage .blob { position: absolute; left: 8%; bottom: 2%; width: 34%; aspect-ratio: 1; background: var(--lime); border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%; z-index: -1; opacity: .55; animation: morph 12s ease-in-out infinite; }
.collage .dots { position: absolute; right: 4%; top: 4%; width: 120px; height: 120px; background-image: radial-gradient(var(--green) 2px, transparent 2.5px); background-size: 16px 16px; opacity: .25; z-index: -1; }
.collage .stat-pill {
  position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%);
  background: #fff; border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow-lg);
  display: flex; gap: .8rem; align-items: center; white-space: nowrap;
}
.stat-pill i { width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: #fff; display: grid; place-items: center; }
.stat-pill strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.1rem; line-height: 1.2; }
.stat-pill small { color: var(--muted); font-size: .8rem; }
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%; }
  50% { border-radius: 58% 42% 38% 62% / 42% 60% 40% 58%; }
}
.welcome-text p + p { margin-top: 1rem; }
.check-list { margin-top: 1.6rem; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink); font-weight: 500; }
.check-list li i { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--green-100); color: var(--green); display: grid; place-items: center; font-size: .72rem; margin-top: .15rem; }
.welcome-text .btn { margin-top: 2rem; }

/* ---------- Values ---------- */
.values { background: var(--green-800); color: rgba(255, 255, 255, .82); position: relative; overflow: hidden; }
.values::before, .values::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .04); }
.values::before { width: 520px; height: 520px; right: -160px; top: -200px; }
.values::after { width: 340px; height: 340px; left: -120px; bottom: -160px; background: rgba(187, 205, 13, .07); }
.values .section-title { color: #fff; }
.values .eyebrow { color: var(--lime); }
.values .section-lead { color: rgba(255, 255, 255, .75); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; position: relative; z-index: 1; }
.value-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg);
  padding: 2rem 1.6rem; position: relative; overflow: hidden; transform-style: preserve-3d;
  transition: background .4s var(--ease), border-color .4s, transform .2s;
}
.value-card:hover { background: rgba(255, 255, 255, .1); border-color: rgba(187, 205, 13, .5); }
.value-card .letter {
  position: absolute; right: -.6rem; bottom: -2.4rem; font-family: var(--font-head); font-weight: 700;
  font-size: 9rem; line-height: 1; color: rgba(187, 205, 13, .1); pointer-events: none; transition: color .4s;
}
.value-card:hover .letter { color: rgba(187, 205, 13, .22); }
.value-card .vi { width: 58px; height: 58px; border-radius: 18px; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1.4rem; }
.value-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: .6rem; }
.value-card p { font-size: .95rem; }

/* ---------- Stats ---------- */
.stats { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .12); position: relative; z-index: 1; }
.stat { padding: 2rem 1rem 0; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); color: #fff; line-height: 1; }
.stat strong .unit { color: var(--lime); }
.stat > span { font-size: .9rem; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; color: #fff; isolation: isolate; box-shadow: var(--shadow); }
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.feature-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 63, 36, 0) 25%, rgba(7, 63, 36, .92) 100%); transition: background .5s var(--ease); }
.feature-card:hover img { transform: scale(1.08); }
.feature-card:hover::before { background: linear-gradient(180deg, rgba(7, 63, 36, .25) 0%, rgba(7, 63, 36, .95) 100%); }
.feature-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem; }
.feature-body .tag { display: inline-block; background: var(--lime); color: var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .8rem; border-radius: var(--radius-pill); }
.feature-body h3 { color: #fff; font-size: 1.9rem; margin: .8rem 0 .4rem; }
.feature-body p { color: rgba(255, 255, 255, .88); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .5s var(--ease); }
.feature-card:hover .feature-body p, .feature-card:focus-visible .feature-body p { max-height: 120px; opacity: 1; }
.feature-body .go { margin-top: 1rem; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--green); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.feature-card:hover .go { transform: rotate(-45deg); background: var(--lime); color: var(--ink); }

/* ---------- Video ---------- */
.video-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 8; background: #000; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-cover { position: absolute; inset: 0; border: 0; cursor: pointer; display: grid; place-items: center; background: linear-gradient(0deg, rgba(7, 63, 36, .6), rgba(7, 63, 36, .15)); color: #fff; transition: opacity .4s; }
.video-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.video-cover .big-play { width: 104px; height: 104px; border-radius: 50%; background: #fff; color: var(--green); display: grid; place-items: center; font-size: 1.8rem; position: relative; transition: transform .4s var(--ease); }
.video-cover .big-play::before, .video-cover .big-play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; animation: pulse 2.4s infinite; }
.video-cover .big-play::after { animation-delay: 1.2s; }
.video-cover:hover .big-play { transform: scale(1.1); background: var(--lime); color: var(--ink); }
.video-cover .cover-text { position: absolute; left: 2rem; bottom: 1.8rem; text-align: left; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; }
.video-cover .cover-text small { display: block; font-family: var(--font-body); font-size: .85rem; font-weight: 400; opacity: .85; }
.video-wrap.playing .video-cover { opacity: 0; pointer-events: none; }

/* ---------- Head teacher ---------- */
.ht-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.ht-photo { position: relative; aspect-ratio: 1; max-width: 480px; margin-inline: auto; width: 100%; }
.ht-photo .shape { position: absolute; inset: 0; background: linear-gradient(140deg, var(--green), var(--green-800)); border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%; animation: morph 14s ease-in-out infinite; }
.ht-photo .shape-2 { position: absolute; inset: -14px; border: 2px dashed var(--lime); border-radius: 50%; animation: spin 40s linear infinite; }
.ht-photo img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 104%; width: auto; max-width: none; object-fit: contain; }
.ht-photo .ht-name { position: absolute; right: -4%; bottom: 12%; background: #fff; border-radius: var(--radius); padding: .8rem 1.1rem; box-shadow: var(--shadow); }
.ht-name strong { display: block; font-family: var(--font-head); color: var(--ink); }
.ht-name small { color: var(--green); font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }
.quote-mark { font-family: Georgia, serif; font-size: 6rem; line-height: .6; color: var(--lime); display: block; height: 2.6rem; }
.ht-text blockquote { font-family: var(--font-head); font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--ink); font-weight: 600; line-height: 1.45; margin: 1.2rem 0 1.4rem; }
.ht-text p + p { margin-top: 1rem; }
.signature { height: 64px; width: auto; margin-top: 1.6rem; }

/* ---------- Team carousel ---------- */
.team-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.team-head .section-head { margin-bottom: 0; }
.slider-nav { display: flex; gap: .6rem; }
.slider-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--green); cursor: pointer; transition: .3s var(--ease); }
.slider-nav button:hover { background: var(--green); color: #fff; border-color: var(--green); }
.team-swiper { overflow: hidden; padding-bottom: 1rem; }
.team-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform .4s var(--ease), box-shadow .4s; display: block; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-card .photo { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--sand); }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.team-card:hover .photo img { transform: scale(1.06); }
.team-card .info { padding: 1.1rem 1.25rem 1.3rem; }
.team-card strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.1rem; }
.team-card small { color: var(--green); font-weight: 600; font-size: .82rem; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--cream); position: relative; overflow: hidden; }
.testi-swiper { overflow: hidden; max-width: 880px; margin-inline: auto; }
.testi { text-align: center; padding: 0 1rem; }
.testi .stars { color: var(--lime-600); letter-spacing: .3em; margin-bottom: 1.2rem; }
.testi blockquote { font-family: var(--font-head); font-size: clamp(1.25rem, 2.4vw, 1.7rem); color: var(--ink); font-weight: 600; line-height: 1.5; }
.testi cite { display: inline-flex; align-items: center; gap: .8rem; margin-top: 1.8rem; font-style: normal; }
.testi cite .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.testi cite strong { display: block; color: var(--ink); text-align: left; }
.testi cite small { color: var(--muted); }
.testi-pagination { text-align: center; margin-top: 2.2rem; position: static !important; }
.testi-pagination .swiper-pagination-bullet { width: 10px; height: 10px; background: var(--green); opacity: .25; transition: width .3s var(--ease); }
.testi-pagination .swiper-pagination-bullet-active { opacity: 1; width: 30px; border-radius: 10px; }

/* ---------- News + Facebook ---------- */
.news-grid-home { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.news-list { display: grid; gap: 1rem; }
.news-item {
  display: flex; gap: 1.2rem; align-items: center; padding: 1.2rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border); transition: .35s var(--ease);
}
.news-item:hover { border-color: var(--green-100); box-shadow: var(--shadow); transform: translateX(6px); }
.news-item .date { flex-shrink: 0; width: 70px; height: 70px; border-radius: 16px; background: var(--green); color: #fff; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.news-item .date b { font-family: var(--font-head); font-size: 1.5rem; }
.news-item .date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.news-item h3 { font-size: 1.08rem; }
.news-item small { color: var(--muted); }
.news-item .arrow { margin-left: auto; color: var(--green); transition: transform .3s var(--ease); }
.news-item:hover .arrow { transform: translateX(4px); }
.fb-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem; box-shadow: var(--shadow-sm); }
.fb-card iframe { width: 100%; border: 0; border-radius: var(--radius-sm); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem); color: #fff; isolation: isolate; background: linear-gradient(120deg, var(--green-800), var(--green)); }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: rgba(187, 205, 13, .25); z-index: -1; filter: blur(4px); }
.cta-band::after { content: ""; position: absolute; width: 260px; height: 260px; left: 30%; bottom: -170px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .06); z-index: -1; }
.cta-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { color: rgba(255, 255, 255, .85); margin-top: .8rem; }
.cta-contacts { display: grid; gap: .8rem; }
.cta-contacts a { display: flex; align-items: center; gap: .9rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: .9rem 1.1rem; color: #fff; transition: .3s var(--ease); }
.cta-contacts a:hover { background: #fff; color: var(--green); }
.cta-contacts i { width: 40px; height: 40px; border-radius: 12px; background: var(--lime); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.cta-contacts small { display: block; font-size: .78rem; opacity: .75; }

/* ---------- Responsive ---------- */
/* Desktop: full menu fills the header, so the referral button lives in the top bar instead */
@media (min-width: 1280px) {
  .header-cta { display: none; }
}

/* Tablets & small laptops: hamburger menu */
@media (max-width: 1279px) {
  .main-nav, .topbar-left .addr { display: none; }
  .nav-toggle { display: grid; }
  .header-inner { height: 96px; }
  .logo img { height: 78px; }
  .site-header.scrolled .header-inner { height: 76px; }
  .site-header.scrolled .logo img { height: 60px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

/* Tablets */
@media (max-width: 980px) {
  /* accessibility button appears once you scroll past the hero, so it never covers the hero buttons
     (it's also in the mobile menu) */
  .a11y-btn { opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .a11y-btn.show, .a11y-btn[aria-expanded="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .welcome-grid, .ht-grid, .news-grid-home, .cta-inner { grid-template-columns: 1fr; }
  .quick-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .hero-badge { display: none; }
  .feature-body p { max-height: 120px; opacity: 1; }
  .collage { max-width: 560px; margin-inline: auto; width: 100%; }
  .ht-photo { max-width: 400px; }
}

/* Phones */
@media (max-width: 640px) {
  .section { padding-block: 3.5rem; }
  .section-head { margin-bottom: 2rem; }
  .section-lead { font-size: 1.02rem; }

  /* top bar: phone number + referral button only */
  .topbar { font-size: .8rem; }
  .topbar-inner { min-height: 40px; gap: .6rem; }
  .topbar-right .tlinks, .topbar .social { display: none; }
  .topbar .top-cta { padding: .3rem .75rem; }

  /* header */
  .header-cta { display: none; }
  .header-inner { height: 80px; }
  .logo img { height: 64px; }
  .site-header.scrolled .header-inner { height: 68px; }
  .site-header.scrolled .logo img { height: 52px; }
  .nav-toggle { width: 46px; height: 46px; }

  /* hero */
  .hero { min-height: 0; }
  .hero-content { padding-block: 3.5rem 7.5rem; }
  .hero h1 { font-size: 2.6rem; }
  .hero-actions { gap: 1.1rem; }
  .hero-actions .btn { width: 100%; }
  .scroll-cue { display: none; }

  /* quick links: compact 2 x 2 */
  .quick-links { margin-top: -3.5rem; }
  .quick-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .quick-card { flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1.1rem; }
  .quick-card .qi { width: 44px; height: 44px; border-radius: 13px; font-size: 1.1rem; }
  .quick-card strong { font-size: .98rem; }
  .quick-card small { font-size: .78rem; }

  /* welcome collage */
  .collage { aspect-ratio: 1 / 1.05; }
  .collage .stat-pill { top: auto; bottom: -.5rem; left: 50%; padding: .75rem .9rem; }
  .stat-pill strong { font-size: 1rem; }

  /* values + stats */
  .values-grid { grid-template-columns: 1fr; }
  .value-card { padding: 1.5rem 1.3rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
  .value-card .vi { width: 48px; height: 48px; margin: 0; grid-row: span 2; font-size: 1.15rem; }
  .value-card h3 { font-size: 1.2rem; margin-bottom: .2rem; }
  .value-card .letter { font-size: 6rem; bottom: -1.6rem; }
  .stat { padding: 1.4rem .5rem 0; }

  /* feature cards */
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { aspect-ratio: 4 / 3.4; }
  .feature-body { padding: 1.4rem; }
  .feature-body h3 { font-size: 1.5rem; }

  /* video */
  .video-wrap { aspect-ratio: 16 / 11; border-radius: var(--radius); }
  .video-cover .big-play { width: 72px; height: 72px; font-size: 1.3rem; }
  .video-cover .cover-text { left: 1.1rem; bottom: 1rem; font-size: 1.05rem; }

  /* head teacher */
  .ht-photo { max-width: 320px; }
  .ht-photo .ht-name { right: 0; bottom: 6%; }
  .quote-mark { font-size: 4.5rem; height: 2rem; }

  /* team carousel */
  .team-head { align-items: center; }
  .slider-nav button { width: 44px; height: 44px; }

  /* news */
  .news-item { padding: 1rem; gap: .9rem; }
  .news-item .date { width: 58px; height: 58px; border-radius: 14px; }
  .news-item .date b { font-size: 1.25rem; }
  .news-item h3 { font-size: .98rem; }
  .news-item .arrow { display: none; }
  .fb-card { padding: .6rem; }

  /* referral banner */
  .cta-band { padding: 2rem 1.4rem; border-radius: var(--radius); }
  .cta-contacts a { font-size: .88rem; word-break: break-word; }

  /* footer */
  .footer-main { grid-template-columns: 1fr; padding-top: 5rem; gap: 2.2rem; }
  .footer-logo img { height: 80px; }
  .footer-bottom .container { flex-direction: column; align-items: center; text-align: center; gap: .4rem; padding-bottom: 5rem; }

  /* floating buttons */
  .a11y-btn, .to-top { width: 48px; height: 48px; bottom: 1rem; }
  .a11y-btn { left: 1rem; font-size: 1.2rem; }
  .to-top { right: 1rem; }
  .to-top svg { width: 48px; height: 48px; }
  .a11y-panel { left: 1rem; right: 1rem; width: auto; bottom: 4.6rem; }
}

/* Very small phones */
@media (max-width: 380px) {
  .topbar .top-cta i { display: none; }
  .hero h1 { font-size: 2.25rem; }
  .quick-card { padding: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition-duration: .01ms !important; }

/* Five-card values grid (RAISE) on the home page */
.values-grid.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1279px) { .values-grid.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) { .values-grid.five { grid-template-columns: repeat(2, 1fr); } .values-grid.five > :last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .values-grid.five { grid-template-columns: 1fr; } }