
/* ============================
   ROOT VARIABLES
=============================== */
:root {
  --primary: #1b3f7b;
  --primary-dark: #0f2550;
  --accent: #f5a623;
  --accent-dark: #d48c15;
  --white: #ffffff;
  --light-bg: #f5f7fb;
  --text-dark: #1a1a2e;
  --text-mid: #4a5568;
  --text-light: #718096;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --radius: 10px;
  --transition: all 0.3s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); background: #fff; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 0.6s ease; }
.fade-in.visible { opacity: 1; }
/* ============================
   HERO
=============================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0a1e40 0%, #0d2358 35%, #1b3f7b 70%, #1e4d96 100%);
  overflow: hidden;
  padding-top: 64px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.12;
  position: absolute; inset: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(10,30,64,0.85) 0%, rgba(10,30,64,0.6) 50%, rgba(10,30,64,0.15) 100%);
}
.hero-inner {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  width: 100%;
  padding: 80px 0 80px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 50px; margin-bottom: 22px;
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.hero-title-top {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 900; color: #fff;
  line-height: 0.95; letter-spacing: -1.5px;
  margin-bottom: 0;
  display: block;
}
.hero-title-bottom {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 900; color: var(--accent);
  line-height: 0.95; letter-spacing: -1.5px;
  margin-bottom: 20px;
  display: block;
}
.hero-subtitle {
  font-size: 15px; font-weight: 700;
  color: #fff; margin-bottom: 6px;
}
.hero-desc {
  font-size: 13.5px; color: rgba(255,255,255,0.72);
  line-height: 1.65; max-width: 500px; margin-bottom: 34px;
}
.hero-btns {
  display: flex; flex-direction: column; gap: 10px;
}
.hero-btns-row {
  display: flex; flex-wrap: nowrap; gap: 10px; align-items: center;
}
.hbtn {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 11px 22px; border-radius: 6px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: none; text-decoration: none;
  flex-shrink: 0;
}
.hbtn-blue {
  background: rgba(255,255,255,0.12);
  color: #fff; border: 1.5px solid rgba(255,255,255,0.35);
}
.hbtn-blue:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.hbtn-yellow { background: var(--accent); color: #fff; border: 1.5px solid var(--accent); }
.hbtn-yellow:hover { background: var(--accent-dark); transform: translateY(-2px); }
.hbtn-outline {
  background: rgba(255,255,255,0.08);
  color: #fff; border: 1.5px solid rgba(255,255,255,0.3);
}
.hbtn-outline:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.hero-img-card {
  position: relative; z-index: 3;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  height: 420px;
  flex-shrink: 0;
}
.hero-img-card img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-img-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(10,30,64,0.5));
}
/* ============================
   ABOUT US SECTION
=============================== */
.about-section { padding: 64px 0 52px; background: #fff; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: flex-start; }
.about-badge { font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.about-title { font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1.2; margin-bottom: 14px; }
.about-title span { color: var(--accent); }
.about-desc { font-size: 13px; color: var(--text-mid); line-height: 1.7; }
.about-right { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding-top: 24px; }
.about-feat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 10px; text-align: center;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.about-feat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--accent); }
.about-feat-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--light-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; font-size: 16px; color: var(--primary);
}
.about-feat-card h4 { font-size: 11.5px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.about-feat-card p { font-size: 10px; color: var(--text-light); line-height: 1.4; }
/* ============================
   TWO-COLUMN ROW: Org Structure + Business Divisions
=============================== */
.mid-row { padding: 0 0 52px; background: #fff; }
.mid-inner { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: stretch; }
.org-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; background: #fff;
}
.org-card-label { font-size: 10px; font-weight: 700; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.org-card-title { font-size: 16px; font-weight: 800; color: var(--text-dark); margin-bottom: 20px; }
.org-tree { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-node {
  border-radius: 6px; padding: 10px 20px; font-size: 13px; font-weight: 700;
  text-align: center; width: 100%; max-width: 220px; position: relative;
}
.org-node-top { background: var(--primary-dark); color: #fff; }
.org-node-mid { background: var(--primary); color: #fff; }
.org-node-light { background: #d6e4f7; color: var(--primary-dark); border: 1.5px solid #b0cceb; }
.org-node-sub { font-size: 11px; font-weight: 500; opacity: 0.8; }
.org-connector { width: 2px; height: 16px; background: #b0cceb; margin: 0 auto; }
.org-bottom-node {
  background: #f0f5ff; border: 1px solid #c8daef; border-radius: 6px;
  padding: 9px 16px; font-size: 12px; font-weight: 600; color: var(--text-dark);
  text-align: center; width: 100%; max-width: 220px;
}
/* Business Divisions card */
.divisions-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; background: #fff;
}
.divisions-label { font-size: 10px; font-weight: 700; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.divisions-title { font-size: 16px; font-weight: 800; color: var(--text-dark); margin-bottom: 20px; }
.divisions-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
/* FIX: equal-height columns with button pinned to bottom */
.division-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.division-icon-wrap {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--light-bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px; font-size: 22px; transition: var(--transition);
  flex-shrink: 0;
}
.division-item:hover .division-icon-wrap { background: var(--primary); color: #fff; border-color: var(--primary); }
.division-item:hover .division-icon-wrap i { color: #fff; }
.division-icon-wrap i { font-size: 22px; color: var(--primary); transition: var(--transition); }
.division-name { font-size: 12px; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; }
.division-desc { font-size: 10.5px; color: var(--text-light); line-height: 1.4; margin-bottom: 8px; flex-grow: 1; }
.division-btn {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 700; padding: 5px 14px;
  border-radius: 4px; cursor: pointer; border: none; transition: var(--transition);
  margin-top: auto;
  flex-shrink: 0;
}
.division-btn:hover { background: var(--accent); }

/* ============================
   CERTIFICATES SECTION — UPDATED
=============================== */
.certs-section { padding: 52px 0; background: var(--light-bg); }
.certs-badge { font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; text-align: center; }
.certs-title { font-size: 24px; font-weight: 800; color: var(--text-dark); text-align: center; margin-bottom: 6px; }
.certs-subtitle { font-size: 13px; color: var(--text-light); text-align: center; margin-bottom: 32px; }
.certs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.cert-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 22px 14px 18px; text-align: center;
  transition: var(--transition); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center;
}
.cert-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--accent); }

/* Logo container — fixed height so all cards align */
.cert-logo-wrap {
  width: 100%; height: 72px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.cert-logo-wrap img {
  max-height: 64px; max-width: 100%; object-fit: contain;
  display: block; margin: 0 auto;
}

/* Inline SVG logos for certs without a hosted image */
.cert-logo-svg {
  width: 100%; height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.cert-logo-svg svg { max-height: 64px; width: auto; }

.cert-name { font-size: 13px; font-weight: 800; color: var(--text-dark); margin-bottom: 3px; }
.cert-full { font-size: 10.5px; color: var(--text-light); line-height: 1.4; margin-bottom: 8px; flex-grow: 1; }

/* Registration number chip */
.cert-reg-number {
  font-size: 9.5px; font-weight: 700; color: var(--text-mid);
  background: #f0f4fa; border: 1px solid #d0daea;
  border-radius: 4px; padding: 4px 8px; margin-bottom: 8px;
  width: 100%; word-break: break-all; line-height: 1.4;
  letter-spacing: 0.3px;
}

.cert-badge-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; padding: 4px 12px;
  border-radius: 50px; letter-spacing: 0.5px;
}
.cert-fssai .cert-badge-pill { background: #fff4e5; color: #e67e00; border: 1px solid #ffd591; }
.cert-gst   .cert-badge-pill { background: #eaf4ff; color: #1b3f7b; border: 1px solid #b3d4f5; }
.cert-iso   .cert-badge-pill { background: #f0faf0; color: #2d7a2d; border: 1px solid #9dd89d; }
.cert-trade .cert-badge-pill { background: #fdf0ff; color: #7b2d9e; border: 1px solid #d9a8f0; }
.cert-msme  .cert-badge-pill { background: #fff0f0; color: #c0392b; border: 1px solid #f5a8a8; }

/* ============================
   PRODUCTS SECTION
=============================== */
.products-section { padding: 52px 0; background: #fff; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-header-left .sec-badge { font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.section-header-left .sec-title { font-size: 24px; font-weight: 800; color: var(--text-dark); }
.products-carousel { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.product-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-img { height: 130px; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-body { padding: 12px 12px 14px; }
.product-body h4 { font-size: 12px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; line-height: 1.3; }
.product-link { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--primary); transition: var(--transition); }
.product-link:hover { color: var(--accent); gap: 7px; }
/* ============================
   WHY US + DEALER PROGRAM ROW
=============================== */
.why-dealer-row { padding: 52px 0; background: #fff; }
.why-dealer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.why-badge { font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.why-title { font-size: 24px; font-weight: 800; color: var(--text-dark); margin-bottom: 20px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why-item { display: flex; align-items: flex-start; gap: 10px; }
.why-icon-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.why-item-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.why-item-text span { font-size: 11.5px; color: var(--text-light); }
.dealer-badge { font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.dealer-title { font-size: 22px; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.dealer-desc { font-size: 13px; color: var(--text-mid); margin-bottom: 20px; line-height: 1.5; }
.dealer-form { background: #fff; }
.dealer-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.df-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: 13px; font-family: inherit; color: var(--text-dark);
  transition: var(--transition); background: #fff;
}
.df-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,63,123,0.08); }
.df-input::placeholder { color: #b0b8c9; }
.df-apply-btn {
  width: 100%; padding: 13px; background: var(--accent);
  color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px;
}
.df-apply-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
/* ============================
   STATS BAR
=============================== */
.stats-bar { background: var(--primary-dark); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 10px 20px; border-right: 1px solid rgba(255,255,255,0.12); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 44px; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.65); font-weight: 500; }
.stat-icon { font-size: 28px; color: rgba(255,255,255,0.25); margin-bottom: 6px; }
/* ============================
   TESTIMONIALS
=============================== */
.testimonials-section { padding: 52px 0 60px; background: #fff; }
.testi-badge { font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; text-align: center; margin-bottom: 4px; }
.testi-title { font-size: 28px; font-weight: 800; color: var(--text-dark); text-align: center; margin-bottom: 32px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.testi-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.testi-stars { color: var(--accent); font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testi-text { font-size: 13.5px; color: var(--text-mid); line-height: 1.65; font-style: italic; margin-bottom: 18px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #3a6dc9);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.testi-name { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.testi-role { font-size: 11.5px; color: var(--text-light); }
.testi-dots { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: var(--transition); cursor: pointer; }
.dot.active { background: var(--primary); width: 24px; border-radius: 4px; }
/* ============================
   RESPONSIVE
=============================== */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr 340px; gap: 32px; }
  .hero-img-card { height: 360px; }
  .products-carousel { grid-template-columns: repeat(3, 1fr); }
  .about-right { grid-template-columns: repeat(3, 1fr); }
  .mid-inner { grid-template-columns: 1fr; }
  .divisions-grid { grid-template-columns: repeat(3, 1fr); }
  .certs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img-card { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .why-dealer-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .certs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-dealer-btn { display: none; }
  .hamburger { display: flex; }
  .hero-inner { padding: 50px 0 60px; }
  .hero-btns-row { flex-wrap: wrap; }
  .products-carousel { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .pf-row { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .dealer-form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hbtn { font-size: 12px; padding: 9px 14px; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .products-carousel { grid-template-columns: 1fr 1fr; }
  .about-right { grid-template-columns: repeat(2, 1fr); }
  .divisions-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}
