/* Supporting Your Independence — colours come from the puzzle-house logo */
:root {
  --purple: #7353a3;
  --purple-dark: #4f3577;
  --pink: #eb4a9a;
  --green: #19b584;
  --blue: #46c4e4;
  --yellow: #fdeb6a;
  --ink: #1f1a2e;
  --text: #4a4658;
  --muted: #f6f3fb;
  --line: #e6e1ee;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(46, 26, 84, .12);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--purple); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; }

/* Top bar */
.topbar { background: var(--purple-dark); color: #fff; font-size: .9rem; }
.topbar .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; padding: 8px 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar span + span, .topbar a + span { margin-left: 22px; }

/* Header + nav */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(46, 26, 84, .08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; }
.brand strong { font-family: "Poppins", sans-serif; font-size: 1.05rem; line-height: 1.15; }
.brand small { display: block; font-weight: 400; color: var(--text); font-size: .78rem; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); font-family: "Poppins", sans-serif; font-weight: 500; font-size: .95rem; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--purple); }
.nav .has-sub { position: relative; }
.nav .has-sub > a::after { content: " ▾"; font-size: .75em; }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: block; }
.nav .sub a { font-weight: 400; }
.nav .sub a:hover { background: var(--muted); }
.nav .cta a { background: var(--pink); color: #fff; padding: 10px 20px; border-radius: 999px; }
.nav .cta a:hover { background: var(--purple); color: #fff; }

/* Buttons */
.btn { display: inline-block; background: var(--purple); color: #fff; text-decoration: none; font-family: "Poppins", sans-serif; font-weight: 600; padding: 14px 30px; border-radius: 999px; transition: background .2s, transform .2s; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--pink); transform: translateY(-2px); }
.btn.alt { background: var(--pink); }
.btn.alt:hover { background: var(--purple); }
.btn.light { background: #fff; color: var(--purple); }
.btn.light:hover { background: var(--yellow); color: var(--ink); }

.eyebrow { display: inline-block; font-family: "Poppins", sans-serif; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--pink); margin-bottom: .8em; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--green); vertical-align: middle; margin-right: 10px; border-radius: 2px; }

section { padding: 90px 0; }
.muted { background: var(--muted); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--muted) 0%, #fff 60%); padding: 70px 0 90px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.hero h1 span { color: var(--purple); }
.hero .lead { font-size: 1.12rem; max-width: 34em; }
.hero-media { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: end; }
.hero-media::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--yellow); right: -60px; top: -40px; z-index: 0; opacity: .7; }
.hero-media img { position: relative; z-index: 1; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; width: 100%; }
.hero-media img:first-child { aspect-ratio: 3/4; }
.hero-media img:last-child { aspect-ratio: 3/4; margin-bottom: -40px; }

/* Page banner (inner pages) */
.page-banner { background: linear-gradient(120deg, var(--purple-dark), var(--purple) 60%, var(--pink)); color: #fff; padding: 70px 0; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .08); right: -80px; top: -120px; }
.page-banner h1 { color: #fff; margin-bottom: .2em; }
.crumbs { font-size: .92rem; opacity: .9; }
.crumbs a { color: #fff; }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.img-pair img { aspect-ratio: 4/5; }
.img-pair img:last-child { margin-top: 50px; }

.callout { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; background: #fff; border-left: 5px solid var(--green); border-radius: 12px; padding: 18px 22px; box-shadow: var(--shadow); margin-top: 26px; }
.callout h6 { margin: 0; font-size: 1.05rem; }
.muted .callout { background: #fff; }

/* Feature cards */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s; }
.card:hover { transform: translateY(-6px); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card .body { padding: 22px 22px 26px; border-top: 5px solid var(--c, var(--purple)); flex: 1; }
.card h3, .card h4 { margin-bottom: .35em; font-size: 1.15rem; }
.card p { margin: 0; font-size: .97rem; }
.card:nth-child(4n+1) { --c: var(--purple); }
.card:nth-child(4n+2) { --c: var(--green); }
.card:nth-child(4n+3) { --c: var(--pink); }
.card:nth-child(4n+4) { --c: var(--blue); }
a.card { text-decoration: none; color: inherit; }

.home-feature .split { align-items: start; }
.split img.logo-badge { width: 110px; margin-bottom: 20px; box-shadow: none; border-radius: 0; }

/* Stats */
.stats { background: var(--purple); color: #fff; padding: 60px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; text-align: center; max-width: 720px; }
.stat strong { display: block; font-family: "Poppins", sans-serif; font-size: 3.4rem; line-height: 1; color: var(--yellow); }
.stat span { font-size: 1.05rem; letter-spacing: .04em; }

/* Team */
.team { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }
.member { text-align: center; width: 260px; }
.member img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; border: 6px solid #fff; box-shadow: var(--shadow); }
.member h5 { font-size: 1.2rem; margin: 0; }
.member p { color: var(--pink); font-weight: 700; margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--green), #13997b); color: #fff; padding: 70px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; max-width: 18em; }

/* Accordion (Why choose us lists) */
.accordion details { background: #fff; border-radius: 12px; margin-bottom: 12px; box-shadow: 0 4px 16px rgba(46, 26, 84, .07); }
.accordion summary { cursor: pointer; padding: 18px 22px; font-family: "Poppins", sans-serif; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--pink); font-size: 1.4rem; line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion details p { padding: 0 22px 18px; margin: 0; }

/* Focus list (Day programs) */
.focus-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.focus-list li { background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: 0 4px 16px rgba(46, 26, 84, .07); border-left: 5px solid var(--c, var(--purple)); }
.focus-list li:nth-child(5n+2) { --c: var(--green); }
.focus-list li:nth-child(5n+3) { --c: var(--pink); }
.focus-list li:nth-child(5n+4) { --c: var(--blue); }
.focus-list li:nth-child(5n+5) { --c: #d8b900; }
.focus-list strong { color: var(--ink); display: block; font-family: "Poppins", sans-serif; }

/* Flyer gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.gallery img { width: 100%; aspect-ratio: 1/1.41; object-fit: cover; object-position: top; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; background: rgba(20, 12, 36, .9); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 92vw; border-radius: 8px; }
.lightbox button { position: absolute; top: 16px; right: 20px; background: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }

/* Jobs */
.jobs { display: grid; gap: 14px; margin: 24px 0 30px; }
.jobs a { display: flex; justify-content: space-between; gap: 16px; background: #fff; padding: 18px 22px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; box-shadow: 0 4px 16px rgba(46, 26, 84, .07); border-left: 5px solid var(--pink); }
.jobs a:hover { border-left-color: var(--green); }
.jobs a span { color: var(--purple); font-weight: 400; white-space: nowrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.info-box { background: var(--purple); color: #fff; border-radius: var(--radius); padding: 34px; }
.info-box h2, .info-box h3, .info-box h5 { color: #fff; }
.info-box a { color: #fff; }
.info-box .row { display: flex; gap: 14px; margin-bottom: 14px; }
.info-box .row b { color: var(--yellow); min-width: 80px; }
.map { border: 0; width: 100%; height: 260px; border-radius: 12px; margin-top: 20px; }
form.syi-form { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.syi-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.syi-form label { display: block; font-weight: 700; color: var(--ink); font-size: .93rem; margin-bottom: 4px; }
.syi-form input, .syi-form select, .syi-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.syi-form input:focus, .syi-form select:focus, .syi-form textarea:focus { outline: 2px solid var(--purple); border-color: transparent; }
.syi-form .hp { position: absolute; left: -9999px; }
.form-note { font-size: .92rem; margin: 0; }
.form-status { display: none; padding: 14px 18px; border-radius: 10px; background: var(--muted); color: var(--ink); }
.form-status.show { display: block; }

/* Footer */
.site-footer { background: #1d1530; color: #cfc8dd; padding: 70px 0 0; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfc8dd; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand img { width: 70px; background: #fff; border-radius: 14px; padding: 8px; margin-bottom: 14px; }
.colour-strip { display: flex; height: 6px; margin-top: 50px; }
.colour-strip i { flex: 1; }
.copyright { text-align: center; padding: 18px 0; font-size: .85rem; border-top: 1px solid rgba(255, 255, 255, .08); }

/* Responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); display: none; max-height: calc(100vh - 80px); overflow: auto; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; }
  .nav .sub { position: static; display: block; box-shadow: none; padding: 0 0 0 14px; }
  .nav .has-sub > a::after { content: ""; }
  .nav .cta { margin-top: 8px; }
  .hero .wrap, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .hero-media img:last-child { margin-bottom: 0; }
  section { padding: 64px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .syi-form .two { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; }
  .topbar .hide-sm { display: none; }
  .brand strong { font-size: .95rem; }
  .stat strong { font-size: 2.6rem; }
}
