/* styles.css — REPLACE your existing custom CSS with this file */

/* Fonts (optional; browser will fetch) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --brand-red: #b91c1c;
  --brand-orange: #f97316;
  --brand-gold: #fcd34d;
  --muted: #6b7280;
}
/* Prevent horizontal scrolling */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Ensure sections don’t push beyond viewport */
section {
  overflow-x: hidden;
}
/* Base */
body {
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial;
  background: #fff7ed;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Section headings ---------- */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; /* h2 size */
  font-weight: 700;
  color: var(--brand-red);
  position: relative;
  margin-bottom: 0.5rem;
  text-align: center;
  line-height: 1.05;
}

/* gold underline */
.section-title::after {
  content: '';
  width: 72px;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-gold), #fbbf24);
  display: block;
  margin: 10px auto 0;
  border-radius: 3px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* subtitle under H2 */
.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
  font-style: italic;
  text-align: center;
}

/* ---------- Hero ---------- */
header#hero {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  height: 88vh;
  min-height: 560px;
}

header#hero .hero-content,
header#hero .relative {
  position: relative;
  z-index: 2;
}

/* stronger text-shadow on hero for readability */
header#hero h1,
header#hero p {
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

/* ---------- Parallax sections (overlay + stacking) ---------- */
/* Use overlay pseudo-element so text remains readable regardless of image */
#highlights,
#sponsors {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  /* fallback color when image missing */
  background-color: var(--brand-red);
  color: #fff;
}

/* dark overlay */
#highlights::before,
#sponsors::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
  z-index: 0;
}

/* ensure direct inner elements appear above overlay */
#highlights > *,
#highlights img,
#highlights .rounded-xl,
#highlights h2,
#highlights p,
#highlights li,
#highlights .section-title,
#highlights .section-subtitle,
#highlights .sponsor-box,
#highlights .ticket-card,
#highlights .book-form,
#highlights .ticket-options {
  position: relative;
  z-index: 2;
  color: #fff;
}

/* Make list items readable on parallax too */
#highlights ul li {
  color: #fff;
}

/* If you want slightly translucent boxes on parallax sections (e.g. cards) */
.parallax-card {
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  color: #fff;
}

/* ---------- Section background alternation ---------- */
#about {
  background: #fff;
}
#highlights {
  /* background-image set inline or via earlier CSS */
}
#tickets {
  background: #fff;
}
#sponsors {
  /* background-image set inline or via earlier CSS */
}
#contact {
  background: #fff;
}

/* ---------- Tickets ---------- */
.ticket-card {
  border: 3px solid transparent;
  background: #fff;
  transition: all 0.4s ease;
  text-align: center;
  padding: 2rem 1.5rem;
  cursor: pointer;
  position: relative;
}
.ticket-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.ticket-card p {
  font-size: 0.95rem;
  color: #6b7280;
}
.ticket-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Platinum */
.ticket-card.platinum {
  border-color: #fbbf24;
  background: linear-gradient(180deg, #fff, #fef9c3);
}
.ticket-card.platinum h2 {
  color: #92400e;
}
.ticket-card.platinum .ticket-price {
  color: #b45309;
}

/* Gold */
.ticket-card.gold {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fff, #fffbeb);
}
.ticket-card.gold h2 {
  color: #78350f;
}
.ticket-card.gold .ticket-price {
  color: #d97706;
}

/* Silver */
.ticket-card.silver {
  border-color: #9ca3af;
  background: linear-gradient(180deg, #fff, #f3f4f6);
}
.ticket-card.silver h2 {
  color: #374151;
}
.ticket-card.silver .ticket-price {
  color: #4b5563;
}
.ticket-card.active {
  border: 3px solid var(--brand-orange);
  background: linear-gradient(180deg, #fff7ed, #ffe5d0);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
  transform: scale(1.05);
  transition: all 0.3s ease;
  position: relative;
  z-index: 5;
}

/* Checkmark badge */
.ticket-card.active::after {
  content: '✔';
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brand-orange);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.info-icon {
  font-size: 12px;
}

/* CTA button improvements */
#bookBtn {
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.18);
}
#bookBtn:disabled {
  opacity: 0.9;
}

/* ---------- Sponsor boxes ---------- */

/* ---------- Contact ---------- */
#contact .contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

/* ---------- Navbar underline animation ---------- */
.nav-link {
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--brand-gold);
  left: 0;
  bottom: 0;
  transition: width 0.28s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ---------- small screens adjustments ---------- */
@media (max-width: 767px) {
  .section-title {
    font-size: 1.6rem;
  }
  header#hero {
    height: 70vh;
  }
  #highlights::before,
  #sponsors::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.65)
    );
  }
}

/* utility: ensure parallax text contrast if user forgets to set background-image */
#highlights,
#sponsors {
  min-height: 360px;
}

/* small polish on floating CTA */
#floatingBook {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

/* ensure images inside parallax sections also are visible with rounded corners */
#highlights img,
#sponsors img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.btn-loader {
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
