/* Omei Academy - program landing pages (/after-school/, /wushu/, /tai-chi/,
   /piano/, /winter-camp/, /thank-you/). Mobile-first, no frameworks. */
:root {
  --red: #8a171a;
  --red-dark: #6d0006;
  --red-tint: #f6e9e6;
  --paper: #faf6f0;
  --card: #ffffff;
  --ink: #23262b;
  --muted: #5d6470;
  --line: #e7dfd3;
  --ok: #2e6b2f;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 7vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }

/* Top bar */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topbar .logo img { height: 46px; width: auto; }
.call-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid var(--red); color: var(--red); font-weight: 600; text-decoration: none; font-size: 15px;
}
.call-pill svg { width: 16px; height: 16px; }
.call-pill .num { display: none; }

/* Main menu: same items as the rest of the site */
.topbar .wrap { gap: 14px; }
.tb-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px;
  padding: 0 10px; border: 0; background: transparent; cursor: pointer; border-radius: 8px; }
.burger span { display: block; height: 2.5px; background: #3b4757; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mainnav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(0,0,0,.08); max-height: calc(100vh - 64px); overflow-y: auto; }
.mainnav.open { display: block; }
.mainnav ul { list-style: none; margin: 0; padding: 0; }
.mainnav .menu { padding: 6px 18px 14px; }
.mainnav .menu > li { border-bottom: 1px solid #f0ebe3; }
.mainnav a, .mainnav .sub-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 2px;
  font: 600 16px/1.3 var(--sans); color: #3b4757; text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.mainnav a:hover, .mainnav .sub-btn:hover { color: var(--red); }
.caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
  margin: -4px 4px 0 8px; transition: transform .2s; flex: 0 0 auto; }
.sub-btn[aria-expanded="true"] .caret { transform: rotate(225deg); margin-top: 4px; }
.mainnav .sub { display: none; padding: 0 0 10px 14px; }
.mainnav .sub.open { display: block; }
.mainnav .sub a { font-weight: 500; font-size: 15px; padding: 10px 2px; color: #5d6470; }
@media (min-width: 1000px) {
  .burger { display: none; }
  .mainnav { display: block; position: static; box-shadow: none; border: 0; max-height: none; overflow: visible; background: none; }
  .mainnav .menu { display: flex; gap: 26px; padding: 0; }
  .mainnav .menu > li { border: 0; position: relative; }
  .mainnav a, .mainnav .sub-btn { padding: 22px 0; font-size: 15px; width: auto; }
  .mainnav .sub { position: absolute; top: 100%; left: -16px; min-width: 250px; background: #fff; border: 1px solid var(--line);
    border-radius: 10px; box-shadow: 0 14px 30px rgba(0,0,0,.12); padding: 8px 0; z-index: 40; }
  .mainnav .sub a { padding: 10px 18px; }
  .mainnav .sub a:hover { background: var(--paper); }
  .mainnav .has-sub:hover > .sub, .mainnav .has-sub:focus-within > .sub { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none;
  padding: 15px 24px; border-radius: 10px; border: 0; cursor: pointer; min-height: 52px;
  box-shadow: 0 6px 18px rgba(138, 23, 26, .22); transition: background .15s, transform .15s;
}
.btn:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--red); border: 1.5px solid var(--red); box-shadow: none; }

/* Hero */
.hero { padding: 26px 0 34px; }
.hero .grid { display: grid; gap: 22px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.free-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--red-tint); color: var(--red-dark);
  font-weight: 700; padding: 6px 12px; border-radius: 999px; font-size: 14px; margin-bottom: 14px;
}
.hero .ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.hero .ctas .or { font-size: 15px; color: var(--muted); text-align: center; }
.hero .ctas .or a { font-weight: 700; color: var(--ink); }
.hero figure { margin: 0; }
.hero figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.price { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--red); background: #fff; border-radius: 0 8px 8px 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.price strong { color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts li::before {
  content: ""; flex: 0 0 20px; height: 20px; margin-top: 4px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Sections */
section.band { padding: 40px 0; }
section.band.white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 40em; color: var(--muted); }
.cards { display: grid; gap: 14px; margin-top: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.band.white .card { background: var(--paper); }
.card h3 { margin-bottom: .35em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1em; margin: 0 0 1em; }
.when {
  display: flex; gap: 8px; align-items: flex-start; font-weight: 700; color: var(--red-dark);
  background: var(--red-tint); border-radius: 8px; padding: 8px 12px; margin: 10px 0 0; font-size: 15px;
}
.when svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; }
.card .btn { margin-top: 14px; }
.timeline { list-style: none; margin: 18px 0 0; padding: 0; border-left: 3px solid var(--red); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 3px solid var(--red);
}
.timeline .t { font-weight: 800; color: var(--red-dark); font-size: 15px; letter-spacing: .02em; }
.timeline h3 { margin: 2px 0 6px; }
.checklist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }
.photos img.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.coach { display: grid; gap: 18px; align-items: center; }
.coach img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Video (loads YouTube only after a tap) */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 820px; border-radius: var(--radius); overflow: hidden; background: #111; margin-top: 18px; }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video .play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--red); box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.video .play::after {
  content: ""; position: absolute; left: 29px; top: 22px; border-left: 22px solid #fff;
  border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.video .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; color: #fff; font-size: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos { display: grid; gap: 18px; }
.videos .video { margin-top: 8px; }

/* Google reviews */
.rating { color: var(--muted); margin: -4px 0 0; }
.rating strong { color: var(--red); font-size: 1.1rem; }
.review { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 760px; }
.review .stars { color: var(--red); letter-spacing: 2px; font-size: 18px; }
.review blockquote { margin: 10px 0 12px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.review figcaption { font-size: 14px; font-weight: 700; color: var(--muted); }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
.faq summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 24px; color: var(--red); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 18px 4px; margin: 0 0 14px; color: var(--muted); }

/* Trial form */
.trial { background: var(--red); color: #fff; padding: 44px 0; }
.trial h2 { color: #fff; }
.trial .intro { color: #f7e3e1; max-width: 36em; }
.trial .grid { display: grid; gap: 26px; }
.trial .perks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; color: #fff; }
.trial .perks li::before { content: "\2713"; font-weight: 800; margin-right: 10px; }
.trial .call-alt { margin-top: 18px; color: #f7e3e1; }
.trial .call-alt a { color: #fff; font-weight: 800; }
form.lp-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px 18px; box-shadow: 0 12px 34px rgba(0,0,0,.18); }
.lp-form .row { display: grid; gap: 14px; }
.lp-form label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.lp-form .opt { font-weight: 400; color: var(--muted); }
.lp-form input, .lp-form select, .lp-form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 13px; border: 1.5px solid #cfc6b8;
  border-radius: 9px; background: #fff; color: var(--ink);
}
.lp-form textarea { min-height: 92px; resize: vertical; }
.lp-form input:focus, .lp-form select:focus, .lp-form textarea:focus { outline: 3px solid rgba(138,23,26,.25); border-color: var(--red); }
.lp-form .field { margin-bottom: 14px; }
.lp-form .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.lp-form .fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.lp-form .err { background: #fbefd6; color: #7a4e05; padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 15px; }
.lp-form .err[hidden] { display: none; }

/* Visit */
.visit { display: grid; gap: 18px; }
.visit address { font-style: normal; }
.visit .lines { display: grid; gap: 8px; }

/* Footer */
.lp-footer { background: #23262b; color: #c9ccd2; padding: 30px 0 100px; font-size: 15px; } /* bottom room for the sticky mobile bar */
.lp-footer a { color: #fff; }
.lp-footer .links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 14px; }
.lp-footer .links a { text-decoration: none; }

/* Sticky mobile action bar */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 10px;
  font-weight: 800; text-decoration: none; font-size: 16px; }
.mbar .c { border: 1.5px solid var(--red); color: var(--red); }
.mbar .t { background: var(--red); color: #fff; }
.mbar svg { width: 18px; height: 18px; }

/* Thank-you */
.ty { text-align: center; padding: 56px 0 40px; }
.ty .tick { width: 74px; height: 74px; border-radius: 50%; background: var(--ok); margin: 0 auto 18px; display: grid; place-items: center; }
.ty .tick svg { width: 38px; height: 38px; }
.ty p { max-width: 34em; margin-left: auto; margin-right: auto; color: var(--muted); }

@media (min-width: 760px) {
  .lp-footer { padding-bottom: 24px; }
  .mbar { display: none; }
  .call-pill .num { display: inline; }
  .call-pill .word { display: none; }
  .hero { padding: 48px 0 56px; }
  .hero .grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 44px; }
  .hero .ctas { flex-direction: row; align-items: center; }
  .hero .ctas .or { text-align: left; }
  section.band { padding: 64px 0; }
  .cards.c2 { grid-template-columns: 1fr 1fr; }
  .cards.c3 { grid-template-columns: repeat(3, 1fr); }
  .photos { grid-template-columns: repeat(4, 1fr); }
  .photos img.wide { grid-column: span 2; aspect-ratio: auto; height: 100%; }
  .coach { grid-template-columns: 1fr 1.2fr; gap: 40px; }
  .videos.v3 { grid-template-columns: repeat(3, 1fr); }
  .trial { padding: 70px 0; }
  .trial .grid { grid-template-columns: 1fr 1.1fr; align-items: start; gap: 48px; }
  form.lp-form { padding: 28px; }
  .lp-form .row.two { grid-template-columns: 1fr 1fr; }
  .visit { grid-template-columns: 1fr 1fr; }
}
