/* ======================================
   SABA DETERGENT INDUSTRIES — RESPONSIVE
   SAHARUKH MOLLAH 2025 
   concept & code by saharukh.medium.com
   ====================================== */

/* ---------------- TABLET VIEW ---------------- */
@media (max-width: 1024px) {
  .container {
    padding: 16px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 18px;
  }

  .product-grid {
    gap: 16px;
  }

  .feedback-grid {
    gap: 16px;
  }
}


/* ---------------- MOBILE VIEW ---------------- */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .menu-icon {
    display: block;
    color: var(--white);
    cursor: pointer;
  }

  .lang-switch {
    display: none;
  }

  .side-drawer {
    position: fixed;
    top: 0;
    right: -260px;
    width: 250px;
    height: 100%;
    background: var(--blue);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px 20px;
    transition: right 0.4s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
  }

  .side-drawer.open {
    right: 0;
  }

  .side-drawer a {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    padding: 10px 0;
    display: block;
    font-weight: 600;
  }

  .side-drawer .close-btn {
    font-size: 26px;
    text-align: right;
    cursor: pointer;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .indian-logos img {
    height: 60px;
  }

  .contact-grid {
    flex-direction: column;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }
}

/* ---------------- SMALL MOBILE ---------------- */
@media (max-width: 480px) {
  .hero {
    padding: 80px 16px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 15px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 15px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
  }

  footer p {
    font-size: 13px;
  }
}

/* ---------------- LANDSCAPE ORIENTATION ---------------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 60px 20px;
  }
  .hero h1 {
    font-size: 28px;
  }
}

/*-------------------Side Drawer Issue Fix-------------------*/
/* Hide side drawer by default on desktop */
.side-drawer {
  display: none;
}

/* Show & animate only on mobile */
@media (max-width: 768px) {
  .side-drawer {
    display: flex;
    position: fixed;
    top: 0;
    right: -260px;
    width: 250px;
    height: 100%;
    background: var(--blue);
    color: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px 20px;
    transition: right 0.4s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
  }

  .side-drawer.open {
    right: 0;
  }
}

/* --- Mobile Language Switcher Visible Inside Drawer --- */
@media (max-width: 768px) {
  /* make sure drawer is visible */
  .side-drawer {
    display: flex;
    position: fixed;
    top: 0;
    right: -260px;
    width: 250px;
    height: 100%;
    background: var(--blue);
    color: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px 20px;
    transition: right 0.4s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
  }

  .side-drawer.open {
    right: 0;
  }

  /* show language switcher */
  .side-drawer .lang-switch {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
    z-index: 10000;
  }

  /* language buttons */
  .mobile-lang .lang-btn {
  background: rgba(255, 255, 255, 0.3); /* was 0.15 — more visible now */
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 0 4px rgba(0,0,0,0.4);
}

  .mobile-lang .lang-btn:hover{
    background: var(--yellow);
    border-color: var(--white);
    color: #111;
    transform: scale(1.05);
    
  }

  .mobile-lang .lang-btn:focus {
    background: var(--yellow);
    border-color: var(--white);
    color: #111;
    transform: scale(1.05);
  }
  
}
