/* Bo Long Trading — Red / Champagne Gold / White */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&family=Noto+Serif+TC:wght@600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --red: #8f1d2c;
  --red-dark: #6e1521;
  --red-soft: #f8eef0;
  --gold: #c4a574;
  --gold-light: #e8d5b5;
  --gold-dark: #9a7b4f;
  --ink: #2a2a2a;
  --ink-soft: #5a5a5a;
  --line: #e6e0d6;
  --bg: #ffffff;
  --bg-warm: #faf8f5;
  --bg-deep: #1a1214;
  --shadow: 0 12px 40px rgba(26, 18, 20, 0.08);
  --radius: 4px;
  --font-display: 'Noto Serif TC', 'Songti TC', serif;
  --font-body: 'Noto Sans TC', 'PingFang TC', sans-serif;
  --font-en: 'Outfit', sans-serif;
  --header-h: 76px;
  --mobile-nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo {
  height: 48px;
  width: auto;
}

.brand-logo-icon {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text span {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-main a {
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav-main a:hover,
.nav-main a.is-active {
  color: var(--red);
}

.nav-main a.is-active::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--gold);
}

.header-cta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover { background: var(--red-dark); }

.btn-gold {
  background: transparent;
  color: var(--ink);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--gold);
}

.btn-wa {
  background: #25D366;
  color: #fff;
}

.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active { opacity: 1; }

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,18,20,0.25) 0%, rgba(26,18,20,0.72) 55%, rgba(26,18,20,0.9) 100%),
    linear-gradient(90deg, rgba(143,29,44,0.35), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 5rem;
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
  animation: rise 0.9s var(--ease) both;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hero-brand img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.35));
}

.hero-brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.hero-brand-name small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  font-weight: 500;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  max-width: 18ch;
}

.hero p {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.86);
  max-width: 28ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-dots {
  position: absolute;
  right: max(1.25rem, calc((100% - 1140px) / 2));
  bottom: 2rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.hero-dots button.is-active {
  background: var(--gold);
  transform: scale(1.35);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-warm);
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  letter-spacing: 0.04em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0.85rem 0 0;
  border: 0;
}

/* ---------- Grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.feature-block {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  transition: border-color 0.3s;
}

.feature-block:hover { border-top-color: var(--gold); }

.feature-block h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.feature-block p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: var(--gold-dark);
}

/* Product tiles — not heavy cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.product-tile {
  position: relative;
}

.product-tile-media {
  aspect-ratio: 1;
  background-color: #f3efe8;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.35s var(--ease);
  position: relative;
}

.product-tile:hover .product-tile-media {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.product-tile-overlay {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(26,18,20,0.72) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-cat-icon {
  width: 28px;
  height: 28px;
  color: var(--gold-light);
}

.product-tile-media .sku-mark {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.92);
}

.product-tile-body {
  padding: 1rem 0 0;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.tag-hot { border-color: var(--red); color: var(--red); }
.tag-new { border-color: var(--gold-dark); color: var(--gold-dark); }
.tag-promo { background: var(--red-soft); border-color: transparent; color: var(--red); }

.product-tile h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.product-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.product-hover-specs {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s var(--ease), opacity 0.35s, margin 0.35s;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.product-tile:hover .product-hover-specs {
  max-height: 80px;
  opacity: 1;
  margin-top: 0.55rem;
}

/* Promo list */
.promo-list {
  display: grid;
  gap: 1rem;
}

.promo-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.promo-badge {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--red);
  border: 1px solid var(--red);
  text-align: center;
  padding: 0.65rem 0.5rem;
}

/* Document list */
.doc-table {
  width: 100%;
  border-collapse: collapse;
}

.doc-table th,
.doc-table td {
  text-align: left;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.doc-table th {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field textarea { min-height: 120px; resize: vertical; }

.form-panel {
  background: var(--bg-warm);
  padding: 2rem;
  border-top: 3px solid var(--gold);
}

.alert {
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--gold);
  background: var(--bg-warm);
}

.alert-success { border-color: #2e7d4f; }
.alert-error { border-color: var(--red); background: var(--red-soft); }

/* Page hero (inner) */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    linear-gradient(135deg, var(--bg-warm) 0%, #fff 50%, rgba(196,165,116,0.12) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36rem;
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  align-items: end;
}

.filter-bar .field { min-width: 160px; }

/* Footer */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.78);
  padding: 3.5rem 0 7rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 26ch;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col a {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* Mobile bottom nav */
.mobile-dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, 1fr);
}

.mobile-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.mobile-dock a.is-active,
.mobile-dock a:hover { color: var(--red); }

.mobile-dock svg {
  width: 22px;
  height: 22px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  padding: 1.25rem 0;
  border-top: 2px solid var(--gold);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-en);
  color: var(--gold-dark);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Status timeline */
.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.timeline-item {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.timeline-item.is-done {
  border-color: var(--gold);
  color: var(--ink);
  background: rgba(196,165,116,0.12);
}

.timeline-item.is-current {
  border-color: var(--red);
  color: var(--red);
  font-weight: 600;
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26,18,20,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-height: 85vh;
  max-width: 90vw;
}

/* Utility */
.mt-2 { margin-top: 2rem; }
.text-muted { color: var(--ink-soft); }
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .product-grid, .grid-4, .footer-grid, .steps {
    grid-template-columns: 1fr 1fr;
  }
  .promo-item { grid-template-columns: 90px 1fr; }
  .promo-item .btn { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav-main,
  .header-cta { display: none; }

  .nav-main.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem;
  }

  .menu-toggle { display: block; }

  .brand-text span { display: none; }

  .hero { min-height: 78vh; align-items: flex-end; }
  .hero-content { padding-bottom: 4rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .grid-3, .product-grid, .grid-4, .footer-grid, .steps, .form-grid {
    grid-template-columns: 1fr;
  }

  .mobile-dock { display: grid; }
  .site-footer { padding-bottom: 6.5rem; }
  .section { padding: 3.5rem 0; }
  .doc-table { display: block; overflow-x: auto; }
  .category-visual-grid,
  .service-visual-grid {
    grid-template-columns: 1fr;
  }
  .cta-band-inner { align-items: stretch; }
}

/* Category / service visuals */
.category-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.category-visual {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  display: block;
  color: #fff;
}

.category-visual-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 0.6s var(--ease);
}

.category-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,18,20,0.15), rgba(26,18,20,0.78));
}

.category-visual:hover .category-visual-bg { transform: scale(1.08); }

.category-visual-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 240px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-icon {
  width: 36px;
  height: 36px;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.category-visual h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.category-visual span {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.section-visual-services {
  background: var(--bg-deep);
  color: #fff;
}

.section-visual-services .section-eyebrow { color: var(--gold-light); }
.section-visual-services .section-head p { color: rgba(255,255,255,0.72); }

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

.service-visual {
  position: relative;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  display: block;
  color: #fff;
  overflow: hidden;
}

.service-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(143,29,44,0.25), rgba(26,18,20,0.82));
}

.service-visual-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 280px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--gold-light);
  margin-bottom: 0.85rem;
}

.service-visual h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.service-visual p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
}

.doc-row-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 0.45rem;
  color: var(--gold-dark);
}

.ui-icon-sm { width: 18px; height: 18px; }

.cta-band {
  background:
    linear-gradient(120deg, rgba(143,29,44,0.92), rgba(26,18,20,0.92)),
    url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: #fff;
}

.cta-band-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.cta-band p {
  margin: 0;
  max-width: 32rem;
  color: rgba(255,255,255,0.82);
}

@media (max-width: 960px) {
  .category-visual-grid,
  .service-visual-grid { grid-template-columns: 1fr; }
}
