/* ==========================================================================
   Public school website — Calm Pro theme
   Server-rendered, no framework. Prefixed .rds- so it never collides with the
   admin shell. Same palette as the admin: navy #16365c, blue #1d5fae,
   green #1a9e5c.
   ========================================================================== */
:root {
    --rds-navy: #16365c;
    --rds-deep-navy: #132f52;
    --rds-blue: #1d5fae;
    --rds-blue-tint: #e8f0fa;
    --rds-green: #1a9e5c;
    --rds-green-hover: #178a50;
    --rds-body: #425062;
    --rds-muted: #5c6b7e;
    --rds-faint: #9aa7b8;
    --rds-bg: #f7fafd;
    --rds-border: #e6eaf0;
    --rds-radius: 12px;
    --rds-font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.rds-site * { box-sizing: border-box; }
.rds-site { margin: 0; font-family: var(--rds-font); color: var(--rds-body); background: #fff; line-height: 1.55; }
.rds-site img { max-width: 100%; display: block; }
.rds-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.rds-site a { color: var(--rds-blue); text-decoration: none; }
.rds-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rds-green); }
.rds-section { padding: 64px 0; }
.rds-section--tint { background: var(--rds-bg); }
.rds-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.rds-h2 { font-size: 28px; color: var(--rds-navy); margin: 6px 0 0; font-weight: 700; }
.rds-lead { color: var(--rds-muted); max-width: 60ch; }
.rds-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; border: none; }
.rds-btn--green { background: var(--rds-green); color: #fff; }
.rds-btn--green:hover { background: var(--rds-green-hover); }
.rds-btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.rds-btn--navy { background: var(--rds-navy); color: #fff; }
.rds-link-arrow { font-weight: 600; color: var(--rds-blue); }

/* ── Top bar + header ───────────────────────────────────────────────────── */
.rds-topbar { background: var(--rds-deep-navy); color: #cfd9e6; font-size: 13px; }
.rds-topbar .rds-wrap { display: flex; align-items: center; gap: 20px; height: 40px; }
.rds-topbar a { color: #cfd9e6; }
.rds-topbar__spacer { margin-left: auto; }

.rds-header { border-bottom: 1px solid var(--rds-border); position: sticky; top: 0; background: #fff; z-index: 20; }
.rds-header .rds-wrap { display: flex; align-items: center; gap: 20px; height: 76px; }
.rds-brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 0 1 auto; }
.rds-brand__crest { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--rds-blue-tint); flex: none; }
/*
 * The name and motto are separate lines. They used to be inline spans, so a
 * school with a real tagline produced one very wide brand that wrapped onto a
 * second line and squeezed the nav into two rows. Stacking them keeps the
 * brand to the width of its longest line, and the ellipsis stops an unusually
 * long name doing the same thing.
 */
.rds-brand > span { display: flex; flex-direction: column; min-width: 0; }
.rds-brand__name { display: block; font-weight: 700; color: var(--rds-navy); font-size: 17px; line-height: 1.2; }
.rds-brand__motto { display: block; font-size: 12px; color: var(--rds-faint); line-height: 1.3; }
/* Truncation belongs to the header only; the footer reuses .rds-brand__name in
   a column where clipping the school name would be wrong. */
.rds-brand .rds-brand__name,
.rds-brand .rds-brand__motto { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rds-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; flex: none; }
/* A nav label must never break mid-phrase — "About Us" over two lines is what
   made the header look broken even once the brand behaved. */
.rds-nav a { color: var(--rds-navy); font-weight: 600; font-size: 15px; white-space: nowrap; }
.rds-nav a:hover { color: var(--rds-blue); }
.rds-nav__cta { margin-left: 6px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.rds-hero { position: relative; min-height: 520px; display: flex; align-items: center; background: linear-gradient(120deg, #1b3f6b, #4a6b93); color: #fff; overflow: hidden; }
.rds-hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,32,55,.82), rgba(15,32,55,.05)); }
.rds-hero__inner { position: relative; padding: 72px 0; max-width: 640px; }
.rds-hero__eyebrow { color: #8fe3b4; }
.rds-hero h1 { font-size: 44px; line-height: 1.1; margin: 12px 0 14px; font-weight: 700; }
.rds-hero p { font-size: 18px; color: #e2eaf4; margin: 0 0 26px; }
.rds-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.rds-hero__dots { position: absolute; bottom: 28px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; }
.rds-hero__dots i { width: 26px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.4); }
.rds-hero__dots i.is-on { background: var(--rds-green); }

/* ── About ──────────────────────────────────────────────────────────────── */
.rds-about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.rds-about__media { position: relative; }
.rds-about__photo { aspect-ratio: 4/3; border-radius: var(--rds-radius); background: var(--rds-blue-tint); width: 100%; object-fit: cover; }
.rds-about__badge { position: absolute; left: -18px; bottom: -18px; background: var(--rds-green); color: #fff; border-radius: var(--rds-radius); padding: 14px 18px; font-weight: 700; box-shadow: 0 10px 26px rgba(26,158,92,.3); }
.rds-chips { display: flex; gap: 16px; flex-wrap: wrap; margin: 18px 0; }
.rds-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--rds-navy); }
.rds-chip__tick { width: 22px; height: 22px; border-radius: 50%; background: #eaf6f0; color: var(--rds-green); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

/* ── Programmes / feature grid ──────────────────────────────────────────── */
.rds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rds-card { border: 1px solid var(--rds-border); border-radius: var(--rds-radius); overflow: hidden; background: #fff; }
.rds-card__photo { aspect-ratio: 16/10; background: var(--rds-blue-tint); }
.rds-card__body { padding: 18px; }
.rds-card__title { font-weight: 700; color: var(--rds-navy); margin: 0 0 6px; }
.rds-card__text { color: var(--rds-muted); font-size: 14px; margin: 0 0 12px; }
.rds-feature { padding: 22px; border: 1px solid var(--rds-border); border-radius: var(--rds-radius); }
.rds-feature__icon { width: 42px; height: 42px; border-radius: 10px; background: var(--rds-blue-tint); color: var(--rds-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 20px; }

/* ── Counters ───────────────────────────────────────────────────────────── */
.rds-counters { background: var(--rds-deep-navy); color: #fff; }
.rds-counters__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.rds-counters__num { font-family: "Spline Sans Mono", ui-monospace, monospace; font-size: 40px; font-weight: 700; color: #8fe3b4; }
.rds-counters__label { color: #b9c6d8; font-size: 14px; margin-top: 4px; }

/* ── Teachers ───────────────────────────────────────────────────────────── */
.rds-people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rds-person { text-align: center; }
.rds-person__photo { aspect-ratio: 1; border-radius: var(--rds-radius); background: var(--rds-blue-tint); object-fit: cover; width: 100%; }
.rds-person__name { font-weight: 700; color: var(--rds-navy); margin-top: 12px; }
.rds-person__role { color: var(--rds-faint); font-size: 13px; }

/* ── Announcements + gallery ────────────────────────────────────────────── */
.rds-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rds-notice { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rds-border); }
.rds-notice__date { flex-shrink: 0; width: 54px; text-align: center; background: var(--rds-blue-tint); border-radius: 10px; padding: 8px 0; color: var(--rds-blue); font-weight: 700; font-size: 13px; }
.rds-notice__title { font-weight: 600; color: var(--rds-navy); }
.rds-notice__text { color: var(--rds-muted); font-size: 14px; }
.rds-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rds-gallery__item { aspect-ratio: 1; border-radius: 10px; background: var(--rds-blue-tint); object-fit: cover; width: 100%; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.rds-faq__item { border-bottom: 1px solid var(--rds-border); }
.rds-faq__q { width: 100%; text-align: left; background: none; border: none; padding: 18px 0; font-size: 16px; font-weight: 600; color: var(--rds-navy); cursor: pointer; display: flex; justify-content: space-between; gap: 16px; }
.rds-faq__q[aria-expanded="true"] { color: var(--rds-blue); }
.rds-faq__a { padding: 0 0 18px; color: var(--rds-muted); max-width: 70ch; }
.rds-faq__a[hidden] { display: none; }

/* ── CTA band ───────────────────────────────────────────────────────────── */
.rds-cta { background: linear-gradient(120deg, var(--rds-blue), #2f74c7); color: #fff; border-radius: 18px; padding: 48px; text-align: center; }
.rds-cta h2 { font-size: 30px; margin: 0 0 8px; }
.rds-cta p { color: #e2eaf4; margin: 0 0 24px; }
.rds-cta .rds-btn { background: #fff; color: var(--rds-blue); }

/* ── Rich text / testimonials / video / downloads / contact ─────────────── */
.rds-prose { max-width: 720px; margin: 0 auto; }
.rds-prose h1, .rds-prose h2 { color: var(--rds-navy); }
.rds-prose img { border-radius: var(--rds-radius); margin: 18px 0; }
.rds-quote { border: 1px solid var(--rds-border); border-radius: var(--rds-radius); padding: 22px; }
.rds-quote__text { font-size: 16px; color: var(--rds-navy); font-style: italic; }
.rds-quote__who { margin-top: 12px; font-weight: 600; color: var(--rds-navy); font-size: 14px; }
.rds-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--rds-radius); overflow: hidden; background: #000; }
.rds-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rds-downloads { display: flex; flex-direction: column; gap: 10px; }
.rds-download { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border: 1px solid var(--rds-border); border-radius: var(--rds-radius); }
.rds-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rds-field { margin-bottom: 14px; }
.rds-field label { display: block; font-size: 13px; font-weight: 600; color: var(--rds-navy); margin-bottom: 5px; }
.rds-input { width: 100%; padding: 12px 14px; border: 1px solid #c9d4e0; border-radius: 10px; font-family: inherit; font-size: 15px; min-height: 44px; }
.rds-map { aspect-ratio: 16/9; border-radius: var(--rds-radius); overflow: hidden; background: var(--rds-blue-tint); }
.rds-map iframe { width: 100%; height: 100%; border: 0; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.rds-footer { background: var(--rds-deep-navy); color: #b9c6d8; padding: 56px 0 0; }
.rds-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.rds-footer h4 { color: #fff; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 14px; }
.rds-footer a { color: #b9c6d8; display: block; padding: 4px 0; }
.rds-footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; text-align: center; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 880px) {
    .rds-about, .rds-two-col, .rds-contact { grid-template-columns: 1fr; }
    .rds-grid, .rds-people { grid-template-columns: 1fr 1fr; }
    .rds-counters__grid { grid-template-columns: 1fr 1fr; }
    .rds-hero h1 { font-size: 32px; }
    .rds-nav { display: none; }
}
@media (max-width: 520px) {
    .rds-grid, .rds-people, .rds-gallery, .rds-footer__cols { grid-template-columns: 1fr; }
}
