/* ============================
   Responsive Design (Fixed)
   ============================ */

/* --- Tablet & Small Desktop --- */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .hero {
    padding: 60px 0 100px;
  }

  .hero__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
  }

  .hero__description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
  }

  .mission__grid {
    gap: 3rem;
  }

  .footer__content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Keep all section padding consistent */
  section {
    padding: clamp(2rem, 6vw, 4rem) 0;
  }

  img, .product-placeholder {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
  }
}

/* --- Tablets and Medium Screens --- */
@media (max-width: 768px) {
  /* Navigation */
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    background: var(--background-white);
    width: 80%;
    height: calc(100vh - var(--header-height));
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
  }

  .nav__menu.active {
    right: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Hero Section */
  .hero {
    padding: 40px 0 80px;
    text-align: center;
  }

  .hero__title {
    font-size: clamp(1.75rem, 5vw, 2rem);
  }

  .hero__description {
    font-size: clamp(1rem, 3vw, 1.1rem);
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__buttons .btn {
    width: 200px;
  }

  /* Image and Grid Fixes */
  .mission__grid,
  .contact__grid,
  .trust-grid,
  .categories-grid,
  .values-grid,
  .testimonials-slider,
  .product-grid,
  .solutions-features,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Product Image Placeholder Fix */
  .product-placeholder {
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    background-color: var(--border-color);
  }

  /* Headings */
  .section-title {
    font-size: 1.75rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  /* Features & Category Headers */
  .feature,
  .category-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .feature-number {
    align-self: center;
  }

  /* Footer */
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__section {
    margin-bottom: 2rem;
  }

  /* Padding Adjustments */
  .hero,
  .trust-indicators,
  .products-preview,
  .testimonials,
  .cta,
  .mission,
  .values,
  .why-choose,
  .products-intro,
  .product-categories,
  .custom-solutions,
  .contact,
  .faq {
    padding: 3rem 0;
  }

  /* Card Padding */
  .category-card,
  .value-card,
  .testimonial-card,
  .product-card,
  .contact-method,
  .faq-item {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 2rem;
  }

  /* .page-header {
    padding: 120px 0 40px;
  } */
}

/* --- Mobile Phones --- */
@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 30px 0 60px;
  }

  .hero__title {
    font-size: clamp(1.5rem, 5vw, 1.75rem);
  }

  .hero__description {
    font-size: clamp(0.95rem, 3vw, 1rem);
  }

  .section-title {
    font-size: 1.5rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Product Images */
  .product-placeholder {
    aspect-ratio: 4 / 3;
    max-height: 160px;
  }

  /* Trust Indicators */
  .trust-item {
    padding: 1.5rem 1rem;
  }

  .trust-icon {
    font-size: 2rem;
  }

  .product-specs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .testimonials-slider {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  /* .page-header {
    padding: 100px 0 30px;
  } */
}

/* --- Large Screens --- */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  /* .page-header {
    padding: 160px 0 60px;
  } */

  .product-placeholder {
    aspect-ratio: 4 / 3;
    max-height: 260px;
  }
}

/* --- Print Styles --- */
@media print {
  .header,
  .footer,
  .btn,
  .hero__buttons,
  .contact-form {
    display: none;
  }

  .hero {
    background: none !important;
    color: black;
    padding: 2rem 0;
  }

  .hero__title,
  .hero__description {
    color: black;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
