/* ==========================================================================
   EdCircles shared styles
   Clean, minimal marketing site. One file, token driven.
   Edit the tokens below and the whole site follows.
   ========================================================================== */

:root {
  /* Grounds */
  --paper: #F7FFF7;
  --parchment: #E9F7F1;
  --hero-gradient: radial-gradient(circle at 50% 45%, #F7FFF7 0%, #E6F7F1 70%, #D9F1E8 100%);

  /* Ink */
  --ink: #292F36;
  --ink-soft: rgba(41, 47, 54, 0.72);
  --ink-faint: rgba(41, 47, 54, 0.5);
  --line: rgba(41, 47, 54, 0.14);

  /* Role colors */
  --library-fill: #4ECDC4;
  --library-text: #0F6660;
  --library-tint: #DDF5F1;
  --staffroom-fill: #FFE66D;
  --staffroom-text: #7A6200;
  --staffroom-tint: #FFF6CE;
  --classroom-fill: #FF6B6B;
  --classroom-text: #A62B2B;
  --classroom-tint: #FFE3E3;

  /* Type */
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  /* Shape */
  --radius: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(41, 47, 54, 0.06), 0 4px 12px rgba(41, 47, 54, 0.06);
  --shadow-lg: 0 4px 10px rgba(41, 47, 54, 0.08), 0 16px 36px rgba(41, 47, 54, 0.12);
  --container: 1120px;
}

/* Role theme classes: set on <body> to color role-aware components */
.theme-staffroom { --role-fill: var(--staffroom-fill); --role-text: var(--staffroom-text); --role-tint: var(--staffroom-tint); }
.theme-classroom { --role-fill: var(--classroom-fill); --role-text: var(--classroom-text); --role-tint: var(--classroom-tint); }
.theme-library   { --role-fill: var(--library-fill);   --role-text: var(--library-text);   --role-tint: var(--library-tint); }

/* ==========================================================================
   Base
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

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

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: calc(0.7rem - 1.5px) calc(1.5rem - 1.5px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 255, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 68px;
}
.wordmark {
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); border-bottom-color: var(--ink); }
.nav-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex: none;
}
.dot-staffroom { background: var(--staffroom-fill); }
.dot-classroom { background: var(--classroom-fill); }
.dot-library { background: var(--library-fill); }
.nav-cta { font-size: 0.95rem; padding: 0.55rem 1.25rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Home: hero with pie
   ========================================================================== */

.hero {
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  background: var(--library-fill);
  opacity: 0.22;
  top: -140px; right: -100px;
  animation: drift-a 16s ease-in-out infinite;
}
.hero::after {
  width: 360px; height: 360px;
  background: var(--classroom-fill);
  opacity: 0.16;
  bottom: -140px; left: -110px;
  animation: drift-b 20s ease-in-out infinite;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.2rem;
}
.hero-badge svg { width: 15px; height: 15px; }
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  letter-spacing: -0.01em;
}
.hero-sub {
  max-width: 52ch;
  margin-top: 1.1rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

/* The pie: EdCircles signature mark, each wedge links to its circle */
.pie-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.pie { width: min(100%, 400px); overflow: visible; display: block; }
.pie-caption { font-size: 0.9rem; color: var(--ink-faint); }
.wedge {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.wedge:hover, .wedge:focus-visible { transform: scale(1.03); filter: brightness(1.05); }
.wedge path { stroke: var(--paper); stroke-width: 3; }
.wedge text { font-family: var(--font-sans); pointer-events: none; }
.wedge-name { font-size: 10.5px; font-weight: 700; }
.wedge-sub { font-size: 9px; }
.pie-disc circle {
  fill: var(--paper);
  filter: drop-shadow(0 2px 6px rgba(41, 47, 54, 0.2));
}
.pie-disc text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 12.5px;
  fill: var(--ink);
}

/* ==========================================================================
   Shared section scaffolding
   ========================================================================== */

.section { padding: 4.5rem 0; }
.section-alt { background: var(--parchment); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.8rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.section-head p { margin-top: 0.8rem; color: var(--ink-soft); }

/* ==========================================================================
   Home: circle cards
   ========================================================================== */

.circle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.circle-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.circle-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.circle-card .eyebrow { margin-bottom: 1rem; }
.circle-card h3 { font-size: 1.35rem; }
.circle-card > p { margin-top: 0.5rem; font-size: 0.95rem; color: var(--ink-soft); }
.chip {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.circle-card:hover .chip,
.service-card:hover .chip { transform: scale(1.1) rotate(-5deg); }
.chip svg { width: 24px; height: 24px; }
.chip-staffroom { background: var(--staffroom-tint); color: var(--staffroom-text); }
.chip-classroom { background: var(--classroom-tint); color: var(--classroom-text); }
.chip-library { background: var(--library-tint); color: var(--library-text); }
.circle-links {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.circle-links a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.circle-links a:hover { color: var(--ink); text-decoration: underline; }
.circle-more {
  margin-top: 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.text-staffroom { color: var(--staffroom-text); }
.text-classroom { color: var(--classroom-text); }
.text-library { color: var(--library-text); }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--classroom-tint);
  color: var(--classroom-text);
}

/* ==========================================================================
   Home: featured service band
   ========================================================================== */

.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.featured-inner h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-top: 0.4rem; }
.featured-inner .lead { margin-top: 1rem; color: var(--ink-soft); }
.featured-inner .btn { margin-top: 1.6rem; }
.featured-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
}
.featured-card h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.98rem;
}
.check-list svg {
  width: 20px; height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--classroom-text);
}

/* ==========================================================================
   Home: value props and CTA band
   ========================================================================== */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.value-grid .chip { margin: 0 auto 1rem; }
.value-grid h3 { font-size: 1.15rem; }
.value-grid p { margin-top: 0.5rem; font-size: 0.95rem; color: var(--ink-soft); }

.cta-band {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-band::before {
  width: 340px; height: 340px;
  border: 2px solid rgba(78, 205, 196, 0.25);
  top: -150px; left: -110px;
}
.cta-band::after {
  width: 480px; height: 480px;
  border: 2px dashed rgba(247, 255, 247, 0.14);
  bottom: -230px; right: -160px;
  animation: spin-slow 70s linear infinite;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); }
.cta-band p { margin: 0.8rem auto 0; max-width: 55ch; opacity: 0.85; }
.cta-band .btn { margin-top: 1.8rem; background: var(--paper); color: var(--ink); }

/* ==========================================================================
   Zone pages (Staffroom, Classroom, Library)
   ========================================================================== */

.page-hero { background: var(--role-tint); }
.page-hero-inner { padding-top: 3.5rem; padding-bottom: 3.5rem; max-width: 720px; }
.page-hero .eyebrow { color: var(--role-text); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
.page-hero p { margin-top: 1rem; color: var(--ink-soft); max-width: 58ch; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-card .chip { background: var(--role-tint); color: var(--role-text); }
.service-card h3 { font-size: 1.15rem; }
.service-card p { margin-top: 0.45rem; font-size: 0.93rem; color: var(--ink-soft); flex: 1; }
.service-more {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--role-text);
}
.service-card .badge { position: absolute; top: 1.2rem; right: 1.2rem; }

/* ==========================================================================
   Item detail pages
   ========================================================================== */

.item-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 24px 4.5rem;
}
.item-main .eyebrow { color: var(--role-text); }
.item-main h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.item-main .lead { margin-top: 1.1rem; font-size: 1.05rem; }

.coming-soon {
  margin-top: 2.5rem;
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
}
.coming-soon h2 { font-size: 1.25rem; }
.coming-soon > p { margin-top: 0.5rem; font-size: 0.95rem; color: var(--ink-soft); }
.email-capture {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.email-capture input[type="email"] {
  flex: 1;
  min-width: 210px;
  padding: 0.65rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
}
.email-capture input[type="email"]:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.form-note {
  display: none;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--role-text, var(--ink));
}
.form-note.shown { display: block; }

/* ==========================================================================
   Career counselling page
   ========================================================================== */

.cc-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 4.5rem;
}
.cc-section { margin-top: 3rem; }
.cc-section h2 { font-size: 1.5rem; margin-bottom: 1rem; }

.counsellor-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.counsellor-photo {
  flex: none;
  width: 104px; height: 104px;
  border-radius: 50%;
  background: var(--role-tint);
  color: var(--role-text);
  display: grid;
  place-items: center;
}
.counsellor-details h3 { font-size: 1.1rem; }
.counsellor-details p { margin-top: 0.4rem; }
.placeholder-note {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-faint);
  background: var(--parchment);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.detail-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}
.detail-card h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--role-text);
}
.detail-card p { margin-top: 0.5rem; font-size: 0.95rem; }

.plain-note { margin-top: 1.2rem; font-size: 0.95rem; color: var(--ink-soft); }

.booking-embed {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--parchment);
  padding: 2.2rem 1.6rem;
  text-align: center;
}
.booking-embed > p { color: var(--ink-soft); }
.booking-embed .email-capture { justify-content: center; }
.booking-embed .email-capture input[type="email"] { flex: 0 1 280px; }

.trust-note {
  margin-top: 3rem;
  text-align: center;
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--ink);
  color: rgba(247, 255, 247, 0.8);
  margin-top: auto;
}
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--paper); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}
.footer .wordmark { color: var(--paper); }
.footer-tagline { margin-top: 0.8rem; font-size: 0.92rem; max-width: 30ch; }
.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.92rem;
}
.footer-bottom {
  border-top: 1px solid rgba(247, 255, 247, 0.15);
  padding-top: 1.4rem;
  padding-bottom: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .circle-grid, .service-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .featured-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .pie-figure { order: 2; }
  .pie { width: min(78vw, 330px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .hero-inner { padding-top: 2.8rem; padding-bottom: 3rem; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .circle-grid, .service-grid, .value-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .counsellor-card { flex-direction: column; text-align: center; }

  /* Collapsible nav */
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 24px 1.2rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; animation: menu-in 0.25s ease backwards; }
  .nav-link { width: 100%; padding: 0.7rem 0; border-bottom: 0; }
  .nav-cta { margin-top: 0.8rem; }
}

/* ==========================================================================
   Motion
   Entrance animations (.anim-*) play on page load; .reveal elements fade
   up when scrolled into view (class added by js/main.js). All motion is
   disabled for users who prefer reduced motion.
   ========================================================================== */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop-in {
  0% { opacity: 0; transform: scale(0.55); }
  70% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-45px, 35px) scale(1.1); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -30px) scale(1.06); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* Load-in sequence for above-the-fold content */
.anim-1, .anim-2, .anim-3, .anim-4 {
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.anim-1 { animation-delay: 0.05s; }
.anim-2 { animation-delay: 0.15s; }
.anim-3 { animation-delay: 0.25s; }
.anim-4 { animation-delay: 0.35s; }

/* The pie assembles wedge by wedge, then floats gently */
.pie { animation: float-y 7s ease-in-out 1.6s infinite; }
.pie a.wedge { animation: pop-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
.pie a.wedge:nth-of-type(1) { animation-delay: 0.35s; }
.pie a.wedge:nth-of-type(2) { animation-delay: 0.5s; }
.pie a.wedge:nth-of-type(3) { animation-delay: 0.65s; }
.pie-disc {
  transform-box: fill-box;
  transform-origin: center;
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.85s backwards;
}

/* Scroll-triggered reveals. Hidden states only apply once JS has tagged
   the document with .js, so content is never lost without JavaScript. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.in-view { opacity: 1; transform: none; }

/* Stagger cards inside grids */
.js .circle-grid .reveal:nth-child(2),
.js .service-grid .reveal:nth-child(2),
.js .value-grid .reveal:nth-child(2),
.js .featured-inner .reveal:nth-child(2) { transition-delay: 0.12s; }
.js .circle-grid .reveal:nth-child(3),
.js .service-grid .reveal:nth-child(3),
.js .value-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.js .service-grid .reveal:nth-child(4) { transition-delay: 0.12s; }
.js .service-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.js .service-grid .reveal:nth-child(6) { transition-delay: 0.36s; }

/* Micro-interactions */
.arrow { display: inline-block; transition: transform 0.2s ease; }
.service-card:hover .arrow,
.circle-more:hover .arrow { transform: translateX(5px); }
.btn:active { transform: translateY(0) scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Counsellor details */
.counsellor-role {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--role-text);
  margin-top: 0.15rem;
  margin-bottom: 0.5rem;
}
.counsellor-photo { overflow: hidden; }
.counsellor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ==========================================================================
   CPD catalogue page
   ========================================================================== */

.cat-hero {
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
}
.cat-hero::before,
.cat-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.cat-hero::before {
  width: 460px; height: 460px;
  background: var(--library-fill);
  opacity: 0.24;
  top: -160px; right: -120px;
  animation: drift-a 16s ease-in-out infinite;
}
.cat-hero::after {
  width: 380px; height: 380px;
  background: var(--staffroom-fill);
  opacity: 0.2;
  bottom: -160px; left: -120px;
  animation: drift-b 20s ease-in-out infinite;
}
.cat-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 4.5rem;
  padding-bottom: 4rem;
}
.cat-hero .eyebrow { color: var(--library-text); }
.cat-hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.5rem);
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.cat-sub {
  max-width: 56ch;
  margin-top: 1.1rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.prog-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}
.prog-chip {
  flex: 1;
  min-width: 230px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.prog-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.prog-chip-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--library-text);
}
.prog-chip strong { display: block; font-size: 0.95rem; }
.prog-chip small { display: block; font-size: 0.8rem; line-height: 1.35; color: var(--ink-soft); }

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.method-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.method-card h3 { font-size: 1.05rem; }
.method-card p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); }

.quote-band {
  max-width: 62ch;
  margin: 2.6rem auto 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
}

/* Programme sections with per-programme accents */
.prog-01 { --prog-accent: var(--classroom-fill); --prog-text: var(--classroom-text); --prog-tint: var(--classroom-tint); }
.prog-02 { --prog-accent: var(--library-fill);   --prog-text: var(--library-text);   --prog-tint: var(--library-tint); }
.prog-03 { --prog-accent: var(--staffroom-fill); --prog-text: var(--staffroom-text); --prog-tint: var(--staffroom-tint); }

.prog-head {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
}
.prog-head .eyebrow { color: var(--prog-text); margin-bottom: 0.3rem; }
.prog-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(4rem, 9vw, 6.5rem);
  line-height: 0.85;
  color: var(--prog-accent);
  opacity: 0.45;
  flex: none;
}
.prog h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.prog-lead { margin-top: 0.8rem; max-width: 62ch; color: var(--ink-soft); }
.prog-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.prog-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--prog-text);
  margin-bottom: 0.9rem;
}
.sessions { display: flex; flex-direction: column; gap: 1rem; }
.session-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--prog-accent);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.session-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.session-card h4 { font-family: var(--font-serif); font-size: 1.05rem; margin: 0 0 0.35rem; }
.session-card p { font-size: 0.93rem; color: var(--ink-soft); }
.produces {
  background: var(--prog-tint);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.produces ol {
  margin: 0;
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.bestfor {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
}
.bestfor strong { color: var(--prog-text); }

/* Four moves timeline */
.moves {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.moves-line {
  position: absolute;
  top: 22px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: var(--library-fill);
  opacity: 0.5;
}
.move { position: relative; z-index: 1; }
.move-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--library-fill);
  color: #0A4F49;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  box-shadow: 0 0 0 6px var(--paper);
}
.section-alt .move-num { box-shadow: 0 0 0 6px var(--parchment); }
.move h3 { font-size: 1.05rem; }
.move p { margin-top: 0.4rem; font-size: 0.9rem; color: var(--ink-soft); }

/* At a glance cards */
.glance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.glance-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--prog-accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.glance-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.glance-card h3 { font-size: 1.2rem; margin-bottom: 0.9rem; }
.glance-row { border-top: 1px solid var(--line); padding: 0.7rem 0; }
.glance-row h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--prog-text);
  margin: 0 0 0.2rem;
}
.glance-row p { font-size: 0.92rem; }

/* Delivery formats */
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.format-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.format-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.format-time {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--library-tint);
  color: var(--library-text);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.9rem;
}
.format-card h3 { font-size: 1.2rem; }
.format-card p { margin-top: 0.5rem; font-size: 0.93rem; color: var(--ink-soft); }
.format-note {
  margin: 2.2rem auto 0;
  max-width: 72ch;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Next steps inside the CTA band */
.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 2.4rem auto 0;
  text-align: left;
}
.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(78, 205, 196, 0.2);
  color: var(--library-fill);
  font-family: var(--font-serif);
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
}
.next-steps h3 { color: var(--paper); font-size: 1.1rem; }
.next-steps p { margin-top: 0.4rem; font-size: 0.92rem; opacity: 0.8; max-width: none; }
.cta-band .email-capture {
  justify-content: center;
  max-width: 540px;
  margin: 2.2rem auto 0;
}
.cta-band .form-note { color: var(--library-fill); }

/* Generic stagger for grids marked with .stagger */
.js .stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.js .stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.js .stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.js .stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }

/* Line that draws itself when scrolled into view */
.js .reveal.line-grow {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.js .reveal.line-grow.in-view { transform: scaleX(1); }

@media (max-width: 900px) {
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .moves { grid-template-columns: repeat(2, 1fr); }
  .moves-line { display: none; }
  .glance-grid, .format-grid { grid-template-columns: 1fr; }
  .prog-body { grid-template-columns: 1fr; }
  .next-steps { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (max-width: 640px) {
  .method-grid, .moves { grid-template-columns: 1fr; }
  .prog-head { gap: 1rem; }
}

/* ==========================================================================
   About, FAQ, Contact pages and CPD spotlight
   ========================================================================== */

/* Highlighted CPD nav item */
.nav-link-cpd {
  background: var(--library-tint);
  color: var(--library-text);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.95rem;
  border-bottom: 0;
}
.nav-link-cpd:hover { color: var(--library-text); filter: brightness(0.97); }
.nav-link-cpd.active { color: var(--library-text); border-bottom: 0; box-shadow: inset 0 0 0 1.5px var(--library-fill); }

/* Homepage CPD spotlight band */
.cpd-spotlight { padding: 2.4rem 0 0; }
.spotlight-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(120deg, var(--library-tint), var(--paper) 70%);
  border: 1px solid var(--line);
  border-left: 5px solid var(--library-fill);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.spotlight-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.spotlight-card h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.spotlight-card p { margin-top: 0.5rem; max-width: 58ch; font-size: 0.95rem; color: var(--ink-soft); }
.spotlight-card .btn { flex: none; }
.btn:hover .arrow { transform: translateX(4px); }

/* About page vision and mission */
.vm-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--library-text);
  margin-bottom: 0.4rem;
}
.mission { margin-top: 2rem; max-width: 620px; }
.mission-text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.5;
}
.quote-band a { color: var(--library-text); }

/* Testimonials */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.testi-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testi-card blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.testi-card figcaption strong { display: block; font-size: 0.95rem; }
.testi-card figcaption span { font-size: 0.85rem; color: var(--ink-faint); }

/* FAQ accordion */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.faq-item.open { box-shadow: var(--shadow-lg); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-icon {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--library-tint);
  color: var(--library-text);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--library-fill); color: #0A4F49; }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { padding: 0 1.3rem 1.2rem; font-size: 0.95rem; color: var(--ink-soft); }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  align-items: start;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h2 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.contact-form .field { width: 100%; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.contact-aside { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-aside a { color: var(--library-text); }

@media (max-width: 900px) {
  .spotlight-card { flex-direction: column; align-items: flex-start; }
  .testi-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
  .nav-link-cpd { padding: 0.5rem 0.95rem; }
}
