/* Other Schools: prospectus styling played completely straight.
   Palette: prospectus navy, brass, chalk, ink, stamp crimson. */

:root {
  --navy: #16233a;
  --navy-deep: #0f1929;
  --brass: #c6a14b;
  --brass-soft: #d9be7d;
  --chalk: #fbfaf6;
  --ink: #232a38;
  --muted: #5f6877;
  --stamp: #9e2b25;
  --rule: #e4e0d5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--chalk);
  line-height: 1.6;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Notice bar ---------- */

.notice-bar {
  background: var(--brass);
  color: var(--navy-deep);
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 1rem;
}

/* ---------- Masthead ---------- */

.masthead {
  background: var(--navy);
  color: var(--chalk);
  border-bottom: 3px solid var(--brass);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  flex-wrap: wrap;
}

.crest-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--brass);
}

.crest { width: 52px; height: 61px; flex-shrink: 0; }

.wordmark { display: flex; flex-direction: column; }

.wordmark-name {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: var(--chalk);
  line-height: 1.1;
}

.wordmark-motto {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--brass-soft);
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--chalk);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--brass-soft); }

.nav-contact {
  background: none;
  border: 1.5px solid var(--brass);
  color: var(--brass-soft);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.45rem 0.9rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-contact:hover { background: var(--brass); color: var(--navy-deep); }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--chalk);
  padding: 5.5rem 0 5rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 1.02;
  margin-bottom: 1.4rem;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 2.2rem;
  font-size: 1.1rem;
  color: #cfd6e2;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.8rem 1.6rem;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-gold { background: var(--brass); color: var(--navy-deep); }
.btn-gold:hover { background: var(--brass-soft); }

.btn-ghost { background: none; border-color: rgba(251,250,246,0.5); color: var(--chalk); }
.btn-ghost:hover { border-color: var(--chalk); }

.btn-navy { background: var(--navy); color: var(--chalk); }
.btn-navy:hover { background: var(--navy-deep); }

/* ---------- Stats ---------- */

.stats {
  background: var(--chalk);
  border-bottom: 1px solid var(--rule);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--navy);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ---------- Sections shared ---------- */

section { padding: 4.5rem 0; }

.section-heading {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.section-sub {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2.2rem;
}

/* ---------- News ---------- */

.news { background: #ffffff; border-bottom: 1px solid var(--rule); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.news-card {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brass);
  padding: 1.5rem 1.6rem 1.7rem;
  background: var(--chalk);
}

.news-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stamp);
  margin-bottom: 0.5rem;
}

.news-card h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.news-card p:last-child {
  font-size: 0.95rem;
  color: var(--ink);
}

/* ---------- About ---------- */

.about { background: var(--chalk); border-bottom: 1px solid var(--rule); }

.about-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-copy p { margin-bottom: 1rem; }

.about-quote {
  border-left: 3px solid var(--brass);
  padding: 0.4rem 0 0.4rem 1.4rem;
  align-self: center;
}

.about-quote blockquote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.about-quote figcaption {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Facilities ---------- */

.facilities { background: #ffffff; border-bottom: 1px solid var(--rule); }

.facilities-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem 2.5rem;
}

.facilities-list li {
  padding-left: 1.7rem;
  position: relative;
  font-size: 0.98rem;
}

.facilities-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--brass);
  font-weight: 700;
}

/* ---------- Testimonials ---------- */

.testimonials { background: var(--navy); color: var(--chalk); }

.testimonials .section-heading { color: var(--chalk); margin-bottom: 2.2rem; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.testimonial blockquote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #e7ebf2;
  margin-bottom: 0.9rem;
}

.testimonial figcaption {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--brass-soft);
}

/* ---------- Enrolment ---------- */

.enrolment { background: var(--chalk); text-align: center; }

.enrolment-inner { max-width: 640px; }

.enrolment-copy { font-size: 1.05rem; }

.stamp {
  display: inline-block;
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 1.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stamp);
  border: 4px solid var(--stamp);
  border-radius: 6px;
  padding: 0.35rem 1.3rem;
  transform: rotate(-4deg);
  margin: 1.4rem 0 1.6rem;
}

.enrolment-fine {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-deep);
  color: #b7bfcc;
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
}

.footer-name {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--chalk);
}

.footer-motto {
  font-style: italic;
  color: var(--brass-soft);
  margin: 0.2rem 0 0.6rem;
}

.footer-contact-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #b7bfcc;
  font-size: 0.875rem;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
}
.footer-contact-btn:hover { color: #ffffff; }

.footer-tia-link {
  color: #b7bfcc;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.footer-tia-link:hover { color: #ffffff; }

.footer-disclaimer {
  margin: 1.4rem 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 720px;
}

.footer-copy { color: #7d8697; }

/* ---------- Contact modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 41, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}

.modal {
  background: #ffffff;
  border-top: 4px solid var(--brass);
  border-radius: 4px;
  max-width: 460px;
  width: 100%;
  padding: 2rem;
  position: relative;
}

.modal h2 {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.modal label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.modal input,
.modal textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #cfd2d9;
  border-radius: 3px;
  margin-bottom: 1rem;
  background: var(--chalk);
}

.modal input:focus,
.modal textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--brass);
}

.modal textarea { min-height: 96px; resize: vertical; }

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.modal-close:hover { color: var(--ink); }

.modal-result {
  text-align: center;
  padding: 1rem 0 0.4rem;
}

.modal-result .tick {
  font-size: 2.2rem;
  color: var(--brass);
  display: block;
  margin-bottom: 0.6rem;
}

.modal-result p { margin-bottom: 0.5rem; }
.modal-result .fine { font-size: 0.85rem; color: var(--muted); }

/* ---------- Focus visibility ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .news-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
  .facilities-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .masthead-inner { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; }
  .hero { padding: 4rem 0 3.5rem; }
  section { padding: 3.2rem 0; }
}
