/* =====================================================
   MZY HOLDING - MOBILE RESPONSIVE POLISH V2
   Desktop styles remain unchanged. These rules only
   apply to tablets and phones.
   ===================================================== */

@media (max-width: 991px) {
  html, body { width: 100%; overflow-x: hidden; }
  .container { width: min(92%, 720px); }
  section { padding: 78px 0; }

  /* Header / navigation */
  .header { position: sticky; top: 0; }
  .navbar {
    min-height: 74px;
    height: auto;
    flex-wrap: wrap;
    position: relative;
    padding: 6px 0;
  }
  .logo { height: 62px; }
  .logo img { width: auto; height: 78px; margin: 0; }
  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 12px;
    background: #F7F9FC;
    z-index: 4;
  }
  .menu-toggle span {
    width: 23px;
    height: 2px;
    background: #0B2D5C;
    border-radius: 99px;
    transition: .25s ease;
  }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-menu {
    order: 3;
    display: none;
    width: 100%;
    margin: 6px 0 0;
    padding: 14px 0 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-top: 1px solid #eef1f5;
  }
  .nav-menu.active { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    width: 100%;
    padding: 13px 10px;
    font-size: 15px;
    border-radius: 10px;
  }
  .nav-menu a:hover { background: #F7F9FC; }
  .nav-menu a::after, .nav-menu a.active::after { display: none; }
  .nav-menu a.active { color: #D4AF37; background: #F7F9FC; }

  .nav-right {
    order: 4;
    display: none;
    width: 100%;
    padding: 10px 0 14px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #eef1f5;
  }
  .navbar.mobile-open .nav-right { display: flex; }
  .nav-right .language { font-size: 13px; gap: 7px; }
  .nav-right .quote-btn { padding: 11px 17px; font-size: 13px; white-space: nowrap; }

  /* Shared typography and spacing */
  .section-title { margin-bottom: 38px; }
  .section-title h2 { font-size: clamp(31px, 6vw, 42px); line-height: 1.18; margin: 14px 0; }
  .section-title p { font-size: 15px; line-height: 1.7; }
  .hero-tag, .section-tag, .cta-tag { letter-spacing: 1.5px; font-size: 12px; }
  .btn-primary, .btn-outline, .cta-btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }

  /* Home */
  .hero { min-height: auto; padding: 64px 0 68px; }
  .hero-wrapper { grid-template-columns: 1fr; display: grid; gap: 24px; text-align: left; }
  .hero-left h1 { font-size: clamp(38px, 8vw, 54px); line-height: 1.08; margin-top: 18px; }
  .hero-left p { font-size: 16px; line-height: 1.7; margin-top: 22px; }
  .hero-features { gap: 8px; margin-top: 24px; justify-content: flex-start; }
  .hero-feature { padding: 8px 12px; font-size: 12px; }
  .hero-button { margin-top: 28px; gap: 12px; justify-content: flex-start; }
  .hero-button .btn-primary, .hero-button .btn-outline { padding: 14px 21px; font-size: 14px; }
  .hero-right { display: none; }

  .stats { padding: 52px 0; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .stat-card { padding: 26px 12px; border-radius: 16px; }
  .stat-card h2 { font-size: 34px; margin-bottom: 5px; }
  .stat-card p { font-size: 13px; line-height: 1.5; }

  .about { padding: 68px 0; }
  .about-wrapper { flex-direction: column; gap: 36px; }
  .about-image, .about-content { width: 100%; }
  .about-image img { max-height: 360px; object-fit: cover; }
  .about-content h2 { font-size: clamp(32px, 6vw, 42px); margin: 14px 0 20px; }
  .about-content p { font-size: 15px; line-height: 1.75; }

  .products, .why, .clients, .contact-map { padding: 72px 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .product-card { min-height: auto; padding: 18px; border-radius: 16px; }
  .product-card > img { width: 150px; height: 150px; margin: 0 auto 18px; }
  .product-card h3 { font-size: 20px; }
  .product-card p { font-size: 14px; line-height: 1.65; }
  .product-meta { font-size: 12px; }

  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
  .why-card { min-height: 250px; padding: 30px 18px; }
  .why-card:hover { transform: none; }
  .why-card h3 { font-size: 20px; }
  .why-card p { font-size: 14px; }
  .why-icon { font-size: 38px; margin-bottom: 15px; }

  .clients-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 34px; }
  .client-box { padding: 26px 12px; font-size: 19px; }
  .client-box span { font-size: 30px; }

  .cta { padding: 76px 0; }
  .cta h2, .product-cta h2 { font-size: clamp(31px, 7vw, 44px); line-height: 1.18; }
  .cta p, .product-cta p { font-size: 15px; line-height: 1.7; }

  .contact-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 36px; }
  .map-container { height: 340px; }

  /* Inner-page heroes */
  .about-hero, .product-hero, .gallery-hero, .contact-hero {
    padding: 66px 0 64px;
  }
  .about-hero h1, .product-hero h1, .gallery-hero h1, .contact-hero h1 {
    font-size: clamp(36px, 8vw, 50px);
    line-height: 1.13;
    margin-bottom: 20px;
  }
  .about-hero p, .product-hero p, .gallery-hero p, .contact-hero p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
  }

  /* About page */
  .company-story, .vision-mission, .company-stats, .core-values, .why-mzy, .company-timeline { padding: 72px 0; }
  .story-grid, .vision-grid, .why-grid { grid-template-columns: 1fr; gap: 34px; }
  .story-content h2, .why-left h2 { font-size: clamp(31px, 7vw, 42px); }
  .story-content p, .why-left p { font-size: 15px; line-height: 1.75; }
  .story-image { padding: 30px; }
  .vision-grid { margin-top: 38px; }
  .vision-card { padding: 32px 24px; }
  .vision-card h3 { font-size: 25px; }
  .values-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 38px; }
  .value-card { padding: 28px 16px; font-size: 34px; }
  .value-card h3 { font-size: 20px; }
  .timeline { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }

  /* Products page */
  .product-search { padding: 48px 0 14px; }
  .product-search .section-title { margin-bottom: 22px; }
  .search-box { width: 100%; }
  .search-box input { padding: 15px 18px; font-size: 14px; }
  .product-filter { padding: 4px 0 15px; overflow: hidden; }
  .product-filter .container { width: 100%; max-width: none; }
  .filter-buttons {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 9px;
    margin-top: 0;
    padding: 4px 4% 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-buttons::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; padding: 11px 17px; font-size: 12px; scroll-snap-align: start; }
  .product-list { padding: 15px 0 65px; }
  .product-list .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
  .product-list .product-card { padding: 0; overflow: hidden; }
  .product-image { height: 210px; }
  .product-image img { width: 145px; height: 145px; }
  .product-image.bleach-feature-image img { width: 180px; height: 180px; max-width: 88%; max-height: 88%; }
  .product-content { padding: 20px; }
  .product-content h3 { font-size: 20px; line-height: 1.3; }
  .product-content p { font-size: 13px; line-height: 1.6; }
  .product-meta, .product-industry { font-size: 12px; }
  .product-card .btn-primary { font-size: 13px; padding: 12px 15px; }
  .no-product { padding: 45px 18px; }
  .product-benefit { padding: 62px 0; }
  .product-cta { padding: 72px 18px; }

  /* Gallery */
  .gallery-filter, .gallery-section, .gallery-showcase { padding: 65px 0; }
  .gallery-filter .filter-buttons { padding-left: 0; padding-right: 0; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-showcase h2 { font-size: clamp(31px, 7vw, 42px); }

  /* Contact */
  .contact-section, .contact-benefits { padding: 70px 0; }
  .contact-section .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-info h2 { font-size: clamp(31px, 7vw, 42px); }
  .contact-item { padding: 17px; font-size: 14px; word-break: break-word; }
  .contact-form { padding: 28px 20px; }
  .contact-form input, .contact-form textarea { width: 100%; font-size: 14px; }

  /* Footer */
  .footer { padding: 62px 0 28px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px 20px; text-align: left; }
  .footer-col img { margin: 0 0 16px; height: 72px; }
  .footer-col h3 { font-size: 17px; }
  .footer-col p, .footer-col li, .footer-col a { font-size: 13px; }
  .footer-bottom { gap: 16px; text-align: center; }
}

@media (max-width: 600px) {
  .container { width: 90%; }
  section { padding: 58px 0; }

  .navbar { min-height: 68px; }
  .logo { height: 56px; }
  .logo img { height: 68px; }
  .nav-right { flex-direction: column; align-items: stretch; }
  .nav-right .language { justify-content: center; }
  .nav-right .quote-btn { width: 100%; }

  .hero { padding: 48px 0 56px; background-position: 62% center; }
  .hero-left h1 { font-size: 37px; }
  .hero-left p { font-size: 15px; }
  .hero-button { flex-direction: column; }
  .hero-button .btn-primary, .hero-button .btn-outline { width: 100%; }

  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .stat-card { padding: 22px 8px; }
  .stat-card h2 { font-size: 30px; }
  .stat-card p { font-size: 11px; }

  .product-grid, .why-grid, .clients-grid,
  .product-list .product-grid, .gallery-grid,
  .values-grid, .timeline { grid-template-columns: 1fr; }

  .products .product-card { align-items: stretch; }
  .products .product-card > img { width: 175px; height: 175px; }
  .why-card { min-height: auto; padding: 28px 20px; }
  .client-box { padding: 24px; }

  .about-hero, .product-hero, .gallery-hero, .contact-hero { padding: 52px 0 50px; }
  .about-hero h1, .product-hero h1, .gallery-hero h1, .contact-hero h1 { font-size: 36px; }
  .about-hero p, .product-hero p, .gallery-hero p, .contact-hero p { font-size: 14px; }

  .story-image { padding: 20px; }
  .vision-card, .value-card { padding: 26px 18px; }
  .why-right { gap: 12px; }
  .why-item { font-size: 14px; }

  .product-search { padding-top: 38px; }
  .product-filter .container { width: 100%; }
  .filter-buttons { padding-left: 5%; padding-right: 5%; }
  .product-list { padding-top: 8px; }
  .product-image { height: 245px; }
  .product-image img { width: 175px; height: 175px; }
  .product-image.bleach-feature-image img { width: 215px; height: 215px; }
  .product-content { padding: 22px 20px 24px; }
  .product-content h3 { font-size: 21px; }

  .gallery-main-wrap { min-height: 300px !important; padding: 50px 38px 8px !important; }
  .gallery-main-image { height: 300px !important; }
  .gallery-info { padding: 16px !important; }
  .gallery-thumbnails { grid-template-columns: repeat(5, minmax(62px,1fr)) !important; }

  .contact-form { padding: 22px 16px; }
  .contact-form .btn-primary { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-col img { margin: 0 auto 14px; }
  .footer-bottom { flex-direction: column; }
  .social { justify-content: center; flex-wrap: wrap; }

  #topBtn { right: 14px !important; bottom: 14px !important; width: 44px !important; height: 44px !important; }
}

@media (max-width: 390px) {
  .hero-left h1 { font-size: 33px; }
  .section-title h2 { font-size: 29px; }
  .about-hero h1, .product-hero h1, .gallery-hero h1, .contact-hero h1 { font-size: 32px; }
  .filter-btn { padding: 10px 14px; }
  .product-image { height: 225px; }
}

/* Uniform product-card images on mobile */
@media (max-width: 1024px){
  .product-image{ padding:12px; }
  .product-image img,
  .product-image.bleach-feature-image img{
    width:100%;
    height:100%;
    max-width:none;
    max-height:none;
    object-fit:contain;
    object-position:center;
  }
}
