/* ─────────────────────────────────────────────────────────────
   金翼集团 Jinyi Borneo Harvest — jinyi.com.my
   Gold / Black / Cream · premium 2026 pass · no frameworks
   ───────────────────────────────────────────────────────────── */

:root {
  --gold:        #B8860B;
  --gold-bright: #D4A722;
  --gold-pale:   #E9D9A8;
  --gold-deep:   #8A6508;
  --black:       #0E0C07;
  --black-soft:  #17140C;
  --black-card:  #1D1910;
  --cream:       #FAF6EC;
  --cream-2:     #F3ECDA;
  --ink:         #2A2415;
  --ink-dim:     #5C5236;
  --ink-soft:    #877A55;
  --line:        #E6DCC2;
  --white:       #FFFFFF;
  --wa-green:    #1FA855;
  --shadow-sm:   0 1px 2px rgba(42,36,21,0.06), 0 4px 16px rgba(42,36,21,0.06);
  --shadow-md:   0 2px 4px rgba(42,36,21,0.08), 0 16px 40px rgba(42,36,21,0.12);
  --shadow-gold: 0 8px 32px rgba(184,134,11,0.28);
  --r-md: 16px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  letter-spacing: 0.01em;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ── Scroll reveal (added by main.js; off when reduced-motion) ── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Header ─────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 12, 7, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(212, 167, 34, 0.28);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.emblem { height: 46px; width: auto; transition: transform 0.4s var(--ease); }
.brand:hover img.emblem { transform: rotate(-6deg) scale(1.05); }
.brand img.wordmark { height: 32px; width: auto; }

.nav-toggle {
  background: rgba(212,167,34,0.08);
  border: 1px solid rgba(212,167,34,0.45); border-radius: 10px;
  color: var(--gold-bright); font-size: 21px; line-height: 1;
  width: 44px; height: 40px; cursor: pointer;
  transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(212,167,34,0.18); }

.main-nav {
  display: none;
  position: absolute; top: 72px; left: 0; right: 0;
  background: rgba(14, 12, 7, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,167,34,0.35);
  padding: 10px 0 18px;
}
.main-nav.open { display: block; }
.main-nav a {
  display: block; padding: 13px 26px;
  color: rgba(250,246,236,0.85); font-size: 15px;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-bright); }
.lang-switch {
  margin: 10px 22px 0;
  display: inline-block;
  border: 1px solid var(--gold); border-radius: 999px;
  padding: 6px 18px !important;
  color: var(--gold-bright) !important; font-size: 13px !important;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
}
.lang-switch:hover { background: var(--gold); color: var(--black) !important; }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: flex !important; position: static;
    background: none; border: none; padding: 0; backdrop-filter: none;
    -webkit-backdrop-filter: none;
    align-items: center; gap: 2px;
  }
  .main-nav a { padding: 9px 14px; font-size: 14.5px; }
  .main-nav a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
    height: 1.5px; background: var(--gold-bright);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
  .lang-switch { margin: 0 0 0 12px; }
  .lang-switch::after { display: none; }
}

/* ── Hero ───────────────────────────────────────── */
.hero {
  background: var(--black) url("../img/hero-house.png") center 30% / cover no-repeat;
  position: relative;
  color: var(--cream);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 18% 20%, rgba(184,134,11,0.32), transparent 60%),
    linear-gradient(180deg, rgba(14,12,7,0.88) 0%, rgba(14,12,7,0.66) 50%, rgba(14,12,7,0.94) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,167,34,0.7), transparent);
}
.hero-inner {
  position: relative;
  padding: 116px 0 104px;
  max-width: 700px;
}
.hero .eyebrow {
  color: var(--gold-bright);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  border: 1px solid rgba(212,167,34,0.4);
  border-radius: 999px;
  background: rgba(212,167,34,0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero .eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(212,167,34,0.9);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  margin: 26px 0 22px;
  line-height: 1.22;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.hero p.lead {
  color: rgba(250,246,236,0.88);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  max-width: 560px;
  line-height: 1.9;
}

.eyebrow {
  font-size: 12.5px; letter-spacing: 0.22em; font-weight: 600;
  color: var(--gold-deep); text-transform: uppercase;
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-block; padding: 15px 34px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-align: center;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.25s, filter 0.2s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--black) !important;
  box-shadow: 0 4px 18px rgba(184,134,11,0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); filter: brightness(1.06); }
.btn-outline {
  border: 1.5px solid rgba(212,167,34,0.75); color: var(--gold-bright) !important;
  background: rgba(212,167,34,0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-outline:hover { background: rgba(212,167,34,0.16); transform: translateY(-3px); }
.section .btn-outline, .section.alt .btn-outline { color: var(--gold-deep) !important; border-color: var(--gold); background: transparent; }
.section .btn-outline:hover, .section.alt .btn-outline:hover { background: rgba(184,134,11,0.08); }
.section.dark .btn-outline { color: var(--gold-bright) !important; border-color: rgba(212,167,34,0.75); background: rgba(212,167,34,0.06); }
.btn-wa { background: var(--wa-green); color: #fff !important; box-shadow: 0 4px 18px rgba(31,168,85,0.35); }
.btn-wa:hover { filter: brightness(1.08); transform: translateY(-3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ── Credibility band ───────────────────────────── */
.cred-band {
  background:
    radial-gradient(600px 200px at 80% 0%, rgba(184,134,11,0.14), transparent 70%),
    linear-gradient(180deg, var(--black) 0%, var(--black-soft) 100%);
  color: var(--cream);
  padding: 54px 0;
  border-bottom: 1px solid rgba(212,167,34,0.18);
}
.cred-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 18px;
  text-align: center;
}
.cred-item { position: relative; }
.cred-item .num {
  font-family: "Noto Serif SC", serif; font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  line-height: 1.25;
}
.cred-item .lbl { font-size: 13px; color: rgba(250,246,236,0.66); margin-top: 8px; line-height: 1.6; }
@media (min-width: 880px) {
  .cred-grid { grid-template-columns: repeat(4, 1fr); }
  .cred-item + .cred-item::before {
    content: ""; position: absolute; left: -9px; top: 12%; bottom: 12%;
    width: 1px; background: linear-gradient(180deg, transparent, rgba(212,167,34,0.35), transparent);
  }
}

/* ── Sections ───────────────────────────────────── */
.section { padding: 96px 0; }
@media (max-width: 680px) { .section { padding: 68px 0; } }
.section.alt {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(184,134,11,0.07), transparent 60%),
    var(--cream-2);
}
.section.dark {
  background:
    radial-gradient(800px 420px at 15% 100%, rgba(184,134,11,0.16), transparent 65%),
    var(--black);
  color: var(--cream);
  position: relative;
}
.section.dark::before, .section.dark::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,167,34,0.5), transparent);
}
.section.dark::before { top: 0; }
.section.dark::after { bottom: 0; }
.section.dark h2, .section.dark h3 { color: var(--white); }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); margin: 12px 0 16px; line-height: 1.28; }
.section-head p { color: var(--ink-dim); font-size: 1.04rem; }
.section.dark .section-head p { color: rgba(250,246,236,0.74); }
.gold-rule { width: 56px; height: 3px; background: linear-gradient(90deg, var(--gold-bright), var(--gold)); border: none; border-radius: 2px; margin-bottom: 16px; }

/* ── Cards ──────────────────────────────────────── */
.grid-2 { display: grid; gap: 22px; }
.grid-3 { display: grid; gap: 22px; }
.grid-4 { display: grid; gap: 22px; }
@media (min-width: 700px)  { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-pale));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(184,134,11,0.45); }
.card:hover::before { transform: scaleX(1); }
.card .k {
  font-family: "Noto Serif SC", serif; color: var(--gold);
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.08em;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 10px;
  border: 1px solid rgba(184,134,11,0.4); border-radius: 12px;
  background: rgba(184,134,11,0.06);
}
.card h3 { font-size: 1.14rem; margin: 16px 0 10px; }
.card p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.8; }

.photo-card { overflow: hidden; padding: 0; }
.photo-card img {
  height: 210px; width: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.photo-card:hover img { transform: scale(1.06); }
.photo-card .body { padding: 22px 24px 26px; }
.photo-card .meta { font-size: 12.5px; color: var(--gold-deep); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.photo-card h3 { margin-top: 8px; }

/* ── Tables ─────────────────────────────────────── */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--white); box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  background: linear-gradient(135deg, var(--black) 0%, var(--black-card) 100%);
  color: var(--gold-pale); font-weight: 600; white-space: nowrap;
  letter-spacing: 0.04em;
}
tbody tr { transition: background 0.2s; }
tbody tr:hover { background: rgba(184,134,11,0.05); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--cream); }
tbody tr:nth-child(even):hover { background: rgba(184,134,11,0.07); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Pricing ────────────────────────────────────── */
.price-grid { display: grid; gap: 22px; }
@media (min-width: 880px) { .price-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 40px 30px 34px; text-align: center; position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(135deg, var(--gold-bright), var(--gold-pale) 50%, var(--gold)) border-box;
  box-shadow: var(--shadow-gold);
}
.price-card .tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--black); font-size: 12px; font-weight: 700;
  padding: 5px 18px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(184,134,11,0.4);
}
.price-card .units { font-size: 14px; color: var(--ink-soft); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.price-card .amount {
  font-family: "Noto Serif SC", serif; font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.1rem); color: var(--black); margin: 12px 0 4px;
}
.price-card ul { list-style: none; margin-top: 22px; text-align: left; }
.price-card li {
  font-size: 14px; color: var(--ink-dim);
  padding: 8px 0 8px 28px; position: relative;
  border-bottom: 1px dashed rgba(184,134,11,0.18);
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--gold); font-weight: 700; }

/* ── Disclaimer ─────────────────────────────────── */
.disclaimer {
  background: linear-gradient(135deg, #FBF3DC 0%, #F7EDCE 100%);
  border: 1px solid rgba(184,134,11,0.55);
  border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 20px 24px;
  font-size: 13.5px; color: #6B5A1E; line-height: 1.8; margin-top: 22px;
}
.disclaimer strong { color: #4E400F; }

/* ── Steps ──────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 24px 22px 78px; position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.step:hover { transform: translateX(6px); border-color: rgba(184,134,11,0.5); box-shadow: var(--shadow-md); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 20px; top: 22px;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  font-family: "Noto Serif SC", serif; font-weight: 700;
  color: var(--gold-deep); font-size: 1.02rem;
  border: 1px solid rgba(184,134,11,0.45); border-radius: 50%;
  background: rgba(184,134,11,0.07);
}
.step h3 { font-size: 1.02rem; margin-bottom: 5px; }
.step p { font-size: 14px; color: var(--ink-dim); }
.step .time { font-size: 12.5px; color: var(--gold-deep); font-weight: 700; letter-spacing: 0.05em; }

/* ── Blog / article ─────────────────────────────── */
.article { max-width: 740px; margin: 0 auto; padding: 72px 22px 88px; }
.article .eyebrow { display: block; margin-bottom: 10px; }
.article h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); margin-bottom: 14px; line-height: 1.3; }
.article .date { font-size: 13px; color: var(--ink-soft); margin-bottom: 34px; }
.article p { margin-bottom: 1.2em; }
.article h2 { font-size: 1.35rem; margin: 1.8em 0 0.7em; }
.article ol, .article ul { margin: 0 0 1.3em 1.4em; }
.article li { margin-bottom: 0.55em; }
.article img.feature { border-radius: var(--r-lg); margin: 0 0 34px; box-shadow: var(--shadow-md); }
.article-nav { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-size: 14.5px; }

/* ── Contact ────────────────────────────────────── */
.contact-grid { display: grid; gap: 22px; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { text-align: center; padding-top: 36px; padding-bottom: 36px; }
.contact-card .ch { font-size: 1.08rem; font-weight: 700; color: var(--black); margin-bottom: 8px; font-family: "Noto Serif SC", serif; }
.contact-card .id { font-family: Consolas, monospace; color: var(--ink-dim); font-size: 15px; margin-bottom: 18px; }
.qr-img { width: 172px; margin: 0 auto 16px; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  background:
    radial-gradient(700px 280px at 0% 0%, rgba(184,134,11,0.10), transparent 60%),
    var(--black);
  color: rgba(250,246,236,0.8);
  padding: 64px 0 36px;
  border-top: 1px solid rgba(212,167,34,0.25);
}
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 880px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: var(--gold-bright); font-size: 13px; letter-spacing: 0.16em; margin-bottom: 14px; text-transform: uppercase; }
.site-footer a { color: rgba(250,246,236,0.74); display: block; padding: 4px 0; font-size: 14px; transition: color 0.2s, transform 0.2s; }
.site-footer a:hover { color: var(--gold-bright); transform: translateX(3px); }
.site-footer .legal {
  border-top: 1px solid rgba(212,167,34,0.22); margin-top: 34px; padding-top: 20px;
  font-size: 12.5px; color: rgba(250,246,236,0.48);
}
.footer-brand img { height: 58px; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.8; }
.footer-disclaimer {
  border-top: 1px solid rgba(212,167,34,0.22);
  margin-top: 30px; padding-top: 18px;
  font-size: 12px; line-height: 1.75;
  color: rgba(250,246,236,0.52);
}

/* ── Floating WhatsApp ──────────────────────────── */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  background: var(--wa-green); color: #fff !important;
  border-radius: 999px; padding: 14px 22px;
  font-weight: 700; font-size: 14.5px;
  box-shadow: 0 10px 28px rgba(31,168,85,0.45);
  display: flex; align-items: center; gap: 8px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  animation: wa-pulse 3s ease-in-out infinite;
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); animation: none; }
.wa-float svg { width: 18px; height: 18px; flex-shrink: 0; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(31,168,85,0.45); }
  50% { box-shadow: 0 10px 28px rgba(31,168,85,0.45), 0 0 0 10px rgba(31,168,85,0.12); }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }

/* ── Misc ───────────────────────────────────────── */
.split { display: grid; gap: 34px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }
.split img {
  border-radius: var(--r-lg); width: 100%; object-fit: cover;
  box-shadow: var(--shadow-md);
  transition: transform 0.6s var(--ease);
}
.split img:hover { transform: scale(1.02); }
.todo { background: #FFF2F0; color: #A33; border: 1px dashed #D88; border-radius: 8px; padding: 2px 8px; font-size: 12.5px; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.center { text-align: center; }

::selection { background: rgba(212,167,34,0.35); color: var(--black); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: rgba(184,134,11,0.45); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
