@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Manrope:wght@400;500;600;700&family=Kaushan+Script&display=swap');

:root {
  --bg: #060606;
  --bg-panel: #0e0e0e;
  --text: #f5f3ef;
  --text-dim: #b9b6b1;
  --coral: #ff5a5f;
  --gold: #ffb627;
  --teal: #2ec4b6;
  --violet: #8b5cf6;
  --focus: var(--gold);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Manrope', sans-serif;
  /* SWAP: Kaushan Script approximates the logo's brush lettering, swap for the exact logo typeface if licensed for web use */
  --font-logo: 'Kaushan Script', cursive;
  --gradient-cta: linear-gradient(135deg, var(--coral), var(--gold));
  --header-h: 110px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Load screen */
#load-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 0.6s ease;
}
#load-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.load-logo {
  width: 140px;
  height: auto;
  opacity: 0;
  animation: bounce-in 0.9s cubic-bezier(.34, 1.56, .64, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .load-logo { animation: fade-in 0.4s ease forwards; }
}
@keyframes bounce-in {
  0% { opacity: 0; transform: scale(0.3) translateY(40px); }
  60% { opacity: 1; transform: scale(1.08) translateY(-8px); }
  80% { transform: scale(0.97) translateY(2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.no-scroll { overflow: hidden; }

/* Header / nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent);
}
.brand-logo { height: 76px; width: auto; }

/* Desktop nav: hidden by default, swapped in for the hamburger at wider viewports */
.desktop-nav { display: none; }
.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.desktop-nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.1rem;
  position: relative;
  transition: color 0.2s ease;
}
.desktop-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gradient-cta);
  transition: right 0.25s ease;
}
.desktop-nav-link:hover { color: var(--coral); }
.desktop-nav-link:hover::after { right: 0; }

.nav-toggle {
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 880px) {
  .desktop-nav {
    display: flex;
    margin-left: auto;
    margin-right: 2rem;
  }
  .nav-toggle { display: none; }
}

/* Sticky Instagram link */
.ig-fab {
  position: fixed;
  right: calc(1.1rem + env(safe-area-inset-right));
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(45deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4);
  box-shadow: 0 10px 28px -6px rgba(0,0,0,0.6);
  z-index: 150;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ig-fab:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 14px 34px -6px rgba(0,0,0,0.7);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,6,6,0.97);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.nav-overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.nav-overlay li { margin: 1.4rem 0; }
.nav-link {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 700;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}
.nav-link:hover { color: var(--coral); }

/* Hero: plays once on load, no scroll dependency */
.hero {
  position: relative;
  height: 100vh;
  background: #000;
}
.hero-stage {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bear-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
}

.hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 4rem 1.5rem 3.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.88), rgba(0,0,0,0.35) 60%, transparent);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}
.hero-overlay.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-tagline {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: clamp(1.9rem, 7vw, 3.4rem);
  line-height: 1.2;
  text-align: center;
  color: var(--text);
  margin: 0;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.hero-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1.2rem 3rem;
  border-radius: 999px;
  border: none;
  background: var(--gradient-cta);
  color: #000;
  cursor: pointer;
  box-shadow: 0 10px 34px -8px rgba(255, 90, 95, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: cta-pulse 2.6s ease-in-out infinite;
}
.hero-cta:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 44px -8px rgba(255, 182, 39, 0.8);
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 10px 34px -8px rgba(255, 90, 95, 0.7); }
  50% { box-shadow: 0 10px 44px -4px rgba(255, 182, 39, 0.85); }
}

/* Reduced motion: static hero, no playback, overlay visible immediately */
.reduced-motion .hero-stage {
  background-image: url('https://res.cloudinary.com/dg8kvnrpj/video/upload/so_4.9/GROK_BEARS_uuess8.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.reduced-motion .bear-video { display: none; }
.reduced-motion .hero-cta { animation: none; }

/* Animated rainbow graffiti canvas, fixed behind every section below the hero */
.graffiti-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--coral);
  color: var(--coral);
  box-shadow: 0 0 0 rgba(255, 90, 95, 0);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-outline:hover {
  background: var(--gradient-cta);
  border-color: transparent;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(255, 90, 95, 0.6);
}
.btn-solid {
  background: var(--gradient-cta);
  border: none;
  color: #000;
  width: 100%;
  box-shadow: 0 8px 26px -8px rgba(255, 90, 95, 0.6);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 32px -6px rgba(255, 182, 39, 0.7); }

.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Gallery */
.gallery-section { padding: 4rem 1.5rem 6rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
}
@media (min-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-item {
  border: none;
  padding: 0;
  background: var(--bg-panel);
  overflow: hidden;
  cursor: pointer;
  border-radius: 6px;
  line-height: 0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* Parties */
.parties-section {
  padding: 5rem 1.5rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.parties-copy {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Visit */
.visit-section { padding: 5rem 1.5rem 6rem; }
.visit-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .visit-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.visit-info h3 {
  font-size: 1.1rem;
  color: var(--gold);
  margin: 1.5rem 0 0.75rem;
}
.visit-info h3:first-child { margin-top: 0; }
.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
}
.nap { font-style: normal; line-height: 1.7; }
.nap a { color: var(--teal); text-decoration: underline; }
.visit-map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 6px;
}

/* Footer */
.site-footer {
  position: relative;
  background: rgba(14, 14, 14, 0.86);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  text-align: center;
}
.social-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}
.social-list a { color: var(--text-dim); }
.social-list a:hover { color: var(--violet); }
.copyright {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--bg-panel);
  border-radius: 10px;
  padding: 2rem;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}
.modal h2 { margin-bottom: 1.2rem; font-size: 1.6rem; }
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.modal form {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.modal label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.6rem;
}
.modal input,
.modal select,
.modal textarea {
  background: #181818;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
}
.modal textarea { resize: vertical; }
.modal .btn-solid { margin-top: 1.2rem; }
.honeypot { position: absolute; left: -9999px; }

.modal-visit hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 1.6rem 0 1.2rem;
}
.nap-small {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 0.9rem;
}
.nap-small a { color: var(--teal); text-decoration: underline; }
.modal-map iframe {
  width: 100%;
  height: 160px;
  border: 0;
  border-radius: 6px;
  display: block;
}

@media (max-width: 360px) {
  .parties-copy { font-size: 1rem; }
  .modal { padding: 1.5rem; }
}
