/* ZustSkool public centre websites — standalone, separate from the staff UI.
   --brand comes from SiteSettings.theme_colour. */
:root {
  --brand: #F26B4F;
  --teal: #0F5E5C;
  --ink: #23303f;
  --muted: #5d6b7a;
  --cream: #FFF8F1;
  --peach: #FFE9DA;
  --mint: #E4F5EF;
  --sun: #FFC857;
  --lilac: #EEEAFE;
  --line: #f0e6dc;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(35, 48, 63, .08);
  --display: "Fredoka", "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ps-body { margin: 0; font-family: var(--body); color: var(--ink); background: #fff; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 8px; }
.ps-wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.ps-narrow { width: min(820px, 100% - 40px); }
.ps-sr, .ps-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ps-skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.ps-skip:focus { left: 12px; }
.ps-preview { background: var(--sun); color: #4a3200; text-align: center; padding: 8px 12px; font-weight: 700; font-size: .9rem; }
.ps-muted { color: var(--muted); }
.ps-small { font-size: .9rem; }
.ps-center { text-align: center; }

/* Header */
.ps-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 241, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.ps-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.ps-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.ps-brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; }
.ps-brand-mark { width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.4rem; transform: rotate(-6deg); box-shadow: 4px 4px 0 var(--sun); }
.ps-brand-name { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: .2px; }
.ps-nav { display: flex; align-items: center; gap: 22px; }
.ps-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.ps-nav ul a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; }
.ps-nav ul a:hover { background: var(--peach); }
.ps-nav ul a[aria-current="page"] { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 2px var(--peach); }
.ps-menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.ps-burger, .ps-burger::before, .ps-burger::after { display: block; width: 24px; height: 3px; border-radius: 3px; background: var(--ink); position: relative; content: ""; }
.ps-burger::before { position: absolute; top: -8px; } .ps-burger::after { position: absolute; top: 8px; }

/* Buttons */
.ps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 800; font-size: 1rem; text-decoration: none; border-radius: 999px; padding: 14px 26px; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.ps-btn:hover { transform: translateY(-2px); }
.ps-btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 0 rgba(0,0,0,.12); }
.ps-btn-primary:hover { box-shadow: 0 8px 0 rgba(0,0,0,.12); }
.ps-btn-ghost { background: #fff; color: var(--teal); border-color: var(--teal); }
.ps-btn-light { background: #fff; color: var(--teal); }
.ps-btn-outline-light { color: #fff; border-color: rgba(255,255,255,.8); }
.ps-btn-sm { padding: 9px 18px; font-size: .95rem; }
.ps-btn-block { width: 100%; margin-top: 10px; }
.ps-link { font-weight: 800; text-decoration: none; color: var(--teal); }
.ps-link:hover { text-decoration: underline; }
.ps-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Typography */
.ps-display { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.5px; }
.ps-display-sm { font-size: clamp(2rem, 4vw, 3rem); }
.ps-h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.15; margin: 0 0 10px; }
.ps-h3 { font-family: var(--display); font-weight: 600; font-size: 1.45rem; margin: 0 0 8px; }
.ps-h4 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 18px 0 8px; }
.ps-lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.ps-eyebrow { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--brand); background: #fff; padding: 6px 14px; border-radius: 999px; margin: 0 0 14px; box-shadow: inset 0 0 0 2px var(--peach); }
.ps-prose p { margin: 0 0 1em; }

/* Hero */
.ps-hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, var(--peach), transparent 60%), var(--cream); padding: 56px 0 110px; overflow: hidden; }
.ps-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.ps-hero-art { position: relative; }
.ps-hero-svg { width: 100%; height: auto; position: relative; z-index: 1; }
.ps-hero-img { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; box-shadow: var(--shadow); position: relative; z-index: 1; aspect-ratio: 6/5; object-fit: cover; }
.ps-blob { position: absolute; border-radius: 50%; z-index: 0; }
.ps-blob-a { width: 120px; height: 120px; background: var(--mint); left: -30px; bottom: 10px; }
.ps-blob-b { width: 70px; height: 70px; background: var(--lilac); right: 10px; top: -10px; }
.ps-hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 34px 0 0; }
.ps-hero-facts li { background: #fff; border-radius: 16px; padding: 10px 16px; box-shadow: var(--shadow); font-size: .95rem; }
.ps-hero-facts strong { font-family: var(--display); color: var(--brand); font-size: 1.15rem; margin-right: 4px; }
.ps-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; }

/* Sections */
.ps-section { padding: 76px 0; }
.ps-white { background: #fff; }
.ps-cream { background: var(--cream); }
.ps-mint { background: var(--mint); }
.ps-section-head { text-align: center; max-width: 680px; margin: 0 auto 42px; }
.ps-pagehead { position: relative; background: var(--cream); padding: 64px 0 96px; text-align: center; }
.ps-pagehead .ps-lead { margin-inline: auto; }

/* Cards */
.ps-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); justify-content: center; gap: 24px; }
.ps-cards-2 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ps-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.ps-program { padding: 28px; position: relative; overflow: hidden; }
.ps-program h3 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin: 12px 0 8px; }
.ps-program::after { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; right: -36px; top: -36px; opacity: .55; }
.ps-tone-a { background: #FFF3EC; } .ps-tone-a::after { background: var(--brand); opacity: .18; }
.ps-tone-b { background: #EAF6F3; } .ps-tone-b::after { background: var(--teal); opacity: .16; }
.ps-tone-c { background: #F3F0FF; } .ps-tone-c::after { background: #8E7CF0; opacity: .2; }
.ps-age { display: inline-block; background: #fff; color: var(--ink); font-weight: 800; font-size: .82rem; padding: 5px 12px; border-radius: 999px; box-shadow: 0 2px 0 rgba(0,0,0,.06); }
.ps-centre { overflow: hidden; display: flex; flex-direction: column; }
.ps-centre-img { width: 100%; aspect-ratio: 5/3; object-fit: cover; }
.ps-centre-ph { background: linear-gradient(135deg, var(--peach), var(--mint)); display: grid; place-items: center; }
.ps-centre-ph span { font-family: var(--display); font-size: 3.5rem; color: var(--brand); opacity: .55; }
.ps-centre-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ps-centre-body h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin: 0; }
.ps-centre-body h3 a { color: var(--ink); text-decoration: none; }
.ps-centre-body p { margin: 0; }
.ps-card-actions { display: flex; gap: 18px; margin-top: auto; padding-top: 12px; }
.ps-meta { list-style: none; padding: 0; margin: 6px 0; font-size: .95rem; }
.ps-meta li { margin: 2px 0; }
.ps-meta-k { font-weight: 800; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-right: 6px; }
.ps-meta-stack li { display: flex; flex-direction: column; margin-bottom: 12px; }
.ps-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ps-tag { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: .82rem; font-weight: 700; }

/* Features */
.ps-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ps-feature { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); text-align: center; }
.ps-feature h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin: 14px 0 6px; }
.ps-feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.ps-feature-icon { width: 64px; height: 64px; border-radius: 20px; display: inline-grid; place-items: center; }
.ps-feature-icon svg { width: 32px; height: 32px; }
.ps-icon-1 { background: #FFF3D6; color: #d99a00; transform: rotate(-4deg); }
.ps-icon-2 { background: #FFE6E0; color: var(--brand); transform: rotate(3deg); }
.ps-icon-3 { background: #E2F3EF; color: var(--teal); transform: rotate(-2deg); }
.ps-icon-4 { background: #EEEAFE; color: #6b56e0; transform: rotate(4deg); }

/* Testimonials */
.ps-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.ps-quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); position: relative; }
.ps-quote blockquote { margin: 0 0 16px; font-size: 1.08rem; }
.ps-quote::before { content: "“"; position: absolute; top: -18px; left: 22px; font-family: var(--display); font-size: 4.5rem; line-height: 1; color: var(--brand); }

/* FAQ */
.ps-faq { display: grid; gap: 12px; }
.ps-faq-item { background: var(--cream); border-radius: 18px; border: 1px solid var(--line); }
.ps-faq-item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 800; position: relative; }
.ps-faq-item summary::-webkit-details-marker { display: none; }
.ps-faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.2rem; color: var(--brand); }
.ps-faq-item[open] summary::after { content: "–"; }
.ps-faq-a { padding: 0 22px 20px; color: var(--muted); }

/* Band */
.ps-band { background: linear-gradient(120deg, var(--teal), #1d8a85); color: #fff; border-radius: 32px; padding: 44px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--shadow); }
.ps-band p { margin: 0; opacity: .92; }

/* Layout helpers */
.ps-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.ps-aside { padding: 26px; position: sticky; top: 96px; }
.ps-rounded-img { border-radius: var(--radius); margin-bottom: 20px; }
.ps-program-row { border-bottom: 1px dashed var(--line); padding: 28px 0; }
.ps-program-row-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ps-class-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ps-class-list li { background: var(--cream); border-radius: 14px; padding: 12px 16px; }
.ps-job { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px dashed var(--line); }
.ps-job h2 a { color: var(--ink); text-decoration: none; }
.ps-empty { text-align: center; background: var(--cream); border-radius: var(--radius); padding: 40px; }
.ps-steps { padding-left: 1.2em; } .ps-steps li { margin-bottom: 8px; }

/* Forms */
.ps-form { padding: 30px; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.ps-field { display: flex; flex-direction: column; gap: 6px; }
.ps-field-wide { grid-column: 1 / -1; }
.ps-field label, .ps-field legend { font-weight: 800; font-size: .92rem; }
.ps-field input[type=text], .ps-field input[type=email], .ps-field input[type=date], .ps-field input[type=number], .ps-field input[type=file], .ps-field select, .ps-field textarea {
  font: inherit; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; width: 100%; }
.ps-field input:focus, .ps-field select:focus, .ps-field textarea:focus { border-color: var(--brand); }
.ps-field fieldset { border: 0; padding: 0; margin: 0; }
.ps-radios { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.ps-radio, .ps-check { display: inline-flex; gap: 10px; align-items: flex-start; font-weight: 600 !important; }
.ps-radio { background: var(--cream); padding: 10px 16px; border-radius: 999px; }
.ps-check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand); }
.ps-req { color: var(--brand); }
.ps-error { color: #b42318; font-size: .88rem; margin: 0; font-weight: 700; }
.has-error input, .has-error select, .has-error textarea { border-color: #f0a39a !important; }
.ps-alert { background: #FDECEA; color: #8a1c12; padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; font-weight: 700; }
.ps-form .ps-btn { margin-top: 22px; }
.ps-thanks { padding: 110px 0; }
.ps-thanks-badge { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 28px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 2.4rem; transform: rotate(-6deg); box-shadow: 6px 6px 0 var(--sun); }

/* Footer */
.ps-footer { background: #1f2a37; color: #e6ebf0; padding: 60px 0 24px; }
.ps-footer a { color: #fff; }
.ps-footer .ps-muted { color: #aab4bf; }
.ps-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ps-brand-footer { color: #fff; margin-bottom: 12px; }
.ps-footer-h { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin: 0 0 12px; color: #fff; }
.ps-footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ps-social { list-style: none; display: flex; gap: 14px; padding: 0; flex-wrap: wrap; }
.ps-footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .9rem; }
.ps-aside .ps-footer-list a { color: var(--teal); }

/* Responsive */
@media (max-width: 980px) {
  .ps-features { grid-template-columns: 1fr 1fr; }
  .ps-split { grid-template-columns: 1fr; }
  .ps-aside { position: static; }
}
@media (max-width: 860px) {
  .ps-menu-btn { display: block; }
  .ps-nav { display: none; position: absolute; left: 0; right: 0; top: 74px; background: var(--cream); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .ps-nav.is-open { display: flex; }
  .ps-nav ul { flex-direction: column; }
  .ps-hero { padding: 36px 0 90px; }
  .ps-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .ps-hero-art { max-width: 460px; margin: 0 auto; }
  .ps-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ps-cards { grid-template-columns: 1fr; }
  body.ps-body { font-size: 16px; }
  .ps-features, .ps-grid { grid-template-columns: 1fr; }
  .ps-section { padding: 56px 0; }
  .ps-band { padding: 32px 24px; }
  .ps-job { flex-direction: column; align-items: flex-start; }
  .ps-cta-row .ps-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
