/* PAWOA GINSENG SPIRITS — Premium dark multi-language brand site */
:root {
  --bg: #050505;
  --bg-elevated: #0e0e0e;
  --bg-card: #141414;
  --orange: #E85D04;
  --orange-hot: #F48C06;
  --gold: #D4A017;
  --gold-soft: #c9a227;
  --cream: #F5F0E6;
  --cream-muted: #c8c0b0;
  --border: rgba(232, 93, 4, 0.22);
  --radius: 14px;
  --font: "Inter", "Noto Sans SC", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Cinzel", "Times New Roman", Georgia, serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--orange-hot); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0;
  flex-wrap: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(20, 20, 20, 0.9);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cream);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  text-transform: uppercase;
  flex-shrink: 0;
  min-width: 0;
}

.logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--cream-muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav a:hover { color: var(--orange); }


.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cream-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn:hover { color: var(--cream); }

.lang-btn[aria-pressed="true"] {
  background: rgba(232, 93, 4, 0.22);
  color: var(--orange-hot);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 4.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.35) 0%, rgba(5,5,5,0.55) 40%, rgba(5,5,5,0.97) 100%),
    linear-gradient(90deg, rgba(5,5,5,0.75) 0%, rgba(5,5,5,0.25) 55%, rgba(5,5,5,0.5) 100%),
    url("../assets/hero-tiger.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  background: linear-gradient(120deg, var(--cream), var(--gold), var(--orange-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.slogan {
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-lead {
  color: var(--cream-muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), #c2410c);
  color: #fff;
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}
.btn-ghost:hover { background: rgba(212, 160, 23, 0.12); color: var(--cream); }

/* Sections */
section {
  padding: 5.5rem 0;
  position: relative;
}

.section-label {
  color: var(--orange);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-intro {
  color: var(--cream-muted);
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

/* Product */
.product {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.product-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #050505;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
}

.product-visual img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(5,5,5,0.82);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
}

.spec-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.75rem 0 2rem;
}

.spec-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.spec-item dt {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  align-self: center;
}

.spec-item dd {
  color: var(--cream);
  font-size: 0.95rem;
}

.ingredient-note {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: rgba(232, 93, 4, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ingredient-note img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.ingredient-note p {
  color: var(--cream-muted);
  font-size: 0.9rem;
}

/* Origin */
.origin {
  background: var(--bg-elevated);
}

.origin-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
}

.origin-text { padding: 2.25rem; }
.origin-visual {
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(232,93,4,0.25), rgba(5,5,5,0.7)),
    url("../assets/ginseng-goji.jpg") center / cover no-repeat;
}

.origin-meta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--cream-muted);
  font-size: 0.88rem;
}

.origin-meta strong { color: var(--gold-soft); font-weight: 600; }

/* Benefits */
.benefits {
  background: var(--bg);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.benefit-card:hover {
  border-color: rgba(232, 93, 4, 0.5);
  transform: translateY(-3px);
}

.benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(232,93,4,0.25), rgba(212,160,23,0.15));
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.benefit-card h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
}

.benefit-card p {
  color: var(--cream-muted);
  font-size: 0.92rem;
}

/* Markets */
.markets {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg));
}

.market-list {
  display: grid;
  gap: 0.85rem;
}

.market-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.market-flag {
  font-size: 1.5rem;
  width: 2.2rem;
  text-align: center;
}

.market-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.market-item span {
  color: var(--cream-muted);
  font-size: 0.88rem;
}

.market-status {
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.status-live {
  background: rgba(232, 93, 4, 0.2);
  color: var(--orange-hot);
  border: 1px solid rgba(232, 93, 4, 0.4);
}

.status-next {
  background: rgba(212, 160, 23, 0.12);
  color: var(--gold);
  border: 1px solid rgba(212, 160, 23, 0.35);
}

/* Contact */
.contact {
  background: var(--bg-elevated);
  padding-bottom: 3rem;
}

.contact-box {
  background:
    radial-gradient(ellipse at top right, rgba(232,93,4,0.18), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
}

.contact-box > p {
  color: var(--cream-muted);
  max-width: 40rem;
  margin: 0.75rem auto 1.75rem;
}

.contact-box-wide { text-align: left; }
.contact-box-wide > .section-label,
.contact-box-wide > h2,
.contact-box-wide > p {
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.contact-card {
  background: rgba(5, 5, 5, 0.45);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.4rem 1.5rem;
}

.contact-card h3 {
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.contact-row { margin-bottom: 1rem; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row .label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-hot);
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.contact-row p {
  color: var(--cream-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}
.contact-row .address-zh {
  margin-top: 0.45rem;
  color: var(--cream);
  font-family: "Noto Sans SC", "Noto Sans TC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[lang="zh-Hant"],
html[lang="zh-Hant"] body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Noto Sans SC", var(--font);
}
html[lang="zh-Hans"],
html[lang="zh"] {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", var(--font);
}

.contact-form { margin-top: 0.25rem; }
.contact-form .form-row { margin-bottom: 0.85rem; }
.contact-form label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--cream-muted);
  margin-bottom: 0.35rem;
}
.contact-form .optional {
  color: var(--cream-muted);
  opacity: 0.7;
  font-size: 0.75rem;
  letter-spacing: 0;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  background: rgba(5,5,5,0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--cream);
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 1rem; /* >=16px avoids iOS input zoom */
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.18);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { margin-top: 0.35rem; width: 100%; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.5rem;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--cream-muted);
  font-size: 0.82rem;
}

.footer-brand {
  font-family: var(--display);
  letter-spacing: 0.12em;
  color: var(--cream);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Packaging gallery */
.packaging {
  padding: 5rem 0;
  background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
  border-top: 1px solid var(--border);
}
.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.pack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pack-card img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  background: #050505;
  padding: 0.85rem;
}
.pack-card-wide {
  grid-column: 1 / -1;
}
.pack-card-wide img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  padding: 1rem;
}
.pack-card figcaption {
  padding: 0.85rem 1rem 1.1rem;
  color: var(--cream-muted);
  font-size: 0.9rem;
}

/* ========== Responsive breakpoints ========== */
/* Tablet / small laptop (~1024) */
@media (max-width: 1024px) {
  .nav { gap: 0.85rem; }
  .nav a { font-size: 0.75rem; }
  .product-grid { gap: 2rem; }
  .benefit-grid { gap: 1rem; }
}

/* Landscape tablet / large phone (~768–900): stack major grids, keep compact header */
@media (max-width: 900px) {
  .product-grid,
  .origin-card,
  .benefit-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .origin-visual { min-height: 220px; order: -1; }
  .spec-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .market-item { flex-wrap: wrap; }
  .market-status { margin-left: 0; }
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
  .pack-card-wide { grid-column: 1 / -1; }
  section { padding: 4rem 0; }

  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    z-index: 101;
  }

  body.nav-open .nav { display: flex; }

  .nav a {
    padding: 0.9rem 0.35rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(232, 93, 4, 0.12);
    letter-spacing: 0.08em;
  }
  .nav a:last-child { border-bottom: 0; }

  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .lang-switcher { max-width: min(100%, 19rem); }
}

/* Phone / narrow tablet: hamburger nav + stacked layout */
@media (max-width: 768px) {
  .container { width: min(100% - 1.5rem, var(--max)); }

  .hero {
    padding: 6.25rem 0 3.25rem;
    min-height: auto;
    align-items: flex-end;
  }
  .hero-content { max-width: 100%; }
  .hero-lead { font-size: 0.98rem; }
  .eyebrow { letter-spacing: 0.18em; font-size: 0.7rem; }

  .cta-row .btn { min-height: 44px; }

  .origin-text { padding: 1.5rem; }
  .ingredient-note { flex-wrap: wrap; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* Small phones (~480) */
@media (max-width: 480px) {
  .container { width: min(100% - 1.25rem, var(--max)); }

  .logo span { font-size: 0.82rem; letter-spacing: 0.08em; }
  .logo img { width: 36px; height: 36px; }

  .lang-switcher {
    max-width: none;
    width: auto;
  }
  .lang-btn {
    padding: 0.35rem 0.4rem;
    font-size: 0.65rem;
    min-height: 36px;
  }

  .hero { padding-top: 5.75rem; padding-bottom: 2.75rem; }
  .hero h1 { font-size: clamp(1.55rem, 8vw, 2.1rem); letter-spacing: 0.03em; }
  .slogan { letter-spacing: 0.08em; font-size: 0.78rem; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }

  .pack-grid { grid-template-columns: 1fr; }
  .pack-card-wide { grid-column: auto; }

  section { padding: 3.25rem 0; }
  .packaging { padding: 3.25rem 0; }

  .contact-box { padding: 1.25rem; }
  .contact-card { padding: 1.1rem; }
  .product-visual { aspect-ratio: 3/4; padding: 0.85rem; }
  .btn { padding: 0.85rem 1.25rem; font-size: 0.82rem; }
}

/* Very small / foldables */
@media (max-width: 360px) {
  .lang-btn { padding: 0.3rem 0.28rem; font-size: 0.6rem; }
  .header-actions { gap: 0.35rem; }
}

/* Age gate (18+) */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(232,93,4,0.18), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(212,160,23,0.12), transparent 45%),
    rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(10px);
}
.age-gate[hidden] { display: none !important; }
.age-gate-dialog {
  width: min(100%, 28rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}
.age-gate-brand {
  font-family: var(--display);
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.age-gate-dialog h2 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  margin-bottom: 0.75rem;
  background: linear-gradient(120deg, var(--cream), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.age-gate-dialog p {
  color: var(--cream-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
.age-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.age-gate-actions .btn { min-width: 8.5rem; }
.age-gate-denied {
  color: var(--cream-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.age-gate-denied[hidden] { display: none !important; }
body.age-gated {
  overflow: hidden;
}
body.age-gated > :not(.age-gate) {
  visibility: hidden;
}
@media (max-width: 480px) {
  .age-gate-dialog { padding: 1.5rem 1.15rem 1.25rem; }
  .age-gate-actions { flex-direction: column; }
  .age-gate-actions .btn { width: 100%; }
}
