/* ================================================
   VINTAGE POSTER GALLERY - RESPONSIVE STYLES
   Mobile-First Approach with Bootstrap 5
   ================================================ */

/* Extra Small Devices (< 576px) */
@media (max-width: 575.98px) {
  
  /* Typography Adjustments */
  h1, .h1 {
    font-size: 1.8rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
  
  h3, .h3 {
    font-size: 1.3rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-shapes {
    display: none; /* Hide decorative shapes on mobile */
  }
  
  /* Sections */
  .section {
    padding: 2rem 0;
  }
  
  /* Cards */
  .service-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .team-card {
    padding: 1rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .review-card {
    padding: 1.5rem 1rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    padding: 1rem 0;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Contact */
  .contact-form,
  .contact-info {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Disable animations on mobile (following rules) */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .card-vintage:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Mobile menu adjustments - using standard Bootstrap */
  .navbar-toggler {
    border: 1px solid var(--color-primary);
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23654321' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
}

/* Small Devices (576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  
  /* Hero Section */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  /* Team Photos */
  .team-photo {
    width: 110px;
    height: 110px;
  }
}

/* Medium Devices (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  
  /* Typography */
  h1, .h1 {
    font-size: 2rem;
  }
  
  h2, .h2 {
    font-size: 1.7rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  /* Services Grid */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Team Grid */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Large Devices (992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  
  /* Services Grid */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Team Grid */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Extra Large Devices (≥ 1200px) */
@media (min-width: 1200px) {
  
  /* Container adjustments */
  .container-xl {
    max-width: 1320px;
  }
  
  /* Services Grid */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Team Grid */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
  
  /* FAQ Grid */
  .faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .gallery-item img {
    height: 280px;
  }
  
  /* Hero shapes animation only on desktop */
  .hero-shape-1 {
    animation: float 6s ease-in-out infinite;
  }
  
  .hero-shape-2 {
    animation: float 8s ease-in-out infinite reverse;
  }
}

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

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-item img,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .hero-shapes,
  .btn,
  [data-sal] {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 1rem 0;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .card-vintage {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  * {
    background: white !important;
    color: black !important;
  }
}

/* Focus and Accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-shape {
    animation: none !important;
  }
  
  .card-vintage:hover {
    transform: none !important;
  }
  
  .gallery-item:hover img {
    transform: none !important;
  }
  
  * {
    scroll-behavior: auto !important;
  }
}

/* Dark mode considerations (if browser supports) */

/* Container-specific responsive adjustments */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1400px;
  }
  
  .hero-section .container-xxl {
    position: relative;
    z-index: 1;
  }
}

.hero-section h1 {
    padding-top: 150px;
}