/* ===========================================================
   KAMBOJ ENTERPRISES — Design tokens
   Concept: engineering drawing / precision spec sheet
   =========================================================== */

:root {
  --paper: #edeee6;
  --paper-dim: #e2e3d9;
  --paper-line: #c7c9bd;
  --ink: #1c2126;
  --ink-soft: #4c525a;
  --ink-faint: #7c8288;
  --steel: #3d5a73;
  --steel-dark: #263e50;
  --steel-pale: #dbe4ea;
  --amber: #d98d2b;
  --amber-pale: #f3ddb4;
  --tolerance: #b8442c;
  --white: #fbfbf8;

  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-body: "IBM Plex Sans", sans-serif;

  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--steel);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(36px, 5.2vw, 62px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; }

p { margin: 0; color: var(--ink-soft); }

.btn {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--steel-dark); border-color: var(--steel-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.btn-arrow { transition: transform 0.15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------------- NAV ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(237, 238, 230, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--paper-line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo-img { height: 40px; width: auto; display: block; }
.brand-mark {
  width: 34px; height: 34px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.brand-mark::before { top: 50%; left: 15%; right: 15%; height: 1.5px; transform: translateY(-50%); }
.brand-mark::after { left: 50%; top: 15%; bottom: 15%; width: 1.5px; transform: translateX(-50%); }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand-text span { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-faint); font-weight: 400; margin-top: 1px; }

.navlinks { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.navlinks a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.navlinks a:hover, .navlinks a.active { color: var(--ink); border-color: var(--amber); }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-phone { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); text-decoration: none; display: none; }

@media (min-width: 860px) { .nav-phone { display: inline; } }
@media (max-width: 720px) { .navlinks { gap: 18px; } .navlinks a { font-size: 11.5px; } }
@media (max-width: 560px) { .navlinks { display: none; } }

/* ---------------- TITLE BLOCK STRIP (signature element) ---------------- */
.titleblock {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-dim);
}
.titleblock .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.tb-cell {
  padding: 14px 20px;
  border-left: 1px solid var(--paper-line);
  font-family: var(--font-mono);
}
.tb-cell:first-child { border-left: none; }
.tb-label { font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-faint); text-transform: uppercase; }
.tb-value { font-size: 15px; color: var(--ink); margin-top: 3px; font-weight: 500; }
@media (max-width: 720px) {
  .titleblock .wrap { grid-template-columns: repeat(2, 1fr); }
  .tb-cell:nth-child(3) { border-left: none; }
}

/* ---------------- HERO ---------------- */
.hero { padding: 64px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 56px;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-copy h1 { margin-top: 14px; }
.hero-sub { font-size: 17px; max-width: 46ch; margin-top: 4px; }
.hero-actions { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.hero-art { position: relative; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ---------------- LINES ---------------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.rule { border: none; border-top: 1px solid var(--paper-line); margin: 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.section-head h2 { max-width: 20ch; }
.section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------------- CATEGORY CARDS (home) ---------------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cat-card {
  border: 1px solid var(--ink);
  padding: 34px;
  background: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--steel); }
.cat-index { font-family: var(--font-mono); font-size: 13px; color: var(--amber); }
.cat-card h3 { font-size: 24px; }
.cat-card p { font-size: 14.5px; }
.cat-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); padding-top: 12px; border-top: 1px dashed var(--paper-line); }
@media (max-width: 720px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------------- WHY STRIP ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.why-item { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 30px 28px; }
.why-tag { font-family: var(--font-mono); font-size: 12px; color: var(--tolerance); letter-spacing: 0.06em; }
.why-item h3 { margin-top: 10px; }
.why-item p { margin-top: 10px; font-size: 14.5px; }
@media (max-width: 780px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------------- CTA BANNER ---------------- */
.cta-band { background: var(--ink); color: var(--paper); padding: 64px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--paper); max-width: 16ch; }
.cta-band .btn-ghost { border-color: var(--paper); color: var(--paper); }
.cta-band .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.cta-band .btn-solid { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.cta-band .btn-solid:hover { background: var(--amber-pale); border-color: var(--amber-pale); }

/* ---------------- SPEC CARDS (products) ---------------- */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 660px) { .spec-grid { grid-template-columns: 1fr; } }

.spec-card {
  background: var(--white);
  border: 1px solid var(--ink);
  position: relative;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.spec-card::before, .spec-card::after,
.spec-card .cross-br, .spec-card .cross-tr {
  content: ""; position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--amber);
}
.spec-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.spec-card::after { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.spec-card .cross-tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.spec-card .cross-br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.spec-code { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--steel); text-transform: uppercase; }
.spec-card h3 { font-size: 20px; margin-top: 2px; }
.spec-photo { aspect-ratio: 16/10; background: var(--steel-pale); border: 1px solid var(--paper-line); overflow: hidden; }
.spec-photo img { width: 100%; height: 100%; object-fit: cover; }

.spec-table { font-family: var(--font-mono); font-size: 12.5px; display: flex; flex-direction: column; gap: 7px; }
.spec-row { display: flex; justify-content: space-between; gap: 10px; }
.spec-row .k { color: var(--ink-faint); }
.spec-row .v { color: var(--ink); text-align: right; }

.spec-desc { font-size: 14px; }
.spec-card .btn { margin-top: auto; align-self: flex-start; }

.stamp {
  position: absolute; top: 18px; right: 18px;
  width: 46px; height: 46px;
  border: 1.5px solid var(--tolerance);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-9deg);
  font-family: var(--font-mono); font-size: 8.5px; color: var(--tolerance);
  text-align: center; line-height: 1.2; letter-spacing: 0.02em;
}

.group-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 30px; }
.group-head .section-num { font-size: 22px; font-family: var(--font-display); color: var(--paper-line); }
.group-head h3 { font-size: 26px; }

/* ---------------- ABOUT ---------------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; } }
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.stat { padding: 26px 20px; border-left: 1px solid var(--paper-line); }
.stat:first-child { border-left: none; }
.stat-num { font-family: var(--font-display); font-size: 34px; font-weight: 600; }
.stat-label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: none; } }

.value-list { display: flex; flex-direction: column; }
.value-row { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--paper-line); }
.value-row:last-child { border-bottom: 1px solid var(--paper-line); }
.value-row .num { font-family: var(--font-mono); color: var(--amber); font-size: 14px; }

/* ---------------- CONTACT ---------------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-line { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 1px dashed var(--paper-line); }
.contact-line:last-child { border-bottom: 1px dashed var(--paper-line); }
.contact-line .k { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-line .v { font-size: 17px; text-decoration: none; color: var(--ink); }
.contact-line .v:hover { color: var(--steel); }

.phone-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.phone-actions { display: flex; gap: 8px; }
.phone-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.phone-btn:hover { background: var(--ink); color: var(--paper); }
.phone-btn-wa { border-color: #25945c; color: #1c6b42; }
.phone-btn-wa:hover { background: #25945c; color: var(--white); }

.form-panel { border: 1px solid var(--ink); padding: 32px; background: var(--white); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--paper-line);
  background: var(--paper);
  border-radius: 2px;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--steel);
  outline-offset: 1px;
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); margin-top: 14px; }

/* ---------------- FOOTER ---------------- */
footer { border-top: 1px solid var(--ink); }
.foot-main { padding-top: 52px; padding-bottom: 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .foot-main { grid-template-columns: 1fr; gap: 30px; } }
.foot-col h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { text-decoration: none; color: var(--ink-soft); font-size: 14.5px; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  border-top: 1px solid var(--paper-line);
  padding-top: 18px;
  padding-bottom: 26px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint);
}

/* focus visibility */
a:focus-visible, button:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
