:root {
  color-scheme: light;
  --navy: #102b5c;
  --orange: #ef8c24;
  --red: #c92f2b;
  --purple: #713b91;
  --ink: #263142;
  --muted: #5e6876;
  --cream: #fffaf1;
  --white: #ffffff;
  --line: #e7e8ec;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--navy);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--red);
}

a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  border-radius: 0.5rem;
  background: var(--navy);
  color: var(--white);
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--white);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem max(1.25rem, calc((100% - 1160px) / 2));
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

header > a {
  color: var(--navy);
  font-size: 1.2rem;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.8rem, 2vw, 1.8rem);
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.2rem;
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--red);
}

main {
  width: min(1160px, calc(100% - 2.5rem));
  margin: 2.5rem auto 4.5rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 7vw, 5.5rem);
  border-radius: 2rem;
  background: linear-gradient(125deg, #fff0d6 0%, #fffdf8 58%, #edf2ff 100%);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: -7rem;
  right: -4rem;
  width: 21rem;
  height: 21rem;
  border: 1.5rem solid rgb(239 140 36 / 14%);
  border-radius: 50%;
  content: "";
}

.hero p:first-child {
  margin: 0 0 0.5rem;
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.15;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.045em;
}

.hero p:not(:first-child) {
  max-width: 38rem;
  margin: 1.2rem 0 1.7rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.button {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--navy);
  color: var(--white);
}

main > section:not(.hero) {
  margin-top: 2rem;
}

#about {
  padding: 1.5rem 0.25rem;
}

#about p,
#programs > p,
#news p {
  max-width: 48rem;
  color: var(--muted);
}

.approach-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: var(--white);
}

.approach-intro > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.approach-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.approach-card {
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-top: 5px solid var(--orange);
  border-radius: 1rem;
  background: #fffdf9;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.approach-card:nth-child(2) {
  border-top-color: var(--purple);
}

.approach-card:nth-child(3) {
  border-top-color: var(--red);
}

.approach-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgb(16 43 92 / 8%);
}

.approach-number {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: #fff0d6;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.approach-card:nth-child(2) .approach-number {
  background: #f3ebf8;
  color: var(--purple);
}

.approach-card:nth-child(3) .approach-number {
  background: #fff0e9;
  color: var(--red);
}

.approach-card h3 {
  margin: 0.85rem 0 0.45rem;
  font-size: 1.1rem;
}

.approach-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.home-main #programs {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: var(--white);
}

.school-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.home-main .school-level {
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 6px solid var(--orange);
  border-radius: 1.25rem;
  background: #fffdf9;
}

.school-level + .school-level {
  border-top-color: var(--purple);
}

.school-level img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.school-level h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.4rem;
}

.school-level p {
  margin: 0;
  color: var(--muted);
}

.home-main #news {
  padding: 1.75rem 2rem;
  border-left: 6px solid var(--red);
  border-radius: 0 1.25rem 1.25rem 0;
  background: #fff0e9;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.news-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--white);
  box-shadow: 0 10px 24px rgb(16 43 92 / 6%);
}

.news-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card-content {
  padding: 1rem;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.news-type {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #edf2ff;
  color: var(--navy);
  font-weight: 800;
}

.news-card h3 {
  margin: 0.75rem 0 0.4rem;
  font-size: 1.2rem;
}

.news-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.news-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed #c7cbd2;
  border-radius: 0.9rem;
  color: var(--muted);
}

.news-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.home-main #gallery {
  padding: 1.5rem 0.25rem;
}

#gallery > p {
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--white);
  box-shadow: 0 12px 28px rgb(16 43 92 / 7%);
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-weight: 700;
}

footer {
  padding: 3rem max(1.25rem, calc((100% - 1160px) / 2));
  background: var(--navy);
  color: var(--white);
}

footer h2 {
  color: var(--white);
}

.footer-grid {
  display: grid;
  max-width: 1160px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: 0 auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgb(255 255 255 / 22%);
}

.footer-column {
  min-width: 0;
}

.footer-column h2 {
  margin-bottom: 0.9rem;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.footer-contact {
  display: grid;
  gap: 0.4rem;
  color: rgb(255 255 255 / 82%);
  font-style: normal;
}

.footer-contact a,
.footer-map,
.footer-facebook {
  overflow-wrap: anywhere;
}

.footer-map,
.footer-facebook {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 0.75rem;
  color: #ffd68c;
}

.footer-nav {
  display: block;
}

.footer-nav ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}

.footer-column p {
  margin: 0.2rem 0 0.75rem;
  color: rgb(255 255 255 / 78%);
}

.footer-contact-prompt {
  margin-top: 1rem !important;
}

.site-footer a:hover {
  color: #ffd68c;
}

.footer-bottom {
  display: flex;
  max-width: 1160px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding-top: 1.15rem;
}

.footer-bottom p {
  margin: 0;
}

address {
  font-style: normal;
}

.contact-details {
  display: grid;
  gap: 0.35rem;
}

.contact-details a {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

footer a {
  color: var(--white);
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
}

.map-link:hover {
  background: #ffd68c;
  color: var(--navy);
}

.home-main .contact-section {
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1.75rem;
  background: var(--navy);
  color: var(--white);
}

.contact-section h2 {
  color: var(--white);
}

.contact-section address a {
  color: var(--white);
}

.page-hero {
  margin-bottom: 2rem;
}

.contact-panels {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 1.5rem;
}

.contact-card,
.contact-form-card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--white);
}

.contact-card {
  background: linear-gradient(145deg, #ffffff 0%, #fff8ed 100%);
  box-shadow: 0 14px 32px rgb(16 43 92 / 8%);
}

.contact-card h2,
.contact-form-card h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.contact-card h2 {
  margin-bottom: 1.15rem;
}

.contact-methods {
  display: grid;
  gap: 0.75rem;
}

.contact-method {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

a.contact-method:hover {
  transform: translateY(-2px);
  border-color: #c8d2e0;
  box-shadow: 0 8px 18px rgb(16 43 92 / 8%);
  color: var(--ink);
}

.contact-method-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 2.8rem;
  place-items: center;
  border-radius: 0.9rem;
  background: #edf2ff;
  color: var(--navy);
}

.contact-icon-orange {
  background: #fff0d6;
  color: var(--red);
}

.contact-icon-purple {
  background: #f3ebf8;
  color: var(--purple);
}

.contact-method-icon svg,
.contact-action svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-method-copy {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.contact-method-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-method-value {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-weight: 700;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-action {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.92rem;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.contact-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: var(--white);
}

.contact-action-map {
  background: var(--orange);
  color: var(--navy);
}

.contact-action-map:hover {
  color: var(--navy);
}

.contact-action-facebook {
  background: var(--purple);
}

.facebook-mark {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--purple);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.contact-form-intro {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  min-width: 0;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field > label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-weight: 700;
}

.optional-label {
  color: var(--muted);
  font-size: 0.88em;
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #aeb7c3;
  border-radius: 0.6rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible,
.contact-consent input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.character-count {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-consent input {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin: 0.15rem 0 0;
  accent-color: var(--navy);
}

.contact-submit {
  margin-top: 1.2rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.form-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.honeypot {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.thank-you-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-secondary {
  background: var(--navy);
}

footer p {
  margin-top: 1.5rem;
  color: rgb(255 255 255 / 75%);
  font-size: 0.9rem;
}

.staff-login a {
  color: #ffd68c;
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.25rem 0.5rem;
  }

  nav a {
    padding: 0.45rem 0.55rem;
  }

  main {
    margin-top: 1.25rem;
  }

  .school-levels {
    grid-template-columns: 1fr;
  }

  .approach-section {
    grid-template-columns: 1fr;
  }

  .approach-cards {
    grid-template-columns: 1fr;
  }

  .contact-panels,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-field-full {
    grid-column: auto;
  }

  .school-level img {
    height: 200px;
  }

  #news {
    padding: 1.5rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  header {
    padding: 0.8rem 1rem;
  }

  header > a {
    font-size: 1.1rem;
  }

  main {
    width: calc(100% - 1.25rem);
    margin: 1rem auto 3rem;
  }

  .hero {
    padding: 1.5rem 1.25rem;
    border-radius: 1.25rem;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  #programs,
  #news,
  .approach-section {
    padding: 1.15rem;
  }

  .contact-card,
  .contact-form-card {
    padding: 1.15rem;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .school-level {
    padding: 1rem;
  }

  .school-level img {
    height: 180px;
  }

  footer {
    padding: 2.25rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Admission enquiry guide */
.admissions-question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admissions-question {
  min-width: 0;
  min-height: 8.5rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 1rem;
  background: #fffdf9;
}

.admissions-question:nth-child(2) {
  border-left-color: var(--purple);
}

.admissions-question:nth-child(3) {
  border-left-color: var(--red);
}

.admissions-question:nth-child(4) {
  border-left-color: var(--navy);
}

.admissions-question span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.admissions-question p {
  margin: 0.65rem 0 0;
  color: var(--ink);
  font-weight: 700;
}

.admissions-guide .button {
  margin-top: 1.2rem;
}

@media (max-width: 560px) {
  .admissions-question-list {
    grid-template-columns: 1fr;
  }

  .admissions-question {
    min-height: 0;
  }
}

/* Admission document checklist */
.admissions-document-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admissions-document {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fffdf9;
}

.admissions-document span {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  border-radius: 50%;
  background: #fff0d6;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
}

.admissions-document:nth-child(2) span {
  background: #f3ebf8;
  color: var(--purple);
}

.admissions-document:nth-child(3) span {
  background: #fff0e9;
  color: var(--red);
}

.admissions-document:nth-child(4) span {
  background: #eaf0fb;
  color: var(--navy);
}

.admissions-document p {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 560px) {
  .admissions-document-list {
    grid-template-columns: 1fr;
  }
}


/* Contact form submission feedback */
.form-note[data-state="sending"] {
  color: var(--navy);
  font-weight: 700;
}

.form-note[data-state="success"] {
  color: #176b41;
  font-weight: 700;
}

.form-note[data-state="error"] {
  color: #a32626;
  font-weight: 700;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}


/* Homepage refresh: school contact strip, photo-led welcome, and responsive intro */
.school-topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
}

.school-topbar-inner {
  display: flex;
  max-width: 1160px;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  margin: 0 auto;
  padding: 0.4rem 1.25rem;
}

.topbar-location,
.topbar-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
}

.topbar-label {
  color: #ffd68c;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar-contact a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.topbar-contact a:hover {
  color: #ffd68c;
}

.home-header {
  min-height: 88px;
  box-shadow: 0 5px 18px rgb(16 43 92 / 5%);
}

.home-header .site-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
}

.site-brand img {
  width: 3.3rem;
  height: 3.3rem;
  flex: 0 0 3.3rem;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.brand-copy {
  display: grid;
  gap: 0.12rem;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 1.05rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.home-header nav {
  align-items: center;
  gap: clamp(0.35rem, 1vw, 1rem);
}

.home-header nav a {
  min-height: 42px;
  padding: 0.45rem 0.6rem;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  transition: color 160ms ease, background-color 160ms ease;
}

.home-header nav a:hover {
  background: #f4f6fa;
}

.home-header nav a.nav-contact {
  padding-inline: 1rem;
  background: var(--red);
  color: var(--white);
}

.home-header nav a.nav-contact:hover {
  background: var(--navy);
  color: var(--white);
}

.home-main {
  margin-top: clamp(1.2rem, 3vw, 2rem);
}

.home-main > section:not(.hero) {
  margin-top: clamp(2.75rem, 6vw, 4.25rem);
}

.hero.home-hero {
  display: grid;
  min-height: 31rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgb(255 255 255 / 86%);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 94% 8%, rgb(113 59 145 / 9%) 0 11rem, transparent 11.1rem),
    linear-gradient(120deg, #fff2dc 0%, #fffdf8 50%, #eef2ff 100%);
  box-shadow: 0 24px 60px rgb(16 43 92 / 8%);
}

.hero.home-hero::after {
  top: auto;
  right: auto;
  bottom: -10rem;
  left: 34%;
  width: 18rem;
  height: 18rem;
  border-color: rgb(201 47 43 / 9%);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero.home-hero .hero-kicker {
  margin: 0 0 0.75rem;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero.home-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 5vw, 4.65rem);
  line-height: 1.04;
}

.hero.home-hero .hero-tagline {
  max-width: 33rem;
  margin: 1.2rem 0 1.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.25rem;
}

.hero-secondary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.hero-secondary-link span {
  color: var(--red);
  font-size: 1.2rem;
  transition: transform 160ms ease;
}

.hero-secondary-link:hover span {
  transform: translateX(3px);
}

.hero-place {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-place-dot,
.hero-level-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 0.55rem;
  border-radius: 50%;
  background: var(--orange);
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-photo-frame {
  position: relative;
  margin: 0;
  padding: 0.7rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 1.7rem;
  background: rgb(255 255 255 / 70%);
  box-shadow: 0 22px 44px rgb(16 43 92 / 14%);
  transform: rotate(1deg);
}

.hero-photo-frame .hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.2rem;
}

.hero-photo-frame figcaption {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  left: 0.7rem;
  display: grid;
  gap: 0.15rem;
  padding: 2.5rem 1rem 0.9rem;
  border-radius: 0 0 1.2rem 1.2rem;
  background: linear-gradient(transparent, rgb(9 23 49 / 80%));
  color: var(--white);
}

.hero-photo-frame figcaption span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-photo-frame figcaption strong {
  font-size: 1.05rem;
}

.hero-levels {
  position: absolute;
  top: -0.9rem;
  right: -0.7rem;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 12px 30px rgb(16 43 92 / 12%);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 800;
}

.hero-level-divider {
  color: var(--orange);
  font-size: 1.1rem;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.25rem);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--white);
  box-shadow: 0 14px 35px rgb(16 43 92 / 5%);
}

.home-intro-heading .section-kicker {
  margin-bottom: 0.55rem;
}

.home-intro-heading h2 {
  max-width: 12ch;
  margin-bottom: 0;
}

.home-intro-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.home-intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.home-intro-tags span {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf1;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.home-main #approach {
  border-color: #e9e2ef;
  box-shadow: 0 14px 35px rgb(16 43 92 / 5%);
}

.home-main #programs {
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px rgb(16 43 92 / 5%);
}

.home-main .school-level {
  box-shadow: 0 10px 26px rgb(16 43 92 / 5%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-main .school-level:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgb(16 43 92 / 10%);
}

.home-main #gallery {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--white);
}

.home-main #gallery .button {
  margin-top: 0.4rem;
}

.home-main #news {
  box-shadow: 0 14px 34px rgb(201 47 43 / 7%);
}

.home-main .contact-section {
  box-shadow: 0 18px 42px rgb(16 43 92 / 15%);
}

@media (max-width: 880px) {
  .home-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-header nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero.home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: 1.75rem;
    padding: clamp(1.5rem, 4vw, 2.75rem);
  }

  .hero.home-hero h1 {
    font-size: clamp(2.55rem, 6vw, 3.7rem);
  }

  .hero-levels {
    right: -0.35rem;
  }
}

@media (max-width: 620px) {
  .school-topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.65rem 1rem;
  }

  .topbar-contact {
    gap: 0.35rem 0.9rem;
    font-size: 0.78rem;
  }

  .home-header {
    padding: 0.75rem 1rem;
  }

  .home-header nav {
    gap: 0.25rem;
  }

  .home-header nav a {
    min-height: 40px;
    padding: 0.35rem 0.5rem;
    font-size: 0.84rem;
  }

  .home-header nav a.nav-contact {
    padding-inline: 0.8rem;
  }

  .home-main {
    width: calc(100% - 1.25rem);
    margin-top: 0.9rem;
  }

  .hero.home-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1.2rem;
    border-radius: 1.4rem;
  }

  .hero.home-hero h1 {
    max-width: 14ch;
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }

  .hero.home-hero .hero-tagline {
    margin-block: 0.9rem 1.2rem;
  }

  .hero-place {
    margin-top: 1.1rem;
  }

  .hero-photo-frame {
    transform: none;
  }

  .hero-levels {
    top: -0.65rem;
    right: 0.1rem;
    min-height: 42px;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
  }

  .home-intro {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .home-intro-heading h2 {
    max-width: none;
  }

  .home-main #programs,
  .home-main #gallery,
  .home-main #news,
  .home-main #approach,
  .home-main .contact-section {
    padding: 1.25rem;
  }

  .home-main #gallery {
    padding: 1.25rem;
  }
}


/* Friendly homepage placeholders while staff add real photos and updates */
.home-main .gallery-grid > p {
  display: flex;
  min-height: 7rem;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed #d5d9e2;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fffdf9, #f7f4fb);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.home-main .gallery-grid > p::before {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 2.4rem;
  place-items: center;
  border-radius: 50%;
  background: #fff0d6;
  color: var(--orange);
  content: "✦";
  font-size: 1.2rem;
}

.home-main #news .news-empty {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid #f0d8d2;
  background: rgb(255 255 255 / 82%);
  text-align: center;
}

.home-main #news .news-empty::before {
  color: var(--red);
  content: "✦";
  font-size: 1.1rem;
}
