/* ============================================
   responsive.css - Responsive Design Rules
   Mobile First Approach
   ============================================ */

/* --------------------------------------------
   Tablet Breakpoint (max-width: 1040px)
   -------------------------------------------- */
@media (max-width: 1040px) {
  /* Grid adjustments */
  .category-grid,
  .product-grid,
  .value-grid,
  .contact-grid,
  .main-footer__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: clamp(1.5rem, 3vw, 2.5rem);
  }
  
  /* Detail page layout */
  .detail-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .detail-card__media {
    min-height: 20rem;
  }
  
  /* Section heading */
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .search-box {
    width: 100%;
  }
}

/* --------------------------------------------
   Mobile Breakpoint (max-width: 720px)
   -------------------------------------------- */
@media (max-width: 720px) {
  /* Header adjustments */
  .main-header__container {
    min-height: 4.5rem;
    gap: 0.5rem;
  }
  
  /* Hide brand text on mobile */
  .brand__text {
    display: none;
  }
  
  /* Smaller language buttons */
  .language-switcher__button {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }
  
  /* Reduced padding for sections */
  .section-shell,
  .page-hero {
    padding: 3.5rem 0;
  }
  
  /* Section heading on mobile */
  .section-heading {
    display: grid;
    gap: 1rem;
  }
  
  /* Single column grids on mobile */
  .category-grid,
  .product-grid,
  .value-grid,
  .contact-grid,
  .main-footer__container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-card__icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .service-card__icon svg {
    width: 36px;
    height: 36px;
  }

  .service-card__list {
    gap: var(--space-2);
    margin-bottom: var(--space-6);
  }

  .service-card__action {
    width: 100%;
    justify-content: center;
  }


  
  /* Hero slider height */
  .hero-slider {
    min-height: 32rem;
  }
  
  .hero-slider__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  /* Footer adjustments */
  .main-footer {
    padding: 2.5rem 1rem 1.5rem;
  }
  
  .main-footer__container {
    gap: 1.5rem;
  }
  
  /* Detail card adjustments */
  .detail-card {
    padding: 1rem;
  }
  
  .detail-card__media {
    min-height: 15rem;
  }
  
  .detail-list__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  /* Category cards */
  .category-card {
    min-height: auto;
    padding: 1.5rem;
  }
  
  .category-card__icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: var(--space-5);
  }

  .category-card__icon svg {
    width: 36px;
    height: 36px;
  }

  .category-card .button {
    width: 100%;
    justify-content: center;
  }
  
  /* Product cards */
  .product-card__body {
    padding: 1rem;
  }
  
  /* Contact cards */
  .contact-card {
    text-align: center;
  }
  
  /* WhatsApp button position */
  .whatsapp-link {
    right: 1rem;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
}

/* --------------------------------------------
   Small Mobile Breakpoint (max-width: 480px)
   -------------------------------------------- */
@media (max-width: 480px) {
  /* Further reduced padding */
  .section-shell,
  .page-hero {
    padding: 2.5rem 0;
  }
  
  /* Smaller section titles */
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .section-title--large {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
  
  /* Hero slider */
  .hero-slider {
    min-height: 28rem;
  }
  
  .hero-slider__content {
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius-lg);
  }
  
  .hero-slider__title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }
  
  /* Button full width on very small screens */
  .button {
    width: 100%;
    justify-content: center;
  }

  .category-card__title,
  .product-card__title,
  .value-card__title {
    font-size: 1.125rem;
  }
  
  /* Search box full width */
  .search-box {
    min-width: 100%;
  }
  
  .search-box__input {
    font-size: 0.875rem;
  }
  
  /* Filters container */
  .filters-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-toggle {
    justify-content: center;
  }
  
  /* Footer */
  .main-footer__copy {
    font-size: 0.75rem;
  }
  
  .whatsapp-link {
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* --------------------------------------------
   Very Small Screens (max-width: 400px)
   -------------------------------------------- */
@media (max-width: 400px) {
  .main-header__container {
    gap: 0.35rem;
  }

  .language-switcher {
    gap: 0.15rem;
  }

  .language-switcher__button {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }

  .theme-toggle {
    width: 1.75rem;
    height: 1.75rem;
  }

  .brand__image {
    width: 2.4rem;
    height: 2.4rem;
  }

  .category-menu__toggle,
  .main-header__menu {
    min-width: 2.2rem;
    height: 2.2rem;
  }
}

/* --------------------------------------------
   Large Screen Breakpoint (min-width: 1400px)
   More breathing room on big monitors
   -------------------------------------------- */
@media (min-width: 1400px) {
  :root {
    --container-size: min(100% - 4rem, 1320px);
  }

  .about-hero::before {
    width: 50rem;
    height: 50rem;
  }
  .about-hero::after {
    width: 38rem;
    height: 38rem;
  }
  .category-grid {
    gap: 1.75rem;
  }
  .product-grid {
    gap: 1.75rem;
  }
  .section-shell,
  .page-hero {
    padding: 6rem 0;
  }
}

/* --------------------------------------------
   Print Styles
   -------------------------------------------- */
@media print {
  .main-header,
  .main-footer,
  .whatsapp-link,
  .hero-slider__controls,
  .button {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section-shell,
  .page-hero {
    padding: 1rem 0;
    margin: 0;
  }
  
  .detail-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
