:root {
  color-scheme: light;
}

body {
  overflow-x: hidden;
}

.nav-link {
  position: relative;
  color: #1F2937;
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #E53935;
  transition: width 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #B71C1C;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.mobile-nav-link {
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  color: #1F2937;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  background: #FFF1F1;
  color: #B71C1C;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: #B71C1C;
  color: #FFFFFF;
  box-shadow: 0 16px 32px rgba(183, 28, 28, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #B71C1C;
  box-shadow: 0 18px 36px rgba(183, 28, 28, 0.28);
}

.btn-gold {
  background: #F6C343;
  color: #7F1010;
  box-shadow: 0 16px 32px rgba(246, 195, 67, 0.28);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: #FFE08A;
  box-shadow: 0 18px 36px rgba(246, 195, 67, 0.35);
}

.btn-light {
  background: #FFFFFF;
  color: #B71C1C;
  box-shadow: 0 16px 32px rgba(255, 255, 255, 0.16);
}

.btn-light:hover,
.btn-light:focus-visible {
  background: #FFF7E6;
}

.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.btn-ghost-light:hover,
.btn-ghost-light:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.btn-outline {
  border: 1px solid rgba(229, 57, 53, 0.28);
  background: #FFFFFF;
  color: #B71C1C;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: #FFF7E6;
  border-color: #E53935;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: #FFF1F1;
  padding: 0.45rem 0.85rem;
  color: #B71C1C;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card {
  border: 1px solid rgba(246, 195, 67, 0.22);
  background: #FFFFFF;
  box-shadow: 0 18px 45px rgba(31, 41, 55, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(246, 195, 67, 0.5);
  box-shadow: 0 24px 60px rgba(31, 41, 55, 0.11);
}

.album-card {
  position: relative;
  isolation: isolate;
}

.album-card::before,
.album-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border-radius: 1.5rem;
  background: #FFFFFF;
  border: 1px solid rgba(246, 195, 67, 0.26);
  box-shadow: 0 16px 35px rgba(31, 41, 55, 0.08);
  transition: transform 180ms ease;
}

.album-card::before {
  transform: rotate(-4deg) translateY(8px);
}

.album-card::after {
  transform: rotate(3deg) translateY(4px);
}

.album-card:hover::before {
  transform: rotate(-6deg) translateY(12px);
}

.album-card:hover::after {
  transform: rotate(5deg) translateY(7px);
}

.gallery-image {
  transition: transform 260ms ease, filter 260ms ease;
}

.group:hover .gallery-image {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.gallery-masonry {
  column-count: 4;
  column-gap: 24px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 1200px) {
  .gallery-masonry {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .gallery-masonry {
    column-count: 2;
    column-gap: 16px;
  }

  .gallery-item {
    margin-bottom: 16px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .gallery-masonry {
    column-count: 1;
  }
}

.form-field {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  padding: 0.9rem 1rem;
  color: #1F2937;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-field:focus {
  border-color: #B71C1C;
  box-shadow: 0 0 0 4px rgba(183, 28, 28, 0.12);
}

.subject-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(246, 195, 67, 0.35);
  background: #FFFFFF;
  padding: 1rem;
  color: #1F2937;
  font-weight: 900;
  box-shadow: 0 14px 35px rgba(31, 41, 55, 0.06);
}

.subject-pill i {
  color: #B71C1C;
}

.footer-title {
  font-family: Poppins, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.footer-link {
  transition: color 180ms ease, transform 180ms ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #FFFFFF;
  transform: translateX(3px);
}

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