/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Lexend';
  color: #fff;
  background: linear-gradient(180deg,  #814b32, #d07c39, #ffb347);
  background-attachment: fixed;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* #2c1d1d, #4c2b25,*/
a {
  text-decoration: none;
  color: inherit;
}

/* Standard logo sizing */
img.logo {
  max-width: 250px;
  height: auto;
}

@media (max-width: 768px) {
  img.logo {
    max-width: 120px;
  }
}


/* ========== LOADER ========== */
#loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #814b32, #d07c39, #ffb347);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.waveform-loader {
  width: 80px;
  height: 80px;
}

.waveform-loader rect {
  fill: #fff3e6;
  -webkit-animation: wave 1s infinite ease-in-out;
  animation: wave 1s infinite ease-in-out;
}
.waveform-loader rect:nth-child(2) { animation-delay: 0.1s; }
.waveform-loader rect:nth-child(3) { animation-delay: 0.2s; }
.waveform-loader rect:nth-child(4) { animation-delay: 0.3s; }
.waveform-loader rect:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { height: 20px; y: 40px; }
  50% { height: 50px; y: 25px; }
}



/* ========== NAVIGATION ========== */

/* Desktop Nav */
.desktop-header {
  position: fixed;
  top: 1rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 100;
  background: transparent;
}

.desktop-logo img {
  max-width: 100px;
  height: auto;
}

.desktop-nav {
  display: none;
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 1rem 2rem;
  z-index: 100;
}

.desktop-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.desktop-nav a {
  color: #fcfcfc;
  font-weight: bold;
  font-size: 1.25rem;
}

.desktop-nav a:hover {
  color: #f6931d;
}
/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 1rem;
  left: 0;
  width: 100%;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.mobile-logo img.logo{
  max-width: 80px;
  height: auto;
}

#menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 100;
}

#mobileMenu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: auto;
  background-color: rgba(0, 0, 0, 0.95);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  z-index: 99;
}

#mobileMenu.show {
  transform: translateY(0);
}

.mobile-menu-logo {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

#mobileMenu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#mobileMenu a {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: bold;
}

#mobileMenu {
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

#mobileMenu.show {
  transform: translateY(0);
}

/* Show desktop nav on large screens */
@media (min-width: 768px) {
  .desktop-nav {
    display: block;
  }

  .mobile-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .desktop-logo {
    display: none;
  }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}


.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  -webkit-transition: opacity 1s ease-in-out;
  -moz-transition: opacity 1s ease-in-out;
  -ms-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}
.hero-overlay {
  position: relative;
  z-index: 10;
  height: 100%;
  width: 100%;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 100%;
  background: rgba(30, 20, 10, 0.5);
  opacity: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 600px) {
  .hero-main-text {
    font-size: 9rem; /* tighten */
    padding: 0 1rem;   /* wrap help */
  }

  .hero-overlay {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-overlay {
    padding: 2rem;
  }

  .hero-main-text {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-sub-text {
    font-size: 1.2rem;
  }
}

.hero-main-text {
  font-size: clamp(1.5rem, 6vw, 3rem);
  font-weight: 900;
  color: #ffe2c3;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.mouse-trail {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 0, 0.2), transparent 80%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 4;
  filter: blur(20px);
  transform: translate(-50%, -50%);
  transition: top 0.05s ease-out, left 0.05s ease-out;
  z-index: 5;
}

/* ========== curated culture========== */
.curated-culture {
  padding: 6rem 2rem;
  background: url('/assets/images/bg.png') center/cover no-repeat;
  color: #ffe;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.curated-culture::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 20, 10, 0.3); /* warm cocoa vibe */
  z-index: 0;
}

/* Make sure inner content stays above overlay */
.curated-culture > * {
  position: relative;
  z-index: 1;
}
/* Floating Scroll Reveal */
.floating-text {
  text-align: center;
  margin-bottom: 2rem;
}
.culture-line {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.4;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  color: #ffdf9b;
}
.spicy-word {
  color: #ffc86b;
  font-weight: 600;
}

/* Typewriter Text */
.typewriter-section {
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin: 6rem 0;
  color: #f5e0b4;
  min-height: 6.5rem; /* enough for 2 wrapped lines on mobile */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.typewriter-text {
  max-width: 90%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}


@media (max-width: 768px) {
  .curated-culture {
    background-position: center;
    background-size: cover;
  }

  .culture-line, .pin-line {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .typewriter-section {
    min-height: 8rem;
  }
}


/*Seasoned Sundays Highlight*/
/* Countdown */
.ss-countdown {
  text-align: center;
  padding: 3rem 1rem;
}

.ss-countdown h2 {
  font-size: 2.5rem;
}

.countdown {
  font-size: 2rem;
  margin-top: 1rem;
  color: #ffe2c3
}

/*UPcoming events*/
.event-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.event-card p,
.event-card ul {
  font-size: 1rem;
  color: #555;
}

.event-card ul {
  padding-left: 1.2rem;
  list-style-type: disc;
}

.cta-link {
  display: inline-block;
  margin-top: 1rem;
  background: #f4b400;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.cta-link:hover {
  background: #e0a800;
}

/* ========== EVENTS UPCOMING ========== */
.upcoming-events {
  padding: 3rem 2rem;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.05em;
  font-weight: 700;
  position: relative;
}

.subtitle {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.event-card {
  perspective: 1000px;
  position: relative;
}

.event-front, .event-back {
  border-radius: 1rem;
  padding: 1.5rem;
  backface-visibility: hidden;
  transition: transform 0.6s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.event-front {
  background-size: cover;
  background-position: center;
  height: 350px;
  color: white;
  display: flex;
  align-items: flex-end;
  justify-content: start;
}

.event-back {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: #4c2b25;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 20px rgba(255, 179, 71, 0.2), 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffe;
  text-align: center;
  z-index: 2;
}

.event-back h4 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: #ffc86b;
}

.event-back p {
  margin: 0.3rem 0;
  font-size: 1.5rem;
  color: #f0e6d2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-back i {
  color: #ffc86b;
  font-size: 1.2rem;
}

.btn-tickets {
  display: inline-block;
  margin-top: 1rem;
  background: #ffc86b;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  color: #1a1a1a;
  font-weight: bold;
  box-shadow: 0 4px 14px rgba(255, 179, 71, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-tickets:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 179, 71, 0.5);
}

.event-card:hover .event-front {
  transform: rotateY(180deg);
}

.event-card:hover .event-back {
  transform: rotateY(0);
}

.event-back::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,179,71,0.08) 0%, transparent 80%);
  border-radius: inherit;
  z-index: -1;
}

/* Prompt text on mobile */
.event-card .tap提示 {
  display: none;
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 0.5rem;
}
@media (max-width: 768px) {
  .event-card .tap提示 {
    display: block;
  }
}

.event-card.flipped .event-front {
  transform: rotateY(180deg);
}
.event-card.flipped .event-back {
  transform: rotateY(0);
}

/* ========== CALENDAR ========== */
/* ========== RESPONSIVE EVENT CALENDAR ========== */
.calendar-section {
    padding: 3rem 1rem; /* Reduced horizontal padding for mobile */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    margin: 1rem;
    color: #ffe;
    text-align: center;
}

.calendar-container {
    background: rgba(33, 17, 17, 0.85);
    padding: 1.5rem; /* Reduced padding for mobile */
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(255, 179, 71, 0.2);
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.section-title {
    color: #ffc86b;
    margin-bottom: 2rem;
    font-size: 2.25rem;
}

.calendar-controls {
    display: flex;
    justify-content: space-between; /* Better spacing */
    align-items: center;
    margin-bottom: 1.5rem;
}

#current-month-year {
    font-size: 1.5rem;
    margin: 0 1rem;
}

.calendar-controls button {
    background: #ffb347;
    border: none;
    color: #111;
    padding: 0.5rem 1rem;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calendar-controls button:hover {
    background: #ffc86b;
    transform: scale(1.05);
}

/* === Desktop: Grid Layout === */
.calendar-header,
.calendar-grid {
    display: grid;
    /* This is the correct 7-day week grid */
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-header {
    font-weight: bold;
    color: #ffc86b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-header-cell {
    text-align: center;
}

.calendar-cell {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.75rem;
    border-radius: 10px;
    min-height: 120px;
    position: relative;
    transition: transform 0.2s ease, background 0.2s ease;
    display: flex;
    flex-direction: column;
}

.calendar-cell.empty {
    background: transparent;
    pointer-events: none;
}

.calendar-cell:not(.empty):hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.calendar-cell.today {
    border: 2px solid #ffb347;
    background: rgba(255, 255, 255, 0.15);
}

.calendar-cell .date-num {
    font-weight: bold;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.event-label {
    background: #ffb347;
    color: #1a1a1a;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-block;
    margin-top: auto; /* Pushes event to the bottom */
    align-self: flex-start;
    /* Prevents long text from breaking layout */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ========== Mobile Responsive Adjustments ========== */
@media (max-width: 768px) {
    .calendar-section, .calendar-container {
        padding: 1rem;
        margin: 0.5rem;
    }

    #current-month-year {
        font-size: 1.2rem;
    }

    /* Hide the "S M T W T F S" header on mobile, it's not needed for a list */
    .calendar-header {
        display: none;
    }

    /* Transform the grid into a vertical flex container (a list) */
    .calendar-grid {
        display: flex;
        flex-direction: column;
        gap: 0.75rem; /* Space between list items */
    }

    /* On mobile, hide all calendar cells by default */
    .calendar-cell {
        display: none;
    }

    /* ONLY show cells that have an event */
    .calendar-cell.has-event {
        display: flex;
        flex-direction: row; /* Arrange items horizontally */
        justify-content: space-between;
        align-items: center;
        min-height: 0; /* Reset min-height for compatibility */
        padding: 1rem;
        background: rgba(255, 255, 255, 0.1);
    }

    .calendar-cell.has-event .date-num {
        margin: 0;
        font-size: 1rem;
    }

    .calendar-cell.has-event .event-label {
        margin: 0;
        font-size: 0.85rem;
        align-self: center;
        margin-left: 1rem; /* Space between date and event label */
    }

    .calendar-cell.today {
       border-width: 3px; /* Make today's border more prominent */
    }
}

/* ========== SPONSORS MARQUEE ========== */

.sponsors-wrapper {
  overflow: hidden; /* This is crucial for the marquee effect */
  position: relative;
  /* Add padding so logos aren't flush against the edge */
  padding: 60px 0;
}

.sponsors-track {
  display: flex;
  gap: 20px;
  /*Alignsalllogosinasinglehorizontalline
  -webkit-animation: scrollLeft 20s linear infinite;
  animation: scrollLeft 20s linear infinite;*/
}

.sponsor-logo {
  flex-shrink: 0; /* Prevents logos from being squished */
  width: 200px; /* Give logos a consistent width */
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logo img {
  width: 100%;
  /* Set a max-height to prevent tall logos from breaking the layout */
  max-height: 150px;
  object-fit: contain; /* Ensures the entire logo is visible */
  transition: transform 0.3s ease; /* For a nice hover effect */
}

.sponsor-logo img:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .sponsor-logo { width: 100px; }
  .sponsor-logo img { max-height: 70px; }
  .sponsors-wrapper {
    margin-bottom: 0;
  }
}

/* Define the CSS animation
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
*/
/* ========== FOOTER ========== */
.site-footer {
  position: relative;
  padding: 4rem 2rem 3rem;
  margin-bottom: 2rem;
  color: #ffffff;
  font-size: 1.5rem;
  overflow: hidden;
  z-index: 10;
  background: transparent;
}

.footer-columns {
  align-items: stretch;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.footer-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 200px;
  height: auto;
  background: linear-gradient(180deg,  #814b32, #d07c39);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(255, 200, 107, 0.05);
}

.footer-brand {
  background: transparent;
  box-shadow: none;
}

.footer-logo-img {
  max-width: 150px;
  height: 150px;
}

.footer-col h4 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ffc86b;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: #ffffff;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #4c2b25;
}

.copy {
  font-size: 1.2rem;
  margin-top: 1rem;
  color: #777;
}

.social {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

.social-link {
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  color: #fff;
  transition: background 0.3s ease;
  -webkit-border-radius: 30%;
  -moz-border-radius:30%;
  -ms-border-radius: 30%;
  -o-border-radius: 30%;
  border-radius: 30%;
}

.social-link:hover {
  background: #ffc86b;
  color: #1a0e05;
}

.footer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  /*background: linear-gradient(
    to top,
    rgba(93, 51, 6, 0.9) 20%,
    rgba(93, 51, 6, 0.4) 60%,
    transparent 100%
  );*/
}

@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-col {
    padding: 1.5rem;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .site-footer {
        margin-bottom: 4rem;
    }
  .footer-content {
    flex-direction: column;
    align-items:start;
    text-align: left;
    font-size: 1.5rem;
  }

  .footer-column {
    margin-bottom: 2rem;
  }

  .social-icons a {
    margin-right: 0.75rem;
  }
}

/* ========== NEWSLETTER CARD ========== */
.newsletter-card {
  position: relative;
  width: 100%;
  padding: 5rem 2rem;
  color: #1a0e05;
  background: transparent;
  text-align: center;
  z-index: 5;
  overflow: hidden;
  margin-top: -2rem;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.newsletter-form input {
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background: #2b1a10;
  color: #ffc86b;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: #1a0e05;
}

.newsletter-form p {
  transition: all 0.4s ease;
  font-weight: bold;
}


/* ========EVENT WIDGET ========= */
.event-widget {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #2b1a10;
  color: #ffdf9b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
  font-size: 1rem;
  z-index: 9999;
  animation: slideUp 0.5s ease forwards;
}

.event-cta {
  background: #ffc86b;
  color: #2b1a10;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.event-cta:hover {
  background: #ffb347;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  .event-widget {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}