:root {
  --ink: #1d6b3f;
  --ink-deep: #0e4328;
  --leaf: #258c55;
  --sage: #e7f2df;
  --mist: #f5f4ef;
  --paper: #fffdf9;
  --sun: #a5cf35;
  --apricot: #f6c45d;
  --wood: #b5794b;
  --line: rgba(24, 60, 58, .17);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Avenir, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink-deep); background: var(--paper); font-family: var(--sans); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--sun); color: var(--ink-deep); }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .65rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; }
.section-sm { padding: 3rem 0; }
.kicker { margin: 0 0 1rem; color: var(--apricot); font-weight: 700; letter-spacing: .03em; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
h1 { font-size: clamp(3.3rem, 8.2vw, 7.2rem); }
h2 { font-size: clamp(2.55rem, 5.2vw, 4.8rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.08; }
p { margin: 0 0 1rem; }
.lede { max-width: 680px; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.45; }
.small { font-size: .86rem; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; color: white; }
.site-header.inner { position: relative; background: var(--ink-deep); }
.nav { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid rgba(255,255,255,.25); }
.brand { display: inline-flex; align-items: center; padding: .5rem .7rem .65rem; color: var(--ink-deep); background: rgba(245, 250, 235, .96); border: 1px solid rgba(165, 207, 53, .55); border-top: 0; border-radius: 0 0 18px 18px; box-shadow: 0 10px 28px rgba(7, 35, 24, .16); text-decoration: none; }
.brand:hover { background: #fffdf9; }
.brand-logo-header { display: block; width: auto; height: 74px; }
.brand-logo-simple { width: 34px; height: 52px; object-fit: contain; }
.brand-logo-main { width: 210px; max-height: 145px; object-fit: contain; background: white; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { color: inherit; text-decoration: none; font-size: .9rem; }
.nav-links a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: .35rem; }
.nav-cta { padding: .72rem 1.1rem; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; }
.menu-btn { display: none; padding: .5rem; border: 0; color: white; background: transparent; }
.menu-btn span { display: block; width: 24px; height: 2px; margin: 5px; background: currentColor; }

.hero { min-height: 790px; position: relative; display: grid; align-items: end; overflow: hidden; color: white; background: var(--ink-deep); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,39,37,.91) 0%, rgba(11,39,37,.72) 34%, rgba(11,39,37,.16) 69%, rgba(11,39,37,.08)), url('montessori-classroom.png') center / cover; }
.hero::after { content: ""; position: absolute; right: -8rem; bottom: -11rem; width: 29rem; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.hero-content { position: relative; z-index: 2; padding: 11rem 0 5rem; }
.hero h1 { max-width: 820px; }
.hero .lede { margin: 2rem 0 2.2rem; max-width: 610px; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .85rem 1.4rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 700; cursor: pointer; }
.btn-primary { background: var(--sun); color: var(--ink-deep); }
.btn-primary:hover { background: #ffc66f; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: white; background: rgba(255,255,255,.04); }
.btn-dark { background: var(--ink); color: white; }
.hero-note { position: absolute; right: 0; bottom: 5rem; display: flex; align-items: center; gap: .8rem; max-width: 240px; font-size: .8rem; }
.hero-note::before { content: ""; width: 44px; height: 1px; background: var(--sun); }

.intro-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.intro-copy { padding-top: .65rem; }
.intro-copy h2 { max-width: 650px; }
.intro-detail { max-width: 560px; }
.intro-detail p { color: #37514f; }
.signature { margin-top: 2rem; padding-left: 1rem; border-left: 3px solid var(--sun); font-family: var(--serif); font-size: 1.12rem; }
.advantage-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 4rem; background: var(--line); border: 1px solid var(--line); }
.advantage { min-height: 240px; padding: 1.5rem; background: var(--paper); }
.advantage strong { display: block; margin-bottom: 1rem; font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
.advantage p { color: #526765; font-size: .86rem; }

.ib-candidate { color: white; background: linear-gradient(125deg, #0d3834, #1d594b); }
.ib-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.ib-candidate .kicker { color: var(--sun); }
.ib-candidate h2 { margin-top: 1.5rem; color: white; }
.candidate-label { display: inline-flex; margin-top: 1rem; padding: .55rem .9rem; border: 1px solid rgba(255,255,255,.48); border-radius: 999px; color: white; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ib-copy .lede { color: rgba(255,255,255,.9); }
.ib-copy > p:not(.lede) { color: rgba(255,255,255,.78); }
.ib-disclaimer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.24); font-size: .75rem; line-height: 1.65; }
.ib-disclaimer a { color: white; text-underline-offset: .2rem; }

.territories { background: var(--mist); }
.section-head { display: flex; justify-content: space-between; gap: 3rem; align-items: end; margin-bottom: 3rem; }
.section-head p { max-width: 450px; margin-bottom: .3rem; color: #536a67; }
.territory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.territory { min-height: 440px; position: relative; overflow: hidden; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: white; background: var(--ink); isolation: isolate; }
.territory::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .52; transition: transform .5s ease, opacity .5s ease; background: radial-gradient(circle at 75% 18%, rgba(243,183,99,.6), transparent 28%), linear-gradient(155deg, transparent 35%, rgba(221,127,92,.65)), repeating-linear-gradient(27deg, transparent 0 34px, rgba(255,255,255,.12) 35px 36px); }
.territory:nth-child(2)::before { background: radial-gradient(circle at 22% 78%, rgba(243,183,99,.55), transparent 25%), linear-gradient(145deg, transparent 38%, rgba(84,122,95,.85)), repeating-linear-gradient(-18deg, transparent 0 37px, rgba(255,255,255,.13) 38px 39px); }
.territory:nth-child(3)::before { background: radial-gradient(circle at 78% 75%, rgba(243,183,99,.6), transparent 27%), linear-gradient(150deg, transparent 36%, rgba(67,126,134,.8)), repeating-linear-gradient(65deg, transparent 0 41px, rgba(255,255,255,.12) 42px 43px); }
.territory:nth-child(4)::before { background: radial-gradient(circle at 25% 24%, rgba(151,202,62,.42), transparent 24%), linear-gradient(150deg, transparent 34%, rgba(46,105,75,.88)), repeating-radial-gradient(circle at 88% 88%, transparent 0 44px, rgba(255,255,255,.11) 45px 46px); }
.territory:hover::before { transform: scale(1.05); opacity: .8; }
.territory-top { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.tag { display: inline-flex; padding: .45rem .72rem; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; font-size: .76rem; }
.territory-icon { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; }
.territory h3 { font-size: clamp(2.4rem, 4vw, 4rem); }
.territory p { max-width: 30ch; color: rgba(255,255,255,.78); }
.text-link { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; text-decoration: none; }
.text-link::after { content: ""; width: 34px; height: 1px; background: currentColor; transition: width .25s ease; }
.text-link:hover::after { width: 54px; }
.availability-note { margin-top: 1.5rem; color: #536a67; font-size: .9rem; }

.current { background: var(--paper); }
.campus-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.campus { padding: 2rem; border-left: 1px solid var(--line); }
.campus:first-child { border-left: 0; padding-left: 0; }
.campus:last-child { padding-right: 0; }
.campus:nth-child(n+4) { border-top: 1px solid var(--line); }
.campus:nth-child(4) { border-left: 0; padding-left: 0; }
.campus .dot { display: inline-block; width: 9px; height: 9px; margin-right: .45rem; border-radius: 50%; background: var(--leaf); }
.campus h3 { margin: 1.8rem 0 .9rem; }
.campus address { color: #586b69; font-style: normal; }
.status { color: var(--leaf); font-size: .82rem; font-weight: 700; }
.status.coming { color: #a65335; }
.status.coming .dot { background: var(--apricot); }

.system { overflow: hidden; color: white; background: var(--ink-deep); }
.system-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 6rem; }
.system h2 { max-width: 550px; }
.support-list { border-top: 1px solid rgba(255,255,255,.22); }
.support-item { display: grid; grid-template-columns: 70px 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.support-item span { color: var(--sun); font-family: var(--serif); font-size: 1.6rem; }
.support-item h3 { font-family: var(--sans); font-size: 1.03rem; font-weight: 700; letter-spacing: 0; }
.support-item p { margin-top: .4rem; color: rgba(255,255,255,.68); font-size: .9rem; }

.path { background: var(--sage); }
.path-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 3rem; padding: 1px; background: rgba(24,60,58,.25); counter-reset: step; }
.path-step { min-height: 240px; padding: 1.5rem; background: var(--sage); counter-increment: step; }
.path-step::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 3rem; border-radius: 50%; background: var(--paper); font-family: var(--serif); }
.path-step h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.path-step p { margin-top: .7rem; color: #49605c; font-size: .9rem; }

.economics { background: var(--paper); }
.economics-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.economics-panel { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink-deep); color: white; }
.economic { min-height: 190px; padding: 2rem; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.economic:nth-child(even) { border-right: 0; }
.economic strong { display: block; color: var(--sun); font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 3rem); font-weight: 500; line-height: 1; }
.economic span { display: block; margin-top: .7rem; color: rgba(255,255,255,.72); font-size: .86rem; }
.fee-banner { grid-column: 1 / -1; padding: 1.25rem 2rem; background: var(--sun); color: var(--ink-deep); font-weight: 800; }

.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 6rem; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 1.5rem 3rem 1.5rem 0; cursor: pointer; list-style: none; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .5rem; top: 1.15rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { padding: 0 3rem 1.5rem 0; color: #526765; }

.inquiry { background: var(--apricot); }
.inquiry-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 6rem; }
.inquiry h2 { color: #fff9ec; }
.inquiry .lede { margin-top: 1.4rem; }
.form { padding: clamp(1.5rem, 4vw, 3rem); background: var(--paper); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field.consent { display: flex; align-items: flex-start; gap: .65rem; }
.field.consent input { width: 1rem; margin-top: .15rem; accent-color: var(--leaf); }
.field.consent label { font-weight: 500; line-height: 1.45; }
.form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
label { font-size: .8rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 0; border-bottom: 1px solid #8d9c99; border-radius: 0; padding: .75rem 0; color: var(--ink-deep); background: transparent; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(243,183,99,.45); outline-offset: 3px; }
.form .btn { margin-top: 1.6rem; }
.form .btn:disabled { cursor: wait; opacity: .65; }
.form-note { margin-top: 1rem; color: #687976; font-size: .75rem; }
.form-status { margin-top: .8rem; font-weight: 700; color: var(--leaf); }
.form-status.is-error { color: #9b2c2c; }
.form-status.is-success { color: var(--leaf); }

.site-footer { padding: 4rem 0 2rem; color: white; background: #092220; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 3rem; }
.footer-intro { max-width: 340px; color: rgba(255,255,255,.65); }
.footer-col h3 { margin-bottom: 1rem; font-family: var(--sans); font-size: .85rem; font-weight: 700; letter-spacing: 0; color: var(--sun); }
.footer-col a { display: block; margin: .45rem 0; text-decoration: none; color: rgba(255,255,255,.72); font-size: .87rem; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.5); font-size: .75rem; }

/* Location pages */
.location-hero { min-height: 660px; position: relative; display: grid; align-items: end; overflow: hidden; color: white; background: var(--ink-deep); }
.location-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 30%, rgba(243,183,99,.36), transparent 23%), repeating-radial-gradient(circle at 90% 40%, transparent 0 58px, rgba(255,255,255,.08) 59px 60px), linear-gradient(125deg, var(--ink-deep), #35675e); }
.location-hero.toronto::before { background: linear-gradient(90deg, rgba(13,42,41,.95), rgba(13,42,41,.52)), url('montessori-classroom.png') center / cover; }
.location-hero.mississauga::before { background: radial-gradient(circle at 74% 62%, rgba(243,183,99,.46), transparent 24%), repeating-linear-gradient(120deg, transparent 0 72px, rgba(255,255,255,.08) 73px 74px), linear-gradient(135deg, #173c3a, #396d73); }
.location-hero.markham-west::before { background: radial-gradient(circle at 25% 32%, rgba(151,202,62,.34), transparent 24%), repeating-radial-gradient(circle at 82% 42%, transparent 0 58px, rgba(255,255,255,.08) 59px 60px), linear-gradient(135deg, #123a32, #43705d); }
.location-hero .hero-content { padding-bottom: 4rem; }
.location-hero h1 { max-width: 980px; }
.location-meta { margin-top: 2rem; display: flex; gap: 2rem; flex-wrap: wrap; color: rgba(255,255,255,.72); }
.location-meta strong { color: white; }
.opportunity-band { background: var(--sun); }
.opportunity-band .wrap { display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding: 1.2rem 0; }
.opportunity-band p { margin: 0; font-weight: 700; }
.opportunity-band a { font-weight: 700; }
.market-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 6rem; }
.market-points { display: grid; gap: 1rem; }
.market-point { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.market-point:last-child { border-bottom: 1px solid var(--line); }
.market-point span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sage); font-family: var(--serif); }
.market-point h3 { margin-bottom: .35rem; font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.market-point p { color: #59706d; font-size: .9rem; }
.fit-panel { padding: clamp(2rem, 5vw, 4rem); background: var(--mist); }
.fit-panel h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.fit-list { margin: 2rem 0 0; padding: 0; list-style: none; }
.fit-list li { position: relative; padding: .8rem 0 .8rem 1.7rem; border-top: 1px solid var(--line); }
.fit-list li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 8px; height: 8px; border-radius: 50%; background: var(--apricot); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 86px; left: 20px; right: 20px; padding: 1.3rem; flex-direction: column; align-items: stretch; gap: 0; color: white; background: var(--ink-deep); box-shadow: 0 16px 30px rgba(0,0,0,.2); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem; }
  .nav-cta { margin-top: .5rem; text-align: center; }
  .intro-grid, .ib-grid, .system-grid, .faq-grid, .inquiry-grid, .market-grid { grid-template-columns: 1fr; gap: 3rem; }
  .territory-grid, .advantage-grid { grid-template-columns: 1fr; }
  .territory { min-height: 340px; }
  .campus-grid { grid-template-columns: 1fr; }
  .campus, .campus:first-child, .campus:last-child { padding: 2rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .campus:first-child { border-top: 0; }
  .path-grid { grid-template-columns: 1fr 1fr; }
  .economics-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-note { display: none; }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .brand-logo-header { width: auto; height: 60px; }
  .hero { min-height: 700px; }
  .hero::before { background: linear-gradient(0deg, rgba(11,39,37,.94), rgba(11,39,37,.28)), url('montessori-classroom.png') 63% center / cover; }
  .hero-content { padding-top: 9rem; }
  h1 { font-size: clamp(3.2rem, 16vw, 4.8rem); }
  .path-grid, .footer-grid, .form-grid, .economics-panel { grid-template-columns: 1fr; }
  .path-step { min-height: 210px; }
  .economic { border-right: 0; }
  .section-head, .footer-bottom, .opportunity-band .wrap { align-items: start; flex-direction: column; }
  .field.full { grid-column: auto; }
  .location-meta { gap: .8rem; flex-direction: column; }
}
