/* ============================================================
   TSAR & KRUG — A Legacy Preserved
   Luxury Preserve Brand · Imperial Dark Design System
   ============================================================ */

/* ── Variables ── */
:root {
  /* Brand palette from physical assets */
  --color-bg: #0a0a0c;
  --color-bg-alt: #121216;
  --color-surface: #1a1a20;
  --color-surface-alt: #22222a;
  --color-border: rgba(217, 175, 110, 0.18);
  --color-border-strong: rgba(217, 175, 110, 0.4);

  /* Imperial palette */
  --color-cherry: #700010;
  --color-cherry-bright: #a01230;
  --color-gold: #D9AF6E;
  --color-gold-bright: #e8c48a;
  --color-silver: #c0c0c0;
  --color-bronze: #806030;

  /* Text */
  --color-text: #f5f5f5;
  --color-text-dim: rgba(245, 245, 245, 0.7);
  --color-text-muted: rgba(245, 245, 245, 0.5);

  /* ── Typography ── */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-heading-zh: 'Noto Serif TC', 'Playfair Display', Georgia, serif;
  --font-body-zh: 'Noto Sans TC', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;

  /* Layout */
  --container-max: 1180px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 32px rgba(217, 175, 110, 0.12);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-gold-bright); }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

html[lang="zh-Hant"] h1,
html[lang="zh-Hant"] h2,
html[lang="zh-Hant"] h3,
html[lang="zh-Hant"] h4 {
  font-family: var(--font-heading-zh);
}

html[lang="zh-Hant"] body,
html[lang="zh-Hant"] p,
html[lang="zh-Hant"] .nav a,
html[lang="zh-Hant"] .btn,
html[lang="zh-Hant"] .product-card__flavour,
html[lang="zh-Hant"] .product-card__note,
html[lang="zh-Hant"] .product-card__price,
html[lang="zh-Hant"] .value-card__title,
html[lang="zh-Hant"] .value-card__text,
html[lang="zh-Hant"] .medal-item__title,
html[lang="zh-Hant"] .medal-item__text,
html[lang="zh-Hant"] .footer-menu a,
html[lang="zh-Hant"] .footer-col__title,
html[lang="zh-Hant"] .footer-tagline,
html[lang="zh-Hant"] .footer-contact,
html[lang="zh-Hant"] .section__label,
html[lang="zh-Hant"] .section__desc,
html[lang="zh-Hant"] .hero__sub,
html[lang="zh-Hant"] .cta-banner p {
  font-family: var(--font-body-zh);
  letter-spacing: 0.02em;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--alt { background: var(--color-bg-alt); }

.section__label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: inline-block;
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--color-text-dim);
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section__header { text-align: center; max-width: 720px; margin: 0 auto 56px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}

.btn--sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}
.btn--gold {
  background: linear-gradient(135deg, var(--color-gold-bright), var(--color-gold));
  color: #1a1a1a;
  border: 1px solid transparent;
}
.btn--gold:hover {
  background: linear-gradient(135deg, var(--color-gold), var(--color-bronze));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn--outline {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-border-strong);
}
.btn--outline:hover {
  background: rgba(217, 175, 110, 0.08);
  border-color: var(--color-gold);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(245, 245, 245, 0.3);
}
.btn--ghost:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* ── Top Bar ── */
.top-bar {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.top-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.top-bar a { color: var(--color-text-muted); }
.top-bar a:hover { color: var(--color-gold); }
.lang-switcher { display: flex; gap: 12px; }
.lang-item { font-weight: 600; }

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 180px; width: auto; max-height: none; object-fit: contain; }
.site-logo { padding: 4px 0; }
.site-logo__text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 14px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  border-radius: 2px;
}
.nav a:hover { color: var(--color-gold); background: rgba(217, 175, 110, 0.06); }
.nav .btn { color: #1a1a1a; }
.nav .btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--color-bg);
}
.hero__text-block {
  position: relative;
  z-index: 2;
  width: 35%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 40px 60px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.85) 100%);
}
.hero__bg {
  position: absolute;
  right: 0;
  top: 0;
  width: 65%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg img {
  width: 95%;
  max-width: 750px;
  height: auto;
  object-fit: contain;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 70% 50%, transparent 10%, rgba(10, 10, 12, 0.6) 100%);
}
.hero__title {
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
  color: #D9AF6E;
  line-height: 1.1;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
}
.hero__sub {
  font-size: 2.2rem;
  color: var(--color-text);
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.65;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.hero__sub span.sep {
  display: block;
  height: 16px;
}
.hero__logo { display: none; }
.hero__tagline { display: none; }
.hero__actions { display: none; }
.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  color: #D9AF6E;
}
.hero__sub {
  font-size: 1.05rem;
  color: var(--color-text);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ── Feature strip (medal colours) ── */
.medal-strip {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}
.medal-strip__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.medal-item { padding: 8px; }
.medal-item__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: none;
}
.medal-item__dot--gold {
  background: var(--color-gold);
}
.medal-item__dot--silver {
  background: var(--color-silver);
}
.medal-item__dot--bronze {
  width: 16px;
  height: 16px;
  background: var(--color-bronze);
  border-radius: 2px;
  transform: rotate(45deg);
  margin: 0 auto 12px;
}
.medal-item__img {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: block;
}
.medal-item__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.medal-item__text { font-size: 0.85rem; color: var(--color-text-muted); }

/* ── Product cards ── */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

/* 2-item grid: centered */
.collection-grid--2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* 3-item grid */
.collection-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* 5-item grid: 3 on top, 2 centered below */
.collection-grid--5 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.collection-grid--5 .product-card:nth-child(1) { grid-column: 1 / 2; }
.collection-grid--5 .product-card:nth-child(2) { grid-column: 2 / 3; }
.collection-grid--5 .product-card:nth-child(3) { grid-column: 3 / 4; }
.collection-grid--5 .product-card:nth-child(4) { 
  grid-column: 1 / 3; 
  justify-self: end; 
  width: calc(50% - 16px); 
  max-width: 50%;
}
.collection-grid--5 .product-card:nth-child(5) { 
  grid-column: 2 / 4; 
  justify-self: start; 
  width: calc(50% - 16px); 
  max-width: 50%;
}
@media (max-width: 900px) {
  .collection-grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .collection-grid--5 .product-card:nth-child(n) {
    grid-column: auto !important;
    justify-self: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s;
}
.product-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}
.product-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #101014;
  grid-column: auto;
  grid-row: auto;
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-card__img img { transform: scale(1.04); }
.product-card__body { padding: 24px; }
.product-card__flavour {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.product-card__note { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 12px; }
.product-card__price { font-size: 0.9rem; color: var(--color-gold); font-weight: 600; }
.product-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(112, 0, 16, 0.9);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 2px;
  z-index: 2;
}

/* ── Two-column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col--reverse .two-col__content { order: 2; }
.two-col__image { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.two-col__content h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 20px; }
.two-col__content p { color: var(--color-text-dim); margin-bottom: 20px; }

/* ── Legacy / story ── */
.legacy-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1.5;
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--color-text);
}
.legacy-quote .gold { color: var(--color-gold); }

/* ── Gift packs ── */
.gift-card {
  background: linear-gradient(160deg, var(--color-surface-alt), var(--color-surface));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  transition: all 0.3s;
}
.gift-card:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-gold); transform: translateY(-4px); }
.gift-card__title { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 12px; }
.gift-card__desc { color: var(--color-text-dim); font-size: 0.9rem; margin-bottom: 24px; }

/* ── CTA banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--color-cherry) 0%, var(--color-bg) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  padding: 80px 24px;
}
.cta-banner h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.cta-banner p { color: var(--color-text-dim); max-width: 560px; margin: 0 auto 32px; }
.cta-banner .btn { margin: 0 8px; }

/* ── Footer ── */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}
.footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}
.footer-logo { width: 90px; margin-bottom: 16px; }
.footer-tagline { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 16px; }
.footer-col__title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
}
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: var(--color-text-muted); font-size: 0.88rem; }
.footer-menu a:hover { color: var(--color-gold); }
.footer-contact { font-size: 0.88rem; color: var(--color-text-muted); }
.footer-contact a { color: var(--color-text-muted); }
.footer-contact a:hover { color: var(--color-gold); }
.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ── WhatsApp float ── */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.whatsapp-float__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a1a20;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  padding: 12px 20px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-soft);
}
.whatsapp-float__btn:hover { border-color: var(--color-gold); color: var(--color-gold); }
.whatsapp-float__btn svg { width: 20px; height: 20px; }

/* ── Forms ── */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}
.form-group select { appearance: none; }
.form-group textarea { min-height: 140px; resize: vertical; }

/* ── Cards / misc ── */
.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}
.value-card:hover { border-color: var(--color-border-strong); transform: translateY(-3px); }
.value-card__num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 12px;
}
.value-card__title { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 10px; }
.value-card__text { font-size: 0.88rem; color: var(--color-text-muted); }

.page-hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 12px; }
.page-hero .section__label { margin-bottom: 12px; }
.page-hero p { color: var(--color-text-dim); max-width: 640px; margin: 0 auto; }
.breadcrumbs {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-gold); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .medal-strip__inner { grid-template-columns: 1fr; gap: 24px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 56px 0; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-alt);
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    gap: 4px;
    z-index: 200;
  }
  .nav.is-open a { padding: 12px 16px; }
  .site-header { position: relative; }
  .container, .page-hero, .section__header, .section__desc { text-align: center; }
  .section__desc { margin-left: auto; margin-right: auto; }
  .visual-placeholder, .two-col__image { margin: 0 auto; }
  .hero { min-height: 70vh; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { padding: 56px 24px; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  
  /* Hero mobile - stack text block on top, image below */
  .hero {
    flex-direction: column;
    min-height: auto;
    padding: 60px 0;
  }
  .hero__text-block {
    width: 100%;
    min-width: auto;
    padding: 40px 24px;
    background: none;
  }
  .hero__bg {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0 24px 40px;
  }
  .hero__bg img {
    max-width: 100%;
  }
  .hero__overlay {
    display: none;
  }
}
