/* ============================================================
   NOVA FEST — Global Styles
   ============================================================ */

@font-face {
  font-family: 'Bahnschrift';
  src: url('../bahnschrift.ttf') format('truetype');
}

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Instrument+Serif:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --steel:    #3c408c;
  --cranberry:#ed2f50;
  --gray:     #86909c;
  --blue:     #3c408c;

  --steel-light: #4a4fa0;
  --steel-dark:  #2a2d5c;
  --cranberry-dim: rgba(237,47,80,0.15);
  --blue-dim:     rgba(60,64,140,0.15);

  /* Accent colors for artists */
  --accent-cranberry: #ed2f50;
  --accent-violet:    #9d4edd;
  --accent-orange:    #ff9500;
  --accent-teal:      #2dd4bf;
  --accent-emerald:   #10b981;
  --accent-indigo:    #6366f1;
  --accent-slate:     #64748b;
  --accent-pink:      #ec4899;
  --accent-amber:     #f59e0b;
  --accent-red:       #ef4444;
  --accent-sky:       #0ea5e9;
  --accent-forest:    #059669;

  --text-primary:   #f0edf8;
  --text-secondary: #b0aabf;
  --text-muted:     #86909c;

  --font-display: 'Bahnschrift', 'Bebas Neue', sans-serif;
  --font-serif:   'Instrument Serif', serif;
  --font-body:    'Bahnschrift', 'DM Sans', sans-serif;

  --nav-height: 72px;
  --max-w: 1200px;
  --radius: 4px;
  --radius-lg: 12px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--steel-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1;
}

.serif { font-family: var(--font-serif); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

section { padding: clamp(3rem, 8vw, 6rem) 0; }

/* ---------- Noise texture overlay ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(19,15,30,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(218,97,124,0.15);
}

.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo img {
  height: 32px;
  width: auto;
}

.nav__logo span { color: var(--cranberry); }

.nav__links {
  display: flex;
  gap: clamp(0.9rem, 1.5vw, 2rem);
  align-items: center;
}

.nav__link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.2s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--cranberry);
  transition: width 0.3s var(--ease-out-expo);
}

.nav__link:hover, .nav__link.active { color: var(--text-primary); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__cta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  background: var(--cranberry);
  color: #fff;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}

.nav__cta:hover { background: #e8748d; transform: translateY(-1px); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: rgba(19,15,30,0.97);
    backdrop-filter: blur(24px);
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(218,97,124,0.2);
  }

  .nav__link { font-size: 1rem; }
  .nav__cta  { align-self: flex-start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
}

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

.btn--primary {
  background: var(--cranberry);
  color: #fff;
  box-shadow: 0 4px 24px rgba(218,97,124,0.35);
}
.btn--primary:hover { background: #e8748d; box-shadow: 0 6px 32px rgba(218,97,124,0.5); }

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(240,237,248,0.25);
}
.btn--secondary:hover {
  border-color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(240,237,248,0.08);
}

.btn--blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 24px rgba(62,112,159,0.35);
}
.btn--blue:hover { background: #4d83b5; box-shadow: 0 6px 32px rgba(62,112,159,0.5); }

.btn--ghost {
  background: transparent;
  color: var(--cranberry);
  border: 1.5px solid var(--cranberry);
  padding: 0.6rem 1.4rem;
}
.btn--ghost:hover { background: var(--cranberry-dim); }

.btn--sm { font-size: 0.7rem; padding: 0.55rem 1.2rem; }

/* ---------- Section labels ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cranberry);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--cranberry);
}

/* ---------- Page header (sub-pages) ---------- */
.page-header {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--steel-dark) 0%, var(--steel) 100%);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cranberry), transparent);
}

.page-header__title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: var(--text-primary);
}

.page-header__sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ---------- Divider ---------- */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(134,144,156,0.2), transparent);
  margin: 0;
}

/* ---------- Tag / badge ---------- */
.tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(62,112,159,0.3);
}

.tag--cranberry {
  background: var(--cranberry-dim);
  color: var(--cranberry);
  border-color: rgba(218,97,124,0.3);
}

.tag--gray {
  background: rgba(134,144,156,0.12);
  color: var(--gray);
  border-color: rgba(134,144,156,0.25);
}

/* ---------- Cards ---------- */
.card {
  background: var(--steel);
  border: 1px solid rgba(240,237,248,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--steel-dark);
  border-top: 1px solid rgba(240,237,248,0.06);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__logo img {
  height: 40px;
  width: auto;
}

.footer__logo span { color: var(--cranberry); }

.footer__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 26ch;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer__link:hover { color: var(--cranberry); }

.site-location-link {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(240,237,248,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: 1.25rem;
}

.footer__social a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__social a:hover { color: var(--cranberry); }

.footer__sponsors {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(240,237,248,0.06);
}

.footer__sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.footer__sponsors-grid a {
  display: inline-flex;
  transition: transform 0.2s;
  cursor: pointer;
}

.footer__sponsors-grid a:hover {
  transform: scale(1.08);
}

.footer__sponsor-logo {
  height: 50px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s;
  filter: brightness(0.9);
}

.footer__sponsor-logo:hover {
  opacity: 1;
  filter: brightness(1);
}

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__desc { max-width: 100%; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__sponsors-grid { gap: 1rem; }
  .footer__sponsor-logo { height: 40px; }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Glow accent ---------- */
.glow-cranberry {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218,97,124,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.glow-blue {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62,112,159,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--steel-dark); }
::-webkit-scrollbar-thumb { background: var(--steel-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray); }

/* ---------- Selection ---------- */
::selection { background: var(--cranberry); color: #fff; }
