/* ============================================================
   JASCO TECH — RESPONSIVE STYLES
   Mobile-first collapse rules for all breakpoints
   ============================================================ */

/* ---- TABLET — 1024px ---- */
@media (max-width: 1024px) {
  :root {
    --container-gutter: 1.25rem;
  }

  /* Navbar */
  .nav-menu,
  .nav-phone {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-image-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }

  .about-image-wrapper .about-accent-card {
    right: var(--space-4);
  }

  .about-img {
    height: 380px;
  }

  /* Solutions: 2x4 on tablet */
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .products-lists {
    grid-template-columns: 1fr 1fr;
  }

  /* Why Choose */
  .why-grid {
    justify-content: center;
  }

  /* Benefits */
  .benefits-grid-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* Industries: 2x4 */
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Process */
  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-timeline::before {
    display: none;
  }

  .process-step {
    padding: var(--space-4);
  }

  /* Projects gallery */
  .projects-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 240px);
  }

  .gallery-item:nth-child(1) {
    grid-row: span 1;
    grid-column: span 2;
  }

  /* Optimize glass card layout on tablets and touch devices */
  .gallery-item-glass-card {
    bottom: var(--space-3);
    left: var(--space-3);
    right: var(--space-3);
    padding: var(--space-3) var(--space-4);
  }

  .gallery-item-title {
    font-size: 0.95rem;
  }

  .gallery-item-arrow {
    width: 28px;
    height: 28px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

/* ---- MOBILE — 768px ---- */
@media (max-width: 768px) {
  :root {
    --container-gutter: 1rem;
  }

  /* Typography scale tightening on mobile */
  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* Nav */
  .nav-cta {
    display: none;
  }

  /* Hero adjustments */
  #hero {
    min-height: 100dvh;
  }

  .hero-content {
    padding: var(--space-10) var(--container-gutter) var(--space-16);
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    
      flex-direction: row;
        gap: var(--space-4);
        justify-content: center;
        align-items: center;
        text-align: center;

  }

  .hero-stats-divider {
    display: none;
  }

  /* About */
  .about-img {
    height: 380px;
  }

  .about-image-wrapper .about-accent-card {
    position: relative;
    right: auto;
    bottom: 121px;
    margin-top: var(--space-4);
    max-width: 200px;
  }

  /* Prevent reveal translateX from causing horizontal overflow on mobile */
  .reveal-left {
    transform: translateY(32px);
  }
  .reveal-right {
    transform: translateY(32px);
  }
  .reveal-left.visible,
  .reveal-right.visible {
    transform: translateY(0);
  }

  /* About content should not overflow */
  .about-content {
    overflow: hidden;
    width: 100%;
    min-width: 0;
  }

  /* Trusted-by grid: horizontal scroll on mobile */
  .about-trusted-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-2);
  }
  .about-trusted-grid::-webkit-scrollbar {
    display: none;
  }

  .about-trusted-card {
    padding: var(--space-3) var(--space-1);
    min-width: 0;
  }

  .about-trusted-label {
    font-size: 0.7rem;
  }

  .about-trusted-icon {
    width: 34px;
    height: 34px;
  }

  .about-trusted-icon i {
    font-size: 1rem;
  }

  /* Solutions: 1x8 on mobile */
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  /* Products */
  .products-lists {
    grid-template-columns: 1fr;
  }

  /* Why Choose */
  .why-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
  }
 #clients{
  padding-top: 60px ;
  padding-bottom: 10px;
 }
 #about{
  padding: 60px 0;
 }
 #process {
  padding: 60px 0;
 }
 #projects {
  padding: 60px 0;
 }

  .why-item {
    width: 88% !important;
    max-width: 300px !important;
    min-width: unset !important;
    margin: 0 auto !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  /* Process */
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .process-timeline::before {
    display: none;
  }

  /* Projects gallery */
  .projects-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 1;
    grid-row: span 2;
  }

  /* Industries */
  .industries-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }

  /* CTA */
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Section headings */
  .solutions-header,
  .why-header,
  .industries-header,
  .process-header,
  .projects-header,
  .clients-header {
    margin-bottom: var(--space-10);
  }

  /* Mobile card paddings */
  .products-list-card,
  .benefit-card {
    padding: var(--space-6);
  }

  .cta-card {
    padding: var(--space-10) var(--space-6);
  }
 

}

/* ---- MOBILE SMALLER PORTRAIT — 576px ---- */
@media (max-width: 576px) {
  /* Clients Meta Stat Strip */
  .clients-meta {
    flex-direction: row;
    text-align: center;
    gap: var(--space-4);
  }

  .clients-meta-divider {
    width: 40px;
    height: 1px;
    background: var(--color-border);
  }
}

/* ---- SMALL MOBILE — 480px ---- */
@media (max-width: 480px) {
  :root {
    --container-gutter: 0.875rem;
  }

  /* Single column everything */
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    justify-content: center;
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .projects-gallery {
    grid-auto-rows: 200px;
  }

  /* Small mobile card paddings */
  .products-list-card,
  .benefit-card {
    padding: var(--space-5);
  }

  .cta-card {
    padding: var(--space-8) var(--space-4);
  }

  .hero-stats {
     flex-direction: row;
        gap: var(--space-4);
        justify-content: center;
        align-items: center;
        text-align: center;
  }

  /* Footer social centered */
  .footer-social {
    justify-content: flex-start;
  }

  /* Hero eyebrow font adjust */
  .hero-eyebrow {
    font-size: 0.6rem;
  }

  /* About trusted grid: flex wrap + center on small screens */
  .about-trusted-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
  }

  .about-trusted-card {
    padding: var(--space-2) var(--space-1);
    min-width: 0;
    width: calc(33.333% - 8px);
  }

  .about-trusted-label {
    font-size: 0.65rem;
  }
}

/* ---- WIDE SCREEN — 1440px+ ---- */
@media (min-width: 1440px) {
  .solutions-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .why-grid {
    justify-content: center;
  }

  .process-timeline {
    grid-template-columns: repeat(6, 1fr);
  }
}
/* ---- DESKTOP SCREEN — 992px+ ---- */
@media (min-width: 992px) {
  p {
    font-size: 16px !important;
  }
}

@media (max-width:768px){
  .about-grid{
    display: flex;
    flex-direction: column-reverse !important;
  }
   .hero-stats {
        flex-direction: row !important;
        gap: var(--space-4);
        justify-content: center !important;
        align-items: center;
        text-align: center !important;
    }
   
   .about-image-wrapper{
    height: 380px;
   }
}