/* School landing page template
   Brand palette: #135f30, #144971, #921d25, #d0b62b, #b28b48 */
:root {
  --green: #135f30;
  --blue: #144971;
  --maroon: #921d25;
  --gold: #d0b62b;
  --bronze: #b28b48;
  --ink: #172b3a;
  --muted: #596774;
  --cream: #fbf8ef;
  --white: #fff;
  --shadow: 0 16px 45px rgba(20, 73, 113, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "DM Sans", Arial, sans-serif; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
/* Header content sits edge-to-edge within 100px desktop side margins. */
.topbar-inner { width: calc(100% - 200px); max-width: none; margin-inline: auto; }
.topbar { background: #fff; position: relative; z-index: 20; }
.topbar-inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.school-logo { display: block; width: auto; height: 100px; max-width: 100px; object-fit: contain; object-position: left center; flex: 0 0 auto; }
.footer-school-logo { height: 78px; max-width: 78px; object-position: left center; }
.brand-mark { width: 74px; height: 78px; display: grid; place-items: center; position: relative; flex: 0 0 auto; color: var(--gold); border: 3px solid var(--gold); border-radius: 48% 48% 42% 42%; outline: 2px solid var(--green); outline-offset: 3px; background: linear-gradient(145deg, var(--green), var(--blue)); clip-path: polygon(50% 0, 94% 15%, 88% 72%, 50% 100%, 12% 72%, 6% 15%); }
.brand-mark span { position: absolute; top: 1px; font-size: 17px; }
.brand-mark strong { font-size: 29px; filter: grayscale(1) brightness(0) invert(1); margin-top: 10px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 0 1 auto; }
.brand-name { color: #144971; font: 800 clamp(1.05rem, 2.05vw, 1.9rem)/1.15 "Playfair Display", Georgia, serif; letter-spacing: .005em; white-space: nowrap; }
.brand-tagline { display: flex; align-items: center; justify-content: center; text-align: center; align-self: stretch; width: 100%; box-sizing: border-box; color: #fff; background: #144971; font-size: .62rem; letter-spacing: .04em; white-space: nowrap; margin-top: 7px; padding: 6px 9px; border-radius: 3px; font-weight: 700; }
.top-contact { display: flex; align-items: center; gap: 22px; }
.top-contact a { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.top-contact a + a { border-left: 1px solid #ddd; padding-left: 22px; }
.round-icon, .contact-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; font-size: 1.15rem; flex: 0 0 auto; }
.maroon { background: var(--maroon); } .gold { background: var(--gold); color: var(--blue); } .bronze { background: var(--bronze); } .maroon-bg { background: var(--maroon) !important; }
.navbar { background: var(--green); color: #fff; position: sticky; top: 0; z-index: 15; box-shadow: 0 5px 16px #0b35231a; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; }
.nav-links { display: flex; align-items: stretch; gap: 2px; }
.nav-links a { padding: 17px 18px; font-size: .88rem; font-weight: 600; transition: background .2s; }
.nav-links a:hover, .nav-links a.active { background: var(--maroon); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 0; border-radius: 999px; padding: 13px 24px; font-weight: 800; font-size: .9rem; cursor: pointer; transition: transform .2s, box-shadow .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #0002; filter: brightness(1.03); }
.btn span { font-size: 1.2rem; line-height: 1; }
.btn-gold { background: var(--gold); color: #172b3a; }
.btn-maroon { background: var(--maroon); color: #fff; }
.nav-cta { padding: 10px 18px; white-space: nowrap; font-size: .82rem; }
.menu-toggle { display: none; border: 0; color: var(--green); background: transparent; font-size: 1.8rem; cursor: pointer; }
.hero { min-height: 560px; position: relative; isolation: isolate; background: #284d3b url("school.jpg?auto=format&fit=crop&w=2000&q=90") center 48% / cover no-repeat; color: #fff; display: flex; align-items: center; overflow: hidden; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 32, 25, .86) 0%, rgba(8, 40, 35, .64) 42%, rgba(8, 40, 35, .08) 100%); }
.hero-content { padding-block: 75px 95px; }
.eyebrow { text-transform: uppercase; color: var(--bronze); font-size: .82rem; font-weight: 800; letter-spacing: .16em; display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.eyebrow span, .footer-rule { display: inline-block; width: 48px; height: 2px; background: var(--gold); }
.eyebrow.light { color: #f5e8b0; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.15; margin-top: 0; }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.7rem); max-width: 680px; margin-bottom: 18px; letter-spacing: -.025em; }
h1 em, h2 em { color: var(--gold); font-style: normal; }
.hero-subtitle { font-size: 1rem; line-height: 1.8; margin: 0 0 26px; font-weight: 500; }
.hero-dots { display: flex; gap: 10px; margin-top: 32px; }
.hero-dots i { width: 10px; height: 10px; border: 2px solid #fff9; border-radius: 50%; }
.hero-dots i:first-child { background: var(--gold); border-color: var(--gold); }
.hero-ribbon { position: absolute; bottom: -55px; right: -3%; width: 44%; height: 110px; background: var(--green); border-top: 7px solid var(--gold); border-radius: 60% 0 0 0; transform: rotate(-3deg); }
.section-pad { padding-block: 76px; }
.about { background: linear-gradient(135deg, #fff 70%, #fbf8ef); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.about h2, .contact-panel h2, .location h2 { color: var(--green); font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 20px; }
.about h2 b { color: var(--maroon); }
.about-copy > p:not(.eyebrow) { color: var(--muted); margin: 0 0 12px; }
.about-copy .btn { margin-top: 15px; }
.about-photo-wrap { position: relative; padding: 0 0 25px 25px; }
.about-photo { width: 100%; height: 390px; object-fit: cover; border-radius: 48% 12px 48% 12px; position: relative; z-index: 1; box-shadow: var(--shadow); }
.photo-accent { position: absolute; z-index: 0; inset: 25px 20px 0 0; border: 8px solid var(--gold); border-radius: 48% 12px 48% 12px; }
.photo-caption { position: absolute; z-index: 2; bottom: 0; right: 0; background: var(--green); color: #fff; padding: 12px 20px; border-radius: 30px 0 0 0; font-size: .82rem; }
.photo-caption span { color: var(--gold); margin-right: 8px; }
.values { padding-top: 0; padding-bottom: 70px; background: #fff; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.value-card { display: grid; grid-template-columns: 86px 1fr; gap: 20px; padding: 32px; border-radius: 14px; align-items: start; }
.vision { background: #f0f5ef; } .mission { background: #fbf0ef; }
.value-icon { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--gold); color: var(--blue); font-size: 2.5rem; font-weight: 700; box-shadow: 0 7px 15px #0001; }
.value-card h3 { font-size: 1.65rem; color: var(--green); margin: 8px 0 10px; }
.mission h3 { color: var(--maroon); }
.mini-rule { display: block; width: 36px; height: 3px; background: var(--gold); margin-bottom: 16px; }
.value-card p { margin: 0; color: #485661; font-size: .92rem; }
.enquiry-contact { display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.enquiry-panel { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.enquiry-panel::after { content: "✦"; position: absolute; right: 5%; top: 4%; font-size: 14rem; color: #ffffff08; pointer-events: none; }
.panel-inner { width: min(590px, calc(100% - 60px)); margin-left: auto; padding: 65px 40px 60px 0; position: relative; z-index: 1; }
.enquiry-panel h2 { font-size: clamp(2rem, 3vw, 2.7rem); margin-bottom: 16px; }
.panel-intro { color: #e3edf2; font-size: .94rem; margin: 0 0 24px; }
#enquiry-form { display: grid; gap: 12px; }
#enquiry-form input, #enquiry-form select, #enquiry-form textarea { width: 100%; border: 1px solid #dbe2e8; border-radius: 7px; padding: 13px 15px; color: var(--ink); background: #fff; outline: none; }
#enquiry-form input:focus, #enquiry-form select:focus, #enquiry-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #d0b62b30; }
#enquiry-form textarea { resize: vertical; }
.submit-btn { justify-self: start; min-width: 220px; margin-top: 4px; }
.form-note { font-size: .76rem; color: #cbdbe6; margin: 0; }
.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; }
.contact-panel { background: linear-gradient(140deg, #fff 60%, #fbf8ef); }
.contact-inner { max-width: 590px; margin-right: auto; padding-left: 40px; }
.contact-panel h2 { margin-bottom: 16px; }
.contact-intro { color: var(--muted); margin-bottom: 30px; }
.contact-list { display: grid; gap: 24px; }
.contact-item { display: grid; grid-template-columns: 52px 1fr; gap: 17px; align-items: start; }
.contact-icon { width: 48px; height: 48px; font-size: 1.4rem; color: #fff; }
.contact-item h4 { margin: 0 0 3px; color: var(--blue); font-size: 1rem; }
.contact-item p { margin: 0; color: #52606c; font-size: .9rem; }
.contact-item a:hover { color: var(--maroon); text-decoration: underline; }
.location { background: #fbfaf6; }
.location h2 { margin-bottom: 6px; }
.location-sub { color: var(--muted); margin: 0 0 24px; }
.map-frame { height: 350px; overflow: hidden; border-radius: 12px; border: 1px solid #e1e5df; box-shadow: var(--shadow); background: #e9eee8; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.footer { background: var(--green); color: #fff; border-top: 7px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1.1fr; gap: 65px; padding-block: 58px; }
.footer-logo .brand-name { color: #fff; font-size: 1.3rem; }
.footer-logo .brand-tagline { color: #144971; background: #fff; font-size: .5rem; padding: 5px 7px; letter-spacing: .08em; }
.footer-logo .brand-mark { width: 61px; height: 65px; }
.footer-brand > p { max-width: 360px; color: #e1ebe3; font-size: .9rem; margin: 24px 0 18px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #ffffff70; border-radius: 50%; font-weight: 800; transition: background .2s; }
.socials a:hover { background: var(--maroon); border-color: var(--maroon); }
.footer h3 { font: 700 1.12rem "DM Sans", sans-serif; margin: 4px 0 12px; }
.footer-rule { margin-bottom: 18px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links a { color: #e1ebe3; font-size: .88rem; margin: 3px 0; }
.footer-links a:hover, .copyright a:hover { color: var(--gold); }
.footer-contact p { margin: 4px 0 18px; color: #e1ebe3; font-size: .86rem; }
.footer-contact p b { color: var(--gold); font-size: 1.1rem; margin-right: 8px; }
.copyright { border-top: 1px solid #ffffff40; font-size: .78rem; color: #dce8df; }
.copyright-inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; }
.copyright a { transition: color .2s; }

@media (max-width: 1200px) {
  .topbar-inner { width: calc(100% - 80px); }
}
@media (max-width: 980px) {
  .topbar-inner { width: calc(100% - 48px); }
  .school-logo { height: 100px; max-width: 100px; }
  .footer-school-logo { height: 72px; max-width: 72px; }
  .topbar-inner { min-height: 92px; }
  .top-contact { gap: 12px; }
  .top-contact a { font-size: .72rem; }
  .top-contact a + a { padding-left: 12px; }
  .round-icon { width: 36px; height: 36px; }
  .nav-links a { padding-inline: 11px; font-size: .8rem; }
  .nav-cta { padding-inline: 13px; }
  .about-grid { gap: 38px; }
  .panel-inner { padding-right: 25px; }
  .contact-inner { padding-left: 25px; }
  .footer-grid { gap: 30px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 32px, 600px); }
  .topbar-inner { width: calc(100% - 32px); min-height: 82px; gap: 12px; }
  .brand { gap: 10px; }
  .school-logo { height: 82px; max-width: 82px; }
  .brand-mark { width: 52px; height: 57px; }
  .brand-mark strong { font-size: 22px; }
  .brand-mark span { font-size: 12px; }
  .brand-name { font-size: clamp(.9rem, 2.6vw, 1.22rem); }
  .brand-tagline { font-size: .48rem; letter-spacing: .02em; padding-inline: 7px; }
  .top-contact { display: none; }
  .menu-toggle { display: block; }
  .navbar .nav-inner { min-height: 0; flex-wrap: wrap; padding-block: 8px; }
  .nav-links { display: none; width: 100%; flex-direction: column; order: 2; padding-bottom: 8px; }
  .navbar.open .nav-links { display: flex; }
  .nav-links a { padding: 11px 14px; border-radius: 5px; }
  .nav-cta { margin-left: auto; margin-right: 8px; }
  .hero { min-height: 540px; background-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, #082b24e8, #082b2499 70%, #082b2433); }
  .hero-content { padding-block: 65px 85px; }
  .hero h1 { font-size: clamp(2.35rem, 10vw, 3.6rem); }
  .hero-subtitle { font-size: .9rem; }
  .section-pad { padding-block: 54px; }
  .about-grid, .values-grid, .enquiry-contact { grid-template-columns: 1fr; }
  .about-grid { gap: 35px; }
  .about-photo { height: 300px; }
  .values { padding-top: 0; padding-bottom: 48px; }
  .value-card { grid-template-columns: 66px 1fr; padding: 24px 20px; gap: 16px; }
  .value-icon { width: 60px; height: 60px; font-size: 2rem; }
  .value-card h3 { font-size: 1.45rem; }
  .panel-inner { width: min(100% - 40px, 600px); margin: auto; padding: 48px 0; }
  .contact-inner { max-width: 600px; margin: auto; padding: 0; }
  .contact-panel { padding-block: 50px; }
  .contact-list { gap: 20px; }
  .map-frame { height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 25px; padding-block: 45px; }
  .footer-brand { grid-column: 1 / -1; }
  .copyright-inner { flex-direction: column; gap: 8px; }
}
@media (max-width: 420px) {
  .school-logo { height: 70px; max-width: 70px; }
  .brand-name { font-size: clamp(.7rem, 3.4vw, .92rem); line-height: 1.12; }
  .brand-tagline { font-size: .34rem; letter-spacing: 0; padding: 5px 4px; }
  .brand-mark { width: 46px; height: 51px; }
  .nav-cta { font-size: .75rem; padding: 9px 12px; }
  .hero h1 { font-size: 2.25rem; }
  .value-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .copyright-inner { font-size: .72rem; }
}


/* Alstonia World Academy identity updates */
.brand-name { letter-spacing: .005em; }
.brand-tagline { letter-spacing: .13em; }
.value-icon { border: 2px solid var(--bronze); }
.value-icon svg { width: 46px; height: 46px; fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.value-icon svg .icon-fill { fill: var(--blue); stroke: var(--blue); }
.mission-icon { background: var(--maroon) !important; border-color: var(--maroon); }
.mission-icon svg { stroke: #fff; }
.coming-soon { background: var(--maroon); color: #fff; border-top: 5px solid var(--gold); border-bottom: 5px solid var(--bronze); }
.coming-soon-inner { min-height: 112px; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 42px); text-align: center; }
.coming-soon p { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: clamp(1.4rem, 3.2vw, 2.5rem); letter-spacing: .01em; }
.coming-soon-star { color: var(--gold); font-size: 1.6rem; }
@media (max-width: 760px) {
  .brand-name { font-size: clamp(.7rem, 3.8vw, 1rem); }
  .brand-tagline { font-size: .34rem; letter-spacing: 0; padding-inline: 4px; }
  .coming-soon-inner { min-height: 90px; }
  .coming-soon-star { font-size: 1.1rem; }
}


/* Hero entrance and scroll-triggered section animations */
.hero-content > * {
  animation: heroRise 760ms cubic-bezier(.2,.7,.25,1) both;
}
.hero-content > *:nth-child(1) { animation-delay: 120ms; }
.hero-content > *:nth-child(2) { animation-delay: 280ms; }
.hero-content > *:nth-child(3) { animation-delay: 440ms; }
.hero-content > *:nth-child(4) { animation-delay: 600ms; }
.hero-content > *:nth-child(5) { animation-delay: 720ms; }

@keyframes heroRise {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.25,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.about-photo-wrap.reveal-on-scroll { transform: translate3d(28px, 0, 0); }
.about-photo-wrap.reveal-on-scroll.is-visible { transform: translate3d(0, 0, 0); }

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blue, #144971);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease, background 220ms ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--maroon, #921d25); }
.back-to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 760px) {
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal-on-scroll { opacity: 1; transform: none; }
}
