/* ============================================================
   KABOLONG.COM — Hengrui Hardware Accessories
   Palette: deep navy + gold + warm off-white
   ============================================================ */

:root {
  --navy-900: #0b1f33;
  --navy-800: #122c47;
  --navy-700: #1a3a5c;
  --navy-600: #24507a;
  --gold-500: #c9a24b;
  --gold-400: #d9b96a;
  --gold-600: #a8843a;
  --cream: #f7f4ee;
  --white: #ffffff;
  --ink: #1c2733;
  --muted: #5c6b7a;
  --line: #e3ddd2;
  --shadow: 0 10px 30px rgba(11, 31, 51, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 31, 51, 0.22);
  --radius: 14px;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-700); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-600); }

.container { width: min(1140px, 92%); margin: 0 auto; }
.center { text-align: center; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy-900); color: #fff;
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-500); }
.brand-name {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; color: var(--navy-900);
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-sub { font-family: var(--font-sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-600); }

.site-nav { display: flex; align-items: center; gap: 24px; }
.nav-link { font-weight: 600; font-size: 0.95rem; color: var(--navy-800); position: relative; padding: 6px 0; }
.nav-link.active { color: var(--gold-600); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--gold-500);
}
.nav-cta {
  background: var(--navy-900); color: #fff; padding: 10px 20px; border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--gold-600); color: #fff; transform: translateY(-1px); }
.lang-switch {
  font-weight: 700; font-size: 0.82rem; color: var(--navy-700); border: 1.5px solid var(--navy-700);
  padding: 5px 12px; border-radius: 999px; transition: all 0.2s; white-space: nowrap;
}
.lang-switch:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); transition: 0.25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 2px solid transparent; cursor: pointer; transition: all 0.2s; text-align: center;
}
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--navy-900); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201, 162, 75, 0.4); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.05);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11, 31, 51, 0.94) 0%, rgba(11, 31, 51, 0.78) 45%, rgba(11, 31, 51, 0.45) 100%);
}
.hero-inner { position: relative; padding: 130px 0 90px; max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-500); margin-bottom: 16px;
}
.eyebrow.center { display: block; text-align: center; }
.eyebrow.light { color: var(--gold-400); }
.hero h1 {
  font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12; margin-bottom: 22px;
}
.hero-sub { font-size: 1.12rem; color: rgba(255, 255, 255, 0.88); max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 28px; max-width: 640px;
}
.hero-stats strong { font-family: var(--font-serif); font-size: 1.9rem; color: var(--gold-400); display: block; line-height: 1.1; }
.hero-stats span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--navy-900); margin-bottom: 48px; }
.section-title.center { text-align: center; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-icon { font-size: 1.9rem; margin-bottom: 16px; }
.value-card h3 { font-family: var(--font-serif); font-size: 1.22rem; color: var(--navy-900); margin-bottom: 10px; }
.value-card p { font-size: 0.93rem; color: var(--muted); }

/* ---------- Categories ---------- */
.categories-section { background: var(--white); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.category-card {
  background: var(--cream); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.category-img { aspect-ratio: 4/3; overflow: hidden; background: #eae4d8; }
.category-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.category-card:hover .category-img img { transform: scale(1.06); }
.category-card h3 { font-family: var(--font-serif); font-size: 1.18rem; color: var(--navy-900); padding: 18px 20px 4px; }
.category-card p { font-size: 0.88rem; color: var(--muted); padding: 0 20px; flex: 1; }
.card-link { display: block; padding: 12px 20px 20px; font-weight: 600; font-size: 0.88rem; color: var(--gold-600); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-900); color: #fff; padding: 84px 0; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 75, 0.35), transparent 70%);
}
.cta-inner { position: relative; text-align: center; max-width: 700px; }
.cta-inner h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.cta-inner p { color: rgba(255, 255, 255, 0.82); margin-bottom: 32px; }

.cta-inline {
  margin-top: 70px; background: var(--navy-900); border-radius: var(--radius); color: #fff;
  padding: 54px 40px; text-align: center;
}
.cta-inline h2 { font-family: var(--font-serif); font-size: 1.7rem; margin-bottom: 10px; }
.cta-inline p { color: rgba(255, 255, 255, 0.82); margin-bottom: 26px; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--navy-900); color: #fff; padding: 90px 0 70px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -100px; top: -100px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.3), transparent 70%);
}
.page-hero h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem, 4.2vw, 3rem); max-width: 720px; margin-bottom: 16px; }
.page-hero p:not(.eyebrow) { color: rgba(255, 255, 255, 0.85); max-width: 640px; font-size: 1.05rem; }

/* ---------- Products page ---------- */
.product-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 40px 0 70px; border-bottom: 1px solid var(--line);
}
.product-row:last-of-type { border-bottom: 0; }
.product-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: #eae4d8; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body h2 { font-family: var(--font-serif); font-size: 1.9rem; color: var(--navy-900); margin-bottom: 14px; }
.product-body > p { color: var(--muted); margin-bottom: 18px; }
.check-list { list-style: none; margin-bottom: 26px; }
.check-list li { padding: 6px 0 6px 30px; position: relative; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 6px; color: var(--gold-600); font-weight: 700;
}

/* ---------- Product detail ---------- */
.detail-block {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px; margin-bottom: 26px; box-shadow: var(--shadow);
}
.detail-block h2 { font-family: var(--font-serif); font-size: 1.6rem; color: var(--navy-900); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--gold-500); }
.spec-list { list-style: none; }
.spec-list li { padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 0.98rem; color: var(--ink); }
.spec-list li:last-child { border-bottom: 0; }
.spec-list strong { color: var(--navy-900); min-width: 150px; display: inline-block; }

.advantage-list { counter-reset: adv; list-style: none; }
.advantage-list li {
  counter-increment: adv; position: relative; padding: 11px 0 11px 44px; font-size: 0.98rem; color: var(--ink);
  border-bottom: 1px dashed var(--line);
}
.advantage-list li:last-child { border-bottom: 0; }
.advantage-list li::before {
  content: counter(adv); position: absolute; left: 0; top: 11px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); color: var(--gold-400);
  font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
}
.advantage-list strong { color: var(--navy-900); }

.policy-table { width: 100%; border-collapse: collapse; }
.policy-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink); }
.policy-table td:first-child { font-weight: 700; color: var(--navy-900); width: 38%; background: rgba(11, 31, 51, 0.03); }
.policy-table tr:last-child td { border-bottom: 0; }

.inquiry-block { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.inquiry-block h2 { border-bottom-color: var(--gold-500); color: #fff; }
.inquiry-block p { color: rgba(255, 255, 255, 0.85); margin-bottom: 22px; }
.template-cta { margin-top: 10px; }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.about-story h2 { font-family: var(--font-serif); font-size: 2rem; color: var(--navy-900); margin-bottom: 20px; }
.about-story p { margin-bottom: 16px; color: var(--muted); }
.quote {
  border-left: 3px solid var(--gold-500); padding: 10px 20px; font-style: italic; color: var(--navy-800);
  background: rgba(201, 162, 75, 0.08); border-radius: 0 10px 10px 0;
}
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; box-shadow: var(--shadow);
}
.fact-card strong { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy-900); display: block; }
.fact-card span { font-size: 0.85rem; color: var(--muted); }

.process-section { background: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step {
  border-top: 3px solid var(--gold-500); padding-top: 22px; background: var(--cream);
  border-radius: 0 0 var(--radius) var(--radius); padding: 28px 22px;
}
.process-step span { font-family: var(--font-serif); font-size: 1.6rem; color: var(--gold-600); display: block; margin-bottom: 8px; }
.process-step h3 { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy-900); margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--muted); }

.capabilities { max-width: 860px; }
.capability-list {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin-bottom: 44px;
}
.capability-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px;
  font-weight: 600; color: var(--navy-800);
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contact-info h2, .contact-form-wrap h2 { font-family: var(--font-serif); font-size: 1.7rem; color: var(--navy-900); margin-bottom: 22px; }
.contact-list { list-style: none; margin-bottom: 28px; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.contact-list strong { color: var(--navy-900); }

.contact-form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow); }
.form-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--navy-800); margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink); background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.2); background: #fff;
}
.form-status { margin-top: 14px; font-size: 0.92rem; font-weight: 600; min-height: 1.4em; }
.form-status.success { color: #2e7d32; }
.form-status.error { color: #c62828; }

/* ---------- FAQ ---------- */
.faq-section { background: var(--white); }
.faq-wrap { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] { border-color: var(--gold-500); box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--navy-900);
  padding: 17px 26px 17px 0; position: relative; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--gold-600); font-weight: 700; transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 0 18px; font-size: 0.95rem; color: var(--muted); }

/* ---------- Floating contact button ---------- */
.float-contact {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.3); transition: transform 0.2s; color: #fff; font-size: 1.5rem;
}
.float-btn:hover { transform: scale(1.08); }
.float-wa { background: #25d366; }
.float-mail { background: var(--navy-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.8); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 44px; }
.footer-grid h4 { font-family: var(--font-serif); color: #fff; font-size: 1.1rem; margin-bottom: 16px; }
.footer-grid p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding: 20px 0; text-align: center; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 1fr; gap: 30px; }
  .product-row.reverse .product-img { order: -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: 76px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 0 5%; max-height: 0; overflow: hidden; transition: max-height 0.3s;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.open { max-height: 480px; }
  .site-nav .nav-link { padding: 16px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { border-radius: 10px; margin: 12px 0 20px; text-align: center; }
  .hero-inner { padding: 90px 0 60px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 64px 0; }
  .value-grid, .category-grid, .process-grid { grid-template-columns: 1fr; }
  .capability-list { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 26px 20px; }
}
