/* ==========================================================================
   TOTA — Brand Site Stylesheet
   Design language: quiet, spec-sheet minimalism (Apple/Huawei register)
   Signature motif: the radial "nutrient dial" lifted from the product label
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  /* ---- color ---- */
  --paper:      #FAFAFA;   /* base background, cool off-white, not cream */
  --paper-mist: #F1F2F5;   /* alternate section background */
  --ink:        #14161C;   /* primary text */
  --ink-soft:   #53565F;   /* secondary text */
  --line:       #E3E4E8;   /* hairline dividers */
  --line-soft:  #ECEDF1;

  --navy:       #17225E;   /* joint / glucosamine line */
  --navy-deep:  #0B123A;
  --navy-tint:  #EDEFF7;

  --coral:      #D6503F;   /* women's vitamin line */
  --coral-btn:  #C7442F;   /* slightly deeper, for white-on-coral button text contrast */
  --coral-deep: #A83A2E;
  --coral-tint: #FBECE9;

  --white:      #FFFFFF;

  /* ---- type ---- */
  --f-display: 'Manrope', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  --f-mono:    'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

  /* ---- scale ---- */
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;

  --gutter: clamp(24px, 5vw, 72px);
  --maxw: 1180px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--f-display);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---- language toggle ----
   Every text node is duplicated in .zh / .en spans.
   Default state shows Chinese; body.show-en flips it. */
.zh, .en { }
.en { display: none; }
body.show-en .zh { display: none; }
body.show-en .en { display: inline; }
body.show-en span.en.block,
span.en.block { display: none; }
body.show-en span.en.block { display: block; }
body.show-en span.zh.block { display: none; }
span.zh.block { display: block; }

html:lang(en) body:not(.show-en) { }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.display-1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 800;
}
.display-2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
}
.display-3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  font-weight: 700;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 500;
}

.mono-num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,250,0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand-mark img { height: 28px; width: 28px; border-radius: 7px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links a { color: var(--ink-soft); transition: color .2s var(--ease); position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--navy);
}

.nav-right { display: flex; align-items: center; gap: 18px; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--white);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--f-mono);
  letter-spacing: 0.03em;
}
.lang-toggle button.is-active {
  background: var(--navy);
  color: var(--white);
}

.nav-burger {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px var(--gutter);
    gap: 22px;
    font-size: 1.2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-burger { display: flex; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-coral { background: var(--coral-btn); color: var(--white); }
.btn-coral:hover { background: var(--coral-deep); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 62%, #1c2a6e 100%);
  color: var(--white);
  overflow: hidden;
  padding: 64px 0 0;
}

.hero-dial {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  height: 620px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-dial svg { width: 100%; height: 100%; }
.hero-dial .tick { stroke: rgba(255,255,255,0.35); }
.hero-dial .ring { stroke: rgba(255,255,255,0.18); }

.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 88px;
  max-width: 760px;
}

.hero .eyebrow { color: rgba(255,255,255,0.65); }
.hero .eyebrow::before { background: rgba(255,255,255,0.5); }

.hero h1 { color: var(--white); margin-top: 22px; }
.hero .lede { color: rgba(255,255,255,0.72); margin-top: 22px; max-width: 540px; }

.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(255,255,255,0.3); color: var(--white); }
.hero .btn-ghost:hover { border-color: rgba(255,255,255,0.7); }

.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 30px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hero-stat b {
  display: block;
  font-family: var(--f-mono);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 500;
}
.hero-stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-dial { width: 380px; height: 380px; right: -160px; }
}

/* ==========================================================================
   Sections / layout
   ========================================================================== */

section { padding: clamp(64px, 9vw, 120px) 0; }
.section-mist { background: var(--paper-mist); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { margin-top: 18px; }
.section-head .lede { margin-top: 16px; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---- two-track product picker ---- */
.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.track-card {
  border-radius: var(--radius-l);
  padding: clamp(28px, 3.5vw, 44px);
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .3s var(--ease);
}
.track-card:hover { transform: translateY(-4px); }
.track-card.navy-card { background: var(--navy-tint); }
.track-card.coral-card { background: var(--coral-tint); }
.track-card .track-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.navy-card .track-eyebrow { color: var(--navy); }
.coral-card .track-eyebrow { color: var(--coral-deep); }
.track-card h3 { margin-top: 14px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.track-card p { margin-top: 12px; color: var(--ink-soft); max-width: 32ch; }
.track-card .btn { margin-top: 24px; align-self: flex-start; }
.track-card .track-photo {
  position: absolute;
  right: -10px;
  top: 18px;
  width: 42%;
  max-width: 220px;
}

@media (max-width: 780px) {
  .track-grid { grid-template-columns: 1fr; }
  .track-card { min-height: 300px; }
}

/* ---- spec strip (manufacturing standards) ---- */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.spec-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 24px;
}
.spec-cell .mono-num {
  font-size: 1.6rem;
  color: var(--navy);
  font-weight: 500;
}
.spec-cell h4 { margin-top: 10px; font-size: 1rem; font-weight: 700; }
.spec-cell p { margin-top: 8px; font-size: 0.98rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---- nutrient dial component ---- */
.dial-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 60px;
  align-items: center;
}
.dial-section.flip { grid-template-columns: 1fr 0.85fr; }
.dial-section.flip .dial-visual { order: 2; }

.dial-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dial-visual svg { width: 100%; height: 100%; }
.dial-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--f-mono);
}
.dial-center-label b { display: block; font-size: 2.6rem; font-weight: 500; color: var(--navy); }
.dial-center-label span { font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.08em; }

.dtick { stroke: var(--navy); }
.dring-outer, .dring-inner { stroke: var(--line); }
.dial-visual.coral .dtick { stroke: var(--coral); }
.dial-visual.coral .dial-center-label b { color: var(--coral); }

.nutrient-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.nutrient-list li {
  font-size: 1rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.nutrient-list li .n {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  min-width: 1.4em;
}

@media (max-width: 860px) {
  .dial-section, .dial-section.flip { grid-template-columns: 1fr; }
  .dial-section.flip .dial-visual { order: 0; }
  .dial-visual { max-width: 320px; margin: 0 auto; }
}

/* ---- gallery (store proof) ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 12px;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-m); }
.gallery-grid .g-a { grid-column: span 3; grid-row: span 2; }
.gallery-grid .g-b { grid-column: span 3; grid-row: span 2; }
.gallery-grid .g-c { grid-column: span 2; grid-row: span 2; }
.gallery-grid .g-d { grid-column: span 2; grid-row: span 2; }
.gallery-grid .g-e { grid-column: span 2; grid-row: span 2; }

@media (max-width: 780px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-grid .g-a, .gallery-grid .g-b, .gallery-grid .g-c, .gallery-grid .g-d, .gallery-grid .g-e { grid-column: span 1; grid-row: span 1; }
}

.gallery-caption { margin-top: 18px; font-size: 0.88rem; color: var(--ink-soft); }

/* ---- expansion timeline (map strip) ---- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.timeline-item { border-top: 2px solid var(--navy); padding-top: 18px; }
.timeline-item.is-future { border-top-color: var(--coral); border-top-style: dashed; }
.timeline-item h4 { font-size: 1.05rem; }
.timeline-item p { margin-top: 8px; color: var(--ink-soft); font-size: 0.92rem; }

@media (max-width: 780px) {
  .timeline { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 1.1rem; }
.footer-brand img { height: 26px; width: 26px; border-radius: 6px; }
.footer-tagline { margin-top: 14px; font-size: 0.92rem; color: rgba(255,255,255,0.55); max-width: 34ch; }
.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; margin-bottom: 10px; color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Inner-page hero (about / products / contact)
   ========================================================================== */

.page-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-top: 18px; }
.page-hero .lede { margin-top: 18px; max-width: 620px; }

/* ---- generic content blocks ---- */
.prose { max-width: 700px; }
.prose p { margin: 0 0 18px; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pillar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px;
  background: var(--white);
}
.pillar-card .mono-num { color: var(--navy); font-size: 1.3rem; }
.pillar-card h4 { margin-top: 14px; font-size: 1.1rem; }
.pillar-card p { margin-top: 10px; color: var(--ink-soft); font-size: 1rem; }

@media (max-width: 780px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---- product detail sheet (products page) ---- */
.product-sheet {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
  padding: 56px 0;
}
.product-sheet + .product-sheet { border-top: 1px solid var(--line); }
.product-photo {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-l);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-photo.navy-bg { background: var(--navy-tint); }
.product-photo.coral-bg { background: var(--coral-tint); }
.product-photo img { max-height: 380px; width: auto; margin: 0 auto; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 22px; }
.spec-table tr { border-bottom: 1px solid var(--line-soft); }
.spec-table td { padding: 12px 0; font-size: 1rem; vertical-align: top; }
.spec-table td:first-child { color: var(--ink-soft); width: 30%; font-weight: 600; }

.claim-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.claim-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; }
.claim-list .num {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  background: var(--navy);
  color: var(--white);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.coral-context .claim-list .num { background: var(--coral); }

@media (max-width: 900px) {
  .product-sheet { grid-template-columns: 1fr; gap: 28px; }
  .product-photo { position: static; }
}

/* ---- contact page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 32px;
  background: var(--white);
}
.contact-card h4 { font-size: 1.05rem; }
.contact-card .contact-value {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 1.05rem;
  color: var(--navy);
  word-break: break-all;
}
.contact-card p.note { margin-top: 12px; font-size: 0.88rem; color: var(--ink-soft); }

@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

.store-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.store-list li { padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; color: var(--ink-soft); }
.store-list b { color: var(--ink); font-weight: 700; }
