/* ===== Variables ===== */
:root {
  --color-bg: #0d0d0f;
  --color-bg-elevated: #16161a;
  --color-text: #e8e6e3;
  --color-text-muted: #a8a6a3;
  --color-accent: #c9a227;
  --color-accent-light: #e5c65c;
  --color-accent-hover: #d4af37;
  --font-display: "Bodoni Moda", "Georgia", serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --gradient-gold: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 50%, var(--color-accent) 100%);
  --gradient-gold-subtle: linear-gradient(90deg, transparent 0%, rgb(201 162 39 / 30%) 50%, transparent 100%);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 5rem;
  --max-width: 75rem;
  --section-min-height: 85vh;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.5s;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ===== Reset / Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--color-accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: var(--section-min-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  padding-bottom: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgb(13 13 15 / 40%) 0%,
      rgb(13 13 15 / 60%) 35%,
      rgb(13 13 15 / 80%) 65%,
      var(--color-bg) 100%),
    linear-gradient(160deg, rgb(201 162 39 / 6%) 0%, transparent 40%),
    url("images/hero-bg.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.hero-content::after {
  content: "";
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.6;
  border-radius: 1px;
}

.hero-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-lg);
  max-width: calc(100vw - 4rem);
  margin: 0 auto;
  background: linear-gradient(145deg, rgb(18 18 20 / 55%) 0%, rgb(13 13 15 / 60%) 100%);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: none;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 4%) inset,
    0 8px 32px rgb(0 0 0 / 40%);
  animation: hero-brand-in var(--duration-slow) var(--ease-out-expo) 0.2s both;
}

.hero-brand::before {
  content: none;
}

@keyframes hero-brand-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand-logo {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

@media (width <=900px) {
  .hero-title {
    font-size: clamp(1.35rem, 3.5vw, 2rem);
  }
}

.hero-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  color: var(--color-text);
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
  min-width: 0;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  font-weight: 500;
  color: var(--color-text);
  opacity: 0.9;
  text-align: center;
  max-width: 28em;
  line-height: 1.4;
}

/* Hero cards at bottom */
.hero-cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-xl);
  margin-top: auto;
}

.hero-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--color-text);
  min-height: 140px;
  animation: hero-card-in var(--duration-slow) var(--ease-out-expo) both;
  transition: transform var(--duration-normal) var(--ease-out-quart),
    box-shadow var(--duration-slow) var(--ease-out-quart);
  box-shadow: 0 4px 24px rgb(0 0 0 / 25%);
}

.hero-card:nth-child(1) {
  animation-delay: 0.4s;
}

.hero-card:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-card:nth-child(3) {
  animation-delay: 0.6s;
}

.hero-card:nth-child(4) {
  animation-delay: 0.7s;
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgb(0 0 0 / 35%), 0 0 0 1px rgb(201 162 39 / 20%);
}

@keyframes hero-card-in {
  from {
    opacity: 0;
    transform: translateY(2rem) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 80%) 0%, rgb(0 0 0 / 25%) 45%, transparent 100%);
  z-index: 1;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgb(201 162 39 / 0%) 0%, rgb(201 162 39 / 8%) 100%);
  opacity: 0;
  transition: opacity var(--duration-slow) ease;
  z-index: 1;
  pointer-events: none;
}

.hero-card:hover::after {
  opacity: 1;
}

.hero-card-bg {
  position: absolute;
  inset: 0;
  background: var(--card-bg) center / cover no-repeat;
  transition: transform var(--duration-slow) var(--ease-out-quart);
}

.hero-card:hover .hero-card-bg {
  transform: scale(1.08);
}

.hero-card--bar .hero-card-bg {
  --card-bg: url("images/bar1.JPG");
}

.hero-card--nightclub .hero-card-bg {
  --card-bg: url("images/nightclub1.JPG");
}

.hero-card--karaoke .hero-card-bg {
  --card-bg: url("https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80");

  background: var(--card-bg) center / cover no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-card--biljardi .hero-card-bg {
  --card-bg: url("images/pool.JPG");
}

.hero-card-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  padding-bottom: var(--space-md);
  text-shadow: 0 1px 3px rgb(0 0 0 / 80%);
}

/* ===== Venue sections ===== */
#bar {
  display: none;
}

.venue-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  max-width: var(--max-width);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

/* Section backgrounds – layered over base dark, no layout change */
.venue-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  z-index: 0;
  pointer-events: none;
}

.venue-section--bar::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgb(201 162 39 / 12%) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 80% 80%, rgb(180 120 60 / 8%) 0%, transparent 50%),
    linear-gradient(180deg,
      var(--color-bg) 0%,
      var(--color-bg) 12%,
      rgb(18 15 12) 50%,
      var(--color-bg) 88%,
      var(--color-bg) 100%);
}

.venue-section--nightclub::before {
  background:
    radial-gradient(ellipse 70% 50% at 70% 30%, rgb(120 60 180 / 14%) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 70%, rgb(80 40 120 / 10%) 0%, transparent 50%),
    linear-gradient(180deg,
      var(--color-bg) 0%,
      var(--color-bg) 12%,
      rgb(16 12 20) 50%,
      var(--color-bg) 88%,
      var(--color-bg) 100%);
}

.venue-section--karaoke::before {
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgb(60 100 160 / 10%) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 90% 20%, rgb(80 120 180 / 8%) 0%, transparent 50%),
    linear-gradient(180deg,
      var(--color-bg) 0%,
      var(--color-bg) 12%,
      rgb(12 14 18) 50%,
      var(--color-bg) 88%,
      var(--color-bg) 100%);
}

.venue-section--biljardi::before {
  background:
    radial-gradient(ellipse 70% 60% at 30% 60%, rgb(40 80 50 / 12%) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 80% 30%, rgb(30 60 40 / 8%) 0%, transparent 50%),
    linear-gradient(180deg,
      var(--color-bg) 0%,
      var(--color-bg) 12%,
      rgb(12 15 13) 50%,
      var(--color-bg) 88%,
      var(--color-bg) 100%);
}

.venue-section .venue-header,
.venue-section .venue-gallery {
  position: relative;
  z-index: 1;
}

.venue-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgb(201 162 39 / 12%) 20%, rgb(201 162 39 / 20%) 50%, rgb(201 162 39 / 12%) 80%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.venue-section:last-of-type::after {
  display: none;
}

.venue-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.venue-section:nth-child(even) .venue-content {
  order: 2;
}

.venue-section:nth-child(even) .venue-image-wrap {
  order: 1;
}

.venue-content {
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.venue-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

.venue-text {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 32ch;
}

.venue-image-wrap {
  min-height: 320px;
  overflow: hidden;
}

.venue-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

/* Bar section: title + text + image gallery (stacked layout) */
.venue-section--stacked {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-height: auto;
}

.venue-section--stacked .venue-header {
  padding: var(--space-2xl) var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.venue-section--stacked .venue-title {
  margin-bottom: var(--space-sm);
}

.venue-title-line {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  max-width: 5rem;
  margin: 0 0 var(--space-md);
  border: 0;
}

.venue-title-line::before {
  content: "";
  flex: 1;
  height: 1px;
  min-width: 2rem;
  background: linear-gradient(90deg, var(--color-accent), rgb(201 162 39 / 50%));
}

.venue-title-line::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px rgb(201 162 39 / 60%);
}

.venue-section--stacked .venue-text {
  max-width: none;
}

.venue-gallery {
  display: flex;
  gap: var(--space-md);
  padding: 0 var(--space-xl) var(--space-2xl);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  transition: gap 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.venue-gallery:hover {
  gap: 0;
}

.venue-gallery-item {
  flex: 1 1 0;
  min-width: 0;
  height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  justify-content: center;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow var(--duration-slow) var(--ease-out-quart);
  box-shadow: 0 4px 20px rgb(0 0 0 / 25%);
}

.venue-gallery-item:hover .venue-image {
  transform: scale(1.05);
}

.venue-gallery-item:hover {
  flex: 1 1 100%;
  box-shadow: 0 8px 32px rgb(0 0 0 / 35%), 0 0 0 1px rgb(201 162 39 / 18%);
}

.venue-gallery-item .venue-image {
  height: 100%;
  width: var(--max-width);
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
  transition: transform var(--duration-slow) var(--ease-out-quart);
}

/* ===== Events ===== */
#events.events-section {
  display: none;
}

.events-section {
  position: relative;
  padding: var(--space-2xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

.events-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgb(201 162 39 / 8%) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 20% 100%, rgb(201 162 39 / 5%) 0%, transparent 45%),
    linear-gradient(180deg,
      var(--color-bg) 0%,
      var(--color-bg) 12%,
      rgb(14 14 16) 50%,
      var(--color-bg) 88%,
      var(--color-bg) 100%);
}

.events-section .events-title,
.events-section .events-list {
  position: relative;
  z-index: 1;
}

.events-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.events-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0 0 var(--space-xl);
  color: var(--color-text);
}

.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.event-card {
  background: linear-gradient(145deg, rgb(22 22 26 / 98%) 0%, var(--color-bg-elevated) 100%);
  padding: var(--space-lg);
  border-radius: var(--radius-sm);
  border: 1px solid rgb(201 162 39 / 18%);
  transition: transform var(--duration-normal) var(--ease-out-quart),
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-normal) ease;
  box-shadow: 0 2px 12px rgb(0 0 0 / 15%);
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: rgb(201 162 39 / 40%);
  box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
}

.event-date {
  display: block;
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.event-venue {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: var(--space-sm);
}

.event-venue--bar {
  background: rgb(201 162 39 / 20%);
  color: var(--color-accent);
}

.event-venue--nightclub {
  background: rgb(180 100 200 / 25%);
  color: #c88ce0;
}

.event-venue--karaoke {
  background: rgb(100 160 220 / 25%);
  color: #7eb8f0;
}

.event-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  color: var(--color-text);
}

.event-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  padding: var(--space-xl) var(--space-xl);
  background:
    linear-gradient(180deg,
      var(--color-bg) 0%,
      var(--color-bg) 20%,
      rgb(10 10 12) 100%);
  border-top: 1px solid rgb(255 255 255 / 6%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgb(201 162 39 / 25%) 30%, rgb(201 162 39 / 35%) 50%, rgb(201 162 39 / 25%) 70%, transparent 100%);
  pointer-events: none;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-logo {
  display: none;
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin: 0;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-text);
  font-size: 0.9375rem;
}

.footer-location {
  text-transform: lowercase;
}

.footer-hours {
  color: var(--color-text-muted);
}

.footer-social {
  display: none;
  align-items: center;
  gap: var(--space-md);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out-quart);
}

.footer-social-link:hover {
  color: var(--color-accent);
  transform: scale(1.15);
}

.footer-social-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* ===== Responsive ===== */
@media (width <=768px) {
  .hero-cards {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 var(--space-md) var(--space-lg);
  }

  .hero-brand {
    padding: var(--space-sm) var(--space-lg);
    gap: var(--space-sm);
    max-width: min(calc(100vw - 1.5rem), 38rem);
  }

  .hero-title {
    font-size: clamp(1.25rem, 3.2vw, 1.75rem);
    letter-spacing: 0.05em;
  }

  .venue-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .venue-section .venue-content,
  .venue-section .venue-image-wrap {
    order: unset;
  }

  .venue-gallery {
    flex-direction: column;
    padding: 0 var(--space-md) var(--space-xl);
  }

  .venue-gallery:hover {
    gap: var(--space-md);
  }

  .venue-gallery-item {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }

  .venue-gallery-item:hover {
    flex: 1 1 auto;
  }

  .venue-gallery-item .venue-image {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .venue-section--stacked .venue-header {
    padding: var(--space-xl) var(--space-md) var(--space-lg);
  }

  .venue-content {
    padding: var(--space-xl) var(--space-md);
  }

  .venue-image-wrap {
    min-height: 260px;
  }

  .venue-image {
    min-height: 260px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }
}

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

@media (width <=480px) {
  .hero {
    padding: var(--space-xl) var(--space-md);
  }

  .hero-brand {
    padding: var(--space-xs) var(--space-md);
    gap: var(--space-xs);
    max-width: min(calc(100vw - 1rem), 24rem);
  }

  .hero-title {
    font-size: clamp(0.75rem, 4.5vw, 1.125rem);
    letter-spacing: 0.04em;
  }

  .hero-brand-logo {
    width: 2rem;
    height: 2rem;
  }

  .hero-cards {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  .hero-card {
    aspect-ratio: 16 / 9;
    min-height: 120px;
  }

  .events-list {
    grid-template-columns: 1fr;
  }

  .venue-gallery {
    flex-direction: column;
    padding: 0 var(--space-md) var(--space-lg);
  }

  .venue-gallery-item {
    flex: 1 1 auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 180px;
  }

  .venue-gallery-item:hover {
    flex: 1 1 auto;
  }

  .venue-gallery-item .venue-image {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
  }
}