/* ============================================
   Bach-Millennium Music - Responsive Styles
   ============================================ */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
    text-align: center;
  }

  .nav {
    gap: var(--space-lg);
  }

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

/* Tablet and below (max 991px) */
@media (max-width: 991px) {
  .header-inner {
    height: 70px;
  }

  .hero {
    margin-top: 70px;
    min-height: 80vh;
  }

  .page-header {
    margin-top: 70px;
    padding: var(--space-3xl) 0;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

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

  .performance-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .performance-date {
    margin: 0 auto;
  }

  .performance-cta {
    margin-top: var(--space-md);
  }
}

/* Mobile Menu Breakpoint (max 768px) */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--space-lg);
    background-color: white;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
  }

  .nav.active {
    transform: translateX(0);
  }

  /* Mobile nav item */
  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link {
    font-size: 1rem;
    padding: var(--space-md) 0;
    width: 100%;
    justify-content: center;
  }

  /* Mobile dropdown */
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background-color: var(--color-background-alt);
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
  }

  .nav-item.open .dropdown-menu {
    max-height: 300px;
  }

  .nav-item:hover .dropdown-menu {
    max-height: 0;
  }

  .nav-item.open:hover .dropdown-menu {
    max-height: 300px;
  }

  .dropdown-menu a {
    padding: var(--space-sm) var(--space-lg);
    text-align: center;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-lg);
    width: 100%;
    padding-top: var(--space-md);
  }

  .nav-cta .btn {
    width: 100%;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content {
    padding: var(--space-lg);
  }

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

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

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

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    margin-bottom: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .sponsors-inner {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .card-body {
    padding: var(--space-lg);
  }

  .program-card {
    padding: var(--space-xl);
  }

  .testimonial-card {
    padding: var(--space-xl);
  }

  .btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .header-inner {
    height: 60px;
  }

  .logo {
    font-size: 1.25rem;
  }

  .nav {
    top: 60px;
  }

  .hero {
    margin-top: 60px;
    min-height: 60vh;
  }

  .page-header {
    margin-top: 60px;
    padding: var(--space-2xl) 0;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .hero-label {
    font-size: 0.75rem;
  }

  h1 {
    font-size: 1.75rem;
  }

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

  .card-body,
  .program-card,
  .testimonial-card {
    padding: var(--space-md);
  }

  .faculty-card .card-image {
    width: 120px;
    height: 120px;
  }

  .embed-container {
    min-height: 300px;
  }

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

  .btn {
    padding: var(--space-sm) var(--space-lg);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .menu-toggle,
  .hero-cta,
  .btn {
    display: none !important;
  }

  .hero {
    margin-top: 0;
    min-height: auto;
    background: none;
  }

  .hero-background {
    display: none;
  }

  .hero-content {
    color: black;
  }

  .hero h1 {
    color: black;
  }

  body {
    font-size: 12pt;
  }

  .section {
    padding: 1cm 0;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: var(--color-text-light);
  }
}
