/**
 * Olio Pizza Napoletana - Responsive Styles
 * Mobile-first breakpoints
 */

/* ========================================
   Mobile Base (< 576px)
   ======================================== */

/* Header Mobile */
.nav {
  display: none;
}

.burger {
  display: flex;
}

.btn-header-cta {
  display: none;
}

/* Mobile Navigation */
.nav.open {
  display: block;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-white);
  padding: var(--space-6);
  z-index: var(--z-fixed);
}

.nav.open .nav-list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.nav.open .nav-link {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  border-bottom: 1px solid var(--color-warm-gray);
}

/* Hero Mobile */
.hero-title {
  font-size: var(--text-3xl);
}

.hero-subtitle {
  font-size: var(--text-base);
}

/* Vision Mobile */
.vision-grid {
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

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

/* Benefits Mobile */
.benefits-grid {
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

/* Gallery Mobile */
.gallery-slide {
  flex: 0 0 calc(50% - 8px);
}

/* Packages Mobile */
.packages-grid {
  grid-template-columns: 1fr;
}

/* Form Mobile */
.form-wrapper {
  padding: var(--space-8);
}

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

/* Contacts Mobile */
.contacts-grid {
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

/* Footer Mobile */
.footer-top,
.footer-bottom {
  flex-direction: column;
  text-align: center;
  gap: var(--space-4);
}

/* ========================================
   Small Devices (>= 576px)
   ======================================== */

@media (min-width: 576px) {
  .hero-title {
    font-size: var(--text-4xl);
  }

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

  .gallery-slide {
    flex: 0 0 calc(25% - 12px);
  }

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

/* ========================================
   Tablets (>= 768px)
   ======================================== */

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-5xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .form-wrapper {
    padding: var(--space-10);
  }

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

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

  .package-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }

  [dir="rtl"] .footer-top,
  [dir="rtl"] .footer-bottom {
    text-align: right;
  }
}

/* ========================================
   Desktop (>= 992px)
   ======================================== */

@media (min-width: 992px) {
  /* Header Desktop */
  .nav {
    display: block;
  }

  .burger {
    display: none;
  }

  .btn-header-cta {
    display: inline-flex;
  }

  /* Vision Desktop */
  .vision-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  /* Benefits Desktop */
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Packages Desktop */
  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .package-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  /* Contacts Desktop */
  .contacts-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   Large Desktop (>= 1200px)
   ======================================== */

@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-8);
  }

  .hero-title {
    font-size: var(--text-6xl);
  }

  .hero-subtitle {
    font-size: var(--text-xl);
  }

  .section-title {
    font-size: var(--text-5xl);
  }

  .form-wrapper {
    padding: var(--space-12);
  }
}

/* ========================================
   Extra Large (>= 1400px)
   ======================================== */

@media (min-width: 1400px) {
  :root {
    --container-xl: 1320px;
  }

  .hero-title {
    font-size: var(--text-7xl);
  }
}

/* ========================================
   RTL Responsive Adjustments
   ======================================== */

@media (min-width: 992px) {
  [dir="rtl"] .vision-grid {
    direction: rtl;
  }

  [dir="rtl"] .nav-list {
    flex-direction: row-reverse;
  }
}

/* ========================================
   Touch Device Optimizations
   ======================================== */

@media (hover: none) and (pointer: coarse) {
  /* Disable hover effects on touch devices */
  .benefit-card:hover,
  .package-card:hover,
  .card-hover:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  /* Increase tap targets */
  .btn {
    min-height: 48px;
  }

  .nav-link {
    padding: var(--space-3) var(--space-4);
  }

  .lang-option {
    padding: var(--space-3) var(--space-4);
  }

  .faq-question {
    padding: var(--space-6);
  }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .header,
  .hero-scroll,
  .lang-switcher,
  .form-section,
  .footer-social,
  .social-links {
    display: none !important;
  }

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

  .hero {
    min-height: auto;
    padding: var(--space-8);
    background: none;
  }

  .hero-bg {
    display: none;
  }

  .hero-title,
  .hero-subtitle {
    color: #000;
  }

  .section {
    padding: var(--space-8) 0;
    page-break-inside: avoid;
  }
}

/* ========================================
   Landscape Phone
   ======================================== */

@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-16) var(--space-6);
  }

  .hero-scroll {
    display: none;
  }
}

/* ========================================
   High DPI / Retina
   ======================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp borders */
  .form-input,
  .form-select,
  .form-textarea {
    border-width: 0.5px;
  }
}
