/* ============================================
   Baila Tampa Bay - Avada Clone CSS
   Matches the live WordPress/Avada theme exactly
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Avada color palette from source */
  --awb-color1: #ffffff;
  --awb-color2: #ff9806;
  --awb-color3: #e75b35;
  --awb-color4: #b72750;
  --awb-color5: #c70600;
  --awb-color6: #3e3e3e;
  --awb-color7: #0c0814;
  --awb-color8: #110f25;
  --awb-custom1: #7c0202;
  --awb-custom2: #ff9806;
  --bt-radius: 33px;
  --bt-transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--awb-color8);
  background: var(--awb-color5);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--bt-transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: 'Oswald', sans-serif; font-weight: 400; line-height: 1.1; text-transform: uppercase; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

.container { max-width: 1570px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Skip Link --- */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--awb-color2); color: #fff; padding: 8px 16px;
  z-index: 10000; border-radius: 4px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ============================================
   HEADER - Two-tier nav
   ============================================ */
.site-header {
  position: absolute; top: 0; left: 0; width: 100%; z-index: 1000;
}

/* Top bar (secondary nav) */
.header-top {
  padding: 8px 0;
  border-bottom: none;
}
.header-top .header-inner {
  display: flex; align-items: center; justify-content: center;
}
.header-top-nav { display: flex; gap: 36px; }
.header-top-nav a {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px; color: var(--awb-color1);
  text-transform: uppercase; letter-spacing: 2px; font-weight: 500;
}
.header-top-nav a:hover { color: var(--awb-color2); }

/* Main nav row */
.header-main { padding: 8px 0; }
.header-main .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.site-logo img { height: 80px; width: auto; margin-top: -20px; }

.main-nav {
  display: flex; align-items: center; gap: 40px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.main-nav a {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 20px; color: var(--awb-color1); font-weight: 400;
}
.main-nav a:hover { color: var(--awb-color2); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 4px;
  background: var(--awb-color2); color: var(--awb-color1) !important;
  font-size: 14px !important; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-cta:hover { background: var(--awb-color5); }

/* Mobile Nav */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px; z-index: 1001;
}
.hamburger span {
  width: 28px; height: 3px; background: #fff; border-radius: 2px;
  transition: var(--bt-transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

.nav-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 999; display: none;
}
.nav-overlay.active { display: block; }

@media (max-width: 1024px) {
  .header-top { display: none; }
  .hamburger { display: flex; }
  .main-nav {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 360px;
    height: 100vh; background: var(--awb-color7);
    flex-direction: column; justify-content: center; gap: 12px;
    padding: 40px 32px; transition: right 0.4s ease;
  }
  .main-nav.open { right: 0; }
  .main-nav a { font-size: 18px; padding: 14px 20px; width: 100%; text-align: center; }
  .site-logo img { height: 50px; margin-top: 0; }
}

/* ============================================
   HERO - Full background image
   ============================================ */
.hero {
  position: relative; min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 10% 24px 50px;
  background-size: cover; background-position: center;
  background-image: linear-gradient(0deg, var(--awb-color5) 0%, rgba(38,0,0,0.73) 100%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, var(--awb-color5) 0%, rgba(38,0,0,0.73) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 900px;
}
.hero-date {
  font-size: 2em; font-weight: 700; color: var(--awb-color2);
  margin-bottom: 10px; font-family: 'IBM Plex Sans', sans-serif;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 62px); color: var(--awb-color1);
  line-height: 1.1; margin-bottom: 20px;
}

/* ============================================
   BUTTONS (Avada style)
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 4px; font-weight: 600;
  font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
  transition: var(--bt-transition); cursor: pointer; border: none;
  font-family: 'IBM Plex Sans', sans-serif;
}
.btn-primary { background: var(--awb-color2); color: var(--awb-color1); }
.btn-primary:hover { background: var(--awb-color5); color: var(--awb-color1); }
.btn-red { background: var(--awb-color5); color: var(--awb-color1); }
.btn-red:hover { background: var(--awb-custom1); }
.btn-outline {
  background: transparent; color: var(--awb-color2);
  border: 2px solid var(--awb-color2);
}
.btn-outline:hover { background: var(--awb-color2); color: var(--awb-color1); }
.btn-full { width: 100%; justify-content: center; }

/* ============================================
   SPLIT PANELS - White panel + image side
   The signature Avada look for this site
   ============================================ */
.split-section {
  display: flex; align-items: stretch;
  max-width: 1570px; margin: 20px auto 0;
}
.split-panel {
  flex: 0 0 60%; padding: 120px 5% 100px;
  background: var(--awb-color1); color: var(--awb-color8);
  border-radius: var(--bt-radius) 0 0 var(--bt-radius);
}
.split-panel h2 {
  font-size: clamp(36px, 4vw, 64px); margin-bottom: 15px;
  line-height: 1.02;
}
.split-panel h3 { font-size: 27px; margin-bottom: 10px; }
.split-panel p { font-size: 16px; line-height: 1.7; color: var(--awb-color7); }
.split-panel .update-text { font-style: italic; font-size: 14px; }
.split-panel .btn-group { margin-top: 20px; }
.split-panel .btn-group .btn { margin-bottom: 12px; }

.split-image {
  flex: 0 0 40%;
  background-size: cover; background-position: center;
  border-radius: 0 var(--bt-radius) var(--bt-radius) 0;
  min-height: 400px;
}

/* Reverse: image left, panel right */
.split-section.reverse .split-panel {
  order: 2; border-radius: 0 var(--bt-radius) var(--bt-radius) 0;
}
.split-section.reverse .split-image {
  order: 1; border-radius: var(--bt-radius) 0 0 var(--bt-radius);
}

/* "Escape" section with white bg full-width */
.white-section {
  background: var(--awb-color1); color: var(--awb-color8);
  overflow: hidden;
}
.white-split {
  display: flex; align-items: stretch;
}
.white-split-text {
  flex: 0 0 50%; padding: 13% 10% 18%;
}
.white-split-text h3 {
  font-size: 1.8em; margin-bottom: 5px; line-height: 1.81;
}
.white-split-text h2 {
  font-size: clamp(36px, 4vw, 64px); margin-bottom: 35px; line-height: 1.02;
}
.white-split-text p { color: var(--awb-color8); }
.white-split-image {
  flex: 0 0 50%; min-height: 500px;
  background-size: cover; background-position: center;
}
/* With image slider on left */
.white-split-image-left {
  flex: 0 0 50%; min-height: 500px;
  border-radius: 0 25px 40px 0;
  overflow: hidden; position: relative;
}
.white-split-image-left img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}

@media (max-width: 1024px) {
  .split-section { flex-direction: column; }
  .split-panel, .split-image { flex: auto; width: 100%; border-radius: 0 !important; }
  .split-image { min-height: 300px; }
  .split-section.reverse .split-image { order: 0; }
  .split-section.reverse .split-panel { order: 0; }
  .white-split { flex-direction: column; }
  .white-split-text { flex: auto; padding: 60px 5%; }
  .white-split-image, .white-split-image-left { flex: auto; min-height: 300px; border-radius: 0; }
}

/* ============================================
   WORKSHOP / ARTISTS / PERFORMERS Grid
   On red background with gradient
   ============================================ */
.red-section {
  padding: 9% 0;
  background: linear-gradient(180deg, var(--awb-custom1) 0%, var(--awb-color5) 100%);
  color: var(--awb-color1);
}
.red-section h2 { color: var(--awb-color1); }
.red-section h3 { color: var(--awb-color1); }
.red-section p { color: var(--awb-color1); }

.three-col-grid {
  display: grid;
  grid-template-columns: 28% 35% 36.33%;
  gap: 0; align-items: flex-end;
}
.three-col-grid .col { padding: 0 60px; }
.three-col-grid .col img { border-radius: 200px; width: 100%; margin-bottom: 40px; }
.three-col-grid .col-center img { border-radius: 3px 3px 133px 3px; }
.three-col-grid .col-right { margin-top: 50px; }
.three-col-grid .col-right h3 { font-size: clamp(32px, 4vw, 64px); line-height: 1.02; margin-bottom: 20px; }

@media (max-width: 1024px) {
  .three-col-grid { grid-template-columns: 1fr; }
  .three-col-grid .col { padding: 20px 24px; }
  .three-col-grid .col-right { margin-top: 0; }
}

/* ============================================
   ARTISTS GRID (inner page)
   ============================================ */
.artists-intro { max-width: 900px; margin: 0 auto 48px; text-align: center; }
.artists-intro p { font-size: 16px; line-height: 1.8; }

.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.artist-card {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 3/4; cursor: pointer; transition: var(--bt-transition);
}
.artist-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.artist-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.artist-card:hover img { transform: scale(1.05); }
.artist-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 60px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}
.artist-info h3 { font-size: 1.1rem; margin-bottom: 2px; font-family: 'IBM Plex Sans', sans-serif; text-transform: none; }
.artist-info span { font-size: 0.85rem; opacity: 0.7; }

/* Inner page hero */
.page-hero {
  padding: 180px 24px 80px;
  background: var(--awb-color5); color: var(--awb-color1);
  text-align: center;
}
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); }

/* ============================================
   GENERAL SECTIONS
   ============================================ */
.section-red { background: var(--awb-color5); color: var(--awb-color1); padding: 80px 0; }
.section-maroon { background: var(--awb-custom1); color: var(--awb-color1); padding: 80px 0; }
.section-white { background: var(--awb-color1); color: var(--awb-color8); padding: 80px 0; }
.section-dark { background: var(--awb-color8); color: var(--awb-color1); padding: 80px 0; }

.section-header { text-align: center; max-width: 800px; margin: 0 auto 48px; }
.section-header h2 { font-size: clamp(28px, 3.5vw, 48px); margin-bottom: 16px; }

/* Quotes */
.quotes-section { padding: 60px 0; background: var(--awb-color5); color: var(--awb-color1); }
.quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; max-width: 1100px; margin: 0 auto; }
.quote-card { padding: 24px; border-left: 3px solid var(--awb-color2); }
.quote-card blockquote { font-style: italic; font-size: 1rem; opacity: 0.9; margin-bottom: 8px; font-family: 'IBM Plex Sans', sans-serif; }
.quote-card cite { font-size: 0.85rem; opacity: 0.6; font-style: normal; }

/* Performance why cards */
.perf-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 48px; }
.perf-card { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 40px 28px; }
.perf-card h3 { color: var(--awb-color2); font-size: 1.2rem; margin-bottom: 12px; font-family: 'IBM Plex Sans', sans-serif; text-transform: none; }
.perf-card p { opacity: 0.85; font-size: 0.95rem; }

.perf-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.perf-images img { border-radius: 12px; width: 100%; height: 280px; object-fit: cover; }

/* Sponsor / Vendor cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.card {
  background: var(--awb-color1); color: var(--awb-color8);
  border-radius: 12px; overflow: hidden; transition: var(--bt-transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--awb-color5); font-family: 'IBM Plex Sans', sans-serif; text-transform: none; }
.card-body p { font-size: 0.9rem; margin-bottom: 16px; line-height: 1.7; color: var(--awb-color6); }

/* Schedule images */
.schedule-images { display: grid; gap: 32px; max-width: 900px; margin: 0 auto; }
.schedule-images img { width: 100%; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.15); }

/* About page */
.about-content { max-width: 800px; margin: 0 auto; }
.about-content p { font-size: 16px; line-height: 1.8; }

/* Photo gallery */
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 60px; }
.photo-gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; cursor: pointer; transition: var(--bt-transition); }
.photo-gallery img:hover { opacity: 0.8; transform: scale(1.02); }

/* News grid */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.news-card { background: var(--awb-color1); color: var(--awb-color8); border-radius: 12px; overflow: hidden; transition: var(--bt-transition); }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.news-card-body { padding: 24px; }
.news-card-body .meta { font-size: 0.8rem; color: var(--awb-color6); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.news-card-body h3 { font-size: 1.1rem; margin-bottom: 12px; font-family: 'IBM Plex Sans', sans-serif; text-transform: none; line-height: 1.4; }
.news-card-body .read-more { color: var(--awb-color5); font-weight: 600; font-size: 0.9rem; }

/* Registration */
.reg-content { max-width: 800px; margin: 0 auto; }
.reg-notice { background: rgba(255,255,255,0.1); border-radius: 12px; padding: 24px; margin-bottom: 40px; text-align: center; }
.reg-section { margin-bottom: 40px; }
.reg-section h2 { font-size: 1.4rem; color: var(--awb-color2); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.15); font-family: 'IBM Plex Sans', sans-serif; }
.reg-section li { padding: 8px 0 8px 24px; position: relative; opacity: 0.9; font-size: 0.95rem; line-height: 1.7; }
.reg-section li::before { content: '•'; position: absolute; left: 8px; color: var(--awb-color2); }
.reg-cta { text-align: center; margin-top: 40px; padding: 40px; background: rgba(255,255,255,0.05); border-radius: 12px; }

/* Planning */
.planning-content { max-width: 800px; margin: 0 auto; }
.planning-content p { font-size: 16px; line-height: 1.8; }
.hotel-card { margin-top: 48px; padding: 40px; background: var(--awb-color1); color: var(--awb-color8); border-radius: var(--bt-radius); text-align: center; }
.hotel-card h2 { font-size: clamp(36px, 4vw, 64px); margin-bottom: 8px; }
.hotel-card h3 { font-size: 27px; margin-bottom: 16px; }
.hotel-card p { color: var(--awb-color6); margin-bottom: 24px; }

/* ============================================
   FOOTER - Three column on red-maroon gradient
   ============================================ */
.site-footer {
  padding: 142px 0 32px;
  background: linear-gradient(180deg, var(--awb-color5) 0%, var(--awb-custom1) 100%);
  color: var(--awb-color1);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 48px; align-items: center; margin-bottom: 48px;
}
.footer-col { text-align: center; }
.footer-col h6 {
  font-family: 'IBM Plex Sans', sans-serif; font-weight: 500;
  color: var(--awb-color2); font-size: 15px;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 10px;
}
.footer-col p { opacity: 0.85; font-size: 15px; }
.footer-col p a { color: var(--awb-color1); }
.footer-col p a:hover { color: var(--awb-color2); }
.footer-logo { max-width: 250px; margin: 0 auto; }
.footer-social { display: flex; gap: 20px; justify-content: center; margin-top: 15px; }
.footer-social a { font-size: 34px; color: var(--awb-color1); }
.footer-social a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom { text-align: center; font-size: 13px; color: #e2e2e2; margin-top: 48px; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding: 60px 0 32px; }
  .page-hero { padding: 140px 24px 60px; }
  .perf-images { grid-template-columns: 1fr; }
  .artists-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .news-grid { grid-template-columns: 1fr; }
  .photo-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* --- Lightbox --- */
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 2rem; color: #fff; cursor: pointer; background: none; border: none; }

/* --- Back to top (Avada style) --- */
.to-top {
  position: fixed; bottom: 40px; right: 40px; z-index: 900;
  width: 48px; height: 48px; border-radius: 4px;
  background: var(--awb-color2); color: var(--awb-color1);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; border: none;
  opacity: 0; visibility: hidden; transition: var(--bt-transition);
}
.to-top.visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--awb-color5); }

/* --- Animations --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.animate-in { animation: fadeInUp 0.6s ease forwards; }
.animate-left { animation: fadeInLeft 0.8s ease forwards; }
.animate-right { animation: fadeInRight 0.8s ease forwards; }
