@font-face{font-family:'Work Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/worksans-400.woff2') format('woff2')}
@font-face{font-family:'Work Sans';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/worksans-600.woff2') format('woff2')}
/* SchoolBuddy — tokens lifted from the live Debut theme's computed styles, so the
   rebuild matches rather than approximates. */
:root {
  --ink: #3d4246;
  --ink-soft: #6b7177;
  --accent: #557b97;
  --accent-dark: #43647c;
  --rule: #e8e9eb;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --free: #2e7d5b;
  --radius: 2px;
  --page: 1200px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

.page-width { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 55px 0; }
.section--soft { background: var(--bg-soft); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent); color: #fff; text-decoration: none; }
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-dark); }
.btn--wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn--wa:hover { background: #1da851; border-color: #1da851; color: #fff; }
.btn--full { display: block; width: 100%; }

/* ── header ──────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px var(--gutter); max-width: var(--page); margin: 0 auto;
}
.site-header__logo img { width: 200px; }
/* margin-left:auto groups the nav and the language switcher together on the
   right, instead of space-between spreading three items evenly across the bar. */
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.site-nav a { font-size: 15px; }
.site-nav a[aria-current='page'] { border-bottom: 2px solid var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ── language switcher ───────────────────────────────────────
   A two-segment control rather than a dropdown: with exactly two languages a
   select is one extra tap for no information, and showing both means the
   current language is legible without opening anything. It lives OUTSIDE
   .site-nav, so it stays on the bar when the nav collapses behind the
   hamburger on a phone. */
.lang-switch {
  display: flex; align-items: center; flex: none; order: 3;
  border: 1px solid var(--rule); border-radius: 999px; overflow: hidden;
  font-size: 13px; line-height: 1;
}
.lang-switch__on,
.lang-switch__off { padding: 8px 13px; white-space: nowrap; }
.lang-switch__on { background: var(--accent); color: #fff; font-weight: 600; }
.lang-switch__off { color: var(--ink-soft); text-decoration: none; }
.lang-switch__off:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }

@media (max-width: 900px) {
  .nav-toggle { display: block; order: 3; }
  .site-nav {
    display: none; width: 100%; order: 4; flex-direction: column;
    align-items: flex-start; gap: 0; padding-bottom: 8px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { display: block; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .site-header__logo img { width: 150px; }
  /* logo, language, hamburger — then the nav drops full width underneath. */
  .site-header__logo { order: 1; }
  .lang-switch { order: 2; margin-left: auto; }
}

/* ── hero ────────────────────────────────────────────────── */
.hero { position: relative; background: #2b2f33; color: #fff; }
.hero img { width: 100%; max-height: 620px; object-fit: cover; opacity: .82; }
.hero__text {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 20px; text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.hero__text h1 { color: #fff; font-size: clamp(1.7rem, 5vw, 3.4rem); margin-bottom: .3em; }
.hero__text p { font-size: clamp(.95rem, 2vw, 1.3rem); margin: 0 0 1.4em; }
.hero .btn { background: rgba(255,255,255,.95); border-color: transparent; }

/* ── mobile ──────────────────────────────────────────────
   The hero photo is a wide banner. At phone widths it collapses to ~148px tall
   while the overlaid text needs ~200px, so the headline used to run under the
   logo and the button fell outside the image. Stack it instead: photo on top,
   text below on the dark panel. Nothing gets cropped and it reads far better. */
@media (max-width: 749px) {
  .hero { display: flex; flex-direction: column; }
  .hero img { max-height: none; opacity: 1; }
  .hero__text {
    position: static; padding: 26px 20px 34px; text-shadow: none;
  }
  .hero__text h1 { font-size: 1.75rem; margin-bottom: .35em; }
  .hero__text p { font-size: 1rem; margin-bottom: 1.5em; }
  .hero .btn { align-self: center; }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .section { padding: 40px 0; }

  /* 18px text links are too small to hit reliably on a phone. */
  .site-footer li a,
  .site-footer p a { display: inline-block; padding: 7px 0; }
  .site-footer li { margin-bottom: 2px; }
  .site-header__logo img { width: 155px; }
  .nav-toggle { padding: 12px 8px; }
  /* 15px vertical padding on a 14px line box is what gets each segment to a
     44px tap target. Measured at 375px, not guessed. */
  .lang-switch { font-size: 14px; }
  .lang-switch__on,
  .lang-switch__off { padding: 15px 13px; }
  .wa-float { width: 58px; height: 58px; right: 14px; bottom: 14px; }

  /* Course descriptions often carry wide inline tables/images from Shopify. */
  .rte { overflow-x: auto; }
}

/* ── course grid ─────────────────────────────────────────── */
.grid { display: grid; gap: 30px 22px; grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 749px)  {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .grid--3 { grid-template-columns: 1fr; } /* testimonials read badly at 2-up */
}

/* 81 of 95 course covers are 16:9 banners with text baked in, so a square crop
   ate the wording. `contain` fits those exactly and letterboxes the few odd
   ones rather than cutting them. */
.card__media {
  background: var(--bg-soft); border: 1px solid var(--rule); border-radius: var(--radius);
  aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 10px;
}
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.card__title { font-size: 15px; line-height: 1.35; margin: 0 0 4px; font-weight: 400; }
/* The original Shopify course name, shown under the English one. It is what the
   centre, the WhatsApp groups and Synorex all call the class, so a parent who
   was given the Chinese name can still match it to the card. */
.card__alt { font-size: 13px; line-height: 1.35; margin: 0 0 4px; color: var(--ink-soft); }
.card__price { font-size: 15px; color: var(--ink-soft); }
.card:hover .card__title { text-decoration: underline; }

.price--was { text-decoration: line-through; color: var(--ink-soft); margin-right: 6px; }
.price--now { color: var(--accent); font-weight: 600; }
.price--free { color: var(--free); font-weight: 600; }

/* ── course page ─────────────────────────────────────────── */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 28px; } }

.gallery__main {
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
}
.gallery__thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px;
}
.gallery__thumbs button {
  padding: 0; border: 1px solid var(--rule); border-radius: var(--radius);
  background: none; cursor: pointer; overflow: hidden; aspect-ratio: 1/1;
}
.gallery__thumbs button[aria-current='true'] { border-color: var(--accent); border-width: 2px; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product__alt { color: var(--ink-soft); font-size: 15px; margin: -6px 0 14px; }
.product__price { font-size: 1.4rem; margin: 4px 0 20px; }
.product__meta { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.chips li {
  font-size: 13px; padding: 4px 10px; border: 1px solid var(--rule);
  border-radius: 100px; color: var(--ink-soft);
}
.actions { display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
.note { font-size: 14px; color: var(--ink-soft); }

.rte { line-height: 1.7; }
.rte img { margin: 16px 0; }
.rte h2, .rte h3 { margin-top: 1.4em; }
.rte table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.rte td, .rte th { border: 1px solid var(--rule); padding: 8px; }
.rte iframe { max-width: 100%; }

/* ── breadcrumb / misc ───────────────────────────────────── */
.breadcrumb { font-size: 14px; color: var(--ink-soft); margin: 22px 0; }
.breadcrumb a { color: var(--ink-soft); }
.empty { color: var(--ink-soft); padding: 40px 0; }

.bank-box {
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px; background: var(--bg-soft); max-width: 520px;
}
.bank-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.bank-box dt { color: var(--ink-soft); }
.bank-box dd { margin: 0; font-weight: 600; }

/* width:100% + max-width, never max-width alone — a bare inline max-width beats
   the `img { max-width:100% }` reset and overflows narrow viewports. */
.guide-img {
  display: block; width: 100%; max-width: 900px; height: auto;
  margin: 24px 0; border: 1px solid var(--rule); border-radius: var(--radius);
}

.steps { counter-reset: step; list-style: none; padding: 0; max-width: 640px; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 22px 46px; line-height: 1.6;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
}

.en-block { margin-top: 34px; border-top: 1px solid var(--rule); padding-top: 18px; }
.en-block > summary {
  cursor: pointer; color: var(--ink-soft); font-size: 14px;
  letter-spacing: .04em; text-transform: uppercase;
}
.en-block > summary::-webkit-details-marker { display: none; }
.en-block > summary::before { content: '+ '; color: var(--accent); }
.en-block[open] > summary::before { content: '\2212 '; }

.rte hr { border: 0; border-top: 1px solid var(--rule); margin: 28px 0; }

.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* ── learning centre + one-to-one (added 2026-08-07) ─────── */
.lede { font-size: 1.1rem; line-height: 1.65; max-width: 720px; }
.linklist { list-style: none; padding: 0; margin: 12px 0 0; }
.linklist li { margin-bottom: 8px; }

/* Ticked feature lists. The tick is a ::before so the text wraps under itself
   instead of under the mark — long Chinese lines wrap constantly here. */
.ticks { list-style: none; padding: 0; margin: 14px 0 0; max-width: 640px; }
.ticks li { position: relative; padding: 0 0 9px 24px; line-height: 1.6; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--free); font-weight: 600; }

.pull { margin: 26px 0 0; padding: 0 0 0 18px; border-left: 3px solid var(--accent); }
.pull p { margin: 0; font-size: 1.05rem; color: var(--ink-soft); }

.notice {
  border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  background: var(--bg-soft); padding: 18px 20px; margin: 0 0 30px; border-radius: var(--radius);
}
.notice p { margin: 0 0 10px; }
.notice p:last-child { margin-bottom: 0; }

.svc__extra { margin-top: 12px; font-style: italic; }

.loc { border: 1px solid var(--rule); padding: 20px; border-radius: var(--radius); }
.loc__label { font-weight: 600; margin: 0 0 8px; }
.loc__addr { color: var(--ink-soft); line-height: 1.6; margin: 0 0 10px; }

.grid--2 { grid-template-columns: repeat(2, 1fr); }
/* Option cards hold a title, a blurb and two buttons — four across is too narrow
   for the longer Chinese titles, so this grid caps at three. */
.grid--opts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--opts { grid-template-columns: repeat(2, 1fr); } }
/* `.grid` normally stays 2-up on phones, which suits short cards. The service
   cards carry a paragraph plus four bullets — at ~180px per column that is
   unreadable, so they stack. */
@media (max-width: 749px) {
  .grid--2, .grid--opts, .grid--stack { grid-template-columns: 1fr; }
}

.stage-head {
  font-size: 1rem; letter-spacing: .04em; color: var(--ink-soft);
  margin: 40px 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--rule);
}
.stage-head:first-of-type { margin-top: 28px; }

.opt {
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column;
}
.opt__stage { font-size: 12px; letter-spacing: .06em; color: var(--ink-soft); margin: 0 0 8px; }
.opt__title { font-size: 1.02rem; line-height: 1.4; margin: 0 0 8px; }
.opt__teacher { font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; }
/* margin-top:auto pins the buttons to the bottom so cards in a row line up
   even when their blurbs are different lengths. */
.opt__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.opt__actions .btn { padding: 9px 14px; font-size: 14px; }
/* The compact card buttons measure 41px, under the 44px tap target. Splitting a
   ~350px row between them left "WHATSAPP 咨询" wrapping to two lines — the
   button label is uppercased and letter-spaced, so it needs more width than it
   looks. Stack them full-width instead: one line each, 47px tall. */
@media (max-width: 749px) {
  .opt__actions { flex-direction: column; }
  .opt__actions .btn { width: 100%; padding: 12px 14px; }
}

.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 600; margin-bottom: 10px;
}

/* ── Ren Ren ownership marks (added 2026-08-07) ──────────── */
/* The logo is a grey disc with transparent corners — used as supplied, never
   recoloured or cropped. It reads fine on white, on --bg-soft and over the
   hero photo, so no plate behind it. */
.owner-band { display: flex; align-items: flex-start; gap: 28px; }
.owner-band__logo { width: 120px; height: 120px; flex: none; }
.owner-band h2 { margin-bottom: .4em; }
.owner-band p { max-width: 640px; }
@media (max-width: 749px) {
  .owner-band { flex-direction: column; gap: 18px; }
  .owner-band__logo { width: 92px; height: 92px; }
}

.site-footer__owner { display: flex; align-items: center; gap: 14px; }
.site-footer__owner img { width: 52px; height: 52px; flex: none; }

/* ── footer ──────────────────────────────────────────────── */
.site-footer { background: var(--bg-soft); margin-top: 60px; padding: 48px 0 30px; font-size: 15px; }
.site-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 749px) { .site-footer__cols { grid-template-columns: 1fr; gap: 26px; } }
.site-footer h4 { font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__legal {
  border-top: 1px solid var(--rule); margin-top: 34px; padding-top: 20px;
  color: var(--ink-soft); font-size: 13px; line-height: 1.7;
}
/* Ownership line and copyright line are two blocks; only the first draws the
   rule, otherwise they get boxed apart from each other. */
.site-footer__legal + .site-footer__legal {
  border-top: 0; margin-top: 10px; padding-top: 0;
}

/* ── floating WhatsApp ───────────────────────────────────── */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 54px; height: 54px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 3px 14px rgba(0,0,0,.28);
}
.wa-float:hover { background: #1da851; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media print { .wa-float, .site-header, .site-footer { display: none; } }
