/* FFL Hong Kong — showcase site. */
:root {
  --ink: #000;
  --text: #333;
  --muted: #666;
  --line: #e2e2e2;
  --soft: #f5f5f5;
  --paper: #fff;
  --steel: #587291;
  --navy: #002970;
  --gold: #f8ca13;
  --gold-ink: #463939;
  --head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.65 var(--body);
  color: var(--text);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font: 600 .74rem/1 var(--head);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}
.muted { color: var(--muted); }

/* Header */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand img { width: 50px; height: 46px; object-fit: contain; }
.brand-name { font: 700 .82rem/1.25 var(--head); letter-spacing: .06em; text-transform: uppercase; }
.brand-name small { display: block; font-weight: 500; font-style: italic; color: #bbb; letter-spacing: .04em; text-transform: none; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  color: #fff; text-decoration: none;
  font: 600 .84rem/1 var(--head);
  padding: 9px 12px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: #fff; }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.lang { display: flex; align-items: center; gap: 2px; font: 600 .78rem/1 var(--head); }
.lang a { color: #9aa4b2; text-decoration: none; padding: 8px 6px; letter-spacing: .06em; }
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }
.cart-link {
  display: flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none;
  font: 600 .84rem/1 var(--head);
  border: 2px solid #fff; padding: 9px 14px;
}
.cart-link svg { width: 18px; height: 18px; }
.cart-count {
  background: var(--gold); color: var(--ink);
  min-width: 20px; height: 20px; border-radius: 10px;
  display: inline-grid; place-items: center; font-size: .72rem;
}
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 .9rem/1 var(--head);
  padding: 15px 26px;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--ink); color: #fff;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.on-dark .btn { border-color: #fff; background: transparent; color: #fff; }
.on-dark .btn:hover { background: #fff; color: var(--ink); }
.on-dark .btn-gold, .btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.on-dark .btn-gold:hover, .btn-gold:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 11px 16px; font-size: .8rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #ddd;
  padding: 96px 0 104px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(88,114,145,.45), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(0,41,112,.55), transparent 65%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.12rem; color: #c9ced6; max-width: 34em; margin-bottom: 2rem; }
.hero .eyebrow { color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.lanes {
  border: 1px solid rgba(255,255,255,.18);
  padding: 28px;
  background: rgba(255,255,255,.03);
}
.lanes h3 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.lane { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.lane:first-of-type { border-top: 0; }
.lane b { font: 600 .95rem/1.2 var(--head); color: #fff; }
.lane span { font-size: .78rem; color: #9aa4b2; display: block; }
.lane .arrow { color: var(--gold); font: 700 1.1rem var(--head); }
.lane div:last-child { text-align: right; }

/* Sections */
section.block { padding: 88px 0; }
section.alt { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { max-width: 38em; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stats div { padding: 34px 20px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font: 700 1.5rem/1.15 var(--head); color: var(--ink); margin-bottom: 8px; }
.stats span { font-size: .88rem; color: var(--muted); }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cat {
  background: #fff; padding: 30px 28px; text-decoration: none; color: var(--text);
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  transition: background .15s;
}
.cat:hover { background: var(--soft); }
.cat svg { width: 52px; height: 52px; color: var(--steel); }
.cat h3 { margin-bottom: 4px; }
.cat p { margin: 0; font-size: .9rem; color: var(--muted); }

/* Products */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.card .thumb {
  aspect-ratio: 4 / 3; display: block; overflow: hidden;
  background: var(--soft); position: relative;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .thumb img { transform: scale(1.04); }
.tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font: 700 .66rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 6px 8px;
}
.tag.gold { background: var(--gold); color: var(--ink); }
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card .sku { font-size: .72rem; color: var(--muted); letter-spacing: .05em; margin-bottom: 6px; }
.card h3 { font-size: .98rem; margin-bottom: 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card ul { list-style: none; margin: 0 0 16px; padding: 0; font-size: .82rem; color: var(--muted); }
.card .foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.price { font: 700 1.15rem/1 var(--head); color: var(--ink); }
.price small { display: block; font: 400 .7rem/1.4 var(--body); color: var(--muted); margin-top: 4px; }

/* Catalogue layout */
.page-head { background: var(--ink); color: #c9ced6; padding: 56px 0 48px; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-head p { max-width: 42em; margin: 0; }
.crumbs { font-size: .8rem; color: #9aa4b2; margin-bottom: 14px; }
.crumbs a { color: #c9ced6; }
.shop { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-top: 48px; padding-bottom: 88px; }
.filters h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.filters fieldset { border: 0; border-bottom: 1px solid var(--line); margin: 0 0 22px; padding: 0 0 22px; }
.filters label { display: flex; align-items: center; gap: 10px; font-size: .92rem; padding: 4px 0; cursor: pointer; }
.filters input { accent-color: var(--ink); }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-size: .9rem; color: var(--muted); gap: 12px; flex-wrap: wrap; }
.toolbar select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.shop .grid { grid-template-columns: repeat(3, 1fr); }

/* Product page */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0 72px; }
.gallery { align-self: start; position: sticky; top: 100px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.product .price { font-size: 2rem; margin: 18px 0 6px; }
.tiers { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .9rem; }
.tiers th, .tiers td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tiers th { font: 600 .72rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.buy { display: flex; gap: 12px; margin: 24px 0 14px; flex-wrap: wrap; }
.qty { display: flex; border: 2px solid var(--ink); }
.qty button { width: 44px; border: 0; background: #fff; font: 600 1.1rem var(--head); cursor: pointer; }
.qty input { width: 64px; border: 0; text-align: center; font: 600 1rem var(--head); }
.meta { list-style: none; padding: 0; margin: 22px 0 0; font-size: .88rem; }
.meta li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.meta li b { min-width: 140px; color: var(--ink); font-weight: 600; }
.specs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.specs th, .specs td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 32%; background: var(--soft); font-weight: 600; color: var(--ink); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { border-top: 3px solid var(--ink); padding-top: 22px; }
.service .n { font: 700 .8rem/1 var(--head); color: var(--steel); letter-spacing: .1em; margin-bottom: 14px; }
.service p { font-size: .94rem; color: var(--muted); margin: 0; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.steps li { list-style: none; padding: 28px 24px; border-left: 1px solid var(--line); background: #fff; }
.steps li:first-child { border-left: 0; }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font: 700 1.6rem/1 var(--head); color: var(--steel); margin-bottom: 14px; }
.steps { padding: 0; margin: 0; }
.steps li p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Dark band */
.band { background: var(--ink); color: #c9ced6; padding: 72px 0; }
.band h2 { color: #fff; }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.band p { margin: 0; max-width: 40em; }

/* Cart */
.cart { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding-top: 48px; padding-bottom: 56px; align-items: start; }
.lines { width: 100%; border-collapse: collapse; }
.lines th { font: 600 .72rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0 12px 14px; border-bottom: 2px solid var(--ink); }
.lines td { padding: 18px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .92rem; }
.lines .item { display: flex; gap: 16px; align-items: center; }
.lines .item .ico { width: 80px; height: 60px; flex: none; background: var(--soft); overflow: hidden; }
.lines .item .ico img { width: 100%; height: 100%; object-fit: cover; }
.lines .num { text-align: right; white-space: nowrap; }
.summary { background: var(--soft); padding: 28px; }
.summary h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.summary dl { margin: 0 0 22px; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: .92rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; color: var(--ink); font-weight: 600; }
.summary .total { border-top: 1px solid #d5d5d5; padding-top: 12px; font: 700 1.1rem var(--head); color: var(--ink); }
.summary .note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }

.cart-empty { padding: 56px 0 88px; }
.cart-done { padding: 56px 0 88px; max-width: 720px; }
.cart-done h2 { margin-bottom: 14px; }
.cart-empty p { font-size: 1.1rem; margin-bottom: 22px; }
.lines .item .muted { font-size: .8rem; }
.lines .item .warn { color: #a15c00; }
.qty-sm { display: inline-flex; border-width: 1px; }
.qty-sm button { width: 32px; font-size: 1rem; }
.qty-sm input { width: 52px; font-size: .92rem; padding: 6px 0; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty input { -moz-appearance: textfield; }
.remove { border: 0; background: none; font: 400 1.5rem/1 var(--head); color: var(--muted); cursor: pointer; padding: 4px 8px; }
.remove:hover { color: var(--ink); }
.quote { border-top: 2px solid var(--ink); padding: 48px 0 88px; max-width: 760px; scroll-margin-top: 90px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font: 600 .78rem/1 var(--head); color: var(--ink); margin-bottom: 8px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 12px 14px; border: 1px solid #cfcfcf; background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--steel); outline-offset: -1px; border-color: var(--steel); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list b { display: block; font: 600 .74rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.values div { border-left: 3px solid var(--steel); padding-left: 18px; }
.values p { margin: 0; color: var(--muted); font-size: .94rem; }

/* Footer */
.site-footer { background: var(--ink); color: #9aa4b2; padding: 64px 0 28px; font-size: .88rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #c9ced6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { border-top: 1px solid #222; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .78rem; }
.site-footer .brand { margin-bottom: 16px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; border-left: 4px solid var(--gold);
  padding: 14px 20px; font-size: .9rem; max-width: calc(100% - 32px); width: 460px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--gold); font-weight: 600; white-space: nowrap; }

/* Responsive */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .shop .grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .lang { margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--ink); flex-direction: column; gap: 0; padding: 8px 16px 18px;
    border-top: 1px solid #222;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid #1c1c1c; }
  .cart-link { padding: 9px 11px; }
  .gallery { position: static; }
  .bar { gap: 14px; }
  .hero { padding: 64px 0 72px; }
  .hero .wrap, .product, .cart, .two, .shop { grid-template-columns: 1fr; }
  .cats, .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .brand-name { display: none; }
  .cart-link > span:not(.cart-count) { display: none; }
  .bar { gap: 8px; }
  .grid, .shop .grid, .cats, .services, .values, .form, .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .filters { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  section.block { padding: 64px 0; }
  .lines thead { display: none; }
  .lines, .lines tbody, .lines tr, .lines td { display: block; width: 100%; }
  .lines tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .lines td { border: 0; padding: 4px 0; }
  .lines .num { text-align: left; }
  .lines td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  .lines tr { position: relative; }
  .lines .item { padding-right: 36px; }
  .lines td:last-child { position: absolute; top: 12px; right: 0; width: auto; }
  .meta li { flex-direction: column; gap: 2px; }
}
