/* Hong Kong Jiucheng Trading — cccd rebuild.
   Brand system (from the master brief): Deep Forest Green #103C2F,
   Dark Green #142B23, Warm Ivory #F3F0E8, Soft White #FAFAF7,
   Champagne Gold #C4A46A — used only for the eyebrow rule.
   Muted Grey #8B918C.
   Display: Playfair Display (serif). Body: Inter (sans).
   Small radii (4-6px), thin rules, numbered steps. No heavy gradients,
   no glassmorphism, no pill buttons. */
:root {
  --green: #103C2F;
  --green-dark: #142B23;
  --ivory: #F3F0E8;
  --paper: #FAFAF7;
  --gold: #C4A46A;
  --grey: #8B918C;
  --ink: #1D2620;
  --muted: #5D675F;
  --line: #DCD6C6;
  --line-soft: #E7E2D4;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  --radius: 6px;
  --radius-sm: 4px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
/* Anchor offset: sticky header is 77px (76px bar + 1px border) and the top
   bar above it is 36px, so total nav height is 113px. scroll-padding alone
   does not move minimal-scroll landings (scrollIntoViewIfNeeded), so the
   sections also carry a scroll-margin: both values derive from the 113px
   total nav height plus a small margin. */
section[id] { scroll-margin-top: 130px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
button { font: inherit; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
::selection { background: var(--green); color: var(--ivory); }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-dark); color: #D8E2D8; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
.topbar-right { color: #C9D6C9; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-head .container { width: min(1280px, 100% - 48px); }
.head-inner { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 6px; }
.brand-copy strong { display: block; font-size: 19px; line-height: 1.1; letter-spacing: 1px; }
.brand-copy small { display: block; font-size: 9.5px; letter-spacing: 2.2px; color: var(--muted); margin-top: 3px; }
.head-nav { display: flex; gap: 20px; margin-left: auto; }
.head-nav a { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.head-nav a:hover { color: var(--green); border-bottom-color: var(--green); }
.head-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.head-nav + .head-actions { margin-left: 0; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--paper); }
.lang-btn { border: 0; background: transparent; padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.head-actions .btn { white-space: nowrap; }
.lang-btn.is-on { background: var(--green); color: var(--ivory); }
.burger { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-sm); width: 42px; height: 42px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); }
.scrim { position: fixed; inset: 0; background: rgba(20, 43, 35, .45); z-index: 45; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 13px 24px; font-size: 15px; font-weight: 600; line-height: 1.3;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-light { background: var(--ivory); color: var(--green-dark); }
.btn-light:hover { background: #fff; }
.btn-small { padding: 10px 18px; font-size: 14px; }
.text-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--green); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.link-strong { color: var(--green); }

/* ---------- Eyebrows, titles ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--green); font-weight: 600; margin: 0 0 18px; }
.eyebrow-rule { display: inline-block; width: 32px; height: 2px; background: var(--gold); flex: none; }
.eyebrow-light { color: #C9D6C9; }
.eyebrow-light .eyebrow-rule { background: var(--gold); }
.block { padding: 112px 0; }
.block-tint { background: #EDE8DA; }
.block-dark { background: var(--green-dark); color: #EDEBE2; }
.block-title { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.15; letter-spacing: -.2px; margin: 0 0 16px; color: var(--green-dark); }
.title-light { color: var(--ivory); }
.block-lead { font-size: 17px; color: var(--muted); max-width: 640px; margin: 0 0 40px; }
.lead-light { color: #C9D6C9; }

/* ---------- Hero ---------- */
.hero { padding: 104px 0 112px; background: var(--ivory); border-bottom: 1px solid var(--line-soft); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(46px, 5.6vw, 72px); line-height: 1.08; letter-spacing: -.5px;
  color: var(--ink); margin: 0 0 18px;
}
.h1-accent { color: var(--green); }
.hero-lead { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-note { display: flex; align-items: center; gap: 10px; font-size: 13.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0; }
.hero-note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.hero-caption { font-size: 13px; color: var(--muted); margin: 14px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- Advantages ---------- */
.advantages { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.adv-item { padding: 36px 28px 40px; border-left: 1px solid var(--line); }
.adv-item:first-child { border-left: 0; padding-left: 0; }
.adv-num { display: block; font-family: var(--serif); font-size: 15px; color: var(--green); letter-spacing: 2px; margin-bottom: 14px; }
.adv-item h2 { font-size: 17px; line-height: 1.35; margin: 0 0 8px; color: var(--green-dark); }
.adv-item p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Products ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-sm);
  padding: 9px 14px; font-size: 13.5px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.pill b { font-weight: 700; color: var(--muted); margin-left: 4px; }
.pill:hover { border-color: var(--green); }
.pill.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.pill.is-on b { color: #C9D6C9; }
.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-sm); padding: 0 12px; height: 42px; min-width: 230px; }
.search-box span { color: var(--muted); }
.search-box input { border: 0; outline: none; background: transparent; font: inherit; font-size: 14.5px; width: 100%; color: var(--ink); }
.result-count { font-size: 13.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 18px 0 22px; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 43, 35, .10); border-color: #C9C2AC; }
.card-photo { display: block; border: 0; padding: 0; background: #EFEAE0; cursor: pointer; }
.card-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
/* The custom-bottle strip is wider than the 4/3 frame; centre it on the
   black–pink–sage trio (measured bottle runs) so no bottle is sliced. */
.card-photo[data-open="custom"] img { object-position: 18% 50%; }
.card:hover .card-photo img { transform: scale(1.02); }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--grey); margin: 0 0 10px; }
.card h3 { font-size: 18px; line-height: 1.3; margin: 0 0 6px; color: var(--green-dark); }
.card-desc { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.card-spec { font-size: 13px; font-weight: 600; color: var(--green); margin: 0 0 16px; }
.card-actions { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.empty-state { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); margin: 0 0 24px; }
.catalog-note { font-size: 13.5px; color: var(--muted); margin: 28px 0 0; max-width: 760px; }

/* ---------- Customisation (dark green) ---------- */
.custom-section { background: var(--green); color: #EDEBE2; padding: 112px 0; }
.custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.custom-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 0% 50%; border-radius: var(--radius); }
.custom-caption { font-size: 13px; color: #9DB3A4; margin: 14px 0 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { padding: 26px 0; border-top: 1px solid rgba(237, 235, 226, .22); display: grid; grid-template-columns: 56px 1fr; gap: 18px; }
.steps li:last-child { border-bottom: 1px solid rgba(237, 235, 226, .22); }
.step-num { font-family: var(--serif); font-size: 20px; color: #9DB3A4; }
/* Each step row has three children (number, title, description) but the li
   grid only defines two columns (56px number + text). Without this, the
   description auto-places into row 2, column 1 — the 56px number column —
   and renders one word per line. Spanning the number over both rows puts
   the title and description together in the text column. (Note: `1 / -1`
   does not work here — the li grid has no explicit rows, so `-1` resolves
   to line 1; `span 2` is the correct form.) */
.steps li .step-num { grid-row: span 2; }
.steps h3 { font-size: 18px; margin: 0 0 6px; color: var(--ivory); }
.steps p { font-size: 14.5px; color: #B9C9BC; margin: 0; }
.steps-light { grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.steps-light li { border-top: 1px solid var(--line); }
.steps-light li:nth-child(-n+3) { border-top: 1px solid var(--line); }
.steps-light h3 { color: var(--green-dark); }
.steps-light p { color: var(--muted); }
.custom-grid .steps-dark { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.custom-grid .steps-dark li { border-top: 1px solid rgba(237, 235, 226, .22); border-bottom: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-caption { font-size: 13px; color: var(--muted); margin: 14px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }
.about-copy p { margin: 0 0 18px; color: #3A463D; }
.about-markets { display: flex; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 20px; margin: 28px 0 24px; font-size: 15px; }
.about-markets-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--green); font-weight: 600; flex: none; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item figcaption { padding: 16px 18px 18px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline; }
.fig-num { font-family: var(--serif); color: var(--green); font-size: 15px; grid-row: span 2; }
.gallery-item b { font-size: 15.5px; color: var(--green-dark); }
.gallery-item small { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey); }

/* ---------- Contact ---------- */
#contact.block { padding-bottom: 72px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: stretch; }
.contact-copy { display: flex; flex-direction: column; }
#contactWhatsAppBtn { margin-top: auto; }
.contact-details { margin: 32px 0; border-top: 1px solid rgba(237, 235, 226, .22); }
.contact-details > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(237, 235, 226, .22); }
.contact-details dt { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #9DB3A4; }
.contact-details dd { margin: 0; font-size: 16px; color: var(--ivory); }
.contact-link { color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(237, 235, 226, .45); }
.contact-link:hover { color: #C9D6C9; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); color: var(--ink); }
.form-kicker { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--green); font-weight: 600; margin: 0 0 10px; }
.form-card h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--green-dark); margin: 0 0 8px; }
.form-lead { color: var(--muted); font-size: 14.5px; margin: 0 0 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--green-dark); }
.form-grid label.form-full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; padding: 12px 14px; font: inherit; font-size: 14.5px; color: var(--ink); outline: none;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(16, 60, 47, .12); }
.form-grid textarea { resize: vertical; min-height: 110px; }
.form-status { padding: 12px 14px; border-radius: var(--radius-sm); background: #E9F0E7; color: var(--green-dark); font-size: 14px; line-height: 1.55; margin: 0 0 16px; }
.form-status.error { background: #FBEFEA; color: #8A3324; }
.form-submit { width: 100%; margin-top: 4px; }
.form-disclaimer { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-foot { background: var(--green-dark); color: #C9D6C9; }
.foot-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 64px 0 48px; }
.foot-brand img { width: 200px; height: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.foot-name { font-size: 12px; letter-spacing: 2.5px; color: #EDEBE2; margin: 0 0 8px; }
.foot-slogan { font-size: 14.5px; color: #C9D6C9; margin: 0; }
.foot-nav { display: flex; flex-direction: column; gap: 12px; }
.foot-nav a { color: #EDEBE2; text-decoration: none; font-size: 15px; }
.foot-nav a:hover { color: #C9D6C9; }
.foot-contact { display: flex; flex-direction: column; gap: 12px; }
.foot-contact a { color: #EDEBE2; text-decoration: none; font-size: 15px; }
.foot-contact a:hover { color: #C9D6C9; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(237, 235, 226, .18); padding: 20px 0 24px; font-size: 13px; color: #9DB3A4; }
.foot-bottom a { color: #C9D6C9; text-decoration: none; }
.foot-bottom a:hover { color: #C9D6C9; }

/* ---------- Drawer ---------- */
.drawer-wrap { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer-wrap.is-open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(20, 43, 35, .5); opacity: 0; transition: opacity .2s ease; }
.drawer-wrap.is-open .drawer-scrim { opacity: 1; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%);
  background: var(--paper); overflow-y: auto; padding: 0 0 32px;
  transform: translateX(100%); transition: transform .25s ease;
  box-shadow: -16px 0 48px rgba(20, 43, 35, .25);
}
.drawer-wrap.is-open .drawer { transform: translateX(0); }
.drawer-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--paper);
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink);
}
.drawer-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.drawer-body { padding: 24px 28px 0; }
.drawer-kicker { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--green); font-weight: 600; margin: 0 0 10px; }
.drawer-body h3 { font-family: var(--serif); font-size: 27px; line-height: 1.2; color: var(--green-dark); margin: 0 0 12px; }
.drawer-body p { color: #3A463D; font-size: 15px; }
.drawer-specs { display: grid; gap: 0; margin: 20px 0 8px; border-top: 1px solid var(--line); }
.drawer-specs > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.drawer-specs dt { font-size: 13px; font-weight: 600; color: var(--green-dark); }
.drawer-specs dd { margin: 0; font-size: 14.5px; color: #3A463D; }
.drawer-body h4 { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-dark); margin: 22px 0 6px; }
.drawer-body h4 + p { margin: 0 0 18px; }
.drawer-body .btn { display: block; text-align: center; }
.drawer-note { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { gap: 40px; }
  .steps-light { grid-template-columns: repeat(2, 1fr); }
  .custom-grid .steps-dark { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .head-nav {
    position: fixed; top: 76px; right: 0; left: 0; z-index: 50;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
    display: none; margin-left: 0;
  }
  .head-nav.is-open { display: flex; }
  .head-nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .burger { display: flex; }
  .hero-grid, .custom-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .adv-item { padding-top: 28px; padding-bottom: 28px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .foot-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 32px); }
  .topbar-right { display: none; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 17px; }
  .head-actions .btn-small { display: none; }
  .block { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .hero-actions .btn { flex: 1; text-align: center; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .steps-light, .custom-grid .steps-dark { grid-template-columns: 1fr; }
  .contact-details > div { grid-template-columns: 120px 1fr; }
  .foot-main { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 32px; }
  .drawer-specs > div { grid-template-columns: 120px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
