/* ============================================
   Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .about-grid {
    gap: 40px;
  }

  .services-grid {
    gap: 16px;
  }

  .routes-grid {
    gap: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* ============================================
   Tablet portrait (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --nav-height: 64px;
  }

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

  /* Navigation - mobile */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg-alt);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 0;
    transition: right var(--transition-base);
    box-shadow: var(--shadow-xl);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    color: var(--color-text) !important;
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links a::after {
    display: none;
  }

  /* Mobile overlay */
  .nav-links::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: -1;
  }

  .nav-links.open::before {
    opacity: 1;
    pointer-events: auto;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .about-experience-badge {
    bottom: -10px;
    right: -10px;
    padding: 16px;
  }

  .badge-number {
    font-size: 2rem;
  }

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px 24px;
  }

  .stat-number {
    font-size: 2rem;
  }

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

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-item-tall {
    grid-row: span 1;
  }

  .gallery-item-wide {
    grid-column: span 1;
  }

  /* Routes */
  .routes-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonial-slide {
    padding: 24px 16px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  /* Contact */
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  /* Cookie */
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* Lightbox */
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* ============================================
   Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  :root {
    --section-padding: 48px;
  }

  .container {
    padding: 0 16px;
  }

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

  .section-header {
    margin-bottom: 36px;
  }

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

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

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

  .btn {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  .service-card {
    padding: 24px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
    gap: 8px;
  }

  .route-image {
    height: 160px;
  }

  .fab-contact {
    width: 48px;
    height: 48px;
    bottom: 24px;
    right: 16px;
  }

  .fab-contact svg {
    width: 24px;
    height: 24px;
  }

  .back-to-top {
    bottom: 88px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .navbar,
  .hero-scroll-indicator,
  .back-to-top,
  .fab-contact,
  .cookie-banner,
  .gallery-filters,
  .carousel-controls,
  .lightbox {
    display: none !important;
  }

  .hero {
    height: auto;
    min-height: 200px;
  }

  .hero-parallax,
  .hero-overlay {
    display: none;
  }

  .hero-content {
    color: #000;
    padding: 40px 0;
  }

  .section {
    padding: 40px 0;
    break-inside: avoid;
  }

  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-parallax {
    will-change: auto;
  }

  .carousel-track {
    transition: none;
  }

  @keyframes scrollDown {
    0%, 100% { opacity: 1; top: 6px; }
  }
}
