/* ════════════════════════════════════════════════════════════════════════
   EUNICE TODAY — STYLESHEET
   --------------------------------------------------------------------------
   Theme: "Saturday night at the Liberty Theater."
   Eunice has broadcast live Cajun music from its 1924 theater for decades,
   so the whole homepage is styled like the town's playbill: stage-dark
   background, marquee gold, chile red, and accordion-pleat dividers.

   HOW THIS FILE IS ORGANIZED (top to bottom):
     1. Design tokens   — every color/spacing/font value, defined once
     2. Reset & base    — browser defaults removed, body typography set
     3. Buttons & links
     4. Header
     5. Hero
     6. Marquee ticker
     7. Section scaffolding (shared by Locals / Eat / Explore / Happening)
     8. Locals cards
     9. Bill-pay band
    10. Rated cards (Eat & Explore)
    11. Events list
    12. Footer
    13. Reveal-on-scroll animation
    14. Mobile layout (one block at the end overrides sizes for phones)

   TO CHANGE A COLOR OR FONT: edit section 1 only. Everything else
   references those variables, so one edit updates the whole site.
   ════════════════════════════════════════════════════════════════════════ */


/* ── 1. DESIGN TOKENS ──────────────────────────────────────────────────── */
:root {
  /* Stage darks — warm aubergine-black, never flat gray */
  --night:      #171019;   /* page background */
  --night-2:    #1F1622;   /* slightly lifted panels */
  --night-3:    #2A1E2E;   /* card hover / borders */

  /* Marquee gold — the star of the show */
  --gold:       #E3A93D;
  --gold-soft:  #F0C97E;   /* lighter gold for small text on dark */
  --gold-deep:  #B97F1E;

  /* Supporting cast */
  --chile:      #C8403A;   /* étouffée red */
  --teal:       #3D9A8B;   /* gulf teal */
  --violet:     #8B6FB4;   /* Mardi Gras purple */
  --moss:       #6FA35C;   /* Mardi Gras green */

  /* Text on dark */
  --paper:      #F4EAD7;   /* main text — warm cream, not pure white */
  --paper-dim:  #BFB2A0;   /* secondary text */
  --paper-faint:#8C8076;   /* fine print */

  /* Fonts (loaded in index.html) */
  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", -apple-system, system-ui, sans-serif;

  /* Spacing rhythm — multiples of 8px keep everything visually aligned */
  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* Rounded corners */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* Motion — one shared easing curve so all movement feels related */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Content width cap on big screens */
  --maxw: 1180px;
}


/* ── 2. RESET & BASE ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* the drifting hero letters must never cause a sideways scrollbar */
}

/* Subtle film-grain over everything, made of pure CSS (no image file).
   It keeps the large dark areas from looking flat and digital. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;        /* clicks pass straight through it */
  z-index: 999;
  opacity: 0.05;
  background-image:
    repeating-conic-gradient(rgba(255,255,255,0.6) 0% 0.00012%, transparent 0.00012% 0.00024%);
  background-size: 7px 7px;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-soft); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; }

::selection { background: var(--gold); color: var(--night); }


/* ── 3. BUTTONS & LINKS ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r-pill);
  padding: 14px 28px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--night);
  box-shadow: 0 0 0 1px rgba(227,169,61,0.4), 0 6px 18px -6px rgba(227,169,61,0.45);
}
.btn-gold:hover { background: var(--gold-soft); }

.btn-dark {
  background: var(--night);
  color: var(--gold-soft);
  box-shadow: 0 8px 22px -8px rgba(23,16,25,0.7);
}
.btn-dark:hover { color: var(--gold); }

.btn-small { padding: 9px 18px; font-size: 14px; }

.link-quiet {
  color: rgba(23,16,25,0.75);     /* used on the gold band, so dark text */
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(23,16,25,0.3);
  padding-bottom: 2px;
}
.link-quiet:hover { border-color: rgba(23,16,25,0.8); }


/* ── 4. HEADER ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;       /* stays pinned to the top while scrolling */
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(23,16,25,0.82);
  backdrop-filter: blur(12px);          /* frosted-glass effect */
  -webkit-backdrop-filter: blur(12px);  /* same, for Safari */
  border-bottom: 1px solid rgba(227,169,61,0.18);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--gold); }

.site-nav { display: flex; gap: clamp(12px, 2.5vw, 28px); }
.site-nav a {
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--gold-soft); }


/* ── 5. HERO ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s8) var(--s4) var(--s9);
  overflow: hidden;
  /* A faint warm spotlight from above, like stage lighting */
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(227,169,61,0.13), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(139,111,180,0.10), transparent 70%);
}

.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--s5);
}

/* The six giant letters. clamp() scales them between phone and desktop:
   clamp(minimum, preferred(scales with screen), maximum) */
.hero-title {
  font-size: clamp(64px, 17vw, 220px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--paper);
  display: flex;
  user-select: none;
}
.hero-title .ltr {
  display: inline-block;
  /* js/app.js nudges each letter with transform as you scroll */
  transition: transform 0.1s linear;
  text-shadow:
    0 0 60px rgba(227,169,61,0.25),  /* warm glow behind the letters */
    0 2px 0  rgba(227,169,61,0.35);  /* thin gold rim underneath */
}
/* Alternate letters get a slight gold tint, like marquee bulbs */
.hero-title .ltr:nth-child(even) { color: var(--gold); }

.hero-sub {
  margin-top: var(--s5);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.6vw, 26px);
  color: var(--paper-dim);
}

.hero-phrase {
  margin-top: var(--s3);
  font-size: 15px;
  color: var(--gold-soft);
  min-height: 1.6em;   /* reserves space so the page doesn't jump when phrases rotate */
}
.hero-phrase em { font-style: italic; }

/* Live weather chip — top-right of the hero */
.weather-chip {
  position: absolute;
  top: calc(var(--s5) + 60px);
  right: clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: rgba(31,22,34,0.75);
  border: 1px solid rgba(227,169,61,0.25);
  text-decoration: none;
  color: var(--paper);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.weather-icon { font-size: 20px; line-height: 1; }
.weather-temp { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.weather-desc { font-size: 13px; color: var(--paper-dim); text-transform: capitalize; }

/* The drifting swamp-light orbs ("fifolet"). Pure decoration. */
.fifolet {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);          /* heavy blur turns a circle into a soft glow */
  opacity: 0.5;
  pointer-events: none;
  animation: drift 26s var(--ease) infinite alternate;
}
.fifolet-1 { width: 340px; height: 340px; background: rgba(227,169,61,0.16); top: 12%; left: -6%; }
.fifolet-2 { width: 280px; height: 280px; background: rgba(139,111,180,0.18); bottom: 8%; right: -4%; animation-delay: -9s; }
.fifolet-3 { width: 220px; height: 220px; background: rgba(61,154,139,0.15); top: 55%; left: 18%; animation-delay: -17s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, -50px) scale(1.18); }
}

/* "scroll" hint at the bottom of the hero */
.scroll-cue {
  position: absolute;
  bottom: var(--s6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--paper-faint);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%       { transform: scaleY(1);   opacity: 1; }
}


/* ── 6. MARQUEE TICKER ─────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(227,169,61,0.35);
  border-bottom: 1px solid rgba(227,169,61,0.35);
  background: var(--night-2);
  padding: 13px 0;
}
.marquee-track {
  display: inline-flex;
  gap: var(--s7);
  white-space: nowrap;
  /* js/app.js fills this with the event names twice in a row;
     animating to -50% then makes the loop seamless */
  animation: ticker 38s linear infinite;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .dot { color: var(--chile); }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ── 7. SECTION SCAFFOLDING ────────────────────────────────────────────── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s10) clamp(16px, 4vw, 40px);
}

.section-head { max-width: 640px; margin-bottom: var(--s7); }

/* "Act I", "Act II"… playbill numbering above each heading */
.act {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--chile);
  font-weight: 700;
  margin-bottom: var(--s3);
}
.act::after {
  content: "";
  display: inline-block;
  width: 40px; height: 1px;
  background: var(--chile);
  margin-left: 14px;
  vertical-align: middle;
}
.act-dark { color: rgba(23,16,25,0.6); }
.act-dark::after { background: rgba(23,16,25,0.4); }

.section-head h2 {
  font-size: clamp(40px, 6vw, 64px);
  color: var(--paper);
  margin-bottom: var(--s4);
}
.section-lede { color: var(--paper-dim); font-size: 17px; }

.loading-note { color: var(--paper-faint); font-style: italic; }


/* Accordion-pleat divider — angled gold stripes like accordion bellows */
.pleat {
  height: 26px;
  background: repeating-linear-gradient(
    -55deg,
    var(--gold-deep) 0 3px,
    transparent      3px 18px
  );
  opacity: 0.5;
  mask-image: linear-gradient(to right, transparent, black 18%, black 82%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 18%, black 82%, transparent);
}


/* ── 8. LOCALS CARDS ───────────────────────────────────────────────────── */
.locals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--s5);
}

.local-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: var(--s6);
  border-radius: var(--r-lg);
  background: var(--night-2);
  border: 1px solid rgba(244,234,215,0.08);
  text-decoration: none;
  color: var(--paper);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.local-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent, var(--gold));
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.6);
}

/* Each card gets its own accent color via a style="--accent: …" set in
   js/app.js. The big watermark initial uses it at low opacity. */
.local-card .initial {
  position: absolute;
  right: -10px; bottom: -42px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 190px;
  line-height: 1;
  color: var(--accent, var(--gold));
  opacity: 0.13;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.local-card:hover .initial { opacity: 0.24; transform: translateY(-8px); }

.local-card .tagline {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent, var(--gold));
  font-weight: 700;
  margin-bottom: var(--s4);
}
.local-card h3 { font-size: 30px; margin-bottom: var(--s3); }
.local-card .blurb { color: var(--paper-dim); font-size: 15.5px; flex: 1; }

.local-card .visit {
  margin-top: var(--s5);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent, var(--gold));
}
.local-card .visit::after { content: " →"; transition: margin 0.25s var(--ease); }
.local-card:hover .visit::after { margin-left: 6px; }

/* "Coming soon" cards: not clickable, slightly faded */
.local-card.soon { opacity: 0.6; cursor: default; }
.local-card.soon:hover { transform: none; box-shadow: none; }
.local-card.soon .visit { color: var(--paper-faint); }


/* ── 9. BILL-PAY BAND ──────────────────────────────────────────────────── */
.billpay {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 55%, var(--gold-soft));
  color: var(--night);
  padding: var(--s9) clamp(16px, 4vw, 40px);
}
.billpay-inner { max-width: var(--maxw); margin: 0 auto; }
.billpay h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  color: var(--night);
  margin-bottom: var(--s4);
  max-width: 720px;
}
.billpay p { color: rgba(23,16,25,0.75); font-size: 17px; max-width: 560px; }
.billpay-actions {
  display: flex;
  align-items: center;
  gap: var(--s5);
  flex-wrap: wrap;       /* stacks neatly on small screens */
  margin-top: var(--s6);
}


/* ── 10. RATED CARDS (Eat & Explore) ───────────────────────────────────── */
.rated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--s4);
}

.rated-card {
  display: block;
  padding: var(--s5);
  border-radius: var(--r-md);
  background: var(--night-2);
  border: 1px solid rgba(244,234,215,0.08);
  text-decoration: none;
  color: var(--paper);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.rated-card:hover { transform: translateY(-4px); border-color: rgba(227,169,61,0.5); }

.rated-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.rated-card .addr { font-size: 13.5px; color: var(--paper-faint); margin-bottom: var(--s3); }

.rated-card .stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.rated-card .score { font-weight: 700; color: var(--gold-soft); margin-left: 6px; font-size: 14px; }
.rated-card .count { color: var(--paper-faint); font-size: 12.5px; margin-left: 4px; }


/* ── 11. EVENTS LIST ───────────────────────────────────────────────────── */
.events-list { display: flex; flex-direction: column; }

.event-row {
  display: grid;
  grid-template-columns: 150px 1fr;   /* date column | details column */
  gap: var(--s5);
  padding: var(--s6) 0;
  border-top: 1px solid rgba(244,234,215,0.1);
}
.events-list .event-row:last-child { border-bottom: 1px solid rgba(244,234,215,0.1); }

.event-date {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--gold);
  line-height: 1.25;
}
.event-date .recurs {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 6px;
}

.event-body h3 { font-size: 23px; margin-bottom: 8px; }
.event-body h3 a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(227,169,61,0.4); }
.event-body h3 a:hover { color: var(--gold-soft); }
.event-body .where { font-size: 13.5px; color: var(--paper-faint); margin-bottom: var(--s3); }
.event-body .desc  { color: var(--paper-dim); font-size: 15.5px; max-width: 680px; }

/* Colored type pill (festival / music / food / …) — colors set in js/app.js */
.event-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--tint, var(--gold));
  color: var(--tint, var(--gold));
  margin-bottom: var(--s3);
}


/* ── 12. FOOTER ────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: var(--s9) var(--s4) var(--s7);
  border-top: 1px solid rgba(227,169,61,0.18);
  background: var(--night-2);
}
.footer-mark {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.08em;
}
.footer-tag { color: var(--paper-faint); font-style: italic; margin-top: 4px; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--s6);
  flex-wrap: wrap;
  margin: var(--s6) 0;
}
.footer-links a {
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.footer-links a:hover { color: var(--gold-soft); }
.footer-fine { color: var(--paper-faint); font-size: 12.5px; }


/* ── 13. REVEAL-ON-SCROLL ──────────────────────────────────────────────────
   Elements with class "reveal" start invisible and slide up when they
   enter the screen. js/app.js adds the class "in" at the right moment. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Accessibility: visitors who set "reduce motion" in their device settings
   get an entirely still page — no drift, no ticker, no slide-ins. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fifolet, .scroll-line { animation: none; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title .ltr { transition: none; }
}


/* ── 14. MOBILE LAYOUT (screens up to 680px wide) ──────────────────────── */
@media (max-width: 680px) {

  /* Header: hide the section nav (the page is one scroll anyway),
     keep the wordmark and the all-important bill-pay button */
  .site-nav { display: none; }

  .hero { min-height: 86vh; }

  /* Weather chip moves into normal page flow under the title
     instead of floating in the corner */
  .weather-chip {
    position: static;
    margin-top: var(--s5);
  }

  .section { padding: var(--s8) var(--s4); }

  /* Event rows: date stacks above details instead of side-by-side */
  .event-row {
    grid-template-columns: 1fr;
    gap: var(--s3);
    padding: var(--s5) 0;
  }

  .local-card { min-height: 280px; }
  .billpay-actions .btn { width: 100%; text-align: center; }
}
