/* ============================================
   MARUTI INC. — FRESH WEBSITE STYLES
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #C93A0E;
  --red-dk: #9E2D0B;
  --red-lt: #fce8e2;
  --amber:  #F5A623;
  --dark:   #111827;
  --dark2:  #1F2937;
  --mid:    #374151;
  --muted:  #6B7280;
  --light:  #F9FAFB;
  --border: #E5E7EB;
  --white:  #FFFFFF;
  --r:      8px;
  --rl:     14px;
  --sh:     0 4px 20px rgba(0,0,0,.08);
  --shl:    0 12px 40px rgba(0,0,0,.14);
  --t:      .22s ease;
  --font:   'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--mid); background: var(--white); line-height: 1.7; overflow-x: hidden; }
a    { text-decoration: none; color: inherit; }
img  { display: block; max-width: 100%; }

.container { width: min(1200px, 92%); margin-inline: auto; }
.section    { padding: 80px 0; }

/* --- TYPOGRAPHY --- */
.eyebrow, .section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-lt);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; color: var(--dark); line-height: 1.2; }
.section-desc  { color: var(--muted); margin-top: 10px; }
.section-header { text-align: center; margin-bottom: 48px; }
.accent { color: var(--red); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r);
  font-family: var(--font); font-size: .9rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--t);
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dk); border-color: var(--red-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,58,14,.3); }
.btn-ghost   { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-sm      { padding: 8px 18px; font-size: .82rem; }
.btn-block   { width: 100%; justify-content: center; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 16px 0;
  background: transparent;
  transition: background var(--t), box-shadow var(--t), padding var(--t);
}
.header.scrolled { background: var(--dark); box-shadow: var(--sh); padding: 10px 0; }

.nav-wrap { display: flex; align-items: center; gap: 24px; }

.logo { display: flex; align-items: center; }
.logo-img { height: 48px; width: auto; object-fit: contain; border-radius: 6px; transition: opacity var(--t); }
.logo-img:hover { opacity: .85; }
.logo-name { font-size: 1.4rem; font-weight: 800; color: var(--white); letter-spacing: -.01em; }
.logo-name span { color: var(--amber); }
.logo-tag  { font-size: .6rem; font-weight: 600; color: rgba(255,255,255,.5); letter-spacing: .1em; text-transform: uppercase; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link { color: rgba(255,255,255,.8); font-size: .88rem; font-weight: 500; padding: 8px 14px; border-radius: var(--r); transition: all var(--t); }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.1); }

.nav-cta { margin-left: 8px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--t); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--dark); color: var(--white); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 70% at 80% 50%, rgba(201,58,14,.28) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 5%  80%, rgba(245,166,35,.1)  0%, transparent 60%),
    linear-gradient(135deg, #0d0d1a 0%, #111827 60%, #1a1010 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  padding: 120px 0 80px;
}
.hero-left .eyebrow { margin-bottom: 18px; }
.hero-left h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 20px;
}
.hero-left p { color: rgba(255,255,255,.72); font-size: 1rem; max-width: 480px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; align-items: center; gap: 0; }
.hstat { text-align: center; padding: 0 20px; }
.hstat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--amber); line-height: 1; }
.hstat span   { font-size: .72rem; color: rgba(255,255,255,.5); letter-spacing: .08em; text-transform: uppercase; }
.hstat-div    { width: 1px; height: 36px; background: rgba(255,255,255,.15); }
.hstat:first-child { padding-left: 0; }

/* Right side grid */
.hero-right { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 340px; }
.hg-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 20px 10px; border-radius: var(--rl);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform var(--t), box-shadow var(--t);
  cursor: default;
}
.hg-card:hover { transform: scale(1.06); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.hg-icon  { font-size: 1.6rem; }
.hg-card span { font-size: .68rem; font-weight: 600; color: rgba(255,255,255,.7); text-align: center; letter-spacing: .04em; }
.hg-orange { background: rgba(201,58,14,.22); border-color: rgba(201,58,14,.4); }
.hg-dark   { background: rgba(255,255,255,.04); }
.hero-badge { background: rgba(245,166,35,.12); border: 1px solid rgba(245,166,35,.3); border-radius: 999px; padding: 8px 18px; font-size: .8rem; color: var(--amber); font-weight: 500; }

.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1; }
.hero-scroll span { display: block; width: 2px; height: 44px; background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent); animation: scrollPulse 2s ease infinite; }
@keyframes scrollPulse { 0%,100%{opacity:1;transform:scaleY(1)} 50%{opacity:.4;transform:scaleY(.6)} }

/* ============================================
   STATS BAR
   ============================================ */
.statsbar { background: var(--dark2); padding: 36px 0; }
.statsbar-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; text-align: center; }
.sb-item strong { display: block; font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 800; color: var(--amber); line-height: 1; margin-bottom: 4px; }
.sb-item span   { font-size: .75rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; }

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--light); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { color: var(--muted); margin-bottom: 14px; }
.about-text .section-title { margin-bottom: 18px; }
.about-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { font-size: .78rem; font-weight: 600; padding: 5px 14px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--red); color: var(--red); }

.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.acard { background: var(--white); border: 1px solid var(--border); border-radius: var(--rl); padding: 24px 20px; transition: box-shadow var(--t), transform var(--t); }
.acard:hover { box-shadow: var(--sh); transform: translateY(-4px); }
.acard-icon { font-size: 2rem; margin-bottom: 10px; }
.acard h4   { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.acard p    { font-size: .82rem; color: var(--muted); }

/* ============================================
   PRODUCTS
   ============================================ */
.products { background: var(--white); }

.tab-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.tab {
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--white); font-family: var(--font); font-size: .83rem; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: all var(--t);
}
.tab:hover  { border-color: var(--red); color: var(--red); }
.tab.active { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: 0 4px 14px rgba(201,58,14,.3); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }

.pcard {
  background: var(--light); border: 1px solid var(--border);
  border-radius: var(--rl); overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer; transition: all var(--t);
  position: relative;
}
.pcard::before { content:''; position:absolute; top:0;left:0;right:0; height:3px; background:var(--red); transform:scaleX(0); transform-origin:left; transition:transform var(--t); }
.pcard:hover   { box-shadow: var(--sh); transform: translateY(-4px); border-color: transparent; }
.pcard:hover::before { transform: scaleX(1); }

.pimg {
  width: 100%; height: 150px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-bottom: 1px solid var(--border);
}
.pimg img { width:100%; height:100%; object-fit:contain; padding:12px; transition:transform var(--t); }
.pcard:hover .pimg img { transform: scale(1.07); }

.pcode { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); background: var(--red-lt); padding: 3px 10px; border-radius: 999px; margin: 10px 14px 6px; }
.pcard h4 { font-size: .85rem; font-weight: 600; color: var(--dark); line-height: 1.4; padding: 0 14px 14px; }

/* ============================================
   WHY US
   ============================================ */
.why { background: var(--dark); }
.why .section-tag   { background: rgba(245,166,35,.15); color: var(--amber); }
.why .section-title { color: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.wcard { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: var(--rl); padding: 32px 24px; text-align: center; transition: all var(--t); }
.wcard:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); border-color: rgba(201,58,14,.35); }
.wicon { font-size: 2.2rem; margin-bottom: 14px; }
.wcard h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.wcard p  { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.6; }

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--light); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info .section-title { margin-bottom: 14px; }
.contact-info > p { color: var(--muted); margin-bottom: 28px; }
.cinfo-list { display: flex; flex-direction: column; gap: 18px; }
.cinfo-item { display: flex; gap: 14px; align-items: flex-start; }
.cinfo-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.cinfo-item > div { display: flex; flex-direction: column; gap: 2px; }
.cinfo-item strong { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 700; }
.cinfo-item a, .cinfo-item span { font-size: .88rem; color: var(--muted); }
.cinfo-item a:hover { color: var(--red); text-decoration: underline; }

.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--rl); padding: 36px 32px; box-shadow: var(--sh); }
.contact-form h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 24px; }
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: .83rem; font-weight: 500; color: var(--dark); margin-bottom: 6px; }
.fg input, .fg textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--r);
  font-family: var(--font); font-size: .88rem; color: var(--dark); background: var(--white);
  transition: border-color var(--t), box-shadow var(--t); resize: vertical;
}
.fg input:focus, .fg textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(201,58,14,.1); }
.fg input.err, .fg textarea.err { border-color: #dc2626; }
.form-ok { margin-top: 10px; font-size: .85rem; font-weight: 500; color: #16a34a; min-height: 18px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: #0d0d1a; padding: 56px 0 0; color: rgba(255,255,255,.55); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-brand .logo-name { color: var(--white); font-size: 1.3rem; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: .83rem; line-height: 1.6; }
.footer-logo-img { height: 44px; width: auto; object-fit: contain; border-radius: 6px; margin-bottom: 10px; }
.make-in-india-img { height: 56px; width: auto; object-fit: contain; margin-top: 14px; display: block; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.footer-col a, .footer-col span { font-size: .84rem; transition: color var(--t); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { text-align: center; padding: 18px 0; font-size: .78rem; color: rgba(255,255,255,.3); }

/* ============================================
   MODAL LIGHTBOX
   ============================================ */
.modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  visibility: hidden; opacity: 0;
  transition: opacity .28s ease, visibility .28s ease;
}
.modal.show { visibility: visible; opacity: 1; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(5px);
  cursor: pointer;
}
.modal-box {
  position: relative; z-index: 1;
  background: var(--white); border-radius: var(--rl);
  overflow: hidden; width: min(640px, 92vw);
  box-shadow: 0 28px 80px rgba(0,0,0,.5);
  transform: scale(.9) translateY(16px);
  transition: transform .3s cubic-bezier(.34,1.4,.64,1);
}
.modal.show .modal-box { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: none; font-size: 1.4rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh); transition: background var(--t), transform var(--t);
  color: var(--dark);
}
.modal-close:hover { background: var(--red); color: var(--white); transform: rotate(90deg); }

.modal-img-wrap { background: var(--light); width: 100%; padding: 24px; display: flex; align-items: center; justify-content: center; }
.modal-img-wrap img { max-height: 65vh; width: 100%; object-fit: contain; }

.modal-info { padding: 14px 20px 18px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); }
.modal-info .pcode { margin: 0; }
.modal-info strong { font-size: .95rem; color: var(--dark); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-inner   { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .why-grid      { grid-template-columns: repeat(2,1fr); }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .hero-inner    { grid-template-columns: 1fr; padding: 130px 0 60px; }
  .hero-right    { display: none; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-cta   { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark); flex-direction: column;
    padding: 12px; gap: 4px; box-shadow: var(--shl);
  }
  .nav.open { display: flex; }
  .nav-link { padding: 11px 14px; }
  .statsbar-inner { grid-template-columns: 1fr 1fr; }
  .why-grid       { grid-template-columns: 1fr; }
  .about-cards    { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; gap: 24px; }
  .contact-form   { padding: 24px 18px; }
  .hero-btns      { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   CATALOGUE NAV BUTTON
   ============================================ */
.nav-catalogue {
  background: var(--amber);
  color: var(--dark) !important;
  font-weight: 700 !important;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 8px 16px;
  font-size: .88rem;
  transition: all var(--t);
  margin-left: 6px;
}
.nav-catalogue:hover {
  background: #e09415;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,166,35,.4);
}

/* ============================================
   CATALOGUE MODAL
   ============================================ */
.cat-modal {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  visibility: hidden; opacity: 0;
  transition: opacity .28s ease, visibility .28s ease;
}
.cat-modal.show { visibility: visible; opacity: 1; }

.cat-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.80);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.cat-box {
  position: relative; z-index: 1;
  background: var(--white);
  border-radius: var(--rl);
  overflow: hidden;
  width: min(960px, 96vw);
  height: min(90vh, 860px);
  display: flex; flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  transform: scale(.93) translateY(20px);
  transition: transform .3s cubic-bezier(.34,1.4,.64,1);
}
.cat-modal.show .cat-box { transform: scale(1) translateY(0); }

/* Header bar */
.cat-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 20px;
  background: var(--dark2);
  flex-shrink: 0;
}
.cat-title { display: flex; align-items: center; gap: 12px; }
.cat-icon  { font-size: 1.8rem; }
.cat-title h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin: 0; }
.cat-title p  { font-size: .75rem; color: rgba(255,255,255,.5); margin: 0; }

.cat-actions { display: flex; align-items: center; gap: 10px; }
.cat-btn { white-space: nowrap; }

.cat-print-btn {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.25);
}
.cat-print-btn:hover { background: rgba(255,255,255,.2); }

.cat-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: none;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: background var(--t), transform var(--t);
  flex-shrink: 0;
}
.cat-close:hover { background: var(--red); transform: rotate(90deg); }

/* PDF iframe */
.cat-viewer { flex: 1; overflow: hidden; background: #525659; }
.cat-viewer iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}

/* Mobile */
@media (max-width: 600px) {
  .cat-header  { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cat-actions { width: 100%; justify-content: space-between; }
  .cat-box     { height: 95vh; width: 100vw; border-radius: 0; }
}
