html {
  scroll-behavior: smooth;
}

/* Loader */
/* Loader full-screen overlay */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Hide loader with smooth transition */
#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Safety: once hidden, loader must not intercept taps */
#loader.fade-out { pointer-events: none !important; }


/* Spinner container */
.spinner {
  text-align: center;
}

/* Logo inside spinner */
.spinner img {
  width: 120px;
  animation: pulseLogo 1.5s infinite ease-in-out;
}

/* Animated bouncing dot */
.spinner .bounce {
  width: 20px;
  height: 20px;
  background-color: #000;
  border-radius: 50%;
  margin: 20px auto 0;
  animation: bounce 0.6s infinite alternate;
}

/* Pulse logo */
@keyframes pulseLogo {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Bounce effect */
@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-15px);
  }
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding-top: 100px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #0b090a;
  color: white;
}

/* HEADER */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  height: 50px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin-right: 20px;
  font-size: 1em;
  text-shadow: 1px 1px 4px black;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #ffcc00;
}

.header-right a {
  color: white;
  font-size: 1.2em;
  margin-left: 15px;
  transition: color 0.3s;
}

.header-right a:hover {
  color: #ffcc00;
}

.scrolled .main-header {
  background-color: rgb(20, 15, 11);
}

/* Hero */
#hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-text-block {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: black;
  color: #d1b46f;
  padding: 40px;
  max-width: 550px;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  z-index: 2;
}

.hero-cta-button {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 28px;
  background-color: #d1b46f;
  color: black;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-cta-button:hover {
  background-color: white;
  color: black;
}

.hero-text-block h1 {
  font-size: 3.5em;
  line-height: 1.1;
}

.hero-text-block h1 span {
  display: block;
  font-weight: bold;
  color: #d1b46f;
}

.hero-text-block p {
  margin-top: 20px;
  font-size: 1.1em;
  color: white;
}

/* GENERAL SECTIONS */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2em;
}

/* MENU SECTION */
.menu-item {
  cursor: pointer;
}

#menu {
  background-color: black;
  color: white;
  padding: 80px 60px;
  position: relative; /* Needed for .menu-hover-bg */
}

.menu-container {
  display: flex;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-categories ul {
  list-style: none;
}

.menu-categories li {
  font-size: 1.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.menu-categories li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: #d1b46f;
  transition: width 0.3s ease;
}

.menu-categories li:hover::after,
.menu-categories li.active::after {
  width: 100%;
}

.menu-categories li.active {
  color: #d1b46f;
}

.menu-items {
  flex-grow: 1;
  position: relative;
  z-index: 2;
}
.menu-title-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  margin-bottom: 0.5rem;
}

.menu-title-line h3 {
  margin: 0;
  font-size: 1.3em;
  position: relative;
  color: white;
  transition: color 0.3s ease;
}

.menu-title-line .menu-price {
  font-weight: 600;
  color: #d1b46f;
  white-space: nowrap;
  font-size: 1.2em;
  position: relative;
  transition: color 0.3s ease;
}

/* Dotted line appears below both title and price */
.menu-title-line::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background-image: linear-gradient(
    to right,
    transparent 20%,
    #999 20%,
    #999 40%,
    transparent 40%
  );
  background-size: 10px 1px;
  background-repeat: repeat-x;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.menu-item:hover .menu-title-line::before {
  opacity: 1;
  transform: scaleX(1);
}

/* Hover effect: white title and price */
.menu-item:hover h3,
.menu-item:hover .menu-price {
  color: white;
}

.menu-category-content {
  display: none;
}

.menu-category-content.active {
  display: block;
}

.menu-category-content h3 {
  font-size: 1.5em;
  margin-top: 20px;
  color: #d1b46f;
}

.menu-category-content p {
  margin-bottom: 20px;
}

.menu-item {
  position: relative;
  z-index: 1;
  padding: 20px 0;
  transition: color 0.3s ease;
}

.menu-item:hover {
  color: white;
}

/* Hover Background */
.menu-hover-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 0;
  pointer-events: none;
}

/* Gallery */
#gallery {
  padding: 40px 0;
  text-align: center;
}

.gallery-wrapper {
  position: relative;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
}

.gallery-track-container {
  overflow: hidden;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-track img {
  width: calc(100% / 3);
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  cursor: pointer;
}

.gallery-track:hover img {
  transform: scale(0.9);
  filter: brightness(0.7);
}

.gallery-track img:hover {
  transform: scale(1.1);
  filter: brightness(1);
  z-index: 1;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  z-index: 2;
}

.gallery-btn.prev {
  left: 0;
}

.gallery-btn.next {
  right: 0;
}

/* EVENTS SECTION */
#events {
  background-color: #111;
  color: white;
  padding: 80px 60px;
  text-align: center;
}

.events-container {
  max-width: 1000px;
  margin: 0 auto;
}

.events-cta { 
  text-align: center; 
  margin-top: 24px; 
}


.section-title {
  font-size: 2.5rem;
  font-family: "Playfair Display", serif;
  margin-bottom: 10px;
  color: #d1b46f;
}

.section-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #ccc;
}

.event-cards {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.event-card {
  background-color: #1b1b1b;
  border: 1px solid #333;
  padding: 25px 20px;
  width: 300px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: default;
  z-index: 0;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.event-card h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-family: "Playfair Display", serif;
}

.event-date {
  font-weight: bold;
  color: #d1b46f;
  margin-bottom: 8px;
}

.event-description {
  font-size: 1rem;
  color: #ccc;
}


/* Style the "View Poster" button properly */
.event-open {
  display: inline-block;
  background: #d6b46a;
  color: #000;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 25px;
  cursor: pointer;
  border: none;
  margin-top: 12px;
  transition: background 0.2s ease;
  position: relative; /* ensures it sits above card content */
  z-index: 2;
}

.event-open:hover {
  background: #e1c97f;
}


/* CONTACT */
#contact p {
  text-align: center;
  margin-bottom: 10px;
}

.map iframe {
  border: 0;
  width: 100%;
  height: 300px;
}

/* FOOTER */
footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* Image Modal */
.img-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.img-modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  border: 4px solid white;
}

.img-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.fancy-heading,
#about h2,
#gallery h2,
#contact h2,
#menu h2,
#events h2,
.section-heading h2 {
  font-family: "Fleur De Leah", cursive;
  font-size: 3em;
  color: #d1b46f;
  text-align: center;
  margin-bottom: 30px;
}

/* Override global section styles for hero */
#hero {
  padding: 0;
  max-width: 100%;
  margin: 0;
}

/* Popup card */
.popup-card {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1b1b1b;
  border-radius: 15px;
  padding: 30px 25px;
  width: 90%;
  max-width: 500px;
  z-index: 3000;
  color: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  text-align: left;
}

/* Button style */
.btn-gold {
  background-color: #d1b46f;
  color: black;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-gold:hover {
  background-color: #e1c97f;
}

/* Close button */
.close-btn {
  margin-top: 20px;
  background-color: transparent;
  color: #d1b46f;
  border: 1px solid #d1b46f;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
}

.close-btn:hover {
  background-color: #d1b46f;
  color: black;
}

/* =========================
   MOBILE & TABLET RESPONSES
   ========================= */

/* Tablets and small laptops */
@media (max-width: 1024px) {
  body {
    padding-top: 80px;
  }

  .main-header {
    padding: 12px 20px;
  }
  .nav-menu {
    gap: 10px;
    flex-wrap: wrap;
  }
  .nav-menu a {
    font-size: 0.95em;
  }

  /* Sections */
  section {
    padding: 50px 16px;
  }

  /* Menu layout switches from 2 columns to stacked */
  .menu-container {
    flex-direction: column;
    gap: 24px;
    padding: 0 0;
  }
  .menu-categories ul {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }
  .menu-categories li {
    margin: 0;
    font-size: 1em;
  }

  /* Dots + price line stay readable */
  .menu-title-line h3 {
    font-size: 1.1em;
  }
  .menu-title-line .menu-price {
    font-size: 1.05em;
  }
  .menu-item {
    padding: 16px 0;
  }

  /* Gallery */
  .gallery-container {
    width: 100%;
  }
  .gallery-btn {
    font-size: 22px;
    padding: 6px 10px;
  }
}

/* Phones */
@media (max-width: 600px) {
  body {
    padding-top: 68px;
  }

@media (max-width: 600px) {
    .event-open {
      width: 100%;
      text-align: center;
    }
  }
  

  /* Header */
  .logo {
    font-size: 1.2em;
  }
  .nav-menu {
    gap: 8px;
    justify-content: center;
  }
  .nav-menu a {
    font-size: 0.9em;
  }

  /* Hero (mobile) */
  #hero {
    height: 80vh;
  } /* shorter hero on phones */

  .hero-text-block {
    display: inline-block;
    margin: 10px 12px 0 12px;
    padding: 14px 16px;
    max-width: 92%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  }

  .hero-text-block h1 {
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.15;
  }

  .hero-text-block p {
    font-size: 0.95rem;
  }

  .hero-cta-button {
    margin-top: 12px;
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  /* Generic sections */
  section {
    padding: 40px 14px;
  }

  /* Menu */
  .menu-categories ul {
    gap: 10px;
  }
  .menu-categories li {
    font-size: 0.95em;
  }
  .menu-title-line {
    gap: 10px;
  }
  .menu-title-line h3 {
    font-size: 1em;
  }
  .menu-title-line .menu-price {
    font-size: 1em;
  }
  .menu-item p {
    font-size: 0.95em;
  }

  /* Hover image background should not cover the whole screen on tiny displays */
  .menu-hover-bg {
    left: 0;
    opacity: 0.15;
  }

  /* Gallery */
  .gallery-track img {
    width: 140px;
    height: 100px;
  }
  .gallery-btn {
    font-size: 20px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .nav-menu a {
    font-size: 0.85em;
  }
  .menu-title-line h3,
  .menu-title-line .menu-price {
    font-size: 0.95em;
    .hero-text-block {
      margin: 8px 10px 0 10px;
      padding: 12px 14px;
    }
    .hero-text-block h1 {
      font-size: clamp(20px, 7.5vw, 26px);
    }
  }
}

/* ====== Mobile header: hamburger menu ====== */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-btn .bar {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px 0;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* close state to X */
body.nav-open .mobile-menu-btn .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
body.nav-open .mobile-menu-btn .bar:nth-child(2) {
  opacity: 0;
}
body.nav-open .mobile-menu-btn .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Phone layout */
@media (max-width: 600px) {
  .main-header {
    position: sticky;
    top: 0;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.75); /* darker but see-through */
    backdrop-filter: saturate(120%) blur(6px);
  }

  .logo {
    font-size: 1.05rem;
  }

  .mobile-menu-btn {
    display: inline-block;
    margin-left: auto;
  }

  /* collapse nav into a panel */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  body.nav-open .nav-menu {
    display: flex;
  }

  .nav-menu a {
    font-size: 0.95rem;
    padding: 6px 0;
  }
}

/* ===== Language switcher ===== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
}
.lang-sep {
  opacity: 0.6;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.9em;
  cursor: pointer;
}
.lang-btn.active {
  background: #d4b36d;
  color: #000;
  border-color: #d4b36d;
}
@media (max-width: 600px) {
  .lang-switch {
    margin-right: 6px;
  }
}

/* Events */
.events-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centers a single card */
  gap: 24px;
  margin-top: 24px;
}

.event-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  width: clamp(280px, 32vw, 420px);
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.event-card h3 {
  margin: 0 0 8px;
}

.event-open {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 0;
  background: #d6b46a; /* matches your button style */
  color: #000;
  font-weight: 700;
  cursor: pointer;
}

/* Fix the View Poster button styling */
.event-open {
  display: inline-block;
  background: #d6b46a;
  color: #000;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 25px;
  cursor: pointer;
  border: none;
  margin-top: 12px;
  transition: background 0.2s ease;
}

.event-open:hover {
  background: #e1c97f;
}

/* Fix button clickability */
.event-card {
  position: relative; /* make sure buttons are clickable */
  z-index: 1;
}
.event-open {
  position: relative;
  z-index: 2;
}

/* --- Mobile layout & tap target --- */
@media (max-width: 600px) {
  .event-cards { gap: 18px; }
  .event-card {
    width: 92%;
    margin: 0 auto;
    padding: 20px 16px;
  }
  .event-open {
    width: 100%;
    text-align: center;
  }
}



/* Modal */
.modal[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;               /* center modal */
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 1;
}

.modal-dialog {
  position: relative;
  z-index: 2; 
  background: none;            /* remove dark box for posters */
  border: none;
  padding: 0;
  max-width: 95vw;
  max-height: 90vh;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

#eventPosterImg {
  display: block;
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  margin: auto;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0,0,0,.5);
}


#eventPosterImg {
  display: block;
  max-width: 95vw;
  max-height: 85vh;
  width: auto;      /* don't force width */
  height: auto;     /* keep aspect ratio */
  border-radius: 8px;
}

/* =========================
   Booking Modal Styles
   ========================= */

   #bookingModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #bookingModal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.85);
  }
  
  #bookingModal .modal-dialog {
    position: relative;
    background: #1b1b1b;
    border-radius: 12px;
    padding: 28px 24px;
    max-width: 480px;
    width: 90%;
    color: #fff;
    text-align: left;
    z-index: 2;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  }
  
  #bookingModal h3 {
    margin-bottom: 14px;
    font-size: 1.4rem;
    color: #d1b46f;
  }
  
  #bookingModal p {
    margin-bottom: 10px;
  }
  
  #bookingModal .close-btn {
    margin-top: 16px;
    background-color: transparent;
    color: #d1b46f;
    border: 1px solid #d1b46f;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
  }
  
  #bookingModal .close-btn:hover {
    background-color: #d1b46f;
    color: black;
  }
  
/* Booking modal: never intercept clicks when closed */
#bookingModal {
  position: fixed;
  inset: 0;
  z-index: 9998;              /* below poster modal if it uses 9999 */
  display: flex;              /* layout is ready… */
  align-items: center;
  justify-content: center;
  visibility: hidden;         /* …but fully hidden by default */
  pointer-events: none;       /* cannot catch taps when hidden */
}

#bookingModal.open {
  visibility: visible;        /* show when open */
  pointer-events: auto;       /* accept taps when open */
}

/* keep your existing inner styles (backdrop/dialog/colors) */


