.button,
.nav-cta,
.event-content > a,
.event-actions > a:not(.button),
.footer-links a,
.site-nav a {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease,
    opacity 220ms ease;
}

.hero {
  background: var(--red) !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/patterns/hero-pattern.png") center / 340px 340px repeat;
  opacity: 0.28;
  pointer-events: none;
}

.footer-brand {
  width: clamp(210px, 21vw, 330px);
  min-height: 48px;
  background: url("assets/logo/summer-sessions-footer-logo.svg") left center / contain no-repeat;
}

.footer-brand img {
  opacity: 0;
}

.form-honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button:hover,
.button:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(214, 168, 79, 0.7);
  box-shadow:
    0 0 0 1px rgba(214, 168, 79, 0.24),
    0 0 28px rgba(214, 168, 79, 0.26),
    0 18px 36px rgba(7, 7, 10, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #C91830;
  box-shadow:
    0 0 0 1px rgba(248, 244, 239, 0.18),
    0 0 34px rgba(177, 18, 38, 0.5),
    0 18px 38px rgba(7, 7, 10, 0.34);
}

.button-light:hover,
.button-light:focus-visible {
  background: rgba(74, 7, 18, 0.78);
}

.event-content > a:hover,
.event-content > a:focus-visible,
.event-actions > a:not(.button):hover,
.event-actions > a:not(.button):focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: #F1C76A;
  text-shadow: 0 0 18px rgba(214, 168, 79, 0.42);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.service-card:nth-child(2) {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.nav-toggle {
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible,
.nav-toggle.is-open {
  transform: translateY(-1px);
  border-color: rgba(214, 168, 79, 0.72);
  background: rgba(74, 7, 18, 0.82);
  box-shadow: 0 0 24px rgba(214, 168, 79, 0.24);
}

.nav-toggle span {
  transform-origin: center;
  transition:
    transform 220ms ease,
    opacity 160ms ease,
    background 220ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.gallery-filters {
  width: min(1180px, 100%);
  margin: 0 auto 22px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 4px 12px;
  scrollbar-color: var(--gold) rgba(248, 244, 239, 0.08);
}

.gallery-filter {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid rgba(248, 244, 239, 0.18);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--cream);
  background: rgba(248, 244, 239, 0.05);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.gallery-filter:hover,
.gallery-filter:focus-visible,
.gallery-filter.is-active {
  transform: translateY(-1px);
  border-color: rgba(214, 168, 79, 0.72);
  background: rgba(177, 18, 38, 0.56);
  box-shadow: 0 0 24px rgba(214, 168, 79, 0.2);
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  overflow: visible;
}

.gallery-page-grid .gallery-item,
.gallery-page-grid .gallery-item.large {
  flex: unset;
  height: clamp(240px, 30vw, 360px);
}

.gallery-item.category-header {
  border: 1px solid rgba(214, 168, 79, 0.32);
  background:
    radial-gradient(circle at 50% 22%, rgba(214, 168, 79, 0.12), transparent 12rem),
    var(--black);
}

.gallery-item.category-header img,
.gallery-item.category-header video {
  object-fit: contain;
  padding: clamp(18px, 4vw, 42px);
  background: rgba(7, 7, 10, 0.76);
}

.gallery-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item figcaption {
  display: grid;
  gap: 6px;
}

.gallery-item figcaption small {
  display: block;
  color: var(--warm-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-item figcaption strong {
  display: block;
  font-size: 18px;
}

.gallery-item figcaption span {
  display: block;
  max-width: 34ch;
  color: rgba(248, 244, 239, 0.78);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.event-ideas {
  background:
    radial-gradient(circle at 12% 12%, rgba(177, 18, 38, 0.26), transparent 24rem),
    linear-gradient(180deg, #17070D, #07070A);
}

.event-idea-form small {
  color: rgba(248, 244, 239, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.event-idea-form textarea {
  min-height: 150px;
}

@media (max-width: 820px) {
  .site-nav {
    display: flex;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition:
      opacity 220ms ease,
      transform 220ms ease,
      visibility 220ms ease;
    visibility: hidden;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .site-nav a {
    transform: translateY(-4px);
    transition:
      transform 220ms ease,
      background 220ms ease,
      opacity 220ms ease;
  }

  .site-nav.is-open a {
    transform: translateY(0);
  }

  .site-nav.is-open a:nth-child(2) { transition-delay: 20ms; }
  .site-nav.is-open a:nth-child(3) { transition-delay: 40ms; }
  .site-nav.is-open a:nth-child(4) { transition-delay: 60ms; }
  .site-nav.is-open a:nth-child(5) { transition-delay: 80ms; }
  .site-nav.is-open a:nth-child(6) { transition-delay: 100ms; }
}

@media (max-width: 640px) {
  .gallery-page-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery category controls */
.gallery-page .gallery-filters {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto 28px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  padding: 12px 4px 18px;
  scrollbar-width: none;
}

.gallery-page .gallery-filters::-webkit-scrollbar {
  display: none;
}

.gallery-page .gallery-filter {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 48px;
  border: 1px solid rgba(214, 168, 79, 0.34);
  border-radius: 8px;
  padding: 0 20px;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(248, 244, 239, 0.055), rgba(248, 244, 239, 0.018)),
    rgba(7, 7, 10, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(248, 244, 239, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.26);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-page .gallery-filter:hover,
.gallery-page .gallery-filter:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(214, 168, 79, 0.74);
  background:
    linear-gradient(180deg, rgba(177, 18, 38, 0.38), rgba(74, 7, 18, 0.38)),
    rgba(7, 7, 10, 0.86);
  box-shadow:
    0 0 0 1px rgba(214, 168, 79, 0.16),
    0 0 26px rgba(214, 168, 79, 0.18),
    0 16px 34px rgba(0, 0, 0, 0.32);
}

.gallery-page .gallery-filter.is-active {
  border-color: rgba(214, 168, 79, 0.92);
  color: #07070A;
  background:
    linear-gradient(180deg, #F1C76A, #D6A84F);
  box-shadow:
    0 0 0 1px rgba(248, 244, 239, 0.14),
    0 0 30px rgba(214, 168, 79, 0.34),
    0 16px 38px rgba(0, 0, 0, 0.34);
}

.gallery-page .gallery-filter.is-active::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 9px;
  border-radius: 50%;
  background: #B11226;
  vertical-align: 1px;
  box-shadow: 0 0 14px rgba(177, 18, 38, 0.72);
}

@media (max-width: 640px) {
  .gallery-page .gallery-filters {
    width: calc(100% + 8px);
    margin-left: -4px;
    margin-bottom: 18px;
    padding-block: 8px 14px;
  }

  .gallery-page .gallery-filter {
    min-height: 44px;
    padding: 0 15px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .nav-cta,
  .event-content > a,
  .event-actions > a:not(.button),
  .footer-links a,
  .site-nav,
  .site-nav a,
  .nav-toggle,
  .nav-toggle span,
  .gallery-filter {
    transition: none;
  }

  .button:hover,
  .button:focus-visible,
  .nav-cta:hover,
  .nav-cta:focus-visible,
  .nav-toggle:hover,
  .nav-toggle:focus-visible,
  .nav-toggle.is-open,
  .gallery-filter:hover,
  .gallery-filter:focus-visible,
  .gallery-filter.is-active {
    transform: none;
  }
}
