/* ============ Tokens ============ */
:root{
  --cream: #FFFCF3;
  --paper: #FFF8E7;
  --yellow: #F5B926;
  --yellow-deep: #E0641E;
  --brown: #4A3319;
  --ink: #2A2013;
  --ink-soft: #5B4C3A;

  --buds: #7CAD3E;
  --bloomers: #D9A31C;
  --ielts: #3B7EB8;
  --growth: #6E655A;
  --petals: #C24E86;
  --crown: #D68B57;
  --seeds: #8C5AC4;
  --healthcare: #D6302F;

  --display: 'Baloo 2', system-ui, sans-serif;
  --body: 'Work Sans', system-ui, sans-serif;

  --max: 1120px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
img,svg{ display:block; max-width:100%; }
a{ color: inherit; }

h1,h2,h3{
  font-family: var(--display);
  color: var(--brown);
  margin: 0 0 .4em;
  line-height: 1.1;
  font-weight: 700;
}
h1{ font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2{ font-size: clamp(1.7rem, 3.2vw, 2.3rem); max-width: 22ch; }
h3{ font-size: 1.2rem; margin-bottom: .3em; }
p{ margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

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

.eyebrow{
  font-family: var(--body);
  font-weight: 600;
  color: var(--yellow-deep);
  margin-bottom: .6em;
  font-size: .95rem;
}

.skip-link{
  position:absolute; left:-999px; top:0;
  background: var(--brown); color:#fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus{ left: 12px; top: 12px; }

:focus-visible{ outline: 3px solid var(--yellow-deep); outline-offset: 2px; }

/* ============ Buttons ============ */
.btn{
  display:inline-block;
  font-family: var(--body);
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary{
  background: var(--brown);
  color: #fff;
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 6px 0 var(--yellow-deep); }
.btn-ghost{
  border-color: var(--brown);
  color: var(--brown);
}
.btn-ghost:hover{ background: var(--brown); color:#fff; }

/* ============ Header ============ */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(255,252,243,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(74,51,25,.08);
}
.header-inner{
  display:flex; align-items:center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo{ display:flex; align-items:center; gap:10px; text-decoration:none; flex-shrink:0; }
.logo-img{ height: 44px; width:auto; display:block; }
.footer-logo{ height:90px; width:auto; display:block; }

.main-nav{ display:flex; align-items:center; gap: 28px; }
.main-nav a{ text-decoration:none; font-weight:500; color: var(--ink); }
.main-nav a:hover{ color: var(--yellow-deep); }
.nav-cta{
  background: var(--yellow); padding: 9px 18px; border-radius: 999px; color: var(--brown) !important; font-weight:600 !important;
}
.nav-cta:hover{ background: var(--yellow-deep); color:#fff !important; }

.nav-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding: 8px; }
.nav-toggle span{ width:24px; height:2px; background: var(--brown); display:block; }

/* ============ Hero ============ */
.hero{
  position:relative; overflow: hidden; padding-top: 40px;
  background: radial-gradient(1100px 650px at 12% -10%, #FFE28A 0%, var(--yellow) 55%, #F2AE1E 100%);
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,.45) 2.5px, transparent 2.5px);
  background-size: 28px 28px;
  opacity: .55;
  pointer-events:none;
}
.hero-inner{
  position:relative; z-index:1;
  display:grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items:center;
  padding-top: 40px; padding-bottom: 100px;
}
.hero .eyebrow{
  display:inline-block;
  background: rgba(255,255,255,.6);
  color: var(--brown);
  padding: 6px 16px;
  border-radius: 999px;
  backdrop-filter: blur(3px);
}
.hero-lede{ font-size: 1.08rem; color: var(--ink); }
.hero-actions{ display:flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.hero-art{ position: relative; height: 340px; }
.hero-blob{ position:absolute; inset:0; width:100%; height:100%; z-index:1; }
.hero-blob-a{ opacity: .9; }
.hero-blob-b{ opacity: .35; transform: translate(6%, 10%) scale(.9); }
/* mascots standing in front of the blobs */
.hero-kids{
  position:absolute; left:50%; bottom:-4px; transform:translateX(-50%);
  height:98%; width:auto; max-width:none; z-index:2;
  filter: drop-shadow(0 10px 14px rgba(42,32,19,.28));
}

.wave{ display:block; width:100%; height: 70px; margin-top: -4px; }
.wave-flip{ transform: scaleY(-1); margin-top: 0; }

/* ============ About ============ */
.about{ background: var(--paper); padding: 90px 0 70px; }
.about-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 36px 0 40px; }
.about-point{
  background: #fff; border: 2px solid var(--brown); border-radius: 16px;
  padding: 24px; box-shadow: 6px 6px 0 var(--yellow);
}
.about-point p{ margin:0; color: var(--ink); }
.about-band{
  border-left: 4px solid var(--yellow-deep); padding-left: 22px;
}
.about-band p{ font-size: 1.05rem; max-width: 70ch; }

/* ============ Reallyenglish ============ */
.reallyenglish{ padding: 90px 0; }
.re-grid{ display:grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items:start; }
.re-links{ display:flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.re-subhead{
  font-family: var(--display); font-weight:700; color: var(--yellow-deep);
  margin: 26px 0 4px; font-size: 1rem; text-transform: uppercase; letter-spacing: .03em;
}
.re-tagline{
  font-family: var(--display); font-weight:700; color: var(--brown);
  font-size: 1.25rem; max-width: 30ch; margin: 0 0 14px; line-height:1.3;
}
.re-stats{ background: var(--brown); color:#fff; border-radius: 20px; padding: 32px; }
.re-stats-heading{ color: var(--yellow); font-weight:600; margin: 0 0 16px; font-family: var(--display); font-size: 1.05rem; }
.re-stat-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.re-stat{ display:flex; flex-direction:column; gap: 4px; }
.re-stat-num{ font-family: var(--display); font-size: 2.1rem; color: var(--yellow); font-weight:700; line-height:1; }
.re-stat-label{ color: #EFE6D6; font-size: .84rem; line-height:1.4; }
.re-partners-label{ color: var(--yellow); font-weight:600; margin-bottom: 10px; }
.re-partners ul{ list-style:none; margin:0; padding:0; }
.re-partners li{ padding: 8px 0; border-top: 1px solid rgba(255,255,255,.15); color: #EFE6D6; }
.re-partners li:first-child{ border-top:0; }

/* ============ Programmes ============ */
.programmes{ background: var(--paper); padding: 90px 0; }
.programme-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px;
}
.p-card{
  position: relative;
  background: var(--pc);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 24px 22px 22px;
  box-shadow: 7px 7px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.p-card:hover{ transform: translate(-2px,-2px); box-shadow: 9px 9px 0 var(--ink); }
.p-card-link{
  position:absolute; inset:0; z-index:2;
  border-radius: 18px;
}
.p-card-link:focus-visible{ outline: 3px solid var(--ink); outline-offset: 2px; }
.p-logo{
  width: 200px; height: 200px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
}
.p-logo.hc {
  width: 180px; height: 180px;
  object-fit: contain;
  margin: 0 auto 30px;
  display: block;
}
.p-body{
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(3px);
  border-radius: 14px;
  padding: 16px 16px 14px;
}
.p-card h3{ margin-bottom: 4px; color: var(--brown); }
.p-tag{ font-weight:600; color: var(--ink); font-size: .92rem; margin-bottom: 12px; }
.p-for{ font-size: .95rem; color: var(--ink-soft); }
.p-info{ list-style:none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px dashed rgba(42,32,19,.25); }
.p-info li{ font-size: .88rem; color: var(--ink-soft); padding: 3px 0; }

/* ============ Testimonials ============ */
.testimonials{ padding: 90px 0 70px; }
.testimonial-slider{
  display:flex; align-items:center; gap: 14px;
  margin-top: 36px;
}
.testimonial-viewport{ overflow:hidden; flex:1; padding: 6px 16px 16px 6px; }
.testimonial-track{
  display:flex;
  transition: transform .45s ease;
}
.testimonials .carousel-btn{
  border-color: var(--ink);
  background: rgba(42,32,19,.06);
  color: var(--brown);
}
.testimonials .carousel-btn:hover{ background: rgba(42,32,19,.14); }
.slider-dots{ display:flex; justify-content:center; gap: 9px; margin-top: 22px; }
.slider-dot{
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(42,32,19,.22);
  border: none; padding: 0; cursor:pointer;
  transition: background .15s ease;
}
.slider-dot.active{ background: var(--brown); }
.t-card{
  flex: 0 0 100%; width:100%; box-sizing:border-box;
  margin:0;
  display:flex; justify-content:center;
}
.t-card img{
  width:100%; max-width: 380px; height:auto;
  display:block;
  border-radius: 20px;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--yellow);
}

/* ============ Testimonial lightbox ============ */
.t-card img.zoomable{ cursor: zoom-in; transition: transform .15s ease; }
.t-card img.zoomable:hover{ transform: translate(-2px,-2px); }
body.lightbox-open{ overflow:hidden; }
.lightbox{
  position:fixed; inset:0; z-index:300;
  display:none; align-items:center; justify-content:center;
  background: rgba(20,14,8,.9);
  padding: 20px;
}
.lightbox.open{ display:flex; }
/* shown exactly as the file is: natural size, no frame/shadow/rounding.
   Only shrinks if the screen is too small to fit it. */
.lightbox-img{
  width:auto; height:auto;
  max-width: 92vw;
  max-height: 90vh;
  border: 0; border-radius: 0; box-shadow: none; background: none;
}
.lightbox-btn{
  position:absolute;
  width: 46px; height: 46px; border-radius:50%;
  background: rgba(255,255,255,.14);
  border: 2px solid rgba(255,255,255,.55);
  color:#fff; font-size: 1.7rem; line-height:1;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition: background .15s ease;
}
.lightbox-btn:hover{ background: rgba(255,255,255,.3); }
.lightbox-btn:focus-visible{ outline: 3px solid var(--yellow); outline-offset: 2px; }
.lightbox-close{ top: 16px; right: 16px; font-size: 2rem; padding-bottom: 3px; }
.lightbox-prev{ left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: 16px; top: 50%; transform: translateY(-50%); }

/* ============ CEFR ============ */
.cefr{ padding: 90px 0; }
.cefr-lede{ max-width: 62ch; }
.cefr-chart{
  margin-top: 30px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 30px 28px 24px;
  box-shadow: 8px 8px 0 var(--yellow);
}
.cefr-axis{ display:flex; padding-left: 190px; margin-bottom: 10px; }
.cefr-axis span{ font-weight:600; font-size:.85rem; color: var(--ink-soft); text-align:center; border-left: 1px dashed rgba(42,32,19,.2); }
.cefr-row{ display:flex; align-items:center; gap: 16px; margin-bottom: 14px; }
.cefr-label{ width: 174px; flex-shrink:0; font-weight:600; font-size:.92rem; text-align:right; }
.cefr-track{ position:relative; flex:1; height: 22px; background: var(--paper); border-radius: 999px; overflow:hidden; }
.cefr-bar{ position:absolute; top:0; bottom:0; border-radius: 999px; }

/* ============ How it works ============ */
.how{ background: var(--brown); color:#fff; padding: 90px 0; }
.how .eyebrow{ color: var(--yellow); }
.how h2{ color:#fff; }
.how-grid{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; }
.how-copy p{ color: #EFE6D6; }
.how-features{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.how-features h3{ color: var(--yellow); font-size: 1.05rem; }
.how-features p{ color: #EFE6D6; font-size: .95rem; margin:0; }

/* ============ App carousel ============ */
.app-carousel-wrap{
  display:flex; align-items:center; gap: 14px;
  margin-top: 56px;
}
.app-carousel{
  display:flex; gap: 22px;
  overflow-x:auto; scroll-snap-type: x mandatory;
  padding: 10px 6px 22px;
  scrollbar-width: thin;
  flex: 1;
}
.app-carousel .app-shot{
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: 190px;
  margin:0; text-align:center;
}
.app-carousel .app-shot img{
  width:100%; height:auto;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,.35));
}
.app-carousel .app-shot figcaption{
  margin-top: 14px; color: #EFE6D6; font-size: .84rem; font-weight:500;
}
.carousel-btn{
  flex-shrink:0;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.4);
  color: #fff; font-size: 1.5rem; line-height:1;
  cursor:pointer;
  transition: background .15s ease;
}
.carousel-btn:hover{ background: rgba(255,255,255,.28); }
.app-carousel-note{ color: #C9BBA1; text-align:center; }

/* ============ Contact ============ */
.contact{ position:relative; background: var(--ink); color:#fff; padding: 50px 0 10px; }
.contact .eyebrow{ color: var(--yellow); }
.contact h2{ color:#fff; }
.contact p{ color: #E7DECD; }
.contact-inner{ display:grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items:center; }
.contact-details{ display:flex; flex-direction:column; gap: 14px; }
.contact-details a{ text-decoration:none; font-family: var(--display); font-size: 1.3rem; color: var(--yellow); }
.contact-details a:hover{ color:#fff; }
.contact-inner > *, .re-grid > *, .how-grid > *, .hero-inner > *{ min-width:0; }
.contact-details a{ overflow-wrap:anywhere; }

/* ============ Programme detail page ============ */
.visually-hidden{
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip: rect(0,0,0,0); white-space:nowrap; border:0;
}
.programme-detail{ background: var(--ink); }
.programme-pages{ display:block; text-align:center; }
.programme-pages img{
  display:inline-block;
  width:auto; height:auto;
  max-width: 100%;
  max-height: 100vh;
  margin: 0 auto 28px;
}
.programme-pages img:last-child{ margin-bottom: 0; }

/* ============ Footer ============ */
.site-footer{ background: var(--ink); padding: 22px 0 34px; }
.footer-inner{ display:flex; justify-content:center; align-items:center; width: 100%;}
.footer-inner p{ color: #B9AC96; font-size: .85rem; margin:0; text-align: center; }

/* ============ Responsive ============ */
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; padding-bottom: 70px; }
  .hero-art{ height: 220px; order:-1; width:100%; max-width: 560px; margin: 0 auto; }
  /* hamburger menu kicks in earlier so the nav never gets squashed */
  .main-nav{
    position:absolute; top: 100%; left:0; right:0;
    background: var(--cream);
    flex-direction:column; align-items:flex-start; gap: 4px;
    padding: 10px 24px 20px;
    border-bottom: 1px solid rgba(74,51,25,.08);
    display:none;
  }
  .main-nav.open{ display:flex; }
  .main-nav a{ padding: 10px 0; width:100%; }
  .nav-toggle{ display:flex; }
  .about-grid{ grid-template-columns: 1fr; }
  .re-grid{ grid-template-columns: 1fr; }
  .re-stat-grid{ grid-template-columns: 1fr 1fr; }
  .programme-grid{ grid-template-columns: repeat(2,1fr); }
  .how-grid{ grid-template-columns: 1fr; }
  .how-features{ grid-template-columns: 1fr; }
  .contact-inner{ grid-template-columns: 1fr; }
  .cefr-axis{ display:none; }
  .cefr-label{ width: 120px; font-size:.82rem; }
}

@media (max-width: 640px){
  .programme-grid{ grid-template-columns: 1fr; }
  .programme-pages img{
    width: 100%; height:auto;
    max-width:none; max-height:none;
    margin: 0; 
    display:block;
  }
  /* lightbox: arrows go below the image so they don't cover the text */
  .lightbox-img{ max-height: 78vh; }
  .lightbox-prev, .lightbox-next{ top:auto; bottom: 18px; transform:none; }
  .lightbox-prev{ left: calc(50% - 58px); }
  .lightbox-next{ right: calc(50% - 58px); }
}