/* ============================================================
   AYOUB TRANSPORTE – Responsive Styles
   Breakpoints: Tablet (1024px), Tablet Small (768px), Phone (480px)
   ============================================================ */

/* ---------- Tablet Landscape (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  :root {
    --spacing-3xl: 5rem;
    --spacing-2xl: 4rem;
    --spacing-xl: 3rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

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

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

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .process-steps::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .contact-page-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-intro-grid {
    gap: var(--spacing-lg);
  }

  .why-us-grid {
    gap: var(--spacing-lg);
  }

  .about-story {
    gap: var(--spacing-lg);
  }
}

/* ---------- Tablet Portrait (≤ 768px) ---------- */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --spacing-3xl: 4rem;
    --spacing-2xl: 3.5rem;
    --spacing-xl: 2.5rem;
    --spacing-lg: 2rem;
  }

  /* Typography */
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.4rem; }
  h4 { font-size: 1.15rem; }

  p { font-size: 1rem; }

  /* Navigation */
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
    padding-top: var(--header-height);
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

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

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Grids – stack to single column */
  .about-intro-grid,
  .why-us-grid,
  .about-story {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .about-intro-image img,
  .about-story-image img,
  .why-us-image img {
    height: 300px;
  }

  .about-intro-accent {
    display: none;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .service-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .process-steps {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
    gap: var(--spacing-md);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

  .contact-page-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .service-detail-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-detail-icon {
    margin: 0 auto;
  }

  .service-features {
    justify-content: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* CTA */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Page hero */
  .page-hero {
    padding-top: calc(var(--header-height) + var(--spacing-xl));
    padding-bottom: var(--spacing-lg);
  }

  /* Mobile nav overlay text */
  .mobile-nav-overlay a {
    font-size: 1.6rem;
  }

  /* Legal content */
  .legal-content {
    padding: 0 var(--spacing-sm);
  }
}

/* ---------- Small Phones (≤ 480px) ---------- */
@media (max-width: 480px) {
  :root {
    --spacing-3xl: 3rem;
    --spacing-2xl: 2.5rem;
    --spacing-xl: 2rem;
    --spacing-lg: 1.5rem;
  }

  .hero {
    min-height: 85vh;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .contact-info-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-page-card {
    text-align: center;
  }

  .contact-page-card .contact-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .service-features span {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  .back-to-top {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
  }

  .back-to-top svg {
    width: 16px;
    height: 16px;
  }
}

/* ---------- Landscape Phone Fix ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 2rem) 0 3rem;
  }
}

/* ---------- Large Screens (≥ 1400px) ---------- */
@media (min-width: 1400px) {
  :root {
    --spacing-3xl: 10rem;
  }

  .container {
    max-width: 1280px;
  }
}