/* ================================================
   SUPPLY SOLUTIONS — RESPONSIVE STYLESHEET
   Add this file AFTER your styles.css:
   <link rel="stylesheet" href="responsive.css">
   ================================================ */

/* ─── BASE: Prevent horizontal scroll everywhere ─── */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── NAVBAR ─── */
.navbar {
  height: 70px;
}

.nav-wrapper {
  padding: 0 20px;
  height: 100%;
}

/* Hamburger — hidden on desktop */
.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, #1a2332);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburger X animation */
.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);
}

/* ─── DROPDOWN (desktop) ─── */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  min-width: 220px;
  list-style: none;
  padding: 8px 0;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 8px;
  z-index: 2000;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
  background: #f9f5ef;
  color: var(--gold, #c9a55c);
}

/* ─── HERO ─── */
.hero {
  margin-top: 70px;
}

/* ─── FLUID TYPOGRAPHY ─── */
.hero-title {
  font-size: clamp(1.8rem, 5vw, 4.5rem);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}

.section-title-large {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: clamp(2px, 1vw, 5px);
}

.stats-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.grid-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

/* ─── LOGO GRID (desktop: 6 cols) ─── */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

/* ─── STATS GRID (desktop: 3 cols) ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

/* ─── FOOTER GRID (desktop: 4 cols) ─── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

/* ======================================================
   TABLET — max-width: 1024px
   ====================================================== */
@media (max-width: 1024px) {

  /* Market / Testimonial / Partnership → single column */
  .market-grid,
  .testimonial-grid,
  .partnership-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Partnership image: natural height */
  .partnership-image img {
    height: 350px;
    width: 100%;
    object-fit: cover;
  }

  /* Testimonial image */
  .testimonial-image img {
    height: 300px;
    width: 100%;
  }

  /* Market images: simple 2-col grid */
  .market-image-grid {
    grid-template-columns: 1fr 1fr;
  }

  .market-image-grid img {
    height: 200px;
  }

  .market-image-grid img:first-child {
    grid-row: span 1;
    height: 200px;
  }

  /* Stats: 1 column */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Logos: 4 columns */
  .logos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  /* Footer: 2 columns */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Sections: tighter padding */
  .about,
  .market-trust,
  .products,
  .testimonials,
  .partnership {
    padding: 70px 0;
  }

  .statistics {
    padding: 70px 0;
  }

  /* Services: disable parallax (often broken on tablet) */
  .services {
    background-attachment: scroll;
    padding: 80px 0;
  }

  .statistics {
    background-attachment: scroll;
  }

  .statistics-banner {
    padding: 70px 0;
    background-attachment: scroll;
  }

  /* ─── STATISTICS: disable parallax on touch ─── */
@media (hover: none) {
  .statistics-banner { background-attachment: scroll; }
}
}

.services { padding: 60px 0; }
    .services-content { text-align: center; }

/* ======================================================
   MOBILE — max-width: 768px
   ====================================================== */
@media (max-width: 768px) {

  /* ── Navbar ── */
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid #f0ebe0;
  }

  .nav-menu > li > a,
  .nav-menu > li > span {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    color: #333;
    text-decoration: none;
  }

  .nav-menu > li > span {
    cursor: pointer;
    justify-content: space-between;
  }

  /* Mobile dropdown */
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 0;
    background: #f9f5ef;
    width: 100%;
    padding: 0;
    border-left: 3px solid var(--gold, #c9a55c);
    margin-left: 0;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding: 12px 24px 12px 32px;
    font-size: 0.9rem;
  }

  /* ── Hero ── */
  .hero {
    height: 55svh;
    min-height: 500px;
  }

  .hero-content {
    padding: 0 24px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.8rem;
  }

  /* ── About ── */
  .about {
    padding: 60px 0;
  }

  .about-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  /* ── Market Trust ── */
  .market-trust {
    padding: 60px 0;
  }

  .market-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .market-image-grid {
    grid-template-columns: 1fr;
  }

  .market-image-grid img {
    height: 220px;
  }

  .market-image-grid img:first-child {
    grid-row: span 1;
    height: 220px;
  }

  /* ── Services ── */
  .services {
    padding: 70px 0;
    background-attachment: scroll;
  }

  .services-description {
    font-size: 1rem;
  }

  /* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }
    
}

@media (max-width: 768px) {
    .products-section { padding: 70px 0; }

    .carousel-slide img { height: 340px; }

    .slide-content { padding: 28px 24px 24px; }

    .slide-content h3 { font-size: 1.4rem; }

    .carousel-btn {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }

    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }

    .frame-corner { width: 30px; height: 30px; }
    .frame-corner.tl, .frame-corner.bl { left: 12px; }
    .frame-corner.tr, .frame-corner.br { right: 12px; }
    .frame-corner.tl, .frame-corner.tr { top: 12px; }
    .frame-corner.bl, .frame-corner.br { bottom: 12px; }
}

@media (max-width: 480px) {
    .carousel-slide img { height: 260px; }

    .slide-tag { font-size: 0.65rem; letter-spacing: 2px; }

    .slide-content h3 { font-size: 1.2rem; }

    .slide-btn { padding: 9px 20px; font-size: 0.8rem; }
}

  /* ── Statistics ── */
  .statistics {
    padding: 70px 0;
    background-attachment: scroll;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 300px;
  }

  .stat-number {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  /* ── Logos grid: 3 columns ── */
  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .logo-card {
    padding: 16px 10px;
    min-height: 80px;
  }

  .logo-card img {
    max-height: 40px;
  }

  /* ── Testimonials ── */
  .testimonials {
    padding: 60px 0;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .testimonial-image img {
    height: 260px;
    border-radius: 8px;
  }

  /* ── Partnership ── */
  .partnership {
    padding: 60px 0;
  }

  .partnership-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .partnership-image img {
    height: 280px;
  }

  /* ── Contact ── */
  .contact {
    padding: 70px 0;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    font-size: 1rem;
  }

  .btn-submit {
    width: 100%;
    font-size: 1rem;
    padding: 1rem;
  }

  /* ── Footer ── */
  .footer {
    padding: 50px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* ── WhatsApp + Scroll-top ── */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .scroll-top {
    bottom: 80px;
    left: 16px;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  /* ── General padding ── */
  .container {
    padding: 0 16px;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }
}

/* ======================================================
   SMALL MOBILE — max-width: 480px
   ====================================================== */
@media (max-width: 480px) {

  /* Logos: 2 columns */
  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .logo-card {
    padding: 14px 8px;
    min-height: 70px;
  }

  .logo-card img {
    max-height: 32px;
  }

  /* Product card full width */
  .product-card {
    min-width: calc(100vw - 60px);
  }

  /* Buttons */
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Services title */
  .section-title-large {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  /* Partnership benefits list */
  .partnership-benefits li {
    font-size: 0.95rem;
  }

  /* Hero arrows: smaller */
  .hero-arrow-left { left: 8px; }
  .hero-arrow-right { right: 8px; }
}

/* ======================================================
   TOUCH DEVICE: disable hover parallax
   ====================================================== */
@media (hover: none) {
  .services,
  .statistics {
    background-attachment: scroll;
  }
}

/* Desktop nav vertical centering fix */
@media (min-width: 769px) {
  .nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
  }

  .nav-menu {
    display: flex;
    align-items: center;
  }
}


/* ================================================
   SUPPLY SOLUTIONS — RESPONSIVE STYLESHEET
   ================================================ */

/* ─── BASE ─── */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─── TABLET — max-width: 1024px ─── */
@media (max-width: 1024px) {
    .about-grid,
    .market-grid,
    .partnership-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .testimonial-split {
        grid-template-columns: 1fr;
    }
    
    .testimonial-img {
        height: 300px;
        order: -1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .carousel-slide img {
        height: 350px;
    }
    
    .about,
    .market,
    .products,
    .clients,
    .partnership {
        padding: 60px 0;
    }
    
    .services {
        background-attachment: scroll;
        padding: 80px 0;
    }
    
    .statistics {
        background-attachment: scroll;
        padding: 80px 0;
    }
}

/* ─── MOBILE — max-width: 768px ─── */
@media (max-width: 768px) {
    /* Navbar */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        gap: 15px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: none;
    }
    
    .dropdown.open .dropdown-menu {
        display: block;
    }
    
    /* Hero */
    .hero {
        height: 70vh;
        min-height: 500px;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .hero-prev { left: 10px; }
    .hero-next { right: 10px; }
    
    /* About */
    .about {
        padding: 60px 0;
    }
    
    .about-grid {
        gap: 30px;
    }
    
    .image-stack {
        height: 300px;
    }
    
    /* Market */
    .market {
        padding: 60px 0;
    }
    
    .market-grid {
        gap: 30px;
    }
    
    /* Services */
    .services {
        padding: 60px 0;
    }
    
    .services-content {
        text-align: center;
    }
    
    /* Products */
    .products {
        padding: 60px 0;
    }
    
    .carousel-slide img {
        height: 280px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h3 {
        font-size: 1.4rem;
    }
    
    /* Statistics */
    .statistics {
        padding: 60px 0;
    }
    
    .stats-wrapper h2 {
        font-size: 2rem;
    }
    
    /* Clients */
    .clients {
        padding: 60px 0;
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .client-logo {
        height: 60px;
    }
    
    /* Testimonials */
    .testimonial-content {
        padding: 40px 20px;
    }
    
    .testimonial-content h3 {
        font-size: 2rem;
    }
    
    .quote-box {
        padding: 25px;
    }
    
    /* Partnership */
    .partnership {
        padding: 60px 0;
    }
    
    .partnership-image {
        grid-template-columns: 1fr;
    }
    
    .partnership-image img:nth-child(2) {
        margin-top: 0;
    }
    
    /* Contact */
    .contact {
        padding: 60px 0;
    }
    
    .contact-header h2 {
        font-size: 2rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* WhatsApp + Scroll-top */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float i {
        font-size: 1.6rem;
    }
    
    .scroll-top {
        bottom: 80px;
        left: 20px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
}

/* ─── SMALL MOBILE — max-width: 480px ─── */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .client-logo {
        height: 50px;
        padding: 5px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .carousel-slide img {
        height: 220px;
    }
    
    .image-stack {
        height: 250px;
    }
    
    .testimonial-img {
        height: 250px;
    }
}

/* ─── TOUCH DEVICE ─── */
@media (hover: none) {
    .services,
    .statistics {
        background-attachment: scroll;
    }
}

/* ─── DESKTOP FIX ─── */
@media (min-width: 769px) {
    .nav-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 70px;
    }
    
    .nav-menu {
        display: flex;
        align-items: center;
    }
}

/* ─── RTL MOBILE ─── */
@media (max-width: 768px) {
    body.rtl .nav-menu {
        left: auto;
        right: 0;
        text-align: right;
    }
    
    body.rtl .dropdown-menu {
        padding-right: 20px;
        padding-left: 0;
    }
}


@media (max-width: 1024px) {
    .services-parallax {
        background-attachment: scroll;
        padding: 100px 0;
    }
}

@media (max-width: 768px) {
    .services-parallax {
        padding: 80px 0;
        min-height: 500px;
    }
    
    .services-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .services-title {
        font-size: 2.5rem;
    }
    
    .services-text {
        font-size: 1rem;
    }
    
    .btn-services {
        padding: 14px 30px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .services-parallax {
        padding: 60px 0;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .services-text {
        font-size: 0.95rem;
    }
    
    .btn-services {
        padding: 12px 25px;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}