/* ================================================
   SUPPLY SOLUTIONS — AMENITIES PRODUCTS RESPONSIVE CSS
   ================================================ */

/* ─── BASE ─── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; }
img { max-width: 100%; height: auto; display: block; }

/* ─── FLUID TYPOGRAPHY ─── */
.hero-title    { font-size: clamp(1.8rem, 5vw, 3.5rem); }
.section-title { font-size: clamp(1.6rem, 4vw, 2.8rem); }
.trust-title   { font-size: clamp(1.4rem, 3vw, 2.5rem); }
.contact-title { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }

/* ─── NAVBAR ─── */
.navbar { height: 70px; }
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 70px;
  direction: ltr !important;
}

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--navy-blue, #1b2a3b);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ======================================================
   DESKTOP — min-width: 769px
   ====================================================== */
@media (min-width: 769px) {
  .nav-menu { display: flex; align-items: center; }

  .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--cream, #f8f4ec);
    min-width: 220px;
    list-style: none;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 8px;
    z-index: 2000;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .dropdown:hover .dropdown-menu { display: block; }

  .dropdown > a::after {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    margin-left: 6px;
    margin-bottom: 2px;
    vertical-align: middle;
    transition: transform 0.3s ease;
  }
  .dropdown > a::before { display: none !important; }
}

/* ======================================================
   TABLET — max-width: 1024px
   ====================================================== */
@media (max-width: 1024px) {
  .intro-layout { grid-template-columns: 1fr; gap: 3rem; }

  .product-circles {
    grid-template-columns: repeat(4, 1fr) !important;
    position: static !important;
    height: auto !important;
  }
  .circle-item {
    position: static !important;
    top: auto !important;
    left: auto !important;
  }

  .statistics { gap: 2rem; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .hero-section { height: 400px; }
  .product-intro { padding: 60px 0; }

  /* Carousel: 2 cards on tablet */
  .product-card { flex: 0 0 calc(50% - 15px) !important; }
}

/* ======================================================
   MOBILE — max-width: 768px
   ====================================================== */
@media (max-width: 768px) {

  /* ── Hero ── */
  .hero-section {
    height: 350px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
  }
  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  .breadcrumb {
    font-size: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  /* ── Hamburger ── */
  .hamburger { display: flex !important; }

  /* ── Mobile Nav ── */
  .nav-menu {
    position: fixed !important;
    top: 70px !important;
    left: -100% !important;
    right: auto !important;
    width: 100% !important;
    height: calc(100vh - 70px) !important;
    background: var(--cream, #f8f4ec) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transition: left 0.3s ease !important;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1) !important;
    z-index: 999 !important;
    display: flex !important;
  }
  .nav-menu.active { left: 0 !important; right: auto !important; }

  .nav-menu > li {
    width: 100% !important;
    border-bottom: 1px solid #f0ebe0 !important;
    display: block !important;
  }

  .nav-menu > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 24px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #333 !important;
    text-decoration: none !important;
    width: 100% !important;
    direction: ltr !important;
    text-align: left !important;
  }

  .dropdown > a::after { display: none !important; }

  .dropdown > a::before {
    content: '' !important;
    display: inline-block !important;
    width: 8px !important; height: 8px !important;
    border-right: 2px solid #999 !important;
    border-bottom: 2px solid #999 !important;
    transform: rotate(45deg) !important;
    margin-top: -3px !important;
    transition: transform 0.3s ease !important;
    flex-shrink: 0 !important;
    order: 2 !important;
  }
  .dropdown.open > a::before {
    transform: rotate(-135deg) !important;
    margin-top: 3px !important;
  }

  .dropdown .dropdown-menu {
    position: static !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #f9f5ef !important;
    width: 100% !important;
    min-width: unset !important;
    padding: 0 !important;
    border-left: 3px solid var(--gold, #c8a96e) !important;
    border-right: none !important;
    max-height: none !important;
  }
  .dropdown.open .dropdown-menu { display: block !important; }

  .dropdown-menu li a {
    padding: 12px 24px 12px 32px !important;
    font-size: 0.9rem !important;
    text-align: left !important;
    direction: ltr !important;
  }

  /* ── Product Intro ── */
  .product-intro { padding: 50px 0; }
  .intro-layout { grid-template-columns: 1fr; gap: 2.5rem; }

  .product-circles {
    grid-template-columns: repeat(5, 1fr) !important;
    position: static !important;
    height: auto !important;
    gap: 20px 12px !important;
  }
  .circle-item { position: static !important; top: auto !important; left: auto !important; }
  .circle-image { width: 60px !important; height: 60px !important; }
  .circle-label { font-size: 9px !important; }
  .cta-button { width: 100%; text-align: center; }

  /* ── Trust ── */
  .trust-section { padding: 60px 0; }
  .statistics { flex-direction: column; gap: 1.5rem; }
  .stat-divider { width: 60px; height: 1px; }
  .stat-number { font-size: 2.5rem; }

  /* ══════════════════════════════════════════
     CAROUSEL — MOBILE FIX
     HTML structure:
     .carousel-section
       .container-carousel
         .carousel-wrapper        ← arrows yahan hain
           .carousel-btn-prev     ← left arrow
           .carousel-container-new
             .carousel-slide-track
               .product-card
           .carousel-btn-next     ← right arrow
  ══════════════════════════════════════════ */

  .carousel-section {
    padding: 50px 0 !important;
    overflow: visible !important;
  }

  .container-carousel {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .carousel-header {
    padding: 0 20px;
    margin-bottom: 30px !important;
  }

  .carousel-title { font-size: 1.6rem !important; }
  .carousel-subtitle { font-size: 0.9rem !important; }

  /* Wrapper = arrows ka parent, position relative zaroori */
  .carousel-wrapper {
    position: relative !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  /* Section overflow hidden hata do taake arrows clip na hon */
  .carousel-section {
    overflow: visible !important;
  }

  /* Lekin card overflow hide rakhna zaroori hai */
  .carousel-container-new {
    overflow: hidden !important;
  }

  /* Scroll container */
  .carousel-container-new {
    overflow: hidden !important;
    width: 100% !important;
    padding: 20px 0 30px !important;
    margin: 0 !important;
  }

  /* Track — JS transform se chalti hai, gap 0 */
  .carousel-slide-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  /* ★ CARD: exactly 100% of viewport */
  .product-card {
    flex: 0 0 100vw !important;
    max-width: 100vw !important;
    width: 100vw !important;
    min-width: unset !important;
    box-sizing: border-box !important;
    padding: 0 20px 20px !important;
    margin: 0 !important;
    transform: none !important;
  }

  /* Card image full width, fixed height */
  .card-img-wrapper {
    height: 200px !important;
    width: 100% !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  .card-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  /* Card content center */
  .card-content {
    padding: 20px 15px !important;
    text-align: center !important;
  }

  .card-name { font-size: 1.1rem !important; margin-bottom: 15px !important; }

  .card-btn {
    padding: 10px 30px !important;
    font-size: 0.85rem !important;
  }

  /* Gold frame corners — mobile pe thoda chota */
  .frame-corner { width: 30px !important; height: 30px !important; border-width: 2px !important; }
  .frame-corner.tl { top: 10px !important; left: 30px !important; }
  .frame-corner.tr { top: 10px !important; right: 30px !important; }
  .frame-corner.bl { bottom: 10px !important; left: 30px !important; }
  .frame-corner.br { bottom: 10px !important; right: 30px !important; }

  /* ★ ARROWS: .carousel-wrapper ke andar absolute */
  .carousel-btn-prev,
  .carousel-btn-next {
    position: absolute !important;
    top: 40% !important;
    transform: translateY(-50%) !important;
    z-index: 20 !important;
    width: 38px !important;
    height: 38px !important;
    background: var(--white, #fff) !important;
    border: 1px solid rgba(200,169,110,0.4) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12) !important;
    cursor: pointer !important;
  }

  .carousel-btn-prev { left: 8px !important; right: auto !important; }
  .carousel-btn-next { right: 8px !important; left: auto !important; }

  .carousel-btn-prev svg,
  .carousel-btn-next svg { width: 18px !important; height: 18px !important; }

  /* Dots */
  .carousel-indicators { margin-top: 15px !important; }

  /* ── Contact ── */
  .contact-section { padding: 60px 0; }
  .form-group input, .form-group textarea { width: 100%; }
  .submit-button { width: 100%; }

  /* ── Footer ── */
  .footer { padding: 50px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* ── General ── */
  .container { padding: 0 16px; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .scroll-top { bottom: 80px; left: 16px; width: 42px; height: 42px; font-size: 1.2rem; }
}

/* ======================================================
   MOBILE RTL (Arabic) — max-width: 768px
   ====================================================== */
@media (max-width: 768px) {
  [dir="rtl"] .nav-menu {
    left: auto !important;
    right: -100% !important;
    transition: right 0.3s ease !important;
  }
  [dir="rtl"] .nav-menu.active { right: 0 !important; left: auto !important; }

  [dir="rtl"] .nav-menu > li > a {
    direction: rtl !important;
    text-align: right !important;
    justify-content: flex-end !important;
    gap: 10px !important;
  }

  [dir="rtl"] .dropdown > a { justify-content: space-between !important; }
  [dir="rtl"] .dropdown > a::before { order: -1 !important; }

  [dir="rtl"] .dropdown .dropdown-menu {
    border-right: 3px solid var(--gold, #c8a96e) !important;
    border-left: none !important;
  }

  [dir="rtl"] .dropdown-menu li a {
    padding: 12px 32px 12px 24px !important;
    text-align: right !important;
    direction: rtl !important;
  }

  /* RTL arrows flip */
  [dir="rtl"] .carousel-btn-prev { left: auto !important; right: 8px !important; }
  [dir="rtl"] .carousel-btn-next { right: auto !important; left: 8px !important; }
}

/* ======================================================
   SMALL MOBILE — max-width: 480px
   ====================================================== */
@media (max-width: 480px) {
  .hero-section { height: 300px !important; }
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.4rem) !important; }

  .product-circles {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 12px 8px !important;
  }
  .circle-image { width: 50px !important; height: 50px !important; }
  .circle-label { font-size: 8px !important; }

  .card-img-wrapper { height: 180px !important; }

  .carousel-btn-prev { left: 4px !important; }
  .carousel-btn-next { right: 4px !important; }
}