/* ============================================================
   G.K. Industries (HK) Limited - gkiltd.com - v2 visual-first
   Navy and gold trading house. Tokens below drive everything.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #040f22;
  --navy-900: #061a38;
  --navy-800: #0b2447;
  --navy-700: #0e2c55;
  --gold: #c89337;
  --gold-light: #e2b154;
  --gold-deep: #7c5410;
  --paper: #f7f5f0;
  --white: #ffffff;
  --ink: #13202f;
  --muted: #57616e;
  --muted-on-navy: #b9c6d8;
  --text-on-navy: #eef2f7;
  --line: #e0dbd0;
  --line-navy: #1d3a63;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --disp-stretch: 116%;
  --wide-stretch: 125%;

  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --radius: 4px;
  --header-h: 76px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }

h1, h2, h3, h4 { margin: 0 0 0.55em; line-height: 1.08; font-weight: 690; font-stretch: var(--disp-stretch); letter-spacing: -0.014em; color: var(--navy-900); text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
.on-navy :focus-visible, .site-footer :focus-visible, .site-header.is-clear :focus-visible { outline-color: var(--gold-light); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 0.75rem; top: -3.5rem;
  background: var(--navy-900); color: #fff;
  padding: 0.7rem 1.1rem; z-index: 200; border-radius: var(--radius);
  transition: top 120ms ease;
}
.skip-link:focus { top: 0.75rem; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600; font-stretch: var(--wide-stretch);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--gold); flex: none; }
.on-navy .eyebrow, .overlaid .eyebrow { color: var(--gold-light); }

.lede { font-size: clamp(1.08rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 36em; }
.on-navy .lede { color: var(--muted-on-navy); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.8rem 1.6rem;
  font: inherit; font-weight: 640; font-stretch: 106%;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--radius);
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn--gold { background: var(--gold); color: var(--navy-950); }
.btn--gold:hover { background: var(--gold-light); color: var(--navy-950); }
.btn--ghost { border-color: var(--navy-700); color: var(--navy-800); background: transparent; }
.btn--ghost:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.on-navy .btn--ghost, .overlaid .btn--ghost { border-color: rgba(255,255,255,0.55); color: var(--white); }
.on-navy .btn--ghost:hover, .overlaid .btn--ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ---------- Header (fixed; clear over hero, solid on scroll) ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__logo-img { height: 44px; width: auto; display: none; }
.brand__logo-light { height: 44px; width: auto; display: block; }
.brand__word {
  font-size: 0.78rem; font-weight: 640; font-stretch: var(--wide-stretch);
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--white); line-height: 1.3;
}
.brand__word small { display: block; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.2em; color: var(--muted-on-navy); }

.site-nav { display: flex; align-items: center; gap: clamp(0.1rem, 1.2vw, 0.9rem); }
.site-nav a:not(.btn) { display: inline-block; padding: 0.8rem 0.65rem; text-decoration: none; color: var(--white); font-weight: 560; }
.site-nav a:not(.btn):hover { color: var(--gold-light); }
.site-nav .btn { margin-left: 0.5rem; }

/* solid state (scrolled, or pages without a dark hero) */
.site-header.is-solid { background: var(--white); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(4,15,34,0.25); }
.site-header.is-solid .brand__logo-light { display: none; }
.site-header.is-solid .brand__logo-img { display: block; }
.site-header.is-solid .brand__word { color: var(--navy-800); }
.site-header.is-solid .brand__word small { color: var(--muted); }
.site-header.is-solid .site-nav a:not(.btn) { color: var(--navy-800); }
.site-header.is-solid .site-nav a:not(.btn):hover { color: var(--gold-deep); }
.site-header.is-solid :focus-visible { outline-color: var(--gold-deep); }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius); padding: 0.6rem; cursor: pointer;
  min-width: 48px; min-height: 48px;
}
.nav-toggle .bars { stroke: var(--white); }
.site-header.is-solid .nav-toggle { border-color: var(--line); }
.site-header.is-solid .nav-toggle .bars { stroke: var(--navy-800); }
@media (max-width: 520px) { .site-header.is-solid .brand__word { display: none; } }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 0.5rem var(--gutter) 1.25rem;
    box-shadow: 0 18px 30px -18px rgba(4, 15, 34, 0.3);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn), .site-header.is-clear .site-nav a:not(.btn) { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line); color: var(--navy-800); }
  .site-nav .btn { margin: 0.9rem 0 0; }
}

/* ---------- Hero with media background ---------- */

.hero {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(92vh, 860px); padding-top: calc(var(--header-h) + 3rem);
  background: var(--navy-900); overflow: clip; color: var(--text-on-navy);
}
.hero__media, .hero__media video, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(168deg, rgba(4,15,34,0.88) 0%, rgba(6,26,56,0.62) 45%, rgba(4,15,34,0.82) 100%);
}
.hero__content { position: relative; z-index: 1; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero h1 {
  color: var(--white); font-size: clamp(2.3rem, 5.6vw, 4.3rem);
  max-width: 15.5em; margin-bottom: 0.4em;
}
.hero h1 .gold { color: var(--gold-light); }
.hero .lede { color: var(--muted-on-navy); max-width: 38em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

@media (max-width: 700px) {
  /* phones: calmer hero - darker overlay, tighter type */
  .hero__media::after {
    background: linear-gradient(172deg, rgba(4,15,34,0.93) 0%, rgba(6,26,56,0.8) 45%, rgba(4,15,34,0.92) 100%);
  }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.3rem); }
  .hero .lede { font-size: 1.02rem; color: #cdd8e6; }
}

.hero__stats {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.22);
  background: rgba(4,15,34,0.35);
  backdrop-filter: blur(4px);
}
.hero__stats .wrap {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  padding-block: 1.1rem;
}
.stat { display: grid; gap: 0.15rem; padding-left: 1rem; border-left: 2px solid var(--gold); }
.stat b { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 680; font-stretch: 110%; color: var(--white); line-height: 1.1; }
.stat span { font-size: 0.85rem; color: var(--muted-on-navy); }
@media (max-width: 700px) {
  .hero__stats .wrap { grid-template-columns: 1fr; gap: 0.9rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background: var(--navy-900); color: var(--text-on-navy); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section__head { max-width: 46em; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; max-width: none; }
.section__head--row > div { max-width: 46em; }

/* ---------- Service image cards ---------- */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.8rem, 1.6vw, 1.4rem); }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4.1; display: flex; align-items: flex-end;
  background: var(--navy-800);
}
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.card:hover .card__img { transform: scale(1.045); }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(4,15,34,0.05) 30%, rgba(4,15,34,0.55) 62%, rgba(4,15,34,0.93) 100%);
}
.card__body { position: relative; z-index: 1; padding: clamp(1.1rem, 2vw, 1.5rem); color: var(--text-on-navy); }
.card__kicker { font-size: 0.68rem; font-weight: 620; font-stretch: var(--wide-stretch); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 0.45rem; }
.card h3 { color: var(--white); font-size: clamp(1.15rem, 1.8vw, 1.45rem); margin-bottom: 0.35em; }
.card p { color: var(--muted-on-navy); font-size: 0.94rem; margin: 0; line-height: 1.5; }
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card { aspect-ratio: 4 / 3.4; }
  /* landscape card windows crop the portrait images vertically: keep heads in frame */
  .card__img { object-position: 50% 26%; }
}
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .card { aspect-ratio: 16 / 11; } }
@media (prefers-reduced-motion: reduce) { .card__img, .card:hover .card__img { transition: none; transform: none; } }

/* ---------- Why band (navy) ---------- */

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.8rem); }
.reason { border-top: 2px solid var(--gold); padding-top: 1.1rem; }
.reason h3 { font-size: 1.2rem; margin-bottom: 0.35em; }
.reason p { color: var(--muted-on-navy); margin: 0; font-size: 0.98rem; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

.checkstrip {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; gap: 0.7rem;
}
.checkstrip li {
  list-style: none; display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--line-navy); background: rgba(255,255,255,0.05);
  border-radius: 999px; padding: 0.55rem 1.1rem 0.55rem 0.7rem;
  font-size: 0.92rem; font-weight: 560; color: var(--text-on-navy);
}
.checkstrip { padding: 0; }
.checkstrip .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }

/* ---------- Process strip ---------- */

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1rem, 2vw, 1.6rem); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { counter-increment: step; position: relative; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -1.05rem; left: 0;
  background: var(--paper); padding-right: 0.6rem;
  font-weight: 680; font-stretch: 110%; color: var(--gold-deep); font-size: 1.15rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; line-height: 1.5; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 2.4rem; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; row-gap: 2.2rem; } }

.enquiry-line {
  margin-top: clamp(2.2rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1.1rem 1.4rem;
}
.enquiry-line p { margin: 0; color: var(--muted); }
.enquiry-line p strong { color: var(--navy-800); }
.enquiry-line .btn { margin-left: auto; }
@media (max-width: 700px) { .enquiry-line .btn { margin-left: 0; width: 100%; } }

/* ---------- Full-bleed image band ---------- */

.imgband { position: relative; overflow: clip; background: var(--navy-900); }
.imgband__media, .imgband__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.imgband__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,15,34,0.88) 0%, rgba(4,15,34,0.55) 55%, rgba(4,15,34,0.25) 100%);
}
.imgband .wrap { position: relative; z-index: 1; padding-block: clamp(4.5rem, 10vw, 8rem); }
.imgband h2 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 16em; }
.imgband p { color: var(--muted-on-navy); max-width: 34em; }
.imgband .btn { margin-top: 1.4rem; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); max-width: 56em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0.2rem; font-weight: 620; font-size: 1.06rem; color: var(--navy-900);
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ind { flex: none; transition: transform 160ms ease; }
.faq details[open] summary .ind { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0.2rem 1.3rem; color: var(--muted); max-width: 52em; }
@media (prefers-reduced-motion: reduce) { .faq summary .ind { transition: none; } }

/* ---------- Contact ---------- */

.contact { scroll-margin-top: var(--header-h); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.contact-ways { display: grid; gap: 1.6rem; }
.way { border-left: 3px solid var(--gold); padding-left: 1.1rem; }
.way h3 { font-size: 0.78rem; font-weight: 620; font-stretch: var(--wide-stretch); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 0.3rem; }
.way a.big { color: var(--white); font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 640; text-decoration-color: var(--gold); overflow-wrap: anywhere; }
.way a.big:hover { color: var(--gold-light); }
.way p { color: var(--muted-on-navy); font-size: 0.95rem; margin: 0.3rem 0 0; }
.qr-card { background: var(--white); border-radius: var(--radius); padding: 1rem; display: inline-block; margin-top: 0.6rem; }
.qr-card img { width: 168px; height: auto; }

.form-card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); border-top: 4px solid var(--gold);
  padding: clamp(1.5rem, 3.5vw, 2.3rem);
}
.form-card h3 { font-size: 1.3rem; }
.form-card > p { color: var(--muted); font-size: 0.97rem; }
.field { margin-top: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; color: var(--navy-800); }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.75rem 0.9rem; min-height: 48px;
  border: 1px solid #c9c4b8; border-radius: var(--radius); background: var(--paper);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; background: var(--white); }
.form-card .btn { margin-top: 1.4rem; width: 100%; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius); font-weight: 560; display: none; }
.form-status.is-ok { display: block; background: #e9f3e6; color: #1d4d1a; border: 1px solid #b9d8b2; }
.form-status.is-err { display: block; background: #f9e9e6; color: #7c2113; border: 1px solid #e3bcb2; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-950); color: var(--muted-on-navy); }
.site-footer a { color: var(--muted-on-navy); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer__main {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem; padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line-navy);
}
.footer-brand__logo { height: 52px; width: auto; margin-bottom: 1rem; }
.footer-brand .mark { font-weight: 680; font-stretch: var(--wide-stretch); letter-spacing: 0.1em; color: var(--white); font-size: 1.05rem; text-transform: uppercase; }
.footer-brand .mark .gold { color: var(--gold-light); }
.footer-brand p { font-size: 0.95rem; max-width: 30em; margin-top: 0.7rem; }
.site-footer h3 { color: var(--white); font-size: 0.78rem; font-weight: 620; font-stretch: var(--wide-stretch); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.95rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; padding-block: 1.3rem; font-size: 0.85rem; }
@media (max-width: 720px) { .site-footer__main { grid-template-columns: 1fr; } }

/* ---------- Utility pages ---------- */

.page-offset { padding-top: var(--header-h); }
.page-hero { padding-block: var(--section-y); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose { max-width: 46em; padding-bottom: var(--section-y); }
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.err { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--navy-900); color: var(--text-on-navy); padding: var(--section-y) var(--gutter); }
.err h1 { color: var(--white); font-size: clamp(2.4rem, 7vw, 4rem); }
.err .code { font-stretch: var(--wide-stretch); letter-spacing: 0.2em; color: var(--gold-light); font-weight: 620; }
.err p { color: var(--muted-on-navy); }

/* ---------- Reveal (JS-gated) ---------- */

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