:root {
  --zh-accent: #fc9500;
  --zh-navy: #1f2c3f;
  --zh-navy-deep: #0e182c;
  --zh-ink: #050d1a;
  --zh-text-light: #c9d8e0;
  --zh-white: #ffffff;
  --zh-max: 1200px;
}

/* ─── Self-hosted fonts (latin) ─── */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/inter-800.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/montserrat-800.woff2") format("woff2"); }
/* Metric-matched fallbacks (eliminate font-swap layout shift / CLS) */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0.00%; size-adjust: 107.12%; }
@font-face { font-family: "Montserrat Fallback"; src: local("Arial"); ascent-override: 85.79%; descent-override: 22.25%; line-gap-override: 0.00%; size-adjust: 112.71%; }

/* Base resets are intentionally minimal: page bodies ship their own
   zh-XX- scoped CSS, so global.css only owns the header and footer. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.zh-site-header {
  background: var(--zh-navy-deep);
  font-family: "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.zh-header-inner {
  max-width: var(--zh-max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.zh-logo { display: inline-flex; align-items: center; }
.zh-logo img { width: auto; height: 40px; display: block; }

.zh-nav { display: flex; align-items: center; gap: 1.75rem; }
.zh-nav a {
  color: var(--zh-white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
}
.zh-nav a:hover { color: var(--zh-accent); }
.zh-nav .zh-nav-cta {
  background: var(--zh-accent);
  color: var(--zh-ink);
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 0.4rem;
}
.zh-nav .zh-nav-cta:hover { color: var(--zh-ink); filter: brightness(1.05); }

/* Mobile nav toggle (CSS-only) */
.zh-nav-toggle { display: none; }
.zh-nav-burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.zh-nav-burger span { display: block; width: 24px; height: 2px; background: var(--zh-white); border-radius: 2px; }

@media (max-width: 768px) {
  .zh-nav-burger { display: flex; }
  .zh-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--zh-navy-deep);
    padding: 0.5rem 1.5rem 1.25rem;
  }
  .zh-nav a { padding: 0.85rem 0; width: 100%; }
  .zh-nav .zh-nav-cta { margin-top: 0.5rem; text-align: center; }
  .zh-nav-toggle:checked ~ .zh-nav { display: flex; }
}

/* ---------- Footer ---------- */
.zh-site-footer {
  background: var(--zh-ink);
  color: var(--zh-text-light);
  font-family: "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
}
.zh-footer-inner {
  max-width: var(--zh-max);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 2rem;
}
.zh-footer-brand img { height: 44px; width: auto; margin-bottom: 1rem; }
.zh-footer-brand p { line-height: 1.6; margin: 0 0 1.25rem; max-width: 32ch; }
.zh-footer-social { display: flex; gap: 0.5rem; }
.zh-footer-social a { color: var(--zh-text-light); display: inline-flex; }
.zh-footer-social a:hover { color: var(--zh-accent); }
.zh-footer-bbb { margin-top: 1.25rem; }
.zh-footer-bbb img { display: block; width: 180px; height: auto; border-radius: 4px; transition: opacity 0.2s; }
.zh-footer-bbb a:hover img { opacity: 0.85; }

.zh-footer-col h3 {
  color: var(--zh-white);
  font-family: "Montserrat", "Montserrat Fallback", "Inter", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.zh-footer-col ul { list-style: none; margin: 0; padding: 0; }
.zh-footer-col li { margin-bottom: 0.55rem; }
.zh-footer-col a { color: var(--zh-text-light); text-decoration: none; }
.zh-footer-col a:hover { color: var(--zh-accent); }

.zh-footer-bottom {
  border-top: 1px solid rgba(201, 216, 224, 0.15);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.zh-footer-bottom p { max-width: var(--zh-max); margin: 0 auto; font-size: 0.85rem; }
.zh-footer-legal a { color: var(--zh-text-light); text-decoration: none; margin-left: 0.5rem; }
.zh-footer-legal a:hover { color: var(--zh-accent); }
.zh-footer-updated { display: block; margin-top: 0.4rem; font-size: 0.78rem; color: var(--zh-text-light); opacity: 0.7; }

@media (max-width: 900px) {
  .zh-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .zh-footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Legal pages (privacy / terms) ---------- */
.zh-legal {
  font-family: "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;
  color: #1f2c3f;
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  line-height: 1.7;
}
.zh-legal h1 {
  font-family: "Montserrat", "Montserrat Fallback", "Inter", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #0e182c;
  margin: 0 0 0.5rem;
}
.zh-legal .zh-legal-updated { color: #707070; font-size: 0.9rem; margin-bottom: 2.5rem; }
.zh-legal h2 {
  font-family: "Montserrat", "Montserrat Fallback", "Inter", sans-serif;
  font-size: 1.2rem;
  color: #0e182c;
  margin: 2.25rem 0 0.75rem;
}
.zh-legal p, .zh-legal li { font-size: 1rem; }
.zh-legal ul { padding-left: 1.25rem; margin: 0.5rem 0 1rem; }
.zh-legal li { margin-bottom: 0.4rem; }
.zh-legal a { color: #9a5200; text-decoration: none; }
.zh-legal a:hover { text-decoration: underline; }
