@font-face {
  font-family: 'Oswald';
  src: url('../fonts/Oswald/oswald-v57-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('../fonts/Oswald/oswald-v57-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('../fonts/Oswald/oswald-v57-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('../fonts/Oswald/oswald-v57-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --crimson: #c9334d;
  --crimson-light: #e8566e;
  --dark-bg: #f5f3f3;
  --wine: #3d0f1a;
  --wine-dark: #150810;
}

body {
  background-color: var(--dark-bg);
  font-family: 'Oswald', sans-serif;
}

.font-cinzel {
  font-family: 'Oswald', sans-serif;
}

.text-accent {
  color: var(--crimson);
}

.border-accent {
  border-color: var(--crimson);
}

.bg-accent {
  background-color: var(--crimson);
}

.bg-wine {
  background-color: var(--wine);
}

.bg-wine-dark {
  background-color: var(--wine-dark);
}

.hero-bg {
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 48px;
  background-image: url('../img/hero-bg.webp');
  background-size: cover;
  background-position: center;
}

.hero-text {
  width: calc(100vw - 48px);
  height: calc(100vh - 120px);
  background-image: url('../img/hero-text.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.divider-ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--crimson);
}
.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--crimson), transparent);
}

.nomination-card {
  border: 1px solid rgba(201, 51, 77, 0.2);
  background: rgba(201, 51, 77, 0.04);
  transition: border-color 0.3s, background 0.3s;
}
.nomination-card:hover {
  border-color: rgba(201, 51, 77, 0.5);
  background: rgba(201, 51, 77, 0.08);
}

/* ── Buttons (replaces DaisyUI btn) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.1s ease;
}
.btn:active {
  transform: scale(0.95);
}
.btn:disabled {
  background-color: oklch(0.321785 0.02476 255.702 / 0.2);
  border-bottom-color: oklch(0.278078 0.029596 256.848 / 0.2);
  color: oklch(0.278078 0.029596 256.848 / 0.2);
  cursor: not-allowed;
  pointer-events: none;
}
.btn-sm {
  height: 2rem;
  min-height: 2rem;
  padding-left: .75rem;
  padding-right: .75rem;
}
.btn-lg {
  height: 4rem;
  min-height: 4rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.btn-primary {
  background-color: var(--crimson);
  color: #ffffff;
  font-weight: 600;
  border: none;
  transition: background-color 0.2s;
}
.btn-primary:hover {
  background-color: var(--crimson-light);
}

.btn-secondary {
  border: 1px solid var(--crimson);
  color: var(--crimson);
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-secondary:hover {
  background: rgba(201, 51, 77, 0.1);
  color: var(--crimson-light);
  border-color: var(--crimson-light);
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: var(--crimson);
  text-transform: uppercase;
}

.nav-sticky {
  backdrop-filter: blur(12px);
  background: rgba(21, 8, 16, 0.95);
  border-bottom: 1px solid rgba(201, 51, 77, 0.2);
}

/* Offset anchor scroll for sticky nav (h-14 = 56px) */
section[id] {
  scroll-margin-top: 56px;
}

/* ── Nav ── */
.nav-logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: 0.15em;
  font-size: 0.875rem;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-logo:hover {
  color: var(--crimson-light);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Single nav-links list — desktop: horizontal row */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d1d5db;
}
.nav-link {
  color: #d1d5db;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--crimson);
}
.nav-link.active {
  color: var(--crimson);
}
/* Register CTA inside list — hidden on desktop */
.nav-mobile-cta { display: none; }

/* Desktop-only Register button */
.nav-desktop-cta { display: inline-flex; }

/* Burger — hidden on desktop */
.burger-btn { display: none; }

/* ── Mobile (< 768px) ── */
@media (max-width: 767px) {
  .hero-bg {
    min-height: 100svh;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: absolute;
    top: 3.5rem; /* h-14 */
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    background: rgba(21, 8, 16, 0.98);
    border-top: 1px solid rgba(201, 51, 77, 0.2);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-mobile-cta { display: block; width: 100%; }
  .nav-desktop-cta { display: none; }
  .burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 2.25rem;
    height: 2.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
}

/* ── Burger lines ── */
.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #d1d5db;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.burger-active .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger-active .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger-active .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

section, nav, footer {
  position: relative;
  z-index: 1;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--crimson);
  color: var(--crimson);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.social-icon-btn:hover {
  background: rgba(201, 51, 77, 0.15);
  color: var(--crimson-light);
}

/* ── Gallery ── */
/* Row height = 1 column width.
   section px-6 = 1.5rem each side (3rem total).
   gap-2 = 0.5rem. Mobile: 2 cols → 1 gap. Desktop: 3 cols → 2 gaps.
   When viewport ≥ 1072px the max-w-5xl (64rem) kicks in → fixed row height. */
.gallery-grid {
  /* mobile 2-col: (100vw - 3rem padding - 0.5rem gap) / 2 */
  grid-auto-rows: calc((100vw - 3.5rem) / 2);
}
@media (max-width: 767px) {
  /* if last item is alone in its row (odd position), stretch it full width */
  .gallery-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
@media (min-width: 768px) {
  /* desktop 3-col: (100vw - 3rem padding - 1rem gaps) / 3 */
  .gallery-grid {
    grid-auto-rows: calc((100vw - 4rem) / 3);
  }
}
@media (min-width: 1072px) {
  /* max-w-5xl = 64rem caps the grid width */
  .gallery-grid {
    grid-auto-rows: calc((64rem - 1rem) / 3);
  }
}


.gallery-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: #111;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-thumb:hover {
  cursor: zoom-in;
}
.gallery-thumb:hover img {
  transform: scale(1.05);
  filter: brightness(0.65);
}
.gallery-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201, 51, 77, 0);
  transition: background 0.3s ease;
}
.gallery-thumb:hover::after {
  background: rgba(201, 51, 77, 0.25);
}
