/* ==========================================================================
   JR Dreamland — one-page site
   Mobile-first. Breakpoints: 600px, 900px, 1200px.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand: #6E69AF;
  --brand-deep: #4B4690;   /* brand, darker: small text on mist / white */
  --brand-soft: #D9D6F4;   /* brand, lighter: text/lines on dark */
  --ink: #2D1B45;
  --ink-deep: #22122F;     /* footer, slightly darker than --ink */
  --accent: #E0306A;
  --accent-deep: #C4245A;
  --sun: #FFC93C;
  --mist: #F3F1FA;
  --white: #FFFFFF;
  --wa: #25D366;

  --muted: #5C4F70;
  --line: rgba(45, 27, 69, .10);

  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(45, 27, 69, .06);
  --shadow: 0 10px 30px rgba(45, 27, 69, .09);
  --shadow-lg: 0 22px 54px rgba(45, 27, 69, .16);

  --font-body: 'Noto Sans TC', 'PingFang HK', 'Microsoft JhengHei', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', 'Noto Sans TC', system-ui, sans-serif;

  --header-h: 64px;
  --gutter: 16px;
}

/* ---------- i18n: Chinese by default, English when data-ui-lang="en" ---------- */
:root:not([data-ui-lang="en"]) [data-lang="en"],
:root[data-ui-lang="en"] [data-lang="zh"] {
  display: none !important;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }
svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul { margin-top: 0; }
ul { padding: 0; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
.contact :focus-visible,
.site-footer :focus-visible { outline-color: var(--sun); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

/* ---------- Icons ---------- */
.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }
.icon-lg { width: 32px; height: 32px; }

/* ---------- Brand wave ---------- */
.wave {
  display: block;
  fill: none;
  stroke: var(--brand);
  stroke-width: 16;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.wave-underline { width: 116px; height: auto; margin: 14px auto 0; stroke-width: 18; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 16px/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.35em; height: 1.35em; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-xl { min-height: 64px; padding: 0 40px; font-size: 19px; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px rgba(224, 48, 106, .30); }
.btn-primary:hover { background: var(--accent-deep); }

.btn-outline { border-color: var(--brand); color: var(--brand-deep); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }

.btn-wa { background: var(--wa); color: var(--ink); box-shadow: 0 10px 22px rgba(37, 211, 102, .26); }
.btn-wa:hover { filter: brightness(1.06); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  font-weight: 700;
  color: var(--brand-deep);
  text-decoration: none;
}
.text-link .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 22px rgba(45, 27, 69, .10); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}
.logo-link { display: flex; align-items: center; min-height: 44px; flex: none; }
.logo { height: 46px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-wa { display: none; }

/* Language toggle pill */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 3px;
  border: 1.5px solid rgba(110, 105, 175, .45);
  border-radius: 999px;
  background: var(--white);
  font: inherit;
  cursor: pointer;
}
.lang-seg {
  display: inline-block;
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 34px;
  text-align: center;
  color: var(--muted);
  transition: background-color .2s ease, color .2s ease;
}
.lang-seg[data-seg="en"] { font-family: var(--font-display); font-weight: 600; }
:root:not([data-ui-lang="en"]) .lang-seg[data-seg="zh"],
:root[data-ui-lang="en"] .lang-seg[data-seg="en"] {
  background: var(--brand);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
  cursor: pointer;
}
.bars { position: relative; display: block; width: 20px; height: 14px; }
.bars span {
  position: absolute;
  left: 0; right: 0;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.bars span:nth-child(1) { top: 0; }
.bars span:nth-child(2) { top: 6px; }
.bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Nav (mobile: drop-down panel) */
.main-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 45;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 6px var(--gutter) 24px;
  background: var(--white);
  box-shadow: 0 24px 40px rgba(45, 27, 69, .16);
}
.js .main-nav {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.js .main-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .22s ease, transform .22s ease, visibility 0s;
}

.nav-links { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.nav-links a[aria-current="true"] { color: var(--accent); }
.nav-extras { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 18px; }
.nav-extras .btn { flex: 1 1 180px; }

.nav-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 40;
  background: rgba(45, 27, 69, .45);
  visibility: hidden;
  opacity: 0;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.nav-backdrop.is-open { visibility: visible; opacity: 1; transition: opacity .22s ease, visibility 0s; }
html.nav-open { overflow: hidden; }

/* No-JS fallback: show nav inline, hide JS-only controls */
html:not(.js) .site-header { position: static; }
html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 8px; }
html:not(.js) .main-nav { position: static; order: 3; flex-basis: 100%; box-shadow: none; padding: 0; }
html:not(.js) .nav-toggle,
html:not(.js) .lang-toggle,
html:not(.js) .nav-backdrop { display: none; }

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .logo { height: 52px; }
  .header-inner { gap: 16px; }

  .main-nav,
  .js .main-nav,
  .js .main-nav.is-open {
    position: static;
    flex: 1;
    display: flex;
    justify-content: center;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-links { flex-direction: row; gap: 2px; }
  .nav-links a {
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color .2s ease, color .2s ease;
  }
  .nav-links a:hover { background: var(--mist); }
  .nav-links a[aria-current="true"] { background: var(--mist); color: var(--brand-deep); font-weight: 700; }
  .nav-extras { display: none; }
  .nav-backdrop { display: none; }
  .nav-toggle { display: none; }
  .header-actions { margin-left: 0; }
  .header-wa { display: inline-flex; }
  /* Tablet: WhatsApp pill becomes icon-only (label stays for screen readers) */
  .header-wa { padding: 0; width: 44px; }
  .header-wa .wa-label {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
@media (min-width: 1200px) {
  .header-wa { width: auto; padding: 0 20px; }
  .header-wa .wa-label {
    position: static; width: auto; height: auto; margin: 0;
    overflow: visible; clip: auto; white-space: normal;
  }
  .nav-links a { padding: 0 16px; font-size: 16px; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 24px 0 72px; }
.section-mist { background: var(--mist); }
@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .section-tight { padding: 40px 0 96px; }
}

.section-head { margin-bottom: 36px; text-align: center; }
@media (min-width: 900px) { .section-head { margin-bottom: 48px; } }

.eyebrow {
  margin: 0 0 8px;
  font: italic 600 13px/1.3 var(--font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.eyebrow-light { color: var(--sun); }

h1, h2, h3 { font-family: var(--font-body); color: var(--ink); text-wrap: balance; }
h1 [lang="en"], h2 [lang="en"] {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
}
h3 [lang="en"] { font-family: var(--font-display); font-weight: 600; }

h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 4.6vw + .5rem, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
}
:root[data-ui-lang="en"] h2 { font-size: clamp(1.7rem, 4.2vw + .4rem, 2.4rem); }

.section-intro {
  max-width: 34em;
  margin: -12px auto 32px;
  text-align: center;
  font-size: 17px;
  color: var(--muted);
}

/* Reveal-on-scroll: the hidden state only exists when JS adds .reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 132px;
  background:
    radial-gradient(760px 460px at 88% -8%, rgba(110, 105, 175, .20), transparent 62%),
    radial-gradient(520px 380px at -6% 38%, rgba(224, 48, 106, .08), transparent 62%),
    var(--white);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 36px; }

.hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 7.2vw + .5rem, 3.6rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -.005em;
}
:root[data-ui-lang="en"] .hero h1 {
  font-size: clamp(1.75rem, 6vw + .3rem, 3.1rem);
  line-height: 1.18;
  letter-spacing: -.01em;
}
.hl {
  color: var(--brand);
  background: linear-gradient(transparent 70%, rgba(255, 201, 60, .6) 70%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-sub { max-width: 34em; margin-bottom: 26px; font-size: 17px; color: var(--muted); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { flex: 1 1 220px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 500;
}
.badges .icon { width: 18px; height: 18px; color: var(--brand); }

.hero-media { position: relative; }
.hero-art {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 26px 26px 24px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #7F7AC0 0%, var(--brand) 42%, #4B4690 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.art-blob { position: absolute; z-index: -1; border-radius: 50%; }
.art-blob-sun { top: -14%; right: -10%; width: 48%; aspect-ratio: 1; background: var(--sun); animation: float 7s ease-in-out infinite; }
.art-blob-accent { top: 20%; right: 20%; width: 34%; aspect-ratio: 1; background: var(--accent); animation: float 8s ease-in-out -2s infinite; }
.art-blob-ring { top: -6%; left: -6%; width: 30%; aspect-ratio: 1; border: 14px solid rgba(255, 255, 255, .20); }
.art-wave { position: absolute; left: 5%; top: 14%; width: 90%; height: auto; stroke: #fff; stroke-width: 12; }
.art-type {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  font: italic 700 clamp(2.9rem, 14vw, 4.4rem)/.92 var(--font-display);
  letter-spacing: -.01em;
}
.art-type span:nth-child(2) { color: var(--sun); }
.art-type span:nth-child(3) { color: transparent; -webkit-text-stroke: 2px #fff; }

.hero-wave {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 0;
  width: min(100%, 1160px);
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-wave .wave { width: 100%; height: auto; }
.hero-wave .wave-echo { position: absolute; left: 0; top: 14%; stroke: var(--sun); stroke-width: 7; }
.hero-wave .wave use,
.art-wave use {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: wave-draw 2.4s cubic-bezier(.55, .1, .25, 1) .3s both;
}
.hero-wave .wave-main use { animation-delay: .5s; }
.art-wave use { animation-delay: .9s; }
@keyframes wave-draw {
  0%   { stroke-dashoffset: 1; opacity: 0; }
  3%   { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (min-width: 600px) {
  .hero { padding: 48px 0 180px; }
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 265px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
  .hero-sub { font-size: 19px; }
  .hero-art { aspect-ratio: 1 / 1; min-height: 0; padding: 32px; }
  .art-type { font-size: 4.6rem; }
  .hero-cta .btn { flex: 0 0 auto; }
}

/* ---------- About ---------- */
.mission {
  max-width: 20em;
  margin: 0 auto 40px;
  text-align: center;
  font-size: clamp(1.9rem, 6.6vw + .4rem, 3.4rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--brand-deep);
  text-wrap: balance;
}
.mission::before {
  content: "\201C" / "";
  display: block;
  height: .5em;
  margin-bottom: .1em;
  font: italic 700 1.9em/1 var(--font-display);
  color: var(--sun);
}
.mission [lang="en"] { font-family: var(--font-display); font-style: italic; font-weight: 700; }
:root[data-ui-lang="en"] .mission { font-size: clamp(1.55rem, 4.6vw + .4rem, 2.7rem); line-height: 1.3; }
.mission span {
  background: linear-gradient(transparent 70%, rgba(255, 201, 60, .55) 70%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.about-text { display: grid; gap: 1.1em 56px; max-width: 1000px; margin: 0 auto; }
.about-text p { margin: 0; font-size: 17px; }
@media (min-width: 900px) {
  .about-text { grid-template-columns: 1fr 1fr; }
  .about-text p { font-size: 17.5px; }
}

.values { display: grid; gap: 16px; margin: 40px 0 0; list-style: none; }
.value-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.value-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: rgba(110, 105, 175, .14);
  color: var(--brand-deep);
}
.value-icon .icon { width: 26px; height: 26px; }
.value-card:nth-child(1) .value-icon { background: rgba(255, 201, 60, .38); color: var(--ink); }
.value-card:nth-child(3) .value-icon { background: rgba(224, 48, 106, .12); color: var(--accent-deep); }
.value-card h3 { margin-bottom: 4px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.value-card p { margin: 0; font-size: 15px; color: var(--muted); }
@media (min-width: 900px) {
  .values { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
  .value-card { flex-direction: column; padding: 28px; }
}

/* ---------- Classes ---------- */
.class-grid { display: grid; gap: 20px; }
@media (min-width: 600px) { .class-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .class-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.class-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease, translate .25s ease;
}
.class-card:hover { translate: 0 -4px; box-shadow: var(--shadow-lg); }

.class-band { position: relative; display: flex; align-items: flex-start; height: 112px; padding: 16px; overflow: hidden; }
.class-band-brand { background: linear-gradient(135deg, var(--brand), #9C97D8); }
.class-band-accent { background: linear-gradient(135deg, var(--accent), #F27AA0); }
.class-band-sun { background: linear-gradient(135deg, var(--sun), #FFDE7D); }
.class-band-sun .wave-band { stroke: var(--ink); opacity: .28; }
.class-band-ink { background: linear-gradient(135deg, var(--ink), #55367F); }
.class-band-brand-deep { background: linear-gradient(135deg, #4B4690, #7F7AC0); }
.wave-band { position: absolute; right: 8px; bottom: 6px; width: 78%; height: auto; stroke: #fff; stroke-width: 14; opacity: .5; }
.age-tag-dark { background: var(--ink) !important; color: #fff !important; }
.age-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.class-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 22px 22px 18px; }
.class-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.class-name small { display: block; margin-top: 4px; font-size: .6em; font-weight: 600; letter-spacing: .05em; color: var(--muted); }
.class-sub { margin: 4px 0 0; font-weight: 700; color: var(--accent-deep); }
.class-desc { margin: 6px 0 12px; font-size: 15.5px; color: var(--muted); }
.class-body .text-link,
.class-body .btn { margin-top: auto; }

.times { display: grid; gap: 8px; margin: 6px 0 14px; padding: 0; list-style: none; }
.times li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--mist);
  font-size: 15px;
}
.times .icon { width: 18px; height: 18px; color: var(--brand-deep); }
.t-day { font-weight: 700; }
.t-time { font-family: var(--font-display); font-weight: 600; }
.t-text { font-weight: 500; }
.t-age {
  margin-left: auto;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 700;
}
.t-booking { background: rgba(224, 48, 106, .12); color: var(--accent-deep); }
.class-footnote { margin: 28px 0 0; text-align: center; font-size: 15.5px; color: var(--muted); }

.class-card-more {
  background: rgba(255, 255, 255, .6);
  border: 2px dashed rgba(110, 105, 175, .55);
  box-shadow: none;
  text-align: center;
}
.class-card-more:hover { box-shadow: var(--shadow); }
.class-card-more .class-body { align-items: center; justify-content: center; gap: 8px; padding: 32px 22px; }
.class-card-more .class-name { font-style: normal; text-transform: none; color: var(--ink); font-size: 22px; }
.class-card-more [lang="zh-HK"].class-desc,
.class-card-more .class-desc { margin: 0 0 14px; }
.class-card-more .btn { margin-top: 0; }
.more-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
}
.more-icon .icon { width: 26px; height: 26px; }

/* ---------- Competitions ---------- */
.event-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .event-grid { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; } }
.event-card {
  padding: 26px 22px;
  border: 1px solid rgba(110, 105, 175, .16);
  border-radius: var(--radius-lg);
  background: var(--mist);
}
@media (min-width: 600px) { .event-card { padding: 32px 30px; } }
.event-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.year-num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 3.75rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
}
.trophy-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 6px 14px rgba(255, 201, 60, .45);
}
.trophy-badge .icon { width: 26px; height: 26px; }
.event-title { margin: 0 0 20px; font-size: 20px; font-weight: 700; line-height: 1.4; }

.awards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.award {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.place {
  flex: none;
  min-width: 66px;
  margin-top: 1px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.place [lang="en"] { font-family: var(--font-display); font-weight: 700; }
.place-wide { min-width: 0; }
.award-body { flex: 1 1 150px; min-width: 0; }
.award-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.award-meta { margin: 2px 0 0; font-size: 14.5px; color: var(--muted); }
.award-extra { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--accent-deep); }
.award-extra .icon { width: 16px; height: 16px; color: var(--accent); fill: var(--accent); }
.kangaroo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 201, 60, .30);
  font-size: 15px;
  font-weight: 500;
}
.kangaroo .icon { flex: none; width: 20px; height: 20px; margin-top: 3px; }
.wave-divider { width: 132px; height: auto; margin: 44px auto 8px; stroke-width: 16; opacity: .35; }
.more-results { margin: 0; text-align: center; }
.more-results .text-link { align-self: center; }

/* ---------- Locations ---------- */
.loc-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .loc-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.loc-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}
.loc-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
}
.loc-icon .icon { width: 26px; height: 26px; }
.loc-card h3 { margin-bottom: 4px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.loc-addr { margin: 0; color: var(--muted); }
.loc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }
.loc-actions .btn { flex: 1 1 190px; }

.wave-divider { width: 132px; height: auto; margin: 0 auto 28px; stroke-width: 16; opacity: .35; }

/* ---------- Contact band ---------- */
.contact {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(620px 320px at 12% 0%, rgba(110, 105, 175, .50), transparent 70%),
    radial-gradient(520px 320px at 92% 100%, rgba(224, 48, 106, .30), transparent 70%),
    var(--ink);
}
.contact-inner { position: relative; }
.wave-bg {
  position: absolute;
  left: 50%; bottom: -8%;
  width: min(1400px, 190%);
  transform: translateX(-50%);
  stroke: #fff;
  stroke-width: 12;
  opacity: .06;
  pointer-events: none;
}
.contact h2 { color: #fff; font-size: clamp(2rem, 7vw, 3.3rem); }
:root[data-ui-lang="en"] .contact h2 { font-size: clamp(1.9rem, 6vw, 3rem); }
.contact-line { max-width: 30em; margin: 14px auto 30px; font-size: 18px; color: rgba(255, 255, 255, .86); }
.contact-tag { margin: 18px 0 0; font-size: 17px; font-weight: 500; color: var(--sun); }
.contact-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 56px; margin-top: 28px; }
.contact-phone { margin: 0; color: rgba(255, 255, 255, .8); }
.mail-link { font-size: clamp(1.1rem, 4.6vw, 1.5rem) !important; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); }
.mail-link:hover { border-bottom-color: var(--sun); }
.phone-label { display: block; margin-bottom: 2px; font-size: 14px; letter-spacing: .04em; }
.phone-num { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: .02em; color: #fff; }

.socials { display: flex; justify-content: center; gap: 12px; margin: 28px 0 0; list-style: none; }
.social-btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1.5px solid rgba(255, 255, 255, .30);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.social-btn:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.social-btn .icon { width: 22px; height: 22px; }
@media (min-width: 900px) { .contact { padding: 104px 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255, 255, 255, .78); padding-top: 48px; }
.footer-inner { display: grid; gap: 28px; justify-items: start; }
.footer-brand p { margin: 12px 0 0; font-size: 15px; }
.logo-chip { display: inline-block; padding: 8px 14px; border-radius: 16px; background: #fff; line-height: 0; }
.logo-chip img { width: auto; height: 46px; }
.footer-mail { margin: 0 !important; }
.footer-mail a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-underline-offset: 3px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; list-style: none; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 500; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-socials { margin: 0; }
.footer-copy { margin-top: 28px; padding-top: 20px; padding-bottom: 96px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }
.footer-copy p { margin: 0; }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1.2fr 1.4fr auto; align-items: center; gap: 40px; }
  .footer-nav ul { justify-content: center; }
  .footer-copy { padding-bottom: 32px; }
}

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
  transition: transform .25s ease, opacity .25s ease, visibility 0s;
}
.fab .icon { width: 30px; height: 30px; }
.fab:hover { transform: scale(1.06); }
.fab.is-hidden { opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9); transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s; }
.fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--wa);
  border-radius: 50%;
  animation: fab-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes fab-pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .hero-wave .wave use,
  .art-wave use { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
