/* ========================================
   Mobile-first responsive breakpoints
   Base styles (in main.css) target 320px+
   ======================================== */

/* ---- Mobile: Navigation ---- */

@media (max-width: 767px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-navy);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-lg);
    gap: var(--space-sm);
  }

  .nav__menu--open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: var(--text-lg);
    padding: var(--space-sm) 0;
    width: 100%;
  }

  .nav__link--cta {
    text-align: center;
    margin-top: var(--space-md);
    width: 100%;
  }

  /* Lightbox nav arrows on mobile */
  .lightbox__prev {
    left: var(--space-sm);
  }

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

/* ---- Small tablets: 640px+ ---- */

@media (min-width: 640px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Tablets: 768px+ ---- */

@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

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

  .section__title {
    font-size: var(--text-4xl);
  }

  .hero__title {
    font-size: calc(var(--text-5xl) * 1.2);
  }

  .hero__tagline {
    font-size: var(--text-2xl);
  }

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

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

  .contact__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

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

/* ---- Small desktops: 1024px+ ---- */

@media (min-width: 1024px) {
  .hero__title {
    font-size: calc(var(--text-5xl) * 1.4);
  }

  .hero__tagline {
    font-size: var(--text-3xl);
    font-weight: 300;
  }

  .about__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-4xl);
  }

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

/* ---- Large desktops: 1280px+ ---- */

@media (min-width: 1280px) {
  :root {
    --container-padding: 2.5rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}
