/* ajpe.com — Asia-Pacific Junior & Private Education
   Palette: navy #2B3074, gold #C4A265 (the rule in the logo), ivory #F8F5EE, grey #717A88, light #AEBBDA.
   Type: Bodoni Moda for headlines (matches the wordmark); Montserrat for text and interface (matches the descriptor and signature). */

:root {
  --navy: #2B3074;
  --navy-deep: #1F2358;
  --ink: #26294A;
  --grey: #717A88;
  --light: #AEBBDA;
  --gold: #C4A265;
  --gold-soft: #EADFC6;
  --ivory: #F8F5EE;
  --ivory-2: #F0EADC;
  --white: #FFFFFF;
  --line: #E4DED1;
  --line-cool: #DCE0EA;
  --font-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --font-text: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --max: 1160px;
  --gutter: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-text); font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--navy); line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-family: var(--font-text); font-weight: 600; font-size: 1rem; }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.15rem; line-height: 1.65; color: var(--ink); max-width: 38em; font-weight: 400; }
.muted { color: var(--grey); }
.small { font-size: .88rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
section { padding: 80px 0; }
section.ivory { background: var(--ivory); }
section.navy { background: var(--navy); color: var(--ivory); }
section.navy h2, section.navy h3 { color: var(--white); }
section.navy a { color: var(--white); text-decoration-color: var(--gold); }
.rule { width: 72px; height: 2px; background: var(--gold); border: 0; margin: 0 0 24px; }
.rule.center { margin-left: auto; margin-right: auto; }
.section-head { max-width: 42em; margin-bottom: 44px; }
.section-head p { font-size: 1.08rem; }
.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }
.center .lede { margin-left: auto; margin-right: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; padding: 13px 22px; font-family: var(--font-text); font-weight: 600; font-size: .9rem; letter-spacing: .02em; text-decoration: none; border: 1.5px solid var(--navy); cursor: pointer; line-height: 1.2; transition: background-color .15s, color .15s; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { background: var(--ivory); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.65); }
.btn-ghost-light:hover { border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btn-row { justify-content: center; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 11px; text-decoration: none; font-weight: 500; font-size: .86rem; color: var(--ink); letter-spacing: .01em; white-space: nowrap; }
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); }
.nav .btn { margin-left: 10px; padding: 10px 16px; }
.nav a.btn-primary { color: var(--white); }
.nav a.btn-primary:hover { background: var(--navy-deep); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); width: 44px; height: 44px; cursor: pointer; color: var(--navy); }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; margin: 5px auto; }

/* hero (frontispiece) */
.hero { padding: 72px 0 56px; text-align: center; background: var(--white); }
.hero h1 { max-width: 14em; margin: 0 auto .4em; }
.hero .lede { margin: 0 auto; }
.hero .meta { margin-top: 22px; font-size: .85rem; color: var(--grey); letter-spacing: .02em; }

/* the path: a child's schooling as a line, with AJPE's three services attached */
.path { padding: 56px 0 72px; background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.path-line { position: relative; margin: 36px 0 0; }
.path-line::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1.5px; background: var(--gold); }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.stages li { position: relative; padding-top: 34px; }
.stages li::before { content: ""; position: absolute; left: 0; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--navy); }
.stages li.major::before { background: var(--navy); }
.stages .age { font-size: .78rem; color: var(--grey); font-weight: 600; letter-spacing: .03em; }
.stages .stage { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); line-height: 1.1; margin: 4px 0 8px; }
.stages p { font-size: .88rem; margin: 0; color: var(--ink); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.services > div { padding: 32px 32px 0 0; border-right: 1px solid var(--line); margin-right: 32px; }
.services > div:last-child { border-right: 0; margin-right: 0; }
.services h3 { margin-bottom: 10px; }
.services .where { font-size: .8rem; color: var(--grey); font-weight: 600; letter-spacing: .04em; margin-bottom: 10px; }
.services p { font-size: .95rem; }
.services a.more { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--gold); font-size: .9rem; }
.services a.more:hover { border-color: var(--navy); }

/* two-column editorial */
.two { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.two .side h2 { margin-bottom: 16px; }
.prose { max-width: 40em; }
.prose p, .prose li { font-size: 1.02rem; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--navy); font-weight: 600; }

/* ruled lists (no cards) */
.ruled { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.ruled li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.ruled li h3, .ruled li h4 { margin: 0; }
.ruled li p { margin: 0; font-size: .96rem; }
.ruled.wide li { grid-template-columns: 300px 1fr; }
.navy .ruled, .navy .ruled li { border-color: rgba(255,255,255,.22); }
.navy .ruled li p { color: var(--ivory); }

/* process steps (a real sequence) */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.steps li { position: relative; padding-top: 40px; }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); line-height: 1; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { font-size: .95rem; margin: 0; }
.navy .steps li::before { color: var(--gold); }
.navy .steps p { color: var(--ivory); }

/* tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th, table.list td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-weight: 600; color: var(--grey); font-size: .78rem; letter-spacing: .03em; border-bottom: 1.5px solid var(--navy); }
table.list td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.list th.num { text-align: right; }
table.list tr.club-row td { padding-top: 22px; border-bottom: 0; }
table.list tr.club-row td .club { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); }
table.list tr.club-row td .where { font-size: .82rem; color: var(--grey); margin-left: 10px; }
table.list tr.club-row td .junior { font-size: .88rem; color: var(--ink); margin-top: 4px; max-width: 60em; }
table.list tr.class-row td { border-bottom: 1px solid var(--line); }
table.list tr.class-row:last-of-type td { border-bottom: 1px solid var(--line); }
table.list .na { color: var(--light); }
.source-note { font-size: .85rem; color: var(--grey); margin-top: 18px; max-width: 60em; }
table.schools td { font-size: .9rem; }
table.schools td:first-child { font-weight: 600; color: var(--navy); min-width: 180px; }
.yes { color: #2E7D5B; font-weight: 600; }
.no { color: var(--grey); }

/* notice */
.notice { border-left: 2px solid var(--gold); padding: 16px 22px; background: var(--ivory); font-size: .95rem; }
.notice strong { color: var(--navy); }
.navy .notice { background: rgba(255,255,255,.06); color: var(--ivory); }

/* pull quote */
blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.35; color: var(--white); }
blockquote footer { font-family: var(--font-text); font-size: .9rem; color: var(--light); margin-top: 18px; }

/* page head */
.page-head { background: var(--ivory); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 15em; }
.page-head .lede { margin-top: 14px; }
.crumbs { font-size: .82rem; color: var(--grey); margin-bottom: 20px; }
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs span { margin: 0 8px; color: var(--light); }

/* destinations */
.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dest-grid a { display: block; padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.dest-grid a:hover { background: var(--ivory); }
.dest-grid .region { font-size: .78rem; color: var(--grey); font-weight: 600; letter-spacing: .04em; }
.dest-grid .name { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); margin: 6px 0 8px; }
.dest-grid p { font-size: .92rem; margin: 0; }
.school-list { columns: 2; column-gap: 40px; padding-left: 1.1em; font-size: .95rem; }
.school-list li { break-inside: avoid; margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 20px; font-size: .95rem; }
.kv dt { color: var(--grey); font-weight: 600; font-size: .82rem; letter-spacing: .02em; }
.kv dd { margin: 0; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.plan { border-top: 1.5px solid var(--gold); padding-top: 22px; }
.plan .name { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); }
.plan .price { font-size: 1.6rem; font-weight: 600; color: var(--navy); margin: 8px 0 2px; }
.plan .price small { font-size: .85rem; font-weight: 500; color: var(--grey); }
.plan .for { color: var(--grey); font-size: .9rem; }
.plan ul { padding-left: 1.1em; margin: 14px 0 0; font-size: .93rem; }
.plan li { margin-bottom: 6px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); flex: none; font-weight: 400; }
details[open] summary::after { content: "–"; }
details .answer { padding-top: 10px; max-width: 46em; font-size: .98rem; }

/* forms */
form.std { display: grid; gap: 16px; }
form.std .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label.field { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--navy); }
label.field input, label.field select, label.field textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 12px; border: 1.5px solid var(--line); background: var(--white); width: 100%; }
label.field input:focus, label.field select:focus, label.field textarea:focus { border-color: var(--navy); outline: none; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
label.check input { margin-top: 4px; accent-color: var(--navy); }
.form-status { font-size: .95rem; padding: 12px 16px; display: none; }
.form-status.ok { display: block; background: #E7F3EC; color: #2E7D5B; }
.form-status.err { display: block; background: #FBE9E4; color: #9A3B22; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.sr-skip:focus { left: 8px; }

/* footer */
.site-footer { background: var(--navy); color: var(--ivory); padding: 64px 0 36px; font-size: .9rem; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 150px; width: auto; }
.foot-brand p { color: var(--light); margin-top: 20px; max-width: 30em; font-size: .9rem; }
.site-footer h4 { color: var(--white); margin-bottom: 14px; font-size: .82rem; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.foot-legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); color: var(--light); font-size: .82rem; display: grid; gap: 12px; }
.foot-legal strong { color: var(--white); font-weight: 600; }
.foot-legal .group { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* responsive */
@media (max-width: 1024px) {
  .stages { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: .95rem; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .brand img { height: 36px; }
  .path-line::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; }
  .stages { grid-template-columns: 1fr; gap: 20px; }
  .stages li { padding-top: 0; padding-left: 32px; }
  .stages li::before { top: 4px; }
  .services { grid-template-columns: 1fr; }
  .services > div { padding: 24px 0 8px; border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); }
  .services > div:last-child { border-bottom: 0; }
  .two, .plans { grid-template-columns: 1fr; }
  .ruled li, .ruled.wide li { grid-template-columns: 1fr; gap: 8px; }
  .steps { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: 1fr; }
  .school-list { columns: 1; }
  .kv { grid-template-columns: 1fr; }
  form.std .row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle { display: none !important; }
  body { font-size: 11pt; }
}
