/* ============================================================
   Victoriashire — Direction B "International-school credibility"
   Deep sky blue as the dominant surface, warm beige, a brass
   hairline system, Fraunces serif display + Inter body. Institutional,
   academic, premium. Signature: a heritage seal for the 50 years.
   ============================================================ */

:root {
  --sky: #2B6585;        /* dominant deep sky-blue surface */
  --sky-deep: #1E4A63;   /* topbar / footer */
  --beige: #EDE3D1;      /* warm beige tint bands */
  --cream: #F7F3EA;      /* page base */
  --paper: #FCFAF4;      /* cards */
  --brass: #B08A3E;
  --brass-deep: #8A6C2E;
  --ink: #1F2C34;
  --ink-soft: #566571;
  --line: rgba(31, 44, 52, .16);
  --line-light: rgba(255, 255, 255, .22);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.2rem, 4vw, 2.6rem);
  --section-y: clamp(3.5rem, 6vw, 5.5rem);
  --r: 8px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 24px 60px -30px rgba(20, 52, 70, .5);
  --shadow-sm: 0 10px 30px -18px rgba(20, 52, 70, .4);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.04rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; color: var(--ink); letter-spacing: -0.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; } p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
[id] { scroll-margin-top: 90px; }

.kicker {
  display: inline-block;
  font-family: var(--sans); font-weight: 600;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: 1rem;
}
.kicker--light { color: var(--brass); }
.rule { display: block; width: 54px; height: 2px; background: var(--brass); margin: 1.4rem auto; }
.lede { font-size: 1.14rem; color: var(--ink-soft); max-width: 56ch; }
.lede--center { margin-inline: auto; }

.sec-head { margin-bottom: 2.8rem; }
.sec-head--center { text-align: center; }
.sec-head--center .lede { margin-inline: auto; }
.sec-head h2 { max-width: 22ch; }
.sec-head--center h2 { margin-inline: auto; }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 2000; background: var(--sky); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r); font-weight: 600; transition: top .2s ease; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: opacity .3s ease; transform: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em;
  padding: .85rem 1.6rem; border-radius: var(--r);
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brass); color: var(--brass-deep); }
.btn-line-light { background: transparent; color: #fff; border-color: var(--line-light); }
.btn-line-light:hover { border-color: var(--brass); color: var(--brass); }

.arrow-link { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--sans); font-weight: 600; color: var(--brass-deep); }
.arrow-link span { transition: transform .25s var(--ease); }
.arrow-link:hover span { transform: translateX(5px); }

/* ---------- topbar ---------- */
.topbar { background: var(--sky-deep); color: rgba(255,255,255,.85); font-size: .82rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; min-height: 40px; }
.topbar-note { letter-spacing: .02em; }
.topbar-links { display: inline-flex; gap: 1.6rem; }
.topbar-links a { font-weight: 500; }
.topbar-links a:hover { color: var(--brass); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 900; background: rgba(247, 243, 234, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 1.4rem; min-height: 74px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-logo { height: 46px; width: auto; }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; letter-spacing: -0.01em; color: var(--sky); }
.brand-sub { font-family: var(--sans); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-top: .1rem; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { font-family: var(--sans); font-weight: 500; font-size: .92rem; color: var(--ink); padding-block: .3rem; border-bottom: 1.5px solid transparent; transition: border-color .2s ease, color .2s ease; }
.nav a:hover { color: var(--brass-deep); border-color: var(--brass); }
.head-cta { flex: none; }
@media (max-width: 900px) { .nav { display: none; } .head-cta { margin-left: auto; } }
@media (max-width: 520px) { .brand-sub { display: none; } .topbar-note { display: none; } .topbar-in { justify-content: center; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 780px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,52,70,.92) 0%, rgba(20,52,70,.78) 42%, rgba(20,52,70,.32) 100%); }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(3rem, 8vw, 6rem); max-width: 46rem; }
.hero-eyebrow { font-family: var(--sans); font-weight: 600; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.4rem; }
.hero h1 { color: #fff; }
.hero-sub { font-size: 1.18rem; color: rgba(255,255,255,.88); max-width: 40ch; margin-top: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-creds { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin-top: 2.4rem; padding-top: 1.5rem; border-top: 1px solid var(--line-light); }
.hero-creds li { position: relative; padding-left: 1.4rem; font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.82); }
.hero-creds li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; background: var(--brass); border-radius: 50%; }

/* ---------- statement ---------- */
.statement { background: var(--paper); text-align: center; padding-block: clamp(3.5rem, 7vw, 6rem); }
.statement-inner { max-width: 1000px; }
/* heading holds a single line on desktop; the clamp scales it with the viewport */
.statement h2 { margin-inline: auto; white-space: nowrap; }
.statement p { font-size: 1.22rem; line-height: 1.7; color: var(--ink); max-width: 78ch; margin-inline: auto; }
@media (max-width: 820px) { .statement h2 { white-space: normal; } }

/* ---------- curriculum ---------- */
.cur-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.cur-copy .lede { margin: 1rem 0 2.4rem; }
.cur-list { display: grid; gap: 0; }
.cur-item { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 1.6rem 0; border-top: 1px solid var(--line); align-items: start; }
.cur-item:last-child { border-bottom: 1px solid var(--line); }
.cur-num { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--brass); line-height: 1; padding-top: .1rem; min-width: 1.6rem; }
.cur-item h3 { margin-bottom: .4rem; }
.cur-item p { color: var(--ink-soft); font-size: .98rem; }
.cur-media { position: sticky; top: 96px; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.cur-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.cur-media figcaption { background: var(--sky); color: rgba(255,255,255,.85); font-size: .84rem; padding: .8rem 1.1rem; }

/* ---------- the difference ---------- */
.difference { background: var(--beige); }
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 4vw, 3rem); }
.diff-col { padding-top: 1.4rem; border-top: 2px solid var(--brass); }
.diff-col h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.diff-col p { color: var(--ink-soft); }

/* ---------- programmes ---------- */
.prog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.prog-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.prog-media { aspect-ratio: 4 / 3; overflow: hidden; }
.prog-media img { width: 100%; height: 100%; object-fit: cover; }
.prog-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.prog-age { font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); }
.prog-body h3 { font-size: 1.24rem; }
.prog-body p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.prog-card--text { background: var(--beige); border-color: transparent; }
.prog-card--text .arrow-link { margin-top: .6rem; }

/* ---------- shop ---------- */
.shop-price { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--sky); }
.essentials { margin-top: clamp(2.4rem, 5vw, 3.4rem); background: var(--beige); border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.2rem); }
.essentials-title { font-size: 1.15rem; margin-bottom: .8rem; }
.essentials-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 2.4rem; }
.essentials-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.essentials-price { font-family: var(--serif); font-weight: 500; color: var(--sky); white-space: nowrap; }

/* ---------- figures ---------- */
.figures { background: var(--sky); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem); }
.fig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.fig { display: flex; flex-direction: column; gap: .6rem; position: relative; }
.fig-num { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.7rem); line-height: 1; color: var(--brass); }
.fig-label { font-family: var(--sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); }
@media (min-width: 741px) { .fig + .fig::before { content: ""; position: absolute; left: -1rem; top: 8%; height: 84%; width: 1px; background: var(--line-light); } }

/* ---------- feature band ---------- */
.feature-band { position: relative; overflow: hidden; color: #fff; }
.feature-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,52,70,.82), rgba(20,52,70,.7)); }
.feature-inner { position: relative; text-align: center; padding-block: clamp(4rem, 9vw, 7rem); max-width: 820px; }
.feature-inner blockquote { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.3; color: #fff; }
.feature-attr { margin-top: 1.6rem; font-family: var(--sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }

/* ---------- voices ---------- */
.voices { background: var(--beige); }
.voices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.voice { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 2.2rem 2rem; margin: 0; }
.voice blockquote { margin: 0 0 1.4rem; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.45; color: var(--ink); }
.voice blockquote::before { content: "\201C"; color: var(--brass); font-family: var(--serif); font-size: 2.2rem; line-height: 0; vertical-align: -.3em; margin-right: .08em; }
.voice figcaption { display: flex; flex-direction: column; }
.v-name { font-family: var(--sans); font-weight: 600; color: var(--ink); }
.v-role { font-family: var(--sans); font-size: .88rem; color: var(--ink-soft); }

/* ---------- enquire ---------- */
.enquire { background: var(--sky); color: #fff; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.enquire-inner { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.enquire-copy h2 { color: #fff; margin: .2rem 0 1rem; }
.enquire-copy > p { color: rgba(255,255,255,.85); max-width: 48ch; }
.enquire-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.2rem; }
.enquire-addr { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line-light); }
.enquire-addr p { color: rgba(255,255,255,.78); font-size: .9rem; line-height: 1.55; }
.enquire-addr strong { color: #fff; }
.enquire-seal { display: flex; justify-content: center; }
.seal { color: var(--brass); width: min(200px, 58%); height: auto; }
.seal text { fill: currentColor; font-family: var(--sans); }
/* sized so the text always clears the inner ring */
.seal-top, .seal-bot { font-size: 9px; letter-spacing: 2px; font-weight: 600; }
.seal-big { font-family: var(--serif); font-size: 44px; font-weight: 400; letter-spacing: 0; }
@media (max-width: 820px) { .enquire-inner { grid-template-columns: 1fr; } .enquire-seal { order: -1; justify-content: flex-start; } .seal { width: 150px; } }

/* ---------- footer ---------- */
.site-foot { background: var(--sky-deep); color: rgba(255,255,255,.72); padding-block: 3.4rem 1.8rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.4rem; }
.foot-brand .brand-name { color: #fff; font-size: 1.5rem; display: block; margin-bottom: .8rem; }
.foot-brand p { color: rgba(255,255,255,.7); max-width: 34ch; }
.foot-lang { color: var(--brass); margin-top: 1rem; font-size: .9rem; letter-spacing: .04em; }
.foot-col h4 { font-family: var(--sans); font-weight: 600; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 1rem; }
.foot-col li { font-size: .92rem; margin-bottom: .55rem; color: rgba(255,255,255,.75); }
.foot-col a:hover { color: var(--brass); }
.foot-bottom { margin-top: 2.8rem; padding-top: 1.3rem; border-top: 1px solid var(--line-light); font-size: .84rem; color: rgba(255,255,255,.55); }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 440px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .cur-grid { grid-template-columns: 1fr; }
  .cur-media { position: static; order: -1; max-width: 520px; }
  .cur-media img { aspect-ratio: 16 / 10; }
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 720px) {
  .fig-grid { grid-template-columns: repeat(2, 1fr); gap: 2.4rem; }
  .voices-grid { grid-template-columns: 1fr; }
  .enquire-addr { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .prog-grid { grid-template-columns: 1fr; }
  .fig-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WhatsApp front-desk bot (brand greens kept; calmed container)
   ============================================================ */
.wa-root { position: fixed; bottom: 20px; right: 20px; z-index: 1500; display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.wa-nudge { max-width: 232px; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; box-shadow: var(--shadow); padding: .75rem 1rem; font-size: .88rem; text-align: left; color: var(--ink); opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .35s ease, transform .35s var(--ease); pointer-events: none; }
.wa-nudge strong { font-weight: 600; }
.wa-nudge.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-root.open .wa-nudge { display: none; }
.wa-launcher { position: relative; width: 60px; height: 60px; border-radius: 50%; color: #fff; background: #128C7E; box-shadow: 0 12px 30px -8px rgba(18,140,126,.6); display: grid; place-items: center; transition: transform .2s var(--ease); }
.wa-launcher:hover { transform: scale(1.06); }
.wa-ping { position: absolute; inset: 0; border-radius: 50%; background: #25D366; opacity: .25; animation: waPing 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes waPing { 75%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-root.open .wa-ping { display: none; }
@media (prefers-reduced-motion: reduce) { .wa-ping { animation: none; } }
.wa-ico { position: absolute; display: grid; place-items: center; transition: opacity .2s ease, transform .3s var(--ease); }
.wa-ico-close { opacity: 0; transform: rotate(-90deg); }
.wa-root.open .wa-ico-open { opacity: 0; transform: rotate(90deg); }
.wa-root.open .wa-ico-close { opacity: 1; transform: rotate(0); }
.wa-panel { position: fixed; bottom: 96px; right: 12px; width: min(380px, calc(100vw - 1.5rem)); height: min(560px, 78vh); display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #ECE5DD; opacity: 0; transform: translateY(24px) scale(.97); pointer-events: none; transition: opacity .3s ease, transform .35s var(--ease); }
.wa-root.open .wa-panel { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 640px) { .wa-panel { right: 20px; } }
.wa-head { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; color: #fff; background: #075E54; }
.wa-avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; padding: 5px; }
.wa-avatar img { width: 100%; height: auto; object-fit: contain; }
.wa-dot { position: absolute; bottom: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: #25D366; border: 2px solid #075E54; }
.wa-head-txt { flex: 1; line-height: 1.2; display: flex; flex-direction: column; }
.wa-head-txt strong { font-family: var(--serif); font-weight: 500; font-size: 1rem; color: #fff; }
.wa-head-txt small { font-size: .74rem; opacity: .75; }
.wa-close { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.wa-close:hover { background: rgba(255,255,255,.15); }
.wa-close svg { width: 16px; height: 16px; }
.wa-body { flex: 1; overflow-y: auto; padding: 1rem .8rem; display: flex; flex-direction: column; gap: .5rem; background: #ECE5DD; }
.wa-msg { max-width: 80%; padding: .5rem .9rem; border-radius: 12px; font-size: .9rem; line-height: 1.45; white-space: pre-line; box-shadow: 0 1px 2px rgba(0,0,0,.08); animation: waMsgIn .3s var(--ease) both; }
@keyframes waMsgIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.wa-msg--bot { align-self: flex-start; background: #fff; color: #333; border-bottom-left-radius: 4px; }
.wa-msg--user { align-self: flex-end; background: #DCF8C6; color: #075E54; border-bottom-right-radius: 4px; }
.wa-typing { align-self: flex-start; background: #fff; border-radius: 12px; border-bottom-left-radius: 4px; padding: .75rem .9rem; display: flex; gap: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.wa-typing span { width: 8px; height: 8px; border-radius: 50%; background: #b5b5b5; animation: waDot 1s infinite; }
.wa-typing span:nth-child(2) { animation-delay: .15s; }
.wa-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes waDot { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-5px); } }
.wa-foot { border-top: 1px solid rgba(0,0,0,.06); background: #F0F0F0; padding: .7rem .8rem; }
.wa-options { display: flex; flex-wrap: wrap; gap: .45rem; min-height: 30px; }
.wa-chip { border: 1px solid rgba(18,140,126,.4); background: #fff; color: #075E54; border-radius: 999px; padding: .38rem .95rem; font-size: .84rem; font-weight: 600; transition: background .18s ease, color .18s ease; }
.wa-chip:hover { background: #128C7E; color: #fff; }
