/* ── JAI Industries – Shared Stylesheet ─────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: #333; background: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

:root {
  --jai-blue:   #003087;
  --jai-red:    #c8281e;
  --jai-orange: #f47920;
  --jai-grey:   #f5f5f5;
  --jai-border: #ddd;
  --jai-dark:   #222;
}

/* ── TOP BAR ─────────────────────────────────────────────── */
.topbar { background: var(--jai-blue); padding: 6px 0; font-size: 0.78rem; color: #ccc; }
.topbar a { color: #ccc; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .sep { margin: 0 8px; opacity: .4; }
.topbar .social-wrap a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; background: rgba(255,255,255,.12);
  border-radius: 3px; color: #ccc; font-size: 0.75rem; margin-left: 4px;
  transition: background .2s, color .2s;
}
.topbar .social-wrap a:hover { background: var(--jai-red); color: #fff; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.main-navbar {
  background: #fff; border-bottom: 3px solid var(--jai-blue);
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  position: sticky; top: 0; z-index: 1050; padding: 0;
}
.main-navbar .navbar-brand { padding: 8px 0; }
.main-navbar .navbar-brand img { height: 58px; width: auto; }
.main-navbar .nav-link {
  font-size: 0.82rem; font-weight: 700; color: var(--jai-dark) !important;
  text-transform: uppercase; letter-spacing: .4px;
  padding: 18px 12px !important;
  border-bottom: 3px solid transparent; transition: color .2s, border-color .2s;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-item.show > .nav-link { color: var(--jai-red) !important; border-bottom-color: var(--jai-red); }
.main-navbar .nav-link.active { color: var(--jai-red) !important; border-bottom-color: var(--jai-red); }

/* Mega Menu */
.mega-menu-wrap {
  position: absolute; top: 100%; left: 0; width: 100%;
  background: #fff; border-top: 3px solid var(--jai-red);
  box-shadow: 0 8px 20px rgba(0,0,0,.15); display: none; z-index: 1000;
}
.nav-item:hover .mega-menu-wrap { display: block; }
.mega-inner { padding: 24px; max-width: 900px; }
.mega-col-title {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--jai-red);
  border-bottom: 1px solid var(--jai-border);
  padding-bottom: 6px; margin-bottom: 10px;
}
.mega-col-title img { height: 22px; vertical-align: middle; margin-right: 6px; }
.mega-menu-wrap ul { list-style: none; padding: 0; }
.mega-menu-wrap ul li a {
  font-size: 0.8rem; color: #555; display: block; padding: 3px 0;
  transition: color .15s, padding-left .15s;
}
.mega-menu-wrap ul li a:hover { color: var(--jai-red); padding-left: 6px; }

/* Regular dropdown */
.main-navbar .dropdown-menu {
  border-top: 3px solid var(--jai-red); border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12); min-width: 200px;
}
.main-navbar .dropdown-item { font-size: 0.82rem; color: #444; padding: 7px 18px; }
.main-navbar .dropdown-item:hover { background: var(--jai-grey); color: var(--jai-red); }

/* ── PAGE HERO BANNER ────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #001d5e 0%, var(--jai-blue) 60%, #004cad 100%);
  padding: 36px 0 32px; color: #fff;
}
.page-hero h1 { font-size: 1.9rem; font-weight: 700; margin-bottom: 10px; }
.page-hero .breadcrumb { background: transparent; padding: 0; margin: 0; }
.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a { font-size: 0.82rem; color: rgba(255,255,255,.7); }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-hero .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.5); }
.page-hero .brand-img-hero {
  height: 36px; background: #fff; padding: 4px 8px; border-radius: 4px; margin-bottom: 10px;
}

/* ── SECTION COMMONS ─────────────────────────────────────── */
section { padding: 60px 0; }
.sec-tag {
  display: inline-block; background: var(--jai-red); color: #fff;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 3px 12px; border-radius: 2px; margin-bottom: 10px;
}
.sec-title { font-size: 1.8rem; font-weight: 700; color: var(--jai-blue); margin-bottom: 8px; }
.sec-divider { width: 44px; height: 4px; background: var(--jai-red); border-radius: 2px; margin-bottom: 20px; }
.sec-divider.center { margin-left: auto; margin-right: auto; }
.sec-sub { color: #666; font-size: 0.9rem; max-width: 580px; line-height: 1.7; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-range {
  display: inline-block; background: var(--jai-blue); color: #fff;
  font-size: 0.78rem; font-weight: 700; padding: 9px 22px; border-radius: 3px;
  letter-spacing: .4px; transition: background .2s;
}
.btn-range:hover { background: var(--jai-red); color: #fff; }
.btn-range.red { background: var(--jai-red); }
.btn-range.red:hover { background: #a01e15; }
.btn-range.orange { background: var(--jai-orange); }
.btn-range.orange:hover { background: #d4660e; }
.btn-range.outline {
  background: transparent; border: 2px solid var(--jai-blue); color: var(--jai-blue);
}
.btn-range.outline:hover { background: var(--jai-blue); color: #fff; }
.btn-enquire {
  background: var(--jai-red); color: #fff; border: none;
  padding: 11px 32px; font-weight: 700; font-size: 0.88rem;
  border-radius: 3px; letter-spacing: .4px; transition: background .2s; width: 100%;
  cursor: pointer;
}
.btn-enquire:hover { background: #a01e15; color: #fff; }

/* ── MACHINE CARD (listing pages) ───────────────────────── */
.machine-card {
  background: #fff; border: 1px solid var(--jai-border);
  border-radius: 6px; overflow: hidden;
  transition: box-shadow .2s, transform .2s; height: 100%;
}
.machine-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-4px); }
.machine-card-img {
  height: 200px; overflow: hidden; background: #f0f0f0;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.machine-card-img img { width: 100%; height: 100%; object-fit: cover; }
.machine-card-badge {
  position: absolute; top: 10px; left: 10px; background: var(--jai-blue);
  color: #fff; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 2px;
}
.machine-card-badge.red { background: var(--jai-red); }
.machine-card-badge.orange { background: var(--jai-orange); }
.machine-card-body { padding: 18px; }
.machine-card-body h5 { font-size: 1rem; font-weight: 700; color: var(--jai-blue); margin-bottom: 6px; }
.machine-card-body p { font-size: 0.82rem; color: #666; line-height: 1.6; margin-bottom: 14px; }

/* ── MACHINE DETAIL (machine.php) ────────────────────────── */
.machine-detail-img {
  border-radius: 6px; box-shadow: 0 4px 20px rgba(0,0,0,.12); width: 100%;
}
.machine-thumbnails { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.machine-thumb {
  width: 72px; height: 52px; border: 2px solid var(--jai-border); border-radius: 4px;
  overflow: hidden; cursor: pointer; transition: border-color .2s;
}
.machine-thumb.active { border-color: var(--jai-blue); }
.machine-thumb img { width: 100%; height: 100%; object-fit: cover; }
.brand-pill {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 10px;
}
.brand-pill.wudpro { background: #e8f0fb; color: var(--jai-blue); border: 1px solid #b3c8f0; }
.brand-pill.modula { background: #fce8e7; color: var(--jai-red); border: 1px solid #f0b3b0; }
.brand-pill.optimus { background: #fff3e8; color: #c85000; border: 1px solid #f0c898; }
.feature-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; color: #555; margin-bottom: 8px;
}
.feature-item i { color: var(--jai-blue); flex-shrink: 0; margin-top: 2px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td {
  padding: 9px 14px; border: 1px solid var(--jai-border);
  font-size: 0.83rem; text-align: left;
}
.specs-table thead th { background: var(--jai-blue); color: #fff; font-weight: 700; }
.specs-table tbody tr:nth-child(even) { background: #f8f9ff; }
.specs-table td:first-child { font-weight: 600; color: #444; width: 45%; }

/* ── FORM ────────────────────────────────────────────────── */
.form-wrap {
  background: #fff; border: 1px solid var(--jai-border);
  border-radius: 6px; padding: 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.form-label { font-size: 0.82rem; font-weight: 600; color: #444; margin-bottom: 4px; }
.form-control, .form-select { font-size: 0.85rem; border-color: #ccc; border-radius: 3px; }
.form-control:focus, .form-select:focus {
  border-color: var(--jai-blue); box-shadow: 0 0 0 3px rgba(0,48,135,.1);
}

/* ── CONTACT DETAIL ITEMS ────────────────────────────────── */
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-detail .icon-wrap {
  width: 44px; height: 44px; flex-shrink: 0; background: var(--jai-blue);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
}
.contact-detail .icon-wrap.red { background: var(--jai-red); }
.contact-detail .icon-wrap.green { background: #25d366; }
.contact-detail h6 { font-size: 0.82rem; font-weight: 700; color: var(--jai-blue); margin-bottom: 2px; }
.contact-detail p { font-size: 0.82rem; color: #666; margin: 0; }

/* ── INFO BOX ────────────────────────────────────────────── */
.info-box {
  border: 1px solid var(--jai-border); border-radius: 4px;
  padding: 18px; text-align: center; height: 100%;
  transition: box-shadow .2s, border-color .2s;
}
.info-box:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); border-color: var(--jai-blue); }
.info-box i { font-size: 2rem; color: var(--jai-blue); margin-bottom: 10px; display: block; }
.info-box h5 { font-size: 1rem; font-weight: 700; color: var(--jai-dark); margin-bottom: 4px; }
.info-box p { font-size: 0.8rem; color: #666; margin: 0; }

/* ── STATS STRIP ─────────────────────────────────────────── */
.stat-box { text-align: center; padding: 10px 20px; }
.stat-box i { font-size: 2.2rem; color: rgba(255,255,255,.55); margin-bottom: 12px; display: block; }
.stat-box .stat-num { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 6px; }
.stat-box .stat-label { font-size: 0.78rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: 1px; }

/* ── CTA BANNER ──────────────────────────────────────────── */
.cta-banner { background: var(--jai-blue); padding: 50px 0; text-align: center; }
.cta-banner h3 { color: #fff; font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.75); font-size: 0.9rem; margin-bottom: 24px; }

/* ── TIMELINE (history) ──────────────────────────────────── */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--jai-border);
}
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before {
  content: ''; position: absolute; left: -37px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--jai-blue); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--jai-blue);
}
.timeline-year { font-weight: 700; color: var(--jai-blue); font-size: 0.9rem; margin-bottom: 3px; }
.timeline-text { font-size: 0.85rem; color: #555; line-height: 1.6; }

/* ── TEAM CARD ───────────────────────────────────────────── */
.team-card { text-align: center; padding: 24px 16px; }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--jai-grey); margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--jai-blue);
}
.team-name { font-weight: 700; color: var(--jai-dark); font-size: 0.95rem; }
.team-title { font-size: 0.78rem; color: #888; }

/* ── NEWS CARD ───────────────────────────────────────────── */
.news-card {
  background: #fff; border: 1px solid var(--jai-border);
  border-radius: 6px; overflow: hidden; height: 100%;
  transition: box-shadow .2s;
}
.news-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.news-card-img { height: 180px; overflow: hidden; background: var(--jai-grey); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 18px; }
.news-date { font-size: 0.72rem; color: var(--jai-red); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.news-card-body h5 { font-size: 0.95rem; font-weight: 700; color: var(--jai-blue); margin-bottom: 8px; }
.news-card-body p { font-size: 0.82rem; color: #666; line-height: 1.6; }

/* ── CAREER CARD ─────────────────────────────────────────── */
.career-item {
  border: 1px solid var(--jai-border); border-radius: 6px; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.career-item:hover { border-color: var(--jai-blue); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.career-badge {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; letter-spacing: .5px;
  background: #e8f0fb; color: var(--jai-blue); border: 1px solid #b3c8f0;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: #1a2540; color: #99aabb; padding: 55px 0 0; }
footer h6 {
  color: #fff; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08);
}
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 6px; }
footer ul li a { font-size: 0.8rem; color: #7a8fa6; transition: color .15s, padding-left .15s; }
footer ul li a:hover { color: #fff; padding-left: 5px; }
.footer-brand-logo { height: 50px; margin-bottom: 14px; background: #fff; padding: 4px 8px; border-radius: 4px; }
.footer-tagline { font-size: 0.82rem; color: #7a8fa6; line-height: 1.7; margin-bottom: 16px; }
.footer-social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: rgba(255,255,255,.07);
  border-radius: 50%; color: #99aabb; font-size: 0.85rem; margin-right: 6px;
  transition: background .2s, color .2s;
}
.footer-social-links a:hover { background: var(--jai-red); color: #fff; }
.footer-bottom {
  background: #111b2e; text-align: center; padding: 14px;
  font-size: 0.75rem; color: #5a6c80; margin-top: 50px;
}
.footer-bottom a { color: #7a8fa6; }
.footer-bottom a:hover { color: #fff; }

/* ── WHATSAPP FAB ────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; box-shadow: 0 4px 14px rgba(37,211,102,.5); transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.1); }
.whatsapp-fab img { width: 56px; height: 56px; border-radius: 50%; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 992px) {
  section { padding: 44px 0; }
  .mega-menu-wrap { position: static; box-shadow: none; border-top: none; }
  .page-hero h1 { font-size: 1.5rem; }
}
@media (max-width: 768px) {
  .page-hero { padding: 24px 0; }
  .page-hero h1 { font-size: 1.3rem; }
  .machine-card-img { height: 160px; }
}
