/* ==========================================================================
   TaxiOffline Mitra — Responsive Breakpoints
   Mobile-first approach, scaling up
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tablet & Small Desktop (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .features-grid,
  .fitur-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

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

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

  .tarif-preview-grid,
  .routing-grid,
  .coverage-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tarif-preview-image,
  .routing-image-wrapper,
  .coverage-image-wrapper,
  .about-image-card {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   Tablet (<= 860px)
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-media {
    order: 2;
  }

  .hero-content {
    order: 1;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-note {
    justify-content: center;
  }

  .section-header {
    text-align: center;
  }

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

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

/* --------------------------------------------------------------------------
   Mobile (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Navigation */
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 12px 24px rgba(23, 22, 20, 0.08);
    display: none;
  }

  .primary-nav.nav-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 0.6rem 0;
    width: 100%;
    display: block;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta-wrapper {
    width: 100%;
    padding-top: 0.5rem;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

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

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

  .registration-steps {
    grid-template-columns: 1fr;
  }

  .google-play-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .google-play-cta-actions .btn {
    width: 100%;
  }

  .download-buttons-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-store {
    width: 100%;
    justify-content: center;
  }

  .hero-floating-card {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }

  .hero-floating-card.card-route {
    left: 0.75rem;
    top: 0.75rem;
  }

  .hero-floating-card.card-fair {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .card-label {
    font-size: 0.8rem;
  }

  .card-sublabel {
    font-size: 0.7rem;
  }
}

/* --------------------------------------------------------------------------
   Small Mobile (<= 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-headline {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }

  .section-headline {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .feature-card,
  .fitur-card,
  .requirements-card,
  .step-card,
  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem 1.25rem;
  }

  .google-play-cta {
    padding: 2rem 1.25rem;
  }

  .tarif-preview-point-text,
  .routing-point-text,
  .coverage-point-text {
    font-size: 0.95rem;
  }

  .contact-method {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hero-floating-card.card-route {
    left: 0.5rem;
    top: 0.5rem;
  }

  .hero-floating-card.card-fair {
    right: 0.5rem;
    bottom: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   Very Small Mobile (<= 374px)
   -------------------------------------------------------------------------- */
@media (max-width: 374px) {
  :root {
    --container-padding: 0.875rem;
  }

  .brand-logo {
    font-size: 1.15rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero-headline {
    font-size: 1.85rem;
  }

  .section-headline {
    font-size: 1.35rem;
  }

  .hero-image {
    height: 280px;
  }

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

/* --------------------------------------------------------------------------
   Landscape Mobile
   -------------------------------------------------------------------------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-image {
    height: 240px;
  }

  .hero-headline {
    font-size: 1.75rem;
  }

  .hero-subheadline {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .hero-actions {
    margin-bottom: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Large Desktop (>= 1440px)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  :root {
    --container-max-width: 1320px;
  }

  .hero-headline {
    font-size: 4rem;
  }

  .section-headline {
    font-size: 2.75rem;
  }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .hero-actions,
  .google-play-cta,
  .contact-form-card,
  .site-footer {
    display: none !important;
  }

  .hero-section {
    padding-top: 0;
    padding-bottom: 2rem;
    border-bottom: none;
    background: none;
  }

  .hero-grid {
    display: block;
  }

  .hero-media {
    display: none;
  }

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

  a {
    text-decoration: none;
    color: #000;
  }

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

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}