/* ============================================================
   Columbus Chinese Lessons — styles.css
   Palette: warm cream base · Chinese red accent · gold · ink navy
   Mobile-first. All paths relative. WCAG 2.1 AA contrast.
   ============================================================ */

:root {
  --cream:      #FBF7F0;
  --cream-2:    #F4ECDE;
  --cream-3:    #EDE2CC;
  --red:        #B3352C;
  --red-dark:   #8F2621;
  --red-tint:   #F7E8E6;
  --gold:       #C98F2B;
  --gold-soft:  #F0DDB4;
  --gold-pale:  #F9F1DE;
  --ink:        #232F3B;
  --ink-soft:   #4E5B68;
  --white:      #FFFFFF;
  --line:       #E5DAC6;
  --shadow-sm:  0 1px 3px rgba(35,47,59,.08), 0 1px 2px rgba(35,47,59,.05);
  --shadow-md:  0 6px 18px rgba(35,47,59,.10);
  --shadow-lg:  0 14px 40px rgba(35,47,59,.14);
  --radius:     14px;
  --radius-lg:  22px;
  --font-head:  'Nunito', 'Avenir Next', 'Trebuchet MS', system-ui, sans-serif;
  --font-body:  'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --maxw:       1120px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 .6em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); font-weight: 900; }
h2 { font-size: clamp(1.55rem, 3.8vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.4rem); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: .4em; }
strong { font-weight: 650; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .6em 1em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section--cream2 { background: var(--cream-2); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: #ECEFF3; }
.section--ink h2, .section--ink h3 { color: #fff; }

/* Section headers */
.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-tint);
  border-radius: 999px;
  padding: .3em 1em;
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  text-align: center;
  border-radius: 999px;
  padding: .85em 1.9em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  line-height: 1.25;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff !important; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--red-dark); box-shadow: var(--shadow-lg); }
.btn--outline { background: transparent; color: var(--red) !important; border-color: var(--red); }
.btn--outline:hover { background: var(--red-tint); }
.btn--light { background: #fff; color: var(--red) !important; box-shadow: var(--shadow-md); }
.btn--light:hover { background: var(--cream); }
.btn--sm { font-size: .92rem; padding: .6em 1.4em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.text-link {
  font-family: var(--font-head); font-weight: 800; color: var(--red);
  text-decoration: none; border-bottom: 2px solid var(--gold-soft);
}
.text-link:hover { border-color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,240,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px; padding: 8px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand__text { line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-weight: 900; font-size: 1.05rem; color: var(--ink); display: block; }
.brand__tag { font-size: .7rem; color: var(--ink-soft); letter-spacing: .04em; display: block; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--line); border-radius: 10px;
  padding: 8px 10px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; text-decoration: none; color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: .55em .8em; border-radius: 10px;
}
.site-nav a:hover { background: var(--cream-2); color: var(--red-dark); }
.site-nav a[aria-current="page"] { color: var(--red); }
.site-nav .nav-cta { margin-left: 8px; }
.site-nav .nav-cta a {
  background: var(--red); color: #fff; border-radius: 999px; padding: .6em 1.3em;
  box-shadow: var(--shadow-sm);
}
.site-nav .nav-cta a:hover { background: var(--red-dark); color: #fff; }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: " ▾"; font-size: .8em; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px;
  display: none; z-index: 110;
}
.dropdown a { border-radius: 8px; font-weight: 650; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 56px; }
.hero::before {
  /* oversized 你好 watermark */
  content: "你好";
  position: absolute; right: -4%; top: -12%;
  font-family: var(--font-head);
  font-size: clamp(200px, 34vw, 420px);
  font-weight: 900; color: var(--cream-3); opacity: .55;
  line-height: 1; pointer-events: none; user-select: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero .lede { font-size: 1.2rem; margin-bottom: 1.4em; }
.hero-note { font-size: .9rem; color: var(--ink-soft); margin-top: 14px; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; object-fit: cover;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 3px solid var(--gold-soft); border-radius: var(--radius-lg); z-index: -1;
}
.hero-badge {
  position: absolute; left: -10px; bottom: 22px;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow-md);
  font-family: var(--font-head); font-weight: 800; font-size: .88rem;
  padding: .55em 1.1em; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.hero-badge svg { flex-shrink: 0; }

/* Page hero (interior pages) */
.page-hero { padding: 44px 0 40px; }
.page-hero .lede { max-width: 700px; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--ink); color: #F3EBDD; padding: 18px 0; }
.trust-bar ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 34px;
}
.trust-bar li {
  display: flex; align-items: center; gap: 9px; margin: 0;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
}
.trust-bar svg { flex-shrink: 0; color: var(--gold); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: .8em; }
.card .text-link { margin-top: auto; align-self: flex-start; }
.card__art {
  width: 84px; height: 84px; margin-bottom: 16px;
  background: var(--gold-pale); border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
}
.card__art svg { width: 56px; height: 56px; }
.card ul { font-size: .95rem; color: var(--ink-soft); }

/* Feature columns (why choose) */
.feature { text-align: left; }
.feature__icon {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 14px;
  background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.feature h3 { font-size: 1.18rem; }
.feature p { color: var(--ink-soft); font-size: .98rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.step {
  background: var(--white); border-radius: var(--radius-lg); padding: 26px;
  border: 1px solid var(--line); position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  font-family: var(--font-head); font-weight: 900; font-size: 1.25rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* ---------- Split (photo + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.split__photo--framed { position: relative; }
.split__photo--framed::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 3px solid var(--gold-soft); border-radius: var(--radius-lg); z-index: -1;
}

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.testimonial {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-sm); margin: 0;
  display: flex; flex-direction: column;
}
.testimonial .stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial blockquote, .testimonial p.quote { margin: 0 0 14px; font-size: 1rem; color: var(--ink); }
.testimonial footer, .testimonial .who {
  margin-top: auto; font-family: var(--font-head); font-weight: 700;
  font-size: .9rem; color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  padding: 18px 52px 18px 22px; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 700; color: var(--red); transition: transform .2s;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--ink-soft); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-md);
}
.form-grid { display: grid; gap: 16px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: .92rem; margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .75em 1em; border: 2px solid var(--line); border-radius: 12px;
  background: var(--cream);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field--full { grid-column: 1 / -1; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin: 10px 0 0; }
.form-msg {
  display: none; margin-top: 14px; padding: 14px 18px; border-radius: 12px;
  background: var(--gold-pale); border: 1px solid var(--gold-soft); font-size: .95rem;
}
.form-msg.show { display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.nice {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  font-size: .97rem; min-width: 640px;
}
table.nice th {
  background: var(--ink); color: #F3EBDD; text-align: left;
  font-family: var(--font-head); font-weight: 800; font-size: .9rem;
  padding: 13px 16px;
}
table.nice td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.nice tr:last-child td { border-bottom: none; }
table.nice td:first-child { font-weight: 650; }

/* ---------- Banners / CTA bands ---------- */
.cta-band { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: "学"; position: absolute; right: 2%; bottom: -30%;
  font-family: var(--font-head); font-size: 300px; font-weight: 900;
  color: rgba(255,255,255,.07); line-height: 1; pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 640px; }
.cta-band .container { position: relative; z-index: 1; }

.callout {
  background: var(--gold-pale); border: 1px solid var(--gold-soft);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius); padding: 20px 24px; margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

.anchor-offset { scroll-margin-top: 90px; }

/* Embed placeholder (scheduler etc.) */
.embed-slot {
  background: var(--white); border: 2px dashed var(--gold);
  border-radius: var(--radius-lg); padding: 34px; text-align: center;
}
.embed-slot h3 { margin-bottom: .4em; }
.embed-slot p { color: var(--ink-soft); max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Photo strip ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.photo-strip figure { margin: 0; }
.photo-strip img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  aspect-ratio: 1 / 1; object-fit: cover; width: 100%;
}
.photo-strip figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 8px; text-align: center; }

/* ---------- Credentials list ---------- */
.cred-list { list-style: none; padding: 0; }
.cred-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 10px;
  display: flex; gap: 14px; align-items: flex-start;
}
.cred-list svg { flex-shrink: 0; color: var(--red); margin-top: 3px; }
.cred-list strong { display: block; font-family: var(--font-head); }
.cred-list span { color: var(--ink-soft); font-size: .93rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C6CEd6; font-size: .95rem; }
.site-footer a { color: #EDE2CC; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px; padding: 52px 0 36px;
}
.footer-grid h3 {
  color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid ul a { text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: #9AA5B1; }
.footer-creds {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0; display: flex; flex-wrap: wrap; gap: 8px 26px;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--gold-soft);
}
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0 26px; display: flex; flex-wrap: wrap; gap: 10px 24px;
  justify-content: space-between; font-size: .85rem; color: #9AA5B1;
}
.footer-legal a { color: #9AA5B1; }
.footer-signup input {
  width: 100%; padding: .7em 1em; border-radius: 10px; border: none;
  font: inherit; margin-bottom: 10px;
}
.footer-signup .btn { width: 100%; }
.footer-signup p { font-size: .88rem; color: #9AA5B1; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251,247,240,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { width: 100%; display: block; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.badge-zh {
  font-family: var(--font-head); font-weight: 900; color: var(--red);
  background: var(--red-tint); border-radius: 10px; padding: .1em .4em;
}
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: .55em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-photo { max-width: 440px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split__photo { max-width: 480px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; }
  .site-nav a { padding: .8em .6em; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav .nav-cta { margin: 14px 0 0; }
  .site-nav .nav-cta a { border-radius: 999px; text-align: center; border-bottom: none; }
  .dropdown {
    display: block; position: static; box-shadow: none; border: none;
    background: transparent; padding: 0 0 0 18px; min-width: 0;
  }
  .dropdown a { font-size: .98rem; color: var(--ink-soft); }
  .has-dropdown > a { pointer-events: none; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .section { padding: 42px 0; }
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .form-grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
  .sticky-cta { display: block; }
  body { padding-bottom: 76px; } /* room for sticky CTA */
  .hero { padding: 34px 0 44px; }
  .hero::before { font-size: 180px; top: auto; bottom: -4%; opacity: .4; }
  .hero-badge { left: 8px; }
  .trust-bar ul { gap: 8px 20px; }
  .trust-bar li { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, a.card { transition: none; }
}

@media print {
  .site-header, .sticky-cta, .site-footer, .cta-band { display: none; }
}

/* ---------- Seasonal enrollment banner ---------- */
.season-banner { background: var(--gold-pale); border-bottom: 1px solid var(--line); }
.season-banner .container { padding-top: 10px; padding-bottom: 10px; }
.season-banner p { margin: 0; text-align: center; font-size: .95rem; color: var(--ink); }
.season-banner a { color: var(--red); font-weight: 600; }
