/* ============================================================
   Clearlake Christmas Light Spectacular — Website v1
   Visual: Christmas night — dark sky, warm gold, gentle snow
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- Palette --- */
:root {
  --night:       #0b1a2e;
  --night-deep:  #060f1c;
  --night-mid:   #112240;
  --warm-white:  #f0ece4;
  --snow:        #ffffff;
  --gold:        #c9a84c;
  --gold-light:  #e0c878;
  --gold-dim:    #8a7435;
  --evergreen:   #2e7d32;
  --evergreen-light: #4caf50;
  --red:         #c23b22;
  --red-soft:    #d94f3a;
  --text-muted:  #8a9ab5;
  --border:      #1e3456;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--warm-white);
  background: var(--night);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { max-width: 65ch; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gold-light); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 20px;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 55ch;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, padding 0.3s;
}

.site-nav.scrolled {
  background: rgba(6, 15, 28, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand img {
  height: 32px;
  width: auto;
}

.nav-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}
.nav-brand:hover span { color: var(--gold-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--warm-white);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--warm-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

.nav-close {
  display: none;
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--night-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 0;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    font-size: 1rem;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
  }
  .nav-overlay.open { display: block; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(46, 125, 50, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(192, 57, 43, 0.06) 0%, transparent 50%),
    linear-gradient(to bottom, var(--night-deep) 0%, var(--night) 40%, var(--night-mid) 100%);
  z-index: 0;
}

/* Warm light glow at the bottom — like lights on the ground */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 10%;
  right: 10%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 100%, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-logo {
  width: clamp(140px, 22vw, 240px);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.4));
  position: relative;
  z-index: 1;
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
  animation: logo-float 6s ease-in-out infinite;
}

/* Rudolph nose glow */
.hero-logo-wrap::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  left: 50%;
  top: 84%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 59, 34, 0.7) 0%, rgba(194, 59, 34, 0.3) 35%, transparent 70%);
  animation: nose-glow 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes nose-glow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.4); }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

.hero-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: var(--snow);
  margin-bottom: 8px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-top: 16px;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--night-deep);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--night-deep);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--warm-white);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  transform: translateY(-1px);
}

/* --- Scroll indicator --- */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
}

.scroll-hint svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Content Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--night-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--gold);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Image placeholders --- */
.img-placeholder {
  background: var(--night-mid);
  border: 1px dashed var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  min-height: 300px;
}

/* --- Photo Grid --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.photo-grid .img-placeholder {
  aspect-ratio: 4/3;
  min-height: unset;
}

/* --- Schedule table --- */
.schedule-block {
  background: var(--night-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}

.schedule-row:last-child { border-bottom: none; }

.schedule-row .label {
  font-weight: 600;
  font-size: 1rem;
}

.schedule-row .value {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: right;
}

/* --- Listen / QR section --- */
.listen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 768px) {
  .listen-grid { grid-template-columns: 1fr; text-align: center; }
}

.qr-block {
  background: var(--snow);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 240px;
}

@media (max-width: 768px) {
  .qr-block { margin: 0 auto; }
}

/* --- Ornament Divider --- */
.divider {
  border: none;
  margin: 0;
  padding: 24px 0;
  text-align: center;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.divider::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 22px;
  background: var(--red);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 12px rgba(192, 57, 43, 0.4), 0 0 4px rgba(192, 57, 43, 0.2);
}

/* Ornament cap */
.divider-wrap {
  position: relative;
  text-align: center;
  padding: 24px 0;
}

.divider-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

/* --- Footer --- */
.site-footer {
  background: var(--night-deep);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-links a:hover { color: var(--warm-white); }

.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  opacity: 0.6;
}

/* ============================================================
   Snow Effect — CSS-only falling snowflakes
   Three layers at different speeds/sizes for depth
   ============================================================ */
.snow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.snow-layer {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.7) 50%, transparent 50%),
    radial-gradient(2px 2px at 25% 45%, rgba(255,255,255,0.5) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 40% 15%, rgba(255,255,255,0.6) 50%, transparent 50%),
    radial-gradient(2px 2px at 55% 70%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 65% 35%, rgba(255,255,255,0.5) 50%, transparent 50%),
    radial-gradient(2px 2px at 80% 55%, rgba(255,255,255,0.6) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 92% 80%, rgba(255,255,255,0.4) 50%, transparent 50%);
  background-size: 400px 600px;
  animation: snowfall linear infinite;
}

.snow-layer-1 {
  animation-duration: 18s;
  opacity: 0.6;
}

.snow-layer-2 {
  animation-duration: 25s;
  animation-delay: -5s;
  opacity: 0.4;
  background-size: 500px 800px;
}

.snow-layer-3 {
  animation-duration: 35s;
  animation-delay: -12s;
  opacity: 0.25;
  background-size: 600px 1000px;
}

@keyframes snowfall {
  0% { transform: translateY(-10%); }
  100% { transform: translateY(100%); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .snow-layer { animation: none; opacity: 0.15; }
}

/* ============================================================
   Christmas Lights String — colored bulbs on a drooping wire
   ============================================================ */
.christmas-lights {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  z-index: 90;
  height: 40px;
  pointer-events: none;
  overflow: visible;
  transition: top 0.3s;
}

/* Tighten up when nav shrinks on scroll */
.site-nav.scrolled ~ .christmas-lights,
body.nav-scrolled .christmas-lights {
  top: 44px;
}

.lights-svg {
  width: 100%;
  height: 40px;
  display: block;
}

/* Bulb glow animation — staggered per color */
@keyframes bulb-glow {
  0%, 100% { opacity: 0.85; filter: drop-shadow(0 0 3px currentColor); }
  50% { opacity: 1; filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 14px currentColor); }
}

.bulb-red    { color: #e74c3c; animation: bulb-glow 3s ease-in-out infinite; }
.bulb-green  { color: #27ae60; animation: bulb-glow 3s ease-in-out 0.5s infinite; }
.bulb-blue   { color: #3498db; animation: bulb-glow 3s ease-in-out 1s infinite; }
.bulb-gold   { color: #f1c40f; animation: bulb-glow 3s ease-in-out 1.5s infinite; }
.bulb-orange { color: #e67e22; animation: bulb-glow 3s ease-in-out 2s infinite; }

@media (prefers-reduced-motion: reduce) {
  .bulb-red, .bulb-green, .bulb-blue, .bulb-gold, .bulb-orange {
    animation: none;
    filter: drop-shadow(0 0 6px currentColor);
  }
}

/* ============================================================
   Hero Christmas Tree — subtle background silhouette
   ============================================================ */
.hero-tree {
  position: absolute;
  bottom: 5%;
  right: 8%;
  width: clamp(180px, 20vw, 320px);
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  color: var(--evergreen);
}

@media (max-width: 768px) {
  .hero-tree { right: -5%; opacity: 0.05; }
}

/* ============================================================
   Hero Stars — twinkling points of light
   ============================================================ */
.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--snow);
  border-radius: 50%;
  animation: twinkle ease-in-out infinite;
}

.star-1 { top: 12%; left: 15%; animation-duration: 4s; }
.star-2 { top: 8%;  left: 45%; animation-duration: 5s; animation-delay: 1s; width: 2px; height: 2px; }
.star-3 { top: 20%; left: 72%; animation-duration: 3.5s; animation-delay: 0.5s; }
.star-4 { top: 5%;  left: 85%; animation-duration: 6s; animation-delay: 2s; width: 2px; height: 2px; }
.star-5 { top: 25%; left: 30%; animation-duration: 4.5s; animation-delay: 1.5s; width: 2px; height: 2px; }
.star-6 { top: 15%; left: 60%; animation-duration: 5.5s; animation-delay: 0.8s; }
.star-7 { top: 30%; left: 10%; animation-duration: 3.8s; animation-delay: 2.5s; width: 2px; height: 2px; }
.star-8 { top: 18%; left: 92%; animation-duration: 4.2s; animation-delay: 3s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.4); box-shadow: 0 0 6px rgba(255,255,255,0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .star { animation: none; opacity: 0.4; }
}

/* ============================================================
   Page Decoration — unique Christmas silhouette per page
   Same treatment as .hero-tree: subtle, atmospheric
   ============================================================ */
.page-decor {
  position: absolute;
  bottom: 5%;
  right: 5%;
  width: clamp(160px, 18vw, 280px);
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
  color: var(--evergreen);
}

@media (max-width: 768px) {
  .page-decor { right: -3%; opacity: 0.04; width: clamp(120px, 30vw, 200px); }
}

/* ============================================================
   Holly accent — for cards and details
   ============================================================ */
.holly-accent {
  display: inline-block;
  position: relative;
  margin-right: 8px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-48 { margin-bottom: 48px; }

/* ============================================================
   Show Banner — LIVE / Countdown announcement bar
   Appears on Home + Listen when the show is active.
   ============================================================ */
.show-banner {
  position: fixed;
  top: -60px;
  left: 0;
  right: 0;
  z-index: 101;
  text-align: center;
  padding: 10px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.4s ease;
  pointer-events: none;
}

.show-banner.visible {
  top: 0;
  pointer-events: auto;
}

.show-banner.live {
  background: linear-gradient(135deg, rgba(194, 59, 34, 0.95), rgba(160, 40, 22, 0.95));
  box-shadow: 0 2px 16px rgba(194, 59, 34, 0.4);
}

.show-banner.countdown {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.92), rgba(160, 130, 50, 0.92));
  color: var(--night-deep);
  box-shadow: 0 2px 16px rgba(201, 168, 76, 0.3);
}

.show-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.show-banner .live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--snow);
  animation: banner-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes banner-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(255,255,255,0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 8px rgba(255,255,255,0.3); }
}

.show-banner .banner-text {
  color: var(--snow);
}

.show-banner.countdown .banner-text {
  color: var(--night-deep);
}

.show-banner .banner-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.show-banner .banner-links a {
  color: var(--snow);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.show-banner.countdown .banner-links a {
  color: var(--night-deep);
}

.show-banner .banner-links a:hover {
  opacity: 0.8;
}

.show-banner .banner-sep {
  opacity: 0.5;
}

/* Push nav + lights down when banner is visible */
body.show-banner-active .site-nav {
  top: 40px;
}

body.show-banner-active .christmas-lights {
  top: 92px;
}

body.show-banner-active.nav-scrolled .christmas-lights {
  top: 84px;
}

@media (max-width: 768px) {
  .show-banner { font-size: 0.8rem; padding: 8px 16px; }
  .show-banner-inner { gap: 6px; }
  .show-banner .banner-links { font-size: 0.75rem; }
}
