/* ============================================
   VISHWAKARMA ENTERPRISES — style.css
   Full Updated Version
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1a1a2e; background: #fff; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ============ FLASH ALERTS ============ */
.alert-flash {
  position: fixed; top: 82px; right: 20px; z-index: 9999;
  padding: 14px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15); animation: slideIn .3s ease;
  max-width: 360px;
}
.alert-success-flash { background: #e7f9ee; border: 1px solid #38a169; color: #276749; }
.alert-error-flash   { background: #fff0f0; border: 1px solid #e53e3e; color: #c53030; }
.alert-close { background: none; border: none; cursor: pointer; font-size: 20px; color: inherit; margin-left: auto; line-height: 1; }
@keyframes slideIn { from { transform: translateX(60px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(10,10,26,.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: all .3s;
}
.header.scrolled { background: #0a0a1a; box-shadow: 0 2px 24px rgba(0,0,0,.4); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.navbar {
  display: flex; align-items: center;
  justify-content: space-between;
  min-height: 72px; padding: 0;
}

/* LOGO */
.logo { display: flex; align-items: center; height: 72px; padding: 11px 0; }
.logo a { display: flex; align-items: center; height: 100%; }
.logo img { height: 50px; width: auto; object-fit: contain; display: block; }

/* NAV LINKS */
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links li { display: flex; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.78); font-size: 14px; font-weight: 500;
  transition: color .2s; position: relative; padding: 4px 0;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #c9a227; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 100%; height: 2px; background: #c9a227; border-radius: 2px;
}

/* GET QUOTE button in nav */
.btn-enquiry {
  background: linear-gradient(135deg, #c9a227, #e8c040) !important;
  color: #1a1a2e !important;
  padding: 9px 22px !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: transform .2s, box-shadow .2s !important;
}
.btn-enquiry:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,39,.45) !important;
  color: #1a1a2e !important;
}

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; display: block; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px; font-size: 15px;
  font-weight: 600; cursor: pointer; border: none;
  transition: all .2s; font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg,#c9a227,#e8c040); color: #1a1a2e; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,162,39,.4); }
.btn-outline { border: 2px solid rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-white { background: #fff; color: #1a1a2e; font-weight: 700; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.2); }

/* ============ HERO SLIDER ============ */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero-slides { position: relative; height: 100%; }

.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease;
}
.slide.active { opacity: 1; }
.slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,10,26,.85) 0%, rgba(10,10,26,.45) 100%);
}

.slide-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 72px;
}
.slide-content .badge {
  display: inline-block;
  background: rgba(201,162,39,.18); border: 1px solid rgba(201,162,39,.4);
  color: #c9a227; padding: 6px 18px; border-radius: 30px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
  width: fit-content; letter-spacing: .5px;
}
.slide-content h1 {
  font-size: clamp(36px,5vw,68px); font-weight: 900;
  color: #fff; line-height: 1.1; margin-bottom: 18px;
}
.slide-content h1 span { color: #c9a227; }
.slide-content p { font-size: 16px; color: rgba(255,255,255,.8); max-width: 560px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Slider Controls */
.slider-controls {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; z-index: 10;
}
.prev, .next {
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 14px; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.prev:hover, .next:hover { background: #c9a227; color: #1a1a2e; }
.dots { display: flex; gap: 8px; align-items: center; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; cursor: pointer;
  transition: all .3s; padding: 0;
}
.dot.active { background: #c9a227; width: 28px; border-radius: 5px; }

/* ============ STATS BAR ============ */
.stats-bar { background: linear-gradient(135deg,#0a0a1a,#1a1a2e); padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 28px; border-right: 1px solid rgba(255,255,255,.08);
}
.stat:last-child { border-right: none; }
.stat i { font-size: 34px; color: #c9a227; flex-shrink: 0; }
.stat h3 { font-size: 22px; font-weight: 800; color: #fff; }
.stat p { font-size: 13px; color: rgba(255,255,255,.55); }

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header.light h2, .section-header.light p { color: #fff; }

.section-tag {
  display: inline-block; background: rgba(201,162,39,.1);
  color: #c9a227; padding: 5px 16px; border-radius: 30px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 10px;
}
.section-header h2 { font-size: clamp(24px,3vw,38px); font-weight: 800; color: #1a1a2e; margin-bottom: 12px; }
.section-header p { font-size: 15px; color: #666; max-width: 560px; margin: 0 auto; }
.center-btn { text-align: center; margin-top: 44px; }

/* ============ CATEGORIES GRID ============ */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 20px; }

.cat-card {
  background: #fff; border: 1px solid #eee; border-radius: 14px;
  padding: 26px 16px; text-align: center; transition: all .3s; cursor: pointer;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.1); border-color: #c9a227; }

.cat-icon { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; border: 3px solid #fff7e0; }
.cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-card h3 { font-size: 14px; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }
.cat-card p { font-size: 12px; color: #888; margin-bottom: 10px; line-height: 1.5; }
.cat-count { display: inline-block; background: #fff7e0; color: #c9a227; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

/* ============ PRODUCTS GRID ============ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 24px; }
.featured-section { background: #f9f9fb; }

.product-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: all .3s;
  border: 1px solid #eee; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }

.product-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img img { transform: scale(1.06); }

.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: #e53e3e; color: #fff;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.product-badge.new { background: #38a169; }

.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 11px; font-weight: 700; color: #c9a227; text-transform: uppercase; letter-spacing: .5px; }
.product-info h3 { font-size: 15px; font-weight: 700; color: #1a1a2e; margin: 5px 0 6px; }
.product-info p { font-size: 13px; color: #777; line-height: 1.5; margin-bottom: 14px; flex: 1; }

.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price { font-size: 15px; font-weight: 800; color: #c9a227; }

.btn-enquire {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1a1a2e; color: #fff;
  padding: 8px 14px; border-radius: 6px; font-size: 12px; font-weight: 600;
  transition: all .2s; white-space: nowrap;
}
.btn-enquire:hover { background: #c9a227; color: #1a1a2e; transform: translateX(3px); }

/* ============ PAGE HERO ============ */
.page-hero {
  background: linear-gradient(135deg,#0a0a1a 0%,#1a1a2e 100%);
  padding: 120px 0 60px; text-align: center;
}
.page-hero h1 { font-size: clamp(28px,4vw,50px); font-weight: 900; color: #fff; margin-bottom: 12px; }
.page-hero h1 span { color: #c9a227; }
.page-hero p { font-size: 15px; color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto 16px; }

.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.45); }
.breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.breadcrumb a:hover { color: #c9a227; }
.breadcrumb .sep { color: rgba(255,255,255,.3); }

/* ============ FILTER BAR ============ */
.filter-bar {
  display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; align-items: center;
  background: #fff; padding: 16px 20px; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.filter-bar input, .filter-bar select {
  padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 8px;
  font-family: 'Inter',sans-serif; font-size: 14px; color: #1a1a2e; transition: border .2s;
  background: #fafafa;
}
.filter-bar input { flex: 1; min-width: 200px; }
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: #c9a227; background: #fff; }

/* ============ FORMS ============ */
.form-card { background: #fff; border-radius: 16px; padding: 36px; box-shadow: 0 8px 40px rgba(0,0,0,.08); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.form-grid .full { grid-column: span 2; }

.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #1a1a2e; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; border: 1px solid #e0e0e0; border-radius: 8px;
  padding: 11px 14px; font-size: 14px; font-family: 'Inter',sans-serif;
  color: #1a1a2e; background: #fafafa; transition: all .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: #c9a227; background: #fff;
  box-shadow: 0 0 0 3px rgba(201,162,39,.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { text-align: left; }

/* ============ CONTACT PAGE ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }

.contact-info-card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.contact-info-card h3 { font-size: 17px; font-weight: 800; color: #1a1a2e; margin-bottom: 20px; }

.info-item { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.info-item:last-child { border: none; }
.info-icon {
  width: 42px; height: 42px; background: #fff7e0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #c9a227; font-size: 16px; flex-shrink: 0;
}
.info-text h4 { font-size: 13px; font-weight: 700; color: #1a1a2e; margin-bottom: 3px; }
.info-text p { font-size: 13px; color: #777; }

.map-wrapper { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.map-wrapper iframe { width: 100%; height: 230px; border: 0; display: block; }

/* ============ ABOUT PAGE ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img img { border-radius: 16px; width: 100%; object-fit: cover; height: 450px; }
.about-text h2 { font-size: clamp(24px,2.5vw,36px); font-weight: 800; color: #1a1a2e; margin-bottom: 16px; }
.about-text p { font-size: 15px; color: #555; margin-bottom: 14px; line-height: 1.75; }

.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.about-feat { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #1a1a2e; }
.about-feat i { color: #c9a227; font-size: 15px; }

/* ============ WHY US SECTION ============ */
.why-section { background: linear-gradient(135deg,#0a0a1a,#1a1a2e); }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.why-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 30px 24px; text-align: center; transition: all .3s;
}
.why-card:hover {
  background: rgba(201,162,39,.08); border-color: rgba(201,162,39,.3);
  transform: translateY(-4px);
}
.why-card i { font-size: 36px; color: #c9a227; margin-bottom: 16px; display: block; }
.why-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.why-card p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; }

/* ============ CTA SECTION ============ */
.cta-section { background: linear-gradient(135deg,#c9a227,#e8c040); padding: 64px 0; }
.cta-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-content h2 { font-size: clamp(20px,2.5vw,30px); font-weight: 800; color: #1a1a2e; margin-bottom: 8px; }
.cta-content p { font-size: 15px; color: rgba(26,26,46,.7); }

/* ============ FOOTER ============ */
.footer { background: #0a0a1a; padding: 64px 0 0; color: rgba(255,255,255,.65); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }

.footer-logo { height: 50px; margin-bottom: 16px; }
.footer-col p { font-size: 13px; line-height: 1.75; margin-bottom: 20px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.58); transition: color .2s; }
.footer-col ul li a:hover { color: #c9a227; }

.contact-list { list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: rgba(255,255,255,.58); margin-bottom: 10px; }
.contact-list li i { color: #c9a227; margin-top: 3px; flex-shrink: 0; }

.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 38px; height: 38px; background: rgba(255,255,255,.08); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); font-size: 14px; transition: all .2s;
}
.social-links a:hover { background: #c9a227; color: #1a1a2e; }

.footer-bottom {
  background: rgba(0,0,0,.35); text-align: center;
  padding: 18px; margin-top: 44px;
  font-size: 13px; color: rgba(255,255,255,.35);
}

/* ============ PAGINATION ============ */
.pagination { display: flex; gap: 6px; justify-content: center; }
.pagination .page-link {
  padding: 8px 14px; border: 1px solid #e0e0e0; border-radius: 7px;
  font-size: 13px; font-weight: 600; color: #1a1a2e; transition: all .2s;
}
.pagination .page-link:hover { background: #c9a227; border-color: #c9a227; color: #1a1a2e; }
.pagination .page-item.active .page-link { background: #c9a227; border-color: #c9a227; color: #1a1a2e; }
.pagination .page-item.disabled .page-link { opacity: .4; pointer-events: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .why-grid       { grid-template-columns: repeat(2,1fr); }
  .about-grid     { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid   { grid-template-columns: 1fr; }
  .about-img img  { height: 320px; }
}

@media (max-width: 768px) {
  /* Mobile Nav */
  .hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: 0; right: 0;
    width: 280px; height: 100vh;
    background: #0a0a1a; padding: 80px 24px 24px;
    gap: 0; z-index: 99;
    box-shadow: -8px 0 30px rgba(0,0,0,.5);
    transform: translateX(100%); transition: transform .3s;
  }
  .nav-links.open { display: flex; transform: translateX(0); }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links a { padding: 14px 0; display: block; font-size: 15px; }
  .nav-links a.active::after { display: none; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 16px 20px; }

  /* Grids */
  .categories-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .products-grid   { grid-template-columns: 1fr 1fr; gap: 16px; }
  .why-grid        { grid-template-columns: 1fr 1fr; }
  .footer-grid     { grid-template-columns: 1fr; gap: 28px; }

  /* Forms */
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: span 1; }
  .form-card { padding: 24px 18px; }

  /* CTA */
  .cta-content { flex-direction: column; text-align: center; }
  .cta-content .btn { width: 100%; justify-content: center; }

  /* Section */
  .section { padding: 50px 0; }
  .page-hero { padding: 100px 0 48px; }
}

@media (max-width: 540px) {
  .navbar { min-height: 64px; }
  .logo { height: 64px; padding: 10px 0; }
  .logo img { height: 42px; }

  .products-grid   { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .why-grid        { grid-template-columns: 1fr; }
  .about-features  { grid-template-columns: 1fr; }

  .hero-btns { flex-direction: column; }
  .hero-btns .btn { justify-content: center; width: 100%; max-width: 280px; }

  .slide-content { padding-top: 64px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
