/* Responsive Design - Mobile First */

/* Prevent horizontal overflow on small screens */
@media (max-width: 1023px) {
  html, body {
    overflow-x: hidden;
  }
}

/* ========== Extra Small (300px - 575px) ========== */
@media (max-width: 575px) {
  :root {
    --section-padding: var(--space-3xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
    max-width: 100%;
  }

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

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

  .hero-tagline {
    font-size: var(--font-size-md);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

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

  .section-subtitle {
    font-size: var(--font-size-sm);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
  }

  .stat-number {
    font-size: var(--font-size-2xl);
  }

  .stat-label {
    font-size: var(--font-size-xs);
    word-break: break-word;
  }

  #about .members-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .member-photo {
    width: 160px;
    height: 160px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .repertoire-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .gallery-filters {
    gap: var(--space-xs);
    flex-wrap: wrap;
    justify-content: center;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: var(--font-size-xs);
    min-height: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .contact-info {
    min-width: 0;
    overflow: hidden;
  }

  .contact-item {
    min-width: 0;
    overflow: hidden;
  }

  .contact-link {
    word-break: break-all;
    font-size: var(--font-size-sm);
  }

  .contact-form-wrapper {
    min-width: 0;
    overflow: hidden;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .footer-nav ul {
    align-items: center;
  }

  .footer-contact {
    align-items: center;
  }

  .lightbox-prev {
    left: var(--space-sm);
  }

  .lightbox-next {
    right: var(--space-sm);
  }

  .lightbox-close {
    top: var(--space-sm);
    right: var(--space-sm);
  }

  .lightbox-counter {
    bottom: -32px;
  }
}

/* ========== Small (576px - 767px) ========== */
@media (min-width: 576px) and (max-width: 767px) {
  :root {
    --section-padding: var(--space-4xl) 0;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

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

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

  .repertoire-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .lightbox-prev {
    left: var(--space-md);
  }

  .lightbox-next {
    right: var(--space-md);
  }
}

/* ========== Medium / Tablet (768px - 1023px) ========== */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .about-grid {
    gap: var(--space-2xl);
  }

  #about .members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ========== Tablet/Desktop nav breakpoint ========== */
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }

  .header-actions .lang-switcher {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* ========== Large Desktop (1024px - 1279px) ========== */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-link {
    padding: var(--space-sm) var(--space-sm);
    font-size: var(--font-size-xs);
  }
}

/* ========== XL Desktop (1280px+) ========== */
@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-2xl);
  }
}

/* ========== 2K+ (1920px+) ========== */
@media (min-width: 1920px) {
  :root {
    --container-max: 1400px;
    --font-size-base: 1.0625rem;
  }

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

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

  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ========== Print ========== */
@media print {
  .site-header,
  .back-to-top,
  .hero-scroll-indicator,
  .mobile-menu,
  .lightbox,
  .gallery-filters,
  .hero-cta,
  .contact-form-wrapper {
    display: none !important;
  }

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

  body {
    color: black;
    background: white;
    font-size: 12pt;
  }

  a {
    color: black;
  }

  .hero-section {
    min-height: auto;
    background: none;
    color: black;
    padding: 2rem 0;
  }

  .hero-overlay {
    display: none;
  }

  .hero-title {
    color: black;
    font-size: 24pt;
  }
}
