/* ============================================================
   KMM – KOHINOOR METAL MANUFACTURERS  |  Global Stylesheet
   Palette: Forge Black #0E0E0F · Steel #1A1A1F · Iron #26262E
            Red #D62828 · Light Red #E84040 · Smoke #9A9AA8
            Off-White #F0EFEB
   Type: Barlow Condensed (display) · Inter (body)
   ============================================================ */

:root {
  --red:       #D62828;
  --red-light: #E84040;
  --black:     #0E0E0F;
  --steel:     #1A1A1F;
  --iron:      #26262E;
  --smoke:     #9A9AA8;
  --off-white: #F0EFEB;
  --nav-h:     72px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ── TYPOGRAPHY UTILS ─────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.text-red { color: var(--red); }

.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--off-white);
}

.text-muted-light { color: var(--smoke); }

/* ── NAVBAR ───────────────────────────────────── */
.kmm-nav {
  background: rgba(14,14,15,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214,40,40,0.25);
  height: var(--nav-h);
  padding: 0;
}

.brand-mark {
  background: var(--red);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  flex-shrink: 0;
}
.brand-mark--sm { font-size: 0.9rem; padding: 3px 8px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-top  { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; color: var(--off-white); }
.brand-sub  { font-family: 'Inter', sans-serif; font-size: 0.6rem; letter-spacing: 0.12em; color: var(--smoke); text-transform: uppercase; }

.navbar-nav .nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--smoke) !important;
  padding: 0.5rem 0.75rem !important;
  transition: color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--off-white) !important; }
.navbar-nav .nav-link.active { border-bottom: 2px solid var(--red); }

/* ── BUTTONS ──────────────────────────────────── */
.btn-red {
  background: var(--red);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  padding: 0.65rem 1.8rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}
.btn-red:hover { background: var(--red-light); color: #fff; transform: translateY(-1px); }

.btn-outline-light-kmm {
  background: transparent;
  color: var(--off-white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(240,239,235,0.35);
  padding: 0.65rem 1.8rem;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline-light-kmm:hover { border-color: var(--off-white); color: var(--off-white); }

/* ── HERO ─────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: var(--black);
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(214,40,40,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,40,40,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--off-white);
  margin-bottom: 1.5rem;
}

.hero-body {
  font-size: 1.05rem;
  color: var(--smoke);
  max-width: 480px;
  line-height: 1.7;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--iron);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat-card--red { background: var(--red); border-color: var(--red); }

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--off-white);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smoke);
}
.stat-card--red .stat-label { color: rgba(255,255,255,0.8); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--smoke);
  writing-mode: horizontal-tb;
  z-index: 2;
}

/* ── SECTIONS ─────────────────────────────────── */
.section-dark { background: var(--steel); }
.section-mid  { background: var(--iron); }

/* ── DIVISION CARDS ───────────────────────────── */
.division-card {
  background: var(--iron);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 2rem;
  height: 100%;
  transition: border-color 0.2s, transform 0.2s;
}
.division-card:hover { border-color: rgba(214,40,40,0.4); transform: translateY(-3px); }
.division-card--featured {
  background: var(--red);
  border-color: var(--red);
}
.division-card--featured:hover { border-color: var(--red-light); }

.division-icon { font-size: 2rem; margin-bottom: 1rem; }
.division-card h3 {
  font-size: 1.4rem;
  color: var(--off-white);
  margin-bottom: 0.75rem;
}
.division-card p { font-size: 0.9rem; color: var(--smoke); line-height: 1.7; }
.division-card--featured p { color: rgba(255,255,255,0.85); }

.division-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s;
}
.division-card--featured .division-link { color: rgba(255,255,255,0.9); }
.division-link:hover { color: var(--red-light); }

/* ── TIMELINE STRIP ───────────────────────────── */
.timeline-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
}

.tl-item {
  padding: 0 1.5rem 1.5rem 0;
  position: relative;
}

.tl-year {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--off-white);
  margin-bottom: 0.5rem;
}

.tl-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--smoke);
  margin-bottom: 0.75rem;
}
.tl-dot--red { background: var(--red); box-shadow: 0 0 8px var(--red); }

.tl-desc { font-size: 0.82rem; color: var(--smoke); line-height: 1.6; }

/* ── E-BIKE BANNER ────────────────────────────── */
.ebike-banner {
  background: linear-gradient(135deg, #0E0E0F 0%, #1a0404 50%, #0E0E0F 100%);
  border-top: 1px solid rgba(214,40,40,0.3);
  border-bottom: 1px solid rgba(214,40,40,0.3);
  padding: 4rem 0;
}

/* ── CUSTOMERS MARQUEE ────────────────────────── */
.customer-scroll {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.customer-scroll::before,
.customer-scroll::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.customer-scroll::before { left: 0; background: linear-gradient(to right, var(--steel), transparent); }
.customer-scroll::after  { right: 0; background: linear-gradient(to left, var(--steel), transparent); }

.customer-track {
  display: flex;
  gap: 0;
  animation: scroll-left 28s linear infinite;
  width: max-content;
}
.customer-track span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--smoke);
  padding: 0 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
  transition: color 0.2s;
}
.customer-track span:hover { color: var(--off-white); }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── FOOTER ───────────────────────────────────── */
.kmm-footer {
  background: #080809;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-head {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a,
.footer-body a {
  color: var(--smoke);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-body a:hover { color: var(--red); }
.footer-body { font-size: 0.88rem; color: var(--smoke); line-height: 1.8; }
.footer-divider { border-top: 1px solid rgba(255,255,255,0.06); }
.footer-copy { font-size: 0.78rem; color: rgba(154,154,168,0.5); }

/* ── PAGE HERO (inner pages) ──────────────────── */
.page-hero {
  background: var(--steel);
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  border-bottom: 1px solid rgba(214,40,40,0.25);
}
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }

/* ── ABOUT PAGE ───────────────────────────────── */
.about-block { padding: 4rem 0; }
.about-block + .about-block { border-top: 1px solid rgba(255,255,255,0.06); }

.about-img-placeholder {
  background: var(--iron);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
}
.about-img-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smoke);
}

.milestone-row { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.milestone {
  flex: 1 1 140px;
  background: var(--iron);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 1.25rem;
}
.milestone-year {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--red);
}
.milestone-text { font-size: 0.82rem; color: var(--smoke); margin-top: 0.35rem; }

/* ── PRODUCTS PAGE ────────────────────────────── */
.product-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  color: var(--smoke);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.product-card {
  background: var(--iron);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: border-color 0.2s;
}
.product-card:hover { border-color: rgba(214,40,40,0.4); }
.product-card-icon {
  width: 36px; height: 36px;
  background: rgba(214,40,40,0.15);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.product-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--off-white);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.customers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.customer-chip {
  background: var(--iron);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--smoke);
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
}
.customer-chip:hover { color: var(--off-white); border-color: rgba(214,40,40,0.3); }

/* ── E-BIKE PAGE ──────────────────────────────── */
.spec-table { width: 100%; }
.spec-table tr { border-bottom: 1px solid rgba(255,255,255,0.07); }
.spec-table td { padding: 0.75rem 0; font-size: 0.9rem; }
.spec-table td:first-child { color: var(--smoke); width: 45%; }
.spec-table td:last-child { color: var(--off-white); font-weight: 600; }

.kit-item-card {
  background: var(--iron);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.kit-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(214,40,40,0.4);
  line-height: 1;
  min-width: 2rem;
}
.kit-name { font-size: 0.88rem; color: var(--off-white); font-weight: 500; }

/* ── CONTACT PAGE ─────────────────────────────── */
.contact-info-block {
  background: var(--iron);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 2rem;
  height: 100%;
}
.contact-info-block h3 {
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--smoke);
  margin-bottom: 1rem;
}
.contact-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--off-white);
  line-height: 1.3;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}
.contact-value:hover { color: var(--red); }

.map-placeholder {
  background: var(--iron);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--smoke);
  font-size: 0.85rem;
}

/* ── RESPONSIVE FIXES ─────────────────────────── */
@media (max-width: 768px) {
  .timeline-strip { grid-template-columns: 1fr 1fr; }
  .hero-headline { font-size: 3rem; }
  .product-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .timeline-strip { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}

/* ── IMAGE ADDITIONS ──────────────────────────── */
.nav-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  background: #fff;
  padding: 3px 6px;
  border-radius: 2px;
}

.footer-logo {
  height: 48px;
  width: auto;
  background: #fff;
  padding: 4px 8px;
  border-radius: 2px;
  display: block;
}

/* Hero image overlay */
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
}

/* Factory photo strip */
.factory-photo-strip {
  display: flex;
  height: 180px;
  overflow: hidden;
}
.factory-photo-strip img {
  flex: 1;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.75) saturate(0.7);
  transition: filter 0.3s, flex 0.3s;
}
.factory-photo-strip img:hover {
  filter: brightness(0.95) saturate(1);
  flex: 2;
}
@media (max-width: 576px) {
  .factory-photo-strip { height: 120px; }
  .factory-photo-strip img:nth-child(n+4) { display: none; }
}

/* Division card image */
.division-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
  margin-bottom: 1rem;
  filter: brightness(0.85) saturate(0.8);
}
.division-card--featured .division-img {
  filter: brightness(0.75) saturate(0.6);
}

/* Product card image */
.product-part-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center center;
  background: #111117;
  border-radius: 2px 2px 0 0;
  padding: 1rem;
  display: block;
}

/* Factory dept image */
.dept-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
  filter: brightness(0.8) saturate(0.7);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}
.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 2px;
  filter: brightness(0.8) saturate(0.7);
  transition: filter 0.25s, transform 0.25s;
}
.gallery-grid img:hover {
  filter: brightness(1) saturate(1);
  transform: scale(1.02);
  z-index: 1;
  position: relative;
}

/* BLDC motor images */
.bldc-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(214,40,40,0.2);
}

/* TCS fleet image */
.fleet-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* MCE store image */
.store-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
}

/* ── PRODUCT IMG CARDS ────────────────────────── */
.product-img-card {
  background: var(--iron);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  transition: border-color 0.2s, transform 0.2s;
}
.product-img-card:hover { border-color: rgba(214,40,40,0.4); transform: translateY(-2px); }

.product-img-body { padding: 1rem 1.25rem 1.25rem; }

.product-cat-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.product-card-desc {
  font-size: 0.8rem;
  color: var(--smoke);
  margin: 0.35rem 0 0;
  line-height: 1.5;
}

/* ── DEPT CARDS ───────────────────────────────── */
.dept-card {
  background: var(--iron);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  transition: border-color 0.2s;
}
.dept-card:hover { border-color: rgba(214,40,40,0.35); }

.dept-body { padding: 1rem 1.25rem 1.25rem; }
.dept-body h3 {
  font-size: 1.1rem;
  color: var(--off-white);
  margin-bottom: 0.4rem;
}
.dept-body p { font-size: 0.82rem; color: var(--smoke); margin: 0; line-height: 1.6; }
