/* ===== RESPONSIVE FIXES — NOVERA MATERIALS ===== */
/* Paste this at the BOTTOM of main.css (it overrides earlier rules) */

/* --- Base resets for full-width edge-to-edge layout --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* --- Navbar: always full-width, never crops --- */
.navbar {
  width: 100%;
  height: 11%;
  left: 0;
  right: 0;
  padding: 0 4%;
  justify-content: space-between;
  gap: 12px;
}

.nav-links {
  gap: 18px;
  flex-wrap: nowrap;
}

.nav-links a {
  font-size: 12.5px;
  white-space: nowrap;
}

/* --- All sections: consistent edge padding --- */
.section,
.about,
.categories,
.products-section,
.why-us,
.export-section,
.infra-section,
.certs-section,
.testimonials,
.inquiry,
.cta-banner {
  padding-left: 4%;
  padding-right: 4%;
  width: 100%;
}

/* --- Hero: always fills viewport --- */
.hero {
  width: 100%;
  min-height: 100vh;
}

.hero-content {
  padding: 120px 5% 60px;
  width: 100%;
  max-width: 100%;
}

/* --- Footer: full width --- */
footer {
  width: 100%;
}

.footer-main {
  padding-left: 4%;
  padding-right: 4%;
}

/* --- CTA Banner --- */
.cta-banner {
  width: 100%;
}


/* ====================================================
   LARGE DESKTOP  (1280px+)
   ==================================================== */
@media (min-width: 1280px) {
  .products-grid   { grid-template-columns: repeat(4, 1fr); }
  .cat-grid        { grid-template-columns: repeat(4, 1fr); }
  .certs-grid      { grid-template-columns: repeat(3, 1fr); }
  .why-grid        { grid-template-columns: repeat(3, 1fr); }
  .testi-grid      { grid-template-columns: repeat(3, 1fr); }
  .footer-main     { grid-template-columns: 2fr 1fr 1fr 1fr; }
}


/* ====================================================
   SMALL LAPTOP / LARGE TABLET  (900px – 1279px)
   ==================================================== */
@media (max-width: 1279px) and (min-width: 901px) {
  /* Navbar */
  .navbar { padding: 0 3%; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 12px; }
  .nav-cta { padding: 8px 16px !important; font-size: 12px !important; }

  /* Sections */
  .section,
  .about,
  .categories,
  .products-section,
  .why-us,
  .export-section,
  .infra-section,
  .certs-section,
  .testimonials,
  .inquiry,
  .cta-banner {
    padding-left: 3%;
    padding-right: 3%;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  /* About */
  .about-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Categories */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Products */
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  /* Why Us */
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .why-us > div[style] { grid-template-columns: 1fr; gap: 20px; }

  /* Infrastructure */
  .infra-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Certifications */
  .certs-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  /* Testimonials */
  .testi-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}


/* ====================================================
   TABLET  (601px – 900px)
   ==================================================== */
@media (max-width: 900px) and (min-width: 601px) {
  /* Navbar */
  .navbar { padding: 0 4%; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Sections */
  .section,
  .about,
  .categories,
  .products-section,
  .why-us,
  .export-section,
  .infra-section,
  .certs-section,
  .testimonials,
  .inquiry,
  .cta-banner {
    padding: 60px 4%;
  }

  /* Hero */
  .hero-content { padding: 100px 5% 50px; }
  .hero-title { font-size: clamp(36px, 6vw, 60px); }
  .hero-actions { gap: 12px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-features { grid-template-columns: 1fr 1fr; }

  /* Categories */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-card { height: 280px; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Why Us */
  .why-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .why-us > div[style] { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Infrastructure */
  .infra-grid { grid-template-columns: 1fr; gap: 40px; }
  .infra-visual { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Certifications */
  .certs-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cert-image { height: 220px; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Inquiry */
  .inquiry-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; padding: 48px 4% 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* CTA */
  .cta-banner h2 { font-size: clamp(26px, 4vw, 40px); }
}


/* ====================================================
   MOBILE  (≤600px)
   ==================================================== */
@media (max-width: 600px) {
  /* Navbar */
  .navbar { padding: 0 4%; height: 65px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .logo span { font-size: 13px; letter-spacing: 2px; }

  /* Mobile nav */
  .mobile-nav { top: 60px; }

  /* Sections */
  .section,
  .about,
  .categories,
  .products-section,
  .why-us,
  .export-section,
  .infra-section,
  .certs-section,
  .testimonials,
  .inquiry,
  .cta-banner {
    padding: 48px 4%;
  }

  /* Hero */
  /* .hero-content { padding: 90px 4% 40px; }
  .hero-title { font-size: clamp(30px, 9vw, 48px); letter-spacing: -0.5px; }
  .hero-title .line2 { font-size: 0.5em; letter-spacing: 1px; }
  .hero-desc { font-size: 14px; margin: 20px 0 24px; }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 80px;
  }
  .btn-primary,
  .btn-secondary { width: 100%; justify-content: center; font-size: 13px; padding: 13px 20px; } */


  .hero-actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 80px;
}
.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  width: auto;
  flex: 0 1 auto;
  font-size: 13px;
  padding: 11px 20px;
}


  .hero-controls { bottom: 16px; right: 16px; }
  .hero-controls button { width: 36px; height: 36px; font-size: 14px; }

  /* Section headings */
  .section-title { font-size: clamp(26px, 7vw, 38px); }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-img-main { height: 280px; max-width: 100%; }
  .about-img-badge { bottom: -16px; right: -8px; padding: 16px; }
  .about-img-badge .num { font-size: 36px; }
  .about-features { grid-template-columns: 1fr; gap: 10px; }

  /* Categories */
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-card { height: 220px; }
  .cat-name { font-size: 20px; }

  /* Products */
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-img { height: 150px; }
  .product-name { font-size: 18px; }
  .product-meta span { font-size: 11px; }
  .products-tabs { gap: 6px; }
  .tab-btn { padding: 8px 14px; font-size: 12px; }

  /* Products tab – stack header */
  .products-section > div[style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px;
  }

  /* Why Us */
  .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .why-us > div[style] { grid-template-columns: 1fr !important; gap: 16px !important; }
  .why-card { padding: 24px 20px; }

  /* Export */
  .export-header { flex-direction: column; gap: 16px; }
  .country-item { min-width: 140px; height: 64px; padding: 0 16px; }
  .country-item p { font-size: 14px; }
  .country-item img { width: 32px; }

  /* Infrastructure */
  .infra-grid { grid-template-columns: 1fr; gap: 32px; }
  .infra-visual { grid-template-columns: 1fr 1fr; gap: 10px; }
  .infra-box img { height: 140px; }
  .infra-items { gap: 10px; }
  .infra-item { padding: 14px; gap: 12px; }

  /* Stats bar inside infra */
  .infra-section div[style*="justify-content:space-between"] {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-around !important;
  }

  /* Certifications */
  .certs-grid { grid-template-columns: 1fr; gap: 14px; }
  .cert-image { height: 200px; }
  .certs-section > div[style*="max-width:580px"] { max-width: 100% !important; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr; gap: 14px; }

  /* CTA Banner */
  .cta-banner { padding: 56px 5%; }
  .cta-banner h2 { font-size: clamp(24px, 7vw, 36px); }
  .cta-banner p { font-size: 14px; }
  .cta-banner .cta-actions {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .cta-banner .btn-primary,
  .cta-whatsapp { width: 100%; max-width: 320px; justify-content: center; }

  /* Inquiry form */
  .inquiry-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .inquiry-form { padding: 24px 16px; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 40px 4% 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; font-size: 11px; }

  /* WhatsApp float */
  .wa-float { bottom: 16px; right: 16px; width: 48px; height: 48px; }

  /* Hide hero scroll indicator on mobile */
  .hero-scroll { display: none; }
}


/* ====================================================
   EXTRA SMALL MOBILE  (≤360px)
   ==================================================== */
@media (max-width: 360px) {
  .cat-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .infra-visual { grid-template-columns: 1fr; }
  .logo span { font-size: 11px; letter-spacing: 1.5px; }
  .hero-title { font-size: 28px; }
}


/* ====================================================
   SPECIFIC INLINE-STYLE GRID OVERRIDES
   (sections that use inline style="" grids)
   ==================================================== */

/* Why Us header row */
@media (max-width: 900px) {
  .why-us > div[style*="grid-template-columns:1fr 1fr"] {
    display: block !important;
  }
  .why-us > div[style*="grid-template-columns:1fr 1fr"] > p {
    max-width: 100% !important;
    margin-top: 16px;
  }
}

/* Products section header */
@media (max-width: 600px) {
  .products-section > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px;
  }
  .products-section > div:first-child a.btn-primary {
    margin-bottom: 0 !important;
    align-self: flex-start;
    font-size: 13px;
    padding: 11px 20px;
  }
}

/* Export header */
@media (max-width: 600px) {
  .export-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .export-header > p {
    max-width: 100% !important;
  }
}