/* ============================================
   ALATAA GROUP — Responsive Design
   ============================================ */

/* ==========================================
   TABLET — max-width: 1024px
   ========================================== */

@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-6);
  }

  /* Navbar */
  .navbar__nav {
    display: none;
  }

  .lang-switcher {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  /* Footer */
  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  /* Hero Vertical Text */
  .hero-vertical-text {
    display: none;
  }

  /* CTA Band */
  .cta-band .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   TABLET SMALL — max-width: 768px
   ========================================== */

@media (max-width: 768px) {
  .section {
    padding: var(--space-16) 0;
  }

  .section-lg {
    padding: var(--space-20) 0;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: var(--space-10);
  }

  /* Navbar */
  .navbar__inner {
    padding: 0 var(--space-4);
  }

  /* Mobile Menu */
  .mobile-menu {
    gap: var(--space-5);
  }

  .mobile-menu__link {
    font-size: var(--text-3xl); /* 32px instead of 48px */
  }

  .mobile-menu__lang {
    margin-top: var(--space-4);
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-6) !important;
  }

  /* Footer */
  .footer__main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }

  /* Testimonial card */
  .testimonial-card {
    padding: 0 var(--space-4);
  }
}

/* ==========================================
   MOBILE — max-width: 480px
   ========================================== */

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  h1 {
    font-size: clamp(var(--text-4xl), 10vw, var(--text-5xl));
  }

  h2 {
    font-size: clamp(var(--text-3xl), 8vw, var(--text-4xl));
  }

  /* Buttons */
  .btn {
    padding: 12px 24px;
    font-size: var(--text-xs);
  }

  /* Stack hero buttons */
  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Mobile Menu */
  .mobile-menu {
    gap: var(--space-4);
  }

  .mobile-menu__link {
    font-size: var(--text-2xl) !important; /* 24px instead of 32px/48px */
  }

  .mobile-menu__lang {
    margin-top: var(--space-3);
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  /* Products grid */
  .products-grid {
    grid-template-columns: 1fr !important;
  }

  /* Process steps */
  .process-grid {
    grid-template-columns: 1fr !important;
  }

  /* Values grid */
  .values-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================
   HOME PAGE SPECIFIC
   ========================================== */

/* Hero two-column */
@media (max-width: 768px) {
  .hero__inner {
    flex-direction: column;
  }

  .hero__content {
    max-width: 100%;
  }
}

/* About teaser two-column */
@media (max-width: 768px) {
  .about-teaser__grid {
    grid-template-columns: 1fr !important;
  }

  .about-teaser__image {
    height: 300px;
  }
}

/* Why Alataa two-column */
@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr !important;
  }

  .why-image {
    height: 300px !important;
    order: -1;
  }
}

/* Products preview gallery */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
  }

  .gallery-grid .gallery-item--tall,
  .gallery-grid .gallery-item--wide {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================
   SERVICES PAGE SPECIFIC
   ========================================== */

@media (max-width: 768px) {
  .service-detail__grid {
    grid-template-columns: 1fr !important;
  }

  .service-detail__grid--reverse {
    direction: ltr;
  }

  .service-detail__image {
    height: 280px;
    order: -1;
  }

  /* Process: horizontal → vertical */
  .process-grid {
    grid-template-columns: 1fr;
    position: relative;
  }

  .process-connector {
    display: none;
  }
}

/* ==========================================
   CONTACT PAGE SPECIFIC
   ========================================== */

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================
   ABOUT PAGE SPECIFIC
   ========================================== */

@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr !important;
  }

  .story-image {
    height: 300px;
  }
}

/* ==========================================
   TOUCH TARGETS
   ========================================== */

@media (max-width: 768px) {
  .btn, .navbar__link, .footer__link,
  .lang-option, .mobile-menu__lang-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==========================================
   LARGE SCREENS
   ========================================== */

@media (min-width: 1440px) {
  :root {
    --navbar-height: 90px;
  }
}
