/* Mobile-first overrides and enhancements */

/* Base: Mobile (no media query) */

/* Navigation */
.menu-toggle {
  display: block;
}
.phone-button {
  display: none;
}
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  gap: 0;
  padding: 1rem;
  text-align: center;
}
.nav-menu.active {
  display: flex;
}
.nav-menu li {
  width: 100%;
  border-bottom: 1px solid #eee;
}
.nav-menu li:last-child {
  border-bottom: none;
}

/* Type scales */
.hero-title,
.product-title,
.services-heading-title,
.features-title,
.new-heading-title {
  font-size: clamp(1.4rem, 6vw, 2rem);
}
.hero-subtitle {
  font-size: clamp(1rem, 4.5vw, 1.2rem);
}

/* Buttons full-width on mobile */
.hero-btn,
.services-btn,
.product-btn,
.new-btn,
.service-btn {
  width: 100%;
  max-width: 260px;
  justify-content: center;
}

/* Generic grids to single column */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  text-align: center;
}
.footer-column {
  align-items: center;
}

.counters-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Feature section stacks */
.features-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.features-image img {
  height: auto;
  width: 100%;
}

/* Image sections */
.image-section {
  padding: 2rem 0.5rem;
}
.image-container img {
  max-width: 200px;
  min-width: 120px;
}

/* About page responsive 3-col → single */
.responsive-three-col-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.responsive-three-col-image img {
  height: auto;
}

/* Contact page two-col → single */
.contact-inner-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  min-height: auto;
}

/* Cards sizing */
.service-title {
  font-size: clamp(1.1rem, 4.5vw, 1.5rem);
}
.service-image {
  height: auto;
}
.service-image img {
  height: auto;
}

/* Testimonial cards stack */
.elementor-testimonial-slides {
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.elementor-testimonial-slide {
  width: 100%;
  max-width: 100%;
  min-width: 100%;
}

/* Min-width: Tablet ≥768px */
@media (min-width: 768px) {
  .phone-button {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    width: auto;
    gap: 1rem;
    padding: 0;
    box-shadow: none;
    text-align: right;
  }

  .hero-title,
  .product-title,
  .services-heading-title,
  .features-title,
  .new-heading-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .counters-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-container img {
    max-width: 250px;
  }

  .elementor-testimonial-slides {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .elementor-testimonial-slide {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    min-width: 280px;
  }
}

/* Min-width: Desktop ≥1024px */
@media (min-width: 1024px) {
  .hero-title,
  .product-title,
  .services-heading-title,
  .features-title,
  .new-heading-title {
    font-size: clamp(2rem, 2.5vw, 2.6rem);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    text-align: right;
  }
  .footer-column {
    align-items: flex-start;
  }
  .counters-inner {
    grid-template-columns: repeat(4, 1fr);
  }
  .features-container {
    flex-direction: row;
    gap: 2rem;
  }

  .responsive-three-col-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-inner-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .image-container img {
    max-width: 300px;
  }
}

/* Footer gallery (uniform squares) */
.footer-gallery-section {
  padding: 2rem 1rem;
}
.footer-gallery-grid {
  display: grid;
  grid-template-columns: 1fr; /* mobile: 1 per row */
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-gallery-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.footer-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .footer-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (min-width: 1024px) {
  .footer-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* Min-width: Large Desktop ≥1280px */
@media (min-width: 1280px) {
  /* Widen global containers */
  .nav-container,
  .hero-container,
  .services-container,
  .product-container,
  .services-heading-container,
  .features-container,
  .services-grid-container,
  .new-icon-grid-container,
  .footer-container,
  .footer-bottom-container {
    max-width: 1400px;
  }

  /* Relax inner content widths */
  .hero-content {
    max-width: 1100px;
  }
  .services-container,
  .product-container,
  .services-heading-container {
    max-width: 1100px;
  }

  /* Larger headings and body text */
  .hero-title,
  .product-title,
  .services-heading-title,
  .features-title,
  .new-heading-title {
    font-size: clamp(2.4rem, 2.2vw, 3rem);
  }
  .hero-subtitle {
    font-size: clamp(1.3rem, 1.4vw, 1.6rem);
  }
  .hero-description p,
  .services-description p,
  .product-description,
  .footer-description p,
  .service-description p {
    font-size: 1.125rem;
    line-height: 1.9;
  }

  /* Grids use more width */
  .services-grid {
    max-width: 1400px;
    gap: 2rem;
  }

  .image-container img {
    max-width: 360px;
  }
}

/* Min-width: Ultra-wide ≥1536px */
@media (min-width: 1536px) {
  .nav-container,
  .hero-container,
  .services-container,
  .product-container,
  .services-heading-container,
  .features-container,
  .services-grid-container,
  .new-icon-grid-container,
  .footer-container,
  .footer-bottom-container {
    max-width: 1520px;
  }
  .hero-title,
  .product-title,
  .services-heading-title,
  .features-title,
  .new-heading-title {
    font-size: clamp(2.6rem, 2vw, 3.2rem);
  }
  .hero-description p,
  .services-description p,
  .product-description,
  .footer-description p,
  .service-description p {
    font-size: 1.2rem;
    line-height: 2;
  }
}
