/* ============================================================
   Hua Lok Group — landing page
   Palette: ivory white / antique gold / warm charcoal
   (Gold & white luxury theme)
   ============================================================ */

:root {
  --ivory: #fbf8f1;          /* page background */
  --ivory-2: #f4ecda;        /* subtle bands / alt surfaces */
  --white: #ffffff;          /* cards */
  --ink: #241f18;            /* primary text — warm near-black */
  --ink-dim: rgba(36, 31, 24, 0.62);
  --gold: #c8a13a;           /* decorative gold: rules, buttons, particles */
  --gold-ink: #9a6f14;       /* readable gold for text/headings on white */
  --gold-soft: #e6d29a;      /* light champagne fills */
  --terracotta: #b8583a;     /* product-illustration warmth (bowl only) */
  --line: rgba(154, 111, 20, 0.22);
  --shadow: 0 18px 50px -22px rgba(60, 42, 8, 0.28);
  --shadow-sm: 0 8px 26px -16px rgba(60, 42, 8, 0.3);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #fff; }

em { font-style: italic; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(135deg, #e0c05a, #c39a2c);
  color: #2a2008;
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover { background: linear-gradient(135deg, #ecd07a, #cfa838); }
.btn--ghost { border: 1px solid var(--gold); color: var(--gold-ink); }
.btn--ghost:hover { background: var(--gold); color: #fff; }
.btn--lg { padding: 18px 34px; font-size: 1.02rem; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
  background: linear-gradient(rgba(251, 248, 241, 0.94), rgba(251, 248, 241, 0.78) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.35s ease;
}
.nav--hidden { transform: translateY(-110%); }

.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0c05a, #c39a2c);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.nav__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.nav__name em { color: var(--gold-ink); }

.nav__links { display: flex; align-items: center; gap: 30px; font-size: 0.92rem; font-weight: 500; }
.nav__links a:not(.nav__cta) { color: var(--ink-dim); transition: color 0.2s; }
.nav__links a:not(.nav__cta):hover { color: var(--gold-ink); }
.nav__cta {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold-ink);
  transition: background 0.2s, color 0.2s;
}
.nav__cta:hover { background: var(--gold); color: #fff; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav__burger span {
  width: 26px;
  height: 2px;
  background: var(--gold-ink);
  transition: transform 0.3s ease;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad) 80px;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 78% 12%, #ffffff, transparent 70%),
    var(--ivory);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 48% at 72% 22%, rgba(200, 161, 58, 0.16), transparent 70%),
    radial-gradient(42% 42% at 12% 86%, rgba(230, 210, 154, 0.28), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 28px;
}
.hero__eyebrow-rule { width: 48px; height: 1px; background: var(--gold); }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 30px;
  color: var(--ink);
}
.hero__line { display: block; overflow: hidden; }
.hero__line .word { display: inline-block; }
.hero__line--accent {
  color: var(--gold-ink);
  font-style: italic;
  background: linear-gradient(100deg, #b8891e, #d9b64c 55%, #9a6f14);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  max-width: 560px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-dim);
  margin-bottom: 40px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__scrollcue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero__scrollcue-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(-3px); opacity: 1; }
  50% { transform: translateY(4px); opacity: 0.4; }
}

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ivory-2);
  overflow: hidden;
  padding: 18px 0;
}
.marquee__track {
  display: flex;
  gap: 44px;
  width: max-content;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
  white-space: nowrap;
}
.marquee__track i { font-style: normal; color: var(--gold); }

/* ============ SECTIONS ============ */
.section { padding: clamp(90px, 12vw, 150px) var(--pad); }

.section__head { max-width: var(--max); margin: 0 auto clamp(44px, 6vw, 72px); }
.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 18px;
}
.section__eyebrow--red { color: var(--terracotta); }
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  color: var(--ink);
}
.section__title em { color: var(--gold-ink); }
.section__sub {
  max-width: 540px;
  margin-top: 20px;
  color: var(--ink-dim);
}

/* ============ STORY ============ */
.story__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 70px);
}
.story__lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
}
.story__body { color: var(--ink-dim); align-self: center; }

.story__stats {
  max-width: var(--max);
  margin: clamp(56px, 8vw, 90px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 30px 22px 6px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--gold-ink);
  line-height: 1.1;
}
.stat__unit { font-size: 0.5em; margin-left: 2px; }
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}

/* ============ FLAGSHIP ============ */
.flagship { padding-top: 0; }
.flagship__card {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 70px);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(230, 210, 154, 0.4), transparent 55%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(36px, 6vw, 80px);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.flagship__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 22px;
  color: var(--ink);
}
.flagship__title em { color: var(--gold-ink); }
.flagship__body { color: var(--ink-dim); margin-bottom: 26px; max-width: 480px; }
.flagship__points { margin-bottom: 34px; display: grid; gap: 12px; }
.flagship__points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 0.95rem;
}
.flagship__points li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
  top: 3px;
}

.flagship__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
}
.flagship__bowl { position: relative; width: min(300px, 80%); }
.flagship__bowl-svg { width: 100%; height: auto; display: block; }
.flagship__steam {
  position: absolute;
  bottom: 62%;
  width: 3px;
  height: 54px;
  border-radius: 3px;
  background: linear-gradient(to top, rgba(120, 100, 70, 0.28), transparent);
  animation: steam 3.2s ease-in-out infinite;
}
.flagship__steam--1 { left: 38%; animation-delay: 0s; }
.flagship__steam--2 { left: 50%; animation-delay: 1.1s; height: 66px; }
.flagship__steam--3 { left: 62%; animation-delay: 2s; }
@keyframes steam {
  0% { transform: translateY(8px) scaleY(0.6); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(-26px) scaleY(1.15); opacity: 0; }
}
.flagship__badge {
  position: absolute;
  bottom: 8px;
  right: 0;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--white);
}

/* ============ PIPELINE ============ */
.pipeline { padding: clamp(90px, 12vw, 150px) 0; }
.pipeline__head { padding: 0 var(--pad); }
.pipeline__viewport { overflow: hidden; }
.pipeline__track {
  display: flex;
  gap: clamp(16px, 2.5vw, 28px);
  padding: 0 var(--pad);
  width: max-content;
}
.pcard {
  width: clamp(260px, 30vw, 360px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.pcard:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard__num {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold-ink);
  margin-bottom: 48px;
}
.pcard h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--ink);
}
.pcard p { color: var(--ink-dim); font-size: 0.92rem; }

/* Mobile: native horizontal scroll with snap */
@media (max-width: 899px) {
  .pipeline__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pipeline__viewport::-webkit-scrollbar { display: none; }
  .pcard { scroll-snap-align: start; }
}

/* ============ SERVICES ============ */
.services__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.svc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.svc:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.svc h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--gold-ink);
}
.svc p { color: var(--ink-dim); font-size: 0.92rem; }

/* ============ CONTACT ============ */
.contact__card {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(230, 210, 154, 0.45), transparent 60%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(50px, 8vw, 100px) var(--pad);
  box-shadow: var(--shadow);
}
.contact__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 18px;
  color: var(--ink);
}
.contact__title em { color: var(--gold-ink); }
.contact__sub { color: var(--ink-dim); margin-bottom: 38px; }
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 44px var(--pad) 54px;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.88rem;
}
.footer__mark {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-ink);
  margin-bottom: 12px;
}
.footer__fine { margin-top: 6px; font-size: 0.78rem; opacity: 0.7; }

/* ============ REVEAL DEFAULTS (JS enhances) ============ */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-hero-fade] { opacity: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 899px) {
  /* backdrop-filter creates a containing block that would trap the
     fixed fullscreen menu inside the 72px header */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    background: rgba(251, 248, 241, 0.98);
    font-size: 1.3rem;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__burger { display: flex; z-index: 60; }

  .story__grid { grid-template-columns: 1fr; }
  .story__stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .story__stats { border-top: 0; }
  .flagship__card { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .contact__actions .btn { width: 100%; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
