/* Chinese Yo-yo School — clean rebuild, 2026 */
:root {
  --brand: #ff5f25;
  --brand-dark: #d9511f;
  --brand-light: #ffa15c;
  --logo: #F47D3B;
  --ink: #ececec;
  --muted: #b5b5b5;
  --bg: #323232;
  --bg-soft: #3f3f41;
  --border: #4e4e50;
  --radius: 14px;
  --maxw: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #ff8a5c; }
a:hover { color: var(--brand); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 3px solid var(--brand);
  background: #323232;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand img { height: 96px; width: auto; }

.main-nav { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  text-decoration: none;
  color: #aaf6ff;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 8px;
}
.main-nav a:hover { background: rgba(255,255,255,.07); color: #f47d3b; }
.main-nav a.active { color: #f47d3b; background: rgba(255,255,255,.07); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #aaf6ff;
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, #2b2b2d 0%, #1f1f21 55%, #59300f 100%);
  color: #fff;
  padding: 84px 0;
  text-align: center;
}
.hero h1 { font-size: 2.6rem; line-height: 1.2; margin-bottom: 14px; }
/* Inner pages (About / Booths / Contact) have a title-only header — keep it snug */
.hero:not(.hero-photo) { padding: 48px 0; }
.accent { color: var(--logo); }
.hero h1 .accent { color: var(--logo); }
.hero p.lead { font-size: 1.15rem; color: #f3e7d8; max-width: 640px; margin: 0 auto 28px; }

.hero-mask { overflow: hidden; }
.hero-track { display: flex; transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.21, 1); }
.hero-cell { display: flex; justify-content: center; align-items: flex-start; }
.hero-title { color: var(--brand-light); font-size: 2.25rem; font-weight: 600; text-align: center; margin: 0; text-wrap: balance; }
.line-break { display: none; }
@media (max-width: 768px) {
  .line-break { display: block; }
}
.hero-bottom { text-align: center; }
.hero-desc { color: #fff; max-width: 620px; margin: 0 auto 18px; text-align: center; }
#heroDescTrack { transition-delay: 0.07s; }
.hero-photo { overflow: hidden; }
.hero-arrows { display: flex; gap: 12px; justify-content: center; }
.hero-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); background: rgba(20,12,8,.35);
  color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 0 2px;
  transition: background .2s, border-color .2s;
}
.hero-arrow:hover { background: var(--brand); border-color: var(--brand); }

.hero-photo {
  background:
    linear-gradient(to bottom, rgba(24,16,10,.62) 0%, rgba(24,16,10,.28) 45%, rgba(24,16,10,.72) 100%),
    url('../images/mainchineseyoyos.jpg') center center / cover no-repeat;
  padding: 20px 0 32px;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
/* The welcome section follows the photo hero directly — keep the gap snug */
.hero-photo + .section { padding-top: 36px; }
.hero-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
}
.section-cta { margin-top: 40px; margin-bottom: 0; }
.hero-photo { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
@media (max-width: 768px) {
  .brand img { height: 68px; }
  .hero:not(.hero-photo) { padding: 36px 0; }
  /* On narrow screens the panoramic photo would zoom so far that the yo-yos
     crowd into the text. Show it at natural width as a band instead, with
     dark space below it for the slideshow text. */
  .hero-photo {
    padding: 14px 0 28px;
    background:
      linear-gradient(to bottom, rgba(24,16,10,.5) 0%, rgba(24,16,10,.2) 38%, rgba(24,16,10,.2) 62%, rgba(24,16,10,.55) 100%),
      url('../images/mainchineseyoyos.jpg') center center / 100% auto no-repeat,
      #17110a;
  }
  .hero-stack { min-height: 500px; }
  .hero-title { font-size: 1.7rem; }
  .hero-arrow { width: 38px; height: 38px; font-size: 1.25rem; }
}
.media-split {
  display: grid; grid-template-columns: minmax(0, 340px) 1fr;
  gap: 44px; align-items: center; margin-top: 36px;
}
.media-split figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
}
.media-split .checklist { margin: 0; max-width: none; }
.inline-photo { margin: 32px auto 0; max-width: 640px; }
.inline-photo-sm { max-width: 300px; margin-top: 0; margin-bottom: 8px; }
.contact-photo { max-width: 560px; margin-top: 0; }
.inline-photo img {
  width: 100%; height: auto; display: block;
  border: 5px solid var(--brand-light);
  border-radius: 40px 0 40px 0;
  box-shadow: none;
}

.appear-list {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  max-width: 600px;
}
.appear-list li {
  padding: 14px 8px;
  border-bottom: 1px solid rgba(0,0,0,.1);
  font-size: 1.08rem;
}
.appear-list li:last-child { border-bottom: none; }

.rate-range {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--brand);
  margin: 12px 0 4px;
}
.rate-range span {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
}

/* ---------- Gallery + lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  text-align: left;
}
.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  line-height: 0;
}
.gallery img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.06); }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,8,6,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw; max-height: 84vh;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

@keyframes fade { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s ease, transform .15s ease;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand) !important;
}
.btn-outline:hover { background: var(--brand); color: #fff !important; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section h1 { margin-bottom: 14px; }
.section.tight-top { padding-top: 40px; }
.section.tight-bottom { padding-bottom: 40px; }
.section.soft { background: var(--bg-soft); }
.section h2 { font-size: 2rem; margin-bottom: 12px; }
.section .kicker {
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--brand); font-weight: 700; font-size: .85rem; margin-bottom: 8px;
}
.center { text-align: center; }
.narrow { max-width: 720px; margin: 0 auto; }
p + p { margin-top: 1em; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.card {
  background: #3f3f41;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 12px 32px rgba(244,125,59,.14); transform: translateY(-3px); }
.card .icon { margin-bottom: 12px; }
.card .icon img { width: 45px; height: 45px; margin: 0 auto; }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 18px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 36px; counter-reset: step; }
.step {
  background: #3f3f41; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; position: relative;
}
.step .num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 12px;
}
.step h3 { margin-bottom: 6px; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .95rem; }

.checklist { list-style: none; margin: 24px auto 0; max-width: 560px; text-align: left; }
.checklist li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px dashed var(--border); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 22px;
  height: 22px;
  background: url('../images/yoyo1_45x45.png') center center / contain no-repeat;
}

.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.tag {
  background: #3f3f41; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px; font-size: .92rem; font-weight: 600; color: var(--ink);
}

/* ---------- forms ---------- */
form.clean { max-width: 560px; margin: 32px auto 0; text-align: left; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .req { color: var(--brand-dark); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--border); border-radius: 10px; background: #3f3f41; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 16px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #2e7d32; }
.form-status.err { display: block; color: #c62828; }

/* ---------- footer ---------- */
.site-footer { background: #242425; color: #c6c6c6; padding: 36px 0 28px; margin-top: 0; border-top: 3px solid var(--brand); }
.footer-inner { max-width: var(--maxw); margin: 0 auto 36px; padding: 0 24px; text-align: center; }
.footer-logo { width: min(300px, 85%); height: auto; margin: 0 auto 18px; }
.site-footer h3 { color: #fff; margin-bottom: 10px; font-size: 1.1rem; }
.site-footer a { color: var(--brand); }
.footer-inner p { margin-bottom: 6px; }
.copyright { text-align: center; font-size: .85rem; color: #8f8f8f; border-top: 1px solid #4a4a4a; padding-top: 24px; max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 2rem; }
  .mline { display: block; }
  .section { padding: 48px 0; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #323232; flex-direction: column; align-items: stretch;
    border-bottom: 3px solid var(--brand); padding: 8px 16px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .media-split { grid-template-columns: 1fr; gap: 28px; }
  .media-split figure { max-width: 320px; margin: 0 auto; }
  .gallery { grid-template-columns: 1fr; }
}
