/* =========================================================
   Align Studio — Site additions (not in handoff)
   - Page show/hide for hash routing
   - Mobile nav drawer
   - EN-mode font swap (Latin-friendly weights/sizes)
   ========================================================= */

/* ---- Page routing ---- */
[data-page] { display: none; }
[data-page].is-active { display: block; }

/* Avoid flash of unstyled content before app.js runs */
html:not(.app-ready) [data-page]:not([data-page="home"]) { display: none; }
html:not(.app-ready) [data-page="home"] { display: block; }

/* ---- Mobile nav drawer (matches handoff's max-width: 1100px breakpoint) ---- */
.nav-burger {
  display: none;
  width: 36px; height: 36px;
  border: 0.5px solid var(--line-strong);
  color: var(--cream);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-burger svg { display: block; }

@media (max-width: 1100px) {
  .nav-burger { display: inline-flex; }
  .nav-inner { grid-template-columns: auto 1fr auto; gap: 16px; }
  .nav-right .btn { display: none; }
  .nav-items {
    position: fixed;
    inset: 0;
    background: var(--deeper);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 80px 32px;
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease);
    z-index: 99;
    display: flex !important;
  }
  .nav-items.is-open { transform: translateX(0); }
  .nav-items a { font-size: 14px; letter-spacing: 0.24em; }
}

/* ---- Nav: enlarge labels (handoff 11px feels too small, esp. for CJK) ---- */
.nav-items a { font-size: 13px; letter-spacing: 0.18em; }
.nav-items .nav-num { font-size: 10px; }
html[lang="zh-Hant"] .nav-items a { font-size: 14px; letter-spacing: 0.16em; }

/* ---- ZH mode: shrink hero & display headlines (CJK glyphs are full-width, ~1.5x visual mass vs Latin) ---- */
html[lang="zh-Hant"] .hero-headline { font-size: clamp(36px, 5.4vw, 72px); letter-spacing: 0.02em; line-height: 1.18; }
html[lang="zh-Hant"] .hero-line--em { padding-left: 0.3em; }
html[lang="zh-Hant"] .phil-h          { font-size: clamp(28px, 3.6vw, 48px); letter-spacing: 0.02em; line-height: 1.2; }
html[lang="zh-Hant"] .closing-h       { font-size: clamp(24px, 2.8vw, 36px); letter-spacing: 0.02em; line-height: 1.25; }
html[lang="zh-Hant"] .page-mast .mast-h { font-size: clamp(34px, 4.8vw, 64px); letter-spacing: 0.02em; line-height: 1.18; }
html[lang="zh-Hant"] .pr-promo-h      { font-size: clamp(26px, 3.2vw, 44px); letter-spacing: 0.02em; line-height: 1.2; }
html[lang="zh-Hant"] .pr-policy-h     { font-size: clamp(26px, 3.2vw, 44px); letter-spacing: 0.02em; line-height: 1.2; }
html[lang="zh-Hant"] .ins-row-h h2    { font-size: clamp(24px, 2.6vw, 36px); letter-spacing: 0.01em; }
html[lang="zh-Hant"] .jr-feat-h       { font-size: clamp(22px, 2.2vw, 32px); }
html[lang="zh-Hant"] .faq-group-h h2  { font-size: clamp(22px, 2vw, 28px); }
html[lang="zh-Hant"] .story-h         { font-size: clamp(24px, 2.8vw, 36px); letter-spacing: 0.02em; line-height: 1.2; }
html[lang="zh-Hant"] .class-name      { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: 0.01em; }

/* ---- Contact: team intro + two-venue maps layout ---- */
.ct-team {
  max-width: 64ch;
  margin-bottom: 80px;
  padding-bottom: 48px;
  border-bottom: 0.5px solid var(--line);
}
.ct-team h3 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 16px 0 20px;
}
.ct-team h3 em { font-style: italic; color: var(--bronze-warm); }
.ct-team p { color: var(--cream-soft); line-height: 1.7; max-width: 56ch; }

.ct-venues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-bottom: 80px;
}
.ct-venue { display: flex; flex-direction: column; gap: 16px; }
.ct-venue-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
}
.ct-venue h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: -0.005em;
}
.ct-venue h3 em { font-style: italic; color: var(--bronze-warm); font-weight: 300; }
.ct-venue-addr {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cream-soft);
  line-height: 1.6;
  margin-bottom: 4px;
}
.ct-venue-map {
  aspect-ratio: 4/3;
  border: 0.5px solid var(--line);
  background: var(--charcoal-2);
  overflow: hidden;
  position: relative;
  filter: grayscale(0.35) brightness(0.85) contrast(1.05);
}
.ct-venue-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.ct-venue-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bronze-warm);
  border-bottom: 0.5px solid var(--bronze);
  padding-bottom: 4px;
  align-self: flex-start;
}
.ct-venue-link:hover { color: var(--cream); }

.ct-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-top: 56px;
  border-top: 0.5px solid var(--line);
}

@media (max-width: 900px) {
  .ct-venues { grid-template-columns: 1fr; gap: 40px; margin-bottom: 56px; }
  .ct-foot { grid-template-columns: 1fr; gap: 48px; }
  .ct-team { margin-bottom: 56px; padding-bottom: 32px; }
}

/* ---- Pricing promo: fix container gutter (handoff's `padding: 56px 0` shorthand kills .container's horizontal gutter) ---- */
.pr-promo-card    { padding: 56px var(--gutter); }
/* ---- Pricing promo: center the right column content (price + button) ---- */
.pr-promo-r       { align-items: center !important; text-align: center; }
.pr-promo-price   { align-items: center !important; }
@media (max-width: 820px) {
  .pr-promo-card  { text-align: center; justify-items: center; }
  .pr-promo-l     { display: flex; flex-direction: column; align-items: center; }
  .pr-promo-tag   { justify-content: center; }
  .pr-promo-b     { margin-left: auto; margin-right: auto; }
  .pr-promo-r     { padding-left: 0; border-left: none; border-top: 0.5px solid var(--line); padding-top: 32px; align-items: center !important; width: 100%; }
}

/* ---- Eyebrow: enlarge from 10px (handoff) to readable size, esp. for CJK ---- */
.eyebrow { font-size: 12px; letter-spacing: 0.28em; }
.eyebrow .num { font-size: 11px; }
html[lang="zh-Hant"] .eyebrow { font-size: 13px; letter-spacing: 0.2em; }
html[lang="zh-Hant"] .eyebrow .num { font-size: 12px; letter-spacing: 0.06em; }
.overline-mini { font-size: 11px; letter-spacing: 0.24em; }
html[lang="zh-Hant"] .overline-mini { font-size: 12px; letter-spacing: 0.18em; }

/* ---- Page transitions ---- */
[data-page].is-active { animation: pageIn 280ms var(--ease); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
