/* Pop-up Book Café Events Template - Responsive Styles */

/* Mobile First Approach - No animations on mobile resolution */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* NO ANIMATIONS ON MOBILE */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* Typography adjustments */
  :root {
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
    --font-size-xl: 1.125rem;
    --section-padding: 2rem 0;
  }

  /* Navigation */
  .navbar-brand {
    font-size: var(--font-size-lg);
  }

  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }

  /* Hero Section */
  .hero {
    min-height: 70vh;
    text-align: center;
  }

  .hero::before {
    display: none;
  }

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

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

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

  /* Sections */
  .section {
    padding: var(--section-padding);
  }

  .section-title {
    margin-bottom: 2rem;
  }

  /* Cards and content */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    margin-bottom: 1.5rem;
  }

  .service-image {
    height: 150px;
    font-size: 2rem;
  }

  .team-photo {
    width: 100px;
    height: 100px;
    font-size: 1.5rem;
  }

  /* Contact Form */
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .gallery-item {
    height: 150px;
    font-size: 1.5rem;
  }

  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }

  .footer .row > div {
    margin-bottom: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  .hero {
    min-height: 80vh;
  }

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

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

  /* Team photos */
  .team-photo {
    width: 110px;
    height: 110px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  .hero {
    min-height: 90vh;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Services */
  .service-image {
    height: 180px;
  }

  /* Contact adjustments */
  .contact-form {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Full animations enabled on desktop */
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover {
    transform: translateY(-5px);
  }

  .service-card:hover {
    transform: translateY(-10px);
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Hero adjustments */
  .hero {
    min-height: 100vh;
  }

  /* Two column layouts */
  .hero .row {
    align-items: center;
  }

  .contact .row {
    align-items: stretch;
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max widths handled by Bootstrap */
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  /* Larger spacing for desktop */
  .section {
    padding: 5rem 0;
  }

  /* Enhanced hover effects */
  .navbar-nav .nav-link:hover {
    transform: translateY(-2px);
  }
}

/* Extra Extra Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  /* Maximum content width adjustments */
  .hero-content {
    max-width: 80%;
    padding-top: 100px;
}

  .section-description {
    max-width: 700px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 100vh;
  }

  .section {
    padding: 3rem 0;
  }
}

/* Print styles */
@media print {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .navbar,
  .footer {
    display: none;
  }

  .hero {
    min-height: auto;
    page-break-after: always;
  }

  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }

  .service-card,
  .feature-card,
  .team-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-sage: #4A5C3A;
    --primary-terracotta: #B85C3E;
    --primary-dusty-blue: #4682B4;
    --dark-warm-gray: #2C2C2C;
    --light-warm-gray: #F0F0F0;
  }

  .btn-primary {
    border: 2px solid currentColor;
  }

  .form-control {
    border: 2px solid currentColor;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .navbar-nav .nav-link:hover {
    transform: none;
  }
}

/* Focus states for keyboard navigation */
.navbar-nav .nav-link:focus,
.btn:focus,
.form-control:focus {
  outline: 2px solid var(--primary-terracotta);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-terracotta);
  color: white;
  padding: 8px;
  text-decoration: none;
  transition: top 0.3s;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
} 