/* Aurora Management Academy — site styles.
   Hand-maintained. Content lives in content.json; run `node build/build.js`
   after editing it. */

:root {
  --accent: #C7A24C;
  --accent-hi: #d8b964;
  --navy: #0A2A43;
  --navy-deep: #08202F;
  --cream: #F6F4EF;
  --sand: #EFEBE2;
  --ink: #16242F;
  --body: #38444E;
  --muted: #4A5660;
  --meta: #6A7882;

  --serif: 'Source Serif 4', 'Noto Serif SC', Georgia, serif;
  --sans: 'Manrope', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1240px;
  --gutter: 32px;
  --section-y: clamp(80px, 10vw, 140px);
  --nav-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  /* `clip`, not `hidden`: overflow-x:hidden makes <body> a scroll container,
     which silently breaks position:sticky on the header. */
  overflow-x: clip;
}
/* height:auto is required alongside the width/height attributes on <img>, or the
   attribute height wins and any CSS aspect-ratio is ignored. */
img { display: block; max-width: 100%; height: auto; }
input, select, textarea, button { font-family: inherit; }
::selection { background: var(--accent); color: var(--navy); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--navy);
  padding: 12px 20px; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- bilingual visibility ----------
   Both languages are in the markup; `display: revert` restores whatever the
   element's natural display is (inline for span, block for select). */
.i18n { display: none; }
html[lang="zh-Hans"] .i18n[data-lang="zh"],
html[lang="en"] .i18n[data-lang="en"] { display: revert; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- shared type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
.eyebrow .rule { width: 26px; height: 1px; background: var(--accent); flex: none; }
.eyebrow-light { margin-bottom: 26px; }

.h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(28px, 3.6vw, 48px); line-height: 1.14;
  margin: 0; color: #fff; text-wrap: pretty;
}
.h2-navy { color: var(--navy); }
.lead { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 18px 0 0; }
.lead-narrow { max-width: 30em; margin-bottom: 36px; }
.prose { font-size: 17px; line-height: 1.78; color: var(--body); margin: 0 0 22px; }

.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-size: 15px; font-weight: 700; padding: 15px 30px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-hi); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); font-weight: 600; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }

.section { padding: var(--section-y) 0; }
.section-navy { background: var(--navy); color: #fff; }
.section-sand { background: var(--sand); }
.section-head { max-width: 760px; margin-bottom: 56px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,42,67,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  height: var(--nav-h); display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.mark {
  width: 30px; height: 30px; transform: rotate(45deg); flex: none;
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.mark-dot { width: 11px; height: 11px; background: var(--accent); }
.wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark-name {
  font-family: var(--serif); font-size: 16px; font-weight: 600;
  color: #fff; letter-spacing: 0.04em;
}
.wordmark-sub {
  font-size: 9.5px; letter-spacing: 0.32em; color: var(--accent); text-transform: uppercase;
}

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-link {
  color: rgba(255,255,255,0.82); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
}
.nav-link:hover { color: #fff; }
.nav-cta { font-size: 14px; padding: 10px 20px; }

.lang {
  display: flex; align-items: center; flex: none;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; overflow: hidden;
}
.lang-btn {
  border: none; cursor: pointer; font-size: 13px; font-weight: 700;
  padding: 7px 13px; letter-spacing: 0.02em;
  background: transparent; color: rgba(255,255,255,0.7);
}
html[lang="zh-Hans"] .lang-btn[data-set-lang="zh"],
html[lang="en"] .lang-btn[data-set-lang="en"] { background: var(--accent); color: var(--navy); }

.burger {
  display: none; width: 44px; height: 44px; flex: none;
  background: transparent; border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px; cursor: pointer; padding: 12px 10px;
}
.burger span {
  display: block; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 66vh; display: flex; align-items: center;
  background: var(--navy); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img {
  position: absolute; left: 0; top: -12%; width: 100%; height: 124%;
  object-fit: cover; object-position: center 50%; will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,42,67,0.78) 0%, rgba(10,42,67,0.32) 38%,
                              rgba(10,42,67,0.55) 70%, rgba(8,32,52,0.94) 100%);
}
.hero-inner { position: relative; padding-top: 96px; padding-bottom: 96px; width: 100%; }
.hero-title {
  font-family: var(--serif); font-weight: 600; color: #fff;
  font-size: clamp(32px, 4.4vw, 58px); line-height: 1.16;
  margin: 0 0 26px; max-width: 17em; text-wrap: pretty;
}
.hero-sub {
  color: rgba(255,255,255,0.86); font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6; max-width: 40em; margin: 0 0 38px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- about ---------- */
.grid-about {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.about-head { position: sticky; top: calc(var(--nav-h) + 36px); }
.about-head .h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.15; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 44px; padding-top: 40px; border-top: 1px solid rgba(10,42,67,0.12);
}
.stat-n {
  font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600; color: var(--navy); line-height: 1;
}
.stat-l { font-size: 13px; color: var(--meta); margin-top: 8px; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; padding: 38px 32px; display: flex; flex-direction: column;
}
.service-no { font-family: var(--serif); font-size: 15px; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.service-title { font-family: var(--serif); font-size: 23px; font-weight: 600; margin: 0 0 6px; color: #fff; line-height: 1.25; }
.service-sub { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 22px; }
.service-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.service-list li { display: flex; gap: 11px; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.84); }
.dash { color: var(--accent); flex-shrink: 0; margin-top: 1px; }

.domains { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.domains-label { font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; padding: 8px 17px; font-size: 13.5px; color: rgba(255,255,255,0.82); }

/* ---------- why ---------- */
.grid-why {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px); align-items: center;
}
.grid-why .h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.15; margin-bottom: 28px; }
.why-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; }
.why-img-2 { margin-top: 36px; }

/* ---------- programmes ---------- */
.progs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prog-card {
  display: block; text-align: left; margin: 0; padding: 0; border: none;
  background: var(--navy); position: relative; border-radius: 4px;
  overflow: hidden; cursor: pointer; font-family: inherit; color: #fff;
  transition: box-shadow .22s ease, transform .22s ease;
}
.prog-card:hover { box-shadow: 0 20px 44px -24px rgba(10,42,67,0.55); transform: translateY(-2px); }
.prog-cover { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.prog-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,42,67,0) 32%, rgba(10,42,67,0.92) 100%);
}
.prog-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 22px 20px; display: block; }
.prog-sub { display: block; font-size: 12px; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 8px; }
.prog-title { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.28; }
.prog-more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); }
.prog-more .arrow { color: var(--accent); }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6,20,32,0.72); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-panel {
  background: #fff; max-width: 860px; width: 100%; border-radius: 8px;
  overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0,0,0,0.6);
  position: relative; margin: auto; color: var(--ink);
}
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(10,42,67,0.55); color: #fff; font-size: 22px;
  line-height: 1; cursor: pointer; backdrop-filter: blur(6px);
}
.modal-close:hover { background: rgba(10,42,67,0.85); }
.modal-hero { position: relative; }
.modal-hero img { width: 100%; height: 300px; object-fit: cover; }
.modal-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,42,67,0.15) 40%, rgba(10,42,67,0.9) 100%);
}
.modal-head { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 40px 28px; color: #fff; }
.modal-sub { font-size: 12.5px; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 10px; }
.modal-title { font-family: var(--serif); font-size: clamp(22px, 2.8vw, 30px); font-weight: 600; line-height: 1.24; margin: 0; }
.modal-content { padding: 34px 40px 40px; }
.modal-desc { font-size: 16px; line-height: 1.85; color: var(--body); margin: 0 0 28px; }
.modal-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.modal-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
body.modal-open { overflow: hidden; }

/* ---------- vision / mission ---------- */
.vm-label { margin-bottom: 56px; }
.grid-vm { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); }
.vm { border-top: 2px solid var(--accent); padding-top: 30px; }
.vm-title { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; margin: 0 0 22px; }
.vm-body { font-size: 18px; line-height: 1.75; color: rgba(255,255,255,0.82); margin: 0; }

/* ---------- contact ---------- */
.grid-contact {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px); align-items: start;
}
.contact-lines { display: flex; flex-direction: column; gap: 16px; }
.contact-line { display: flex; align-items: center; gap: 13px; font-size: 15px; color: var(--body); }
.contact-line a { color: inherit; text-decoration: none; }
.contact-line a:hover { color: var(--navy); text-decoration: underline; }
.icon {
  width: 34px; height: 34px; flex: none; border: 1px solid rgba(10,42,67,0.18);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 15px;
}

.form {
  background: #fff; border: 1px solid rgba(10,42,67,0.1); border-radius: 6px;
  padding: 38px; box-shadow: 0 18px 50px -28px rgba(10,42,67,0.35);
  display: flex; flex-direction: column; gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-wrap { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 13px; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }
.field {
  border: 1px solid rgba(10,42,67,0.2); border-radius: 4px; padding: 12px 13px;
  font-size: 15px; color: var(--ink); font-weight: 400; outline: none;
  background: #fff; width: 100%;
}
.field:focus { border-color: var(--accent); }
textarea.field { resize: vertical; }
.form.is-hidden, .form-done[hidden] { display: none; }
.form-done {
  background: var(--navy); border-radius: 6px; padding: 60px 44px; color: #fff;
  min-height: 320px; display: flex; flex-direction: column; justify-content: center;
}
.form-done p { font-family: var(--serif); font-size: 24px; line-height: 1.4; margin: 0; }
.tick {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent);
  color: var(--navy); display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 24px;
}

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,0.62); padding: 64px 0 36px; }
.footer-top {
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
  align-items: start; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { max-width: 30em; }
.brand-footer { margin-bottom: 18px; }
.brand-footer .mark { width: 26px; height: 26px; }
.brand-footer .mark-dot { width: 9px; height: 9px; }
.brand-footer .wordmark-sub { display: none; }
.footer-tagline { font-size: 14.5px; line-height: 1.7; margin: 0; }
.footer-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.footer-contact { font-size: 14.5px; line-height: 1.9; color: rgba(255,255,255,0.78); }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-legal { padding-top: 26px; font-size: 13px; color: rgba(255,255,255,0.4); }

/* ================= responsive =================
   The original build had no media queries at all, so every grid stayed at its
   desktop column count down to 320px. */

@media (max-width: 1024px) {
  .services, .progs { grid-template-columns: repeat(2, 1fr); }
  .grid-about, .grid-why, .grid-contact { grid-template-columns: 1fr; }
  .about-head { position: static; }
  .why-images { max-width: 520px; }
  .nav-menu { gap: 20px; }
  .nav-link { font-size: 13.5px; }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }

  .burger { display: block; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px 20px 20px;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 15px; }
  .lang { align-self: flex-start; margin: 16px 0; }
  .nav-cta { text-align: center; padding: 14px 20px; }

  .hero { min-height: auto; }
  .hero-inner { padding-top: 64px; padding-bottom: 64px; }
  .hero-title { max-width: none; }
  .hero-cta .btn { flex: 1 1 auto; }

  .services, .progs, .grid-vm, .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .why-images { grid-template-columns: 1fr 1fr; max-width: none; }
  .why-img-2 { margin-top: 0; }

  .form { padding: 26px 22px; }
  .modal { padding: 0; }
  .modal-panel { border-radius: 0; min-height: 100%; }
  .modal-hero img { height: 210px; }
  .modal-head { padding: 24px 22px 20px; }
  .modal-content { padding: 24px 22px 32px; }
  .modal-photos { grid-template-columns: 1fr 1fr; gap: 8px; }

  .footer-top { flex-direction: column; gap: 32px; }
}

@media (max-width: 420px) {
  .wordmark-name { font-size: 14px; }
  .wordmark-sub { font-size: 8.5px; letter-spacing: 0.24em; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #hero-img { transform: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
