/* OKOUME LUMERS — HONG KONG SENHEDA WOOD LIMITED
   Design tokens mirror DESIGN.md. One accent (deep timber green), stone neutrals. */
:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --ink: #1C1917;
  --ink-muted: #57534E;
  --primary: #14532D;
  --primary-hover: #166534;
  --on-primary: #FFFFFF;
  --line: #E7E5E4;
  --wash: #F0F7F2;
  --grain: #A16207;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1180px;
  --radius-card: 10px;
  --radius-btn: 8px;
  --shadow-hover: 0 10px 28px rgba(28, 25, 23, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--ink-muted); }
.mono { font-family: var(--font-mono); font-size: .95em; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,250,249,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: .04em; }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; border-radius: 6px; }
.nav a:hover { color: var(--primary); background: var(--wash); }
.nav a[aria-current="page"] { color: var(--primary); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--primary); color: var(--on-primary); font-family: var(--font-display); font-weight: 600; text-decoration: none; padding: 13px 26px; border-radius: var(--radius-btn); border: 1px solid var(--primary); transition: background-color 160ms ease-out, transform 120ms ease-out; }
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: scale(0.97); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--wash); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-wa { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-wa:hover { border-color: var(--primary); color: var(--primary); background: var(--wash); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 92px) 0 clamp(44px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-kicker { font-family: var(--font-mono); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--grain); display: inline-block; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-figure { min-width: 0; }
.hero-frame { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.hero-frame img { width: 100%; }
/* signature motion #1: slow Ken-Burns on the hero image only */
.js .kenburns img { animation: kenburns 18s ease-in-out infinite alternate; transform-origin: 55% 45%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .js .kenburns img { animation: none; } }
.hero-caption { font-size: .85rem; color: var(--ink-muted); margin-top: 10px; }

/* ---------- Stats ---------- */
.stats { background: var(--primary); color: #fff; padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.stat { text-align: center; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: .01em; }
.stat-label { font-size: .88rem; color: rgba(255,255,255,.82); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 88px) 0; }
.section-wash { background: var(--wash); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.eyebrow { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grain); margin-bottom: 10px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card-grid.cols-wide-mid { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr); }
.card-grid.cols-single { grid-template-columns: minmax(0,1fr); max-width: 760px; }
.card-grid.cols-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; min-width: 0; display: flex; flex-direction: column; transition: transform 160ms ease-out, box-shadow 160ms ease-out; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 6px; }
.card-body p { color: var(--ink-muted); font-size: .97rem; flex: 1; }
.card-link { font-weight: 600; text-decoration: none; font-family: var(--font-display); }
.card-link::after { content: " →"; }

/* two-column fact split */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px,4vw,56px); align-items: center; }
.split figure { min-width: 0; margin: 0; }
.split figure img { border-radius: var(--radius-card); border: 1px solid var(--line); width: 100%; }

/* ---------- Tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; font-size: .98rem; }
.spec-table caption { text-align: left; font-family: var(--font-display); font-weight: 600; padding: 0 0 12px; }
.spec-table th, .spec-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table tbody tr:last-child th, .spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table th[scope="row"] { width: 220px; color: var(--ink-muted); font-weight: 600; background: #FCFCFB; }
.spec-table td .mono { color: var(--ink); }
.table-note { font-size: .85rem; color: var(--ink-muted); margin-top: 10px; }

/* thickness gallery */
.thickness-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.thickness { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; min-width: 0; }
.thickness img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.thickness p { padding: 10px 14px 14px; margin: 0; font-family: var(--font-mono); font-size: .9rem; border-top: 2px solid var(--grain); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 4px 22px; margin-bottom: 12px; }
.faq summary { font-family: var(--font-display); font-weight: 600; cursor: pointer; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--ink-muted); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; color: var(--ink-muted); }

/* ---------- Steps / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.step { border-top: 2px solid var(--primary); padding-top: 18px; min-width: 0; }
.step-num { font-family: var(--font-mono); color: var(--grain); font-size: .85rem; letter-spacing: .1em; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--primary); max-width: 720px; }
.timeline li { padding: 0 0 26px 26px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6.5px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); }
.timeline .year { font-family: var(--font-mono); color: var(--primary); font-weight: 500; display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); color: #fff; border-radius: var(--radius-card); padding: clamp(32px,5vw,52px); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band .btn { background: #fff; color: var(--primary); border-color: #fff; }
.cta-band .btn:hover { background: var(--wash); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 20px; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field .req { color: var(--grain); }
.field input, .field select, .field textarea { font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field .err { color: #B91C1C; font-size: .85rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B91C1C; }
.field.invalid .err { display: block; }
.form-status { margin-top: 14px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: var(--primary); }
.form-status.fail { display: block; color: #B91C1C; }

/* ---------- Footer ---------- */
.site-footer { background: #16211A; color: rgba(255,255,255,.82); margin-top: 72px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr); gap: 40px; padding: 56px 0 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0 26px; font-size: .85rem; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 420ms ease-out, transform 420ms ease-out; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(40px,6vw,72px) 0 clamp(28px,4vw,44px); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .85rem; color: var(--ink-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .card-grid, .steps, .card-grid.cols-wide-mid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .thickness-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 1060px) {
  .nav { position: fixed; inset: 72px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 1.05rem; }
  .nav-cta-desktop { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
  .nav-toggle-bar { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); }
  .nav-toggle-bar::before { top: -6px; } .nav-toggle-bar::after { top: 6px; }
  .brand { margin-right: 0; }
}
@media (max-width: 620px) {
  .card-grid, .steps, .form-grid, .card-grid.cols-wide-mid, .footer-grid { grid-template-columns: 1fr; }
  .spec-table th[scope="row"] { width: 130px; }
}

/* ---------- news & gallery (v3) ---------- */
.news-item { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 28px; }
.news-item h2 { margin: 4px 0 8px; }
.news-item h2 a { text-decoration: none; }
.news-item h2 a:hover { text-decoration: underline; }
.news-date { font-family: var(--font-mono); font-size: .82rem; color: var(--grain); letter-spacing: .06em; display: block; margin-bottom: 4px; }
figure.card { margin: 0; }
