/* ============================================================
   NAMASTEYCHINA — SHARED STYLE SYSTEM
   Palette: red #B72526, antique gold, beige/ivory, warm ink (no true black)
   Type: Cormorant Garamond (display) + DM Sans (body/UI)
   ============================================================ */

:root {
  --red:        #B72526;
  --red-dark:   #8E1C1D;
  --red-tint:   #F7E7E4;
  --gold:       #A9812E;
  --gold-tint:  #F1E9D4;
  --beige:      #F5EEE1;
  --beige-deep: #E9DCC3;
  --paper:      #FBF7EF;
  --ink:        #2B211C;
  --muted:      #7C6D5C;
  --border:     rgba(43, 33, 28, 0.13);
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', -apple-system, sans-serif;
  --hand:       'Caveat', cursive;
  --shadow:     0 18px 40px rgba(43, 33, 28, 0.08);
  --topbar-h:   94px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--red); }

.divider { width: 46px; height: 2px; background: var(--gold); margin: 18px 0 28px; }

.kanji-mark {
  position: absolute;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--red);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ─── TOPBAR (prominent brand + mode toggle) ── */
.site-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 40px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.topbar-brand { display: flex; align-items: center; gap: 14px; }
.topbar-brand img { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.topbar-wordmark {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.15;
}
.topbar-tagline {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* ─── NAV (secondary, contextual row) ────────────── */
.site-nav {
  position: fixed;
  top: var(--topbar-h); left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  padding: 16px 40px;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 42px; width: 42px; object-fit: contain; }
.nav-wordmark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.nav-wordmark em { font-style: normal; color: var(--red); }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links > a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links > a:hover, .nav-links > a.active { color: var(--ink); border-color: var(--gold); }

/* Brand wordmark accent letters — "Namaste[Y] [CH]ina" */
.brand-y { color: var(--gold); }
.brand-ch { color: var(--red); }

/* Academy / Intelligence mode toggle — one continuous pill, two segments */
.nav-tabs {
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  background: var(--beige-deep);
  flex-shrink: 0;
}
.nav-tabs .nav-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-tabs .nav-tab .tab-kanji {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.75;
}
.nav-tabs .nav-tab.active { background: var(--red); color: #fff; }
.nav-tabs .nav-tab.active .tab-kanji { color: #fff; opacity: 0.9; }

/* ─── TESTIMONIAL SCROLLER ─────────────────────────── */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: marquee-scroll 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-card {
  width: 320px; flex-shrink: 0;
  background: var(--paper); border: 1px solid var(--border); border-radius: 4px;
  padding: 28px 26px;
}
.marquee-quote { font-size: 14.5px; color: var(--ink); line-height: 1.7; font-style: italic; }
.marquee-attr { margin-top: 16px; font-size: 12.5px; color: var(--gold); font-weight: 500; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── PERSONAL NOTE (handwriting) ─────────────────── */
.personal-note {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 44px 48px;
  position: relative;
  box-shadow: var(--shadow);
}
.personal-note::before {
  content: '"';
  font-family: var(--serif);
  font-size: 90px;
  color: var(--gold-tint);
  position: absolute;
  top: 6px; left: 20px;
  line-height: 1;
}
.personal-note-text {
  font-family: var(--hand);
  font-size: 27px;
  line-height: 1.6;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.personal-note-sign {
  font-family: var(--hand);
  font-size: 30px;
  color: var(--red);
  margin-top: 18px;
  display: block;
}
.personal-note-meta { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 10px; letter-spacing: 0.03em; }

.nav-cta {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 11px 24px;
  background: var(--red);
  color: #fff;
  border-radius: 3px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); }

/* ─── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 15px 32px;
  border-radius: 3px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 14px 30px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-gold {
  display: inline-block;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 14px 30px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.btn-gold:hover { background: var(--gold); color: #fff; }

/* ─── HERO (shared shape, content varies per page) ──── */
.page-hero {
  padding: 262px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-hero.on-beige { background: var(--beige); }
.hero-eyebrow-row {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 26px;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 66px);
  font-weight: 500;
  line-height: 1.12;
  max-width: 780px;
  position: relative;
  z-index: 1;
}
.page-title .accent { color: var(--red); }
.page-lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin-top: 22px;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

/* ─── SECTIONS ────────────────────────────────────── */
.section { padding: 90px 0; position: relative; }
.section.on-beige { background: var(--beige); }
.section.on-deep { background: var(--beige-deep); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.18;
  max-width: 620px;
}
.section-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }

/* ─── CARDS ───────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 34px 30px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 .card, .grid-2 .card { border: none; background: var(--paper); }

.card-num { font-family: var(--serif); font-size: 15px; color: var(--gold); font-weight: 600; }
.card-title { font-family: var(--serif); font-size: 23px; font-weight: 600; margin: 14px 0 12px; }
.card-body { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* ─── PRICING ─────────────────────────────────────── */
.price-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border: 1.5px solid var(--red); box-shadow: var(--shadow); }
.price-tier { font-size: 11px; letter-spacing: 0.12em; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.price-amount { font-family: var(--serif); font-size: 40px; font-weight: 600; }
.price-period { font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.price-features { display: flex; flex-direction: column; gap: 11px; flex: 1; margin-bottom: 26px; }
.price-features li { font-size: 13.5px; color: var(--ink); display: flex; gap: 9px; align-items: flex-start; }
.price-features li::before { content: '✓'; color: var(--red); font-weight: 700; flex-shrink: 0; }

/* ─── TRUST STRIP ─────────────────────────────────── */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 42px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-num { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--red); }
.trust-label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin-top: 4px; }

/* ─── FOOTER ──────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(251, 247, 239, 0.7);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; color: var(--paper); margin-bottom: 12px; }
.footer-brand img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.footer-brand em { color: var(--red); font-style: normal; }
.footer-brand .brand-y { margin-right: -0.06em; }
.footer-tagline { font-size: 13.5px; color: rgba(251, 247, 239, 0.5); max-width: 260px; }
.footer-heading { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); margin-bottom: 16px; }
.footer-links a { display: block; font-size: 13.5px; color: rgba(251, 247, 239, 0.55); margin-bottom: 10px; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(251, 247, 239, 0.12);
  font-size: 12px; color: rgba(251, 247, 239, 0.4); flex-wrap: wrap; gap: 12px;
}

/* ─── FLOATING ACTIONS (injected by main.js) ─────────── */
.floating-stack {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(43,33,28,0.22);
  transition: transform 0.2s;
}
.floating-btn:hover { transform: scale(1.07); }
.floating-btn.whatsapp { background: #25D366; }
.floating-btn.instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.floating-btn svg { width: 24px; height: 24px; fill: #fff; }

/* ─── FADE-IN (single orchestrated reveal, used sparingly) ─── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  :root { --topbar-h: 66px; }
  .container, .container-narrow { padding: 0 24px; }
  .nav-links { position: fixed; top: calc(var(--topbar-h) + 74px); left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; border-bottom: 1px solid var(--border); transform: translateY(-140%); transition: transform 0.25s; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 234px 0 60px; }
  .trust-strip { gap: 32px; }
  .marquee-card { width: 260px; }
  .personal-note { padding: 32px 26px; }
  .personal-note-text { font-size: 22px; }
  .site-topbar { padding: 12px 20px; gap: 10px; }
  .site-nav { padding-left: 20px; padding-right: 20px; }
  .topbar-brand img { width: 32px; height: 32px; }
  .topbar-wordmark { font-size: 18px; }
  .topbar-tagline { display: none; }
  .nav-tabs .nav-tab { padding: 9px 16px; font-size: 11px; gap: 6px; }
  .nav-tabs .nav-tab .tab-kanji { font-size: 12px; }
}
