:root {
  color-scheme: light dark;
  --bg: #0f1220;
  --fg: #f2f2f7;
  --accent: #6c5ce7;
  --card: #1a1e33;
  --muted: #9aa0b4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #2a2f4a;
}

.site-header .logo {
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  font-size: 1.1rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.5rem;
}

.site-header nav a:hover { color: var(--fg); }

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem;
}

h1 { font-size: 2rem; margin-bottom: 0.25rem; }
h2 { font-size: 1.25rem; color: var(--muted); font-weight: 500; }

.intro { font-size: 1.05rem; color: var(--fg); }

.site-banner-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 1.5rem auto 0;
  border-radius: 12px;
}

/* Single static banner (page-level override, e.g. guide/article pages) */
.site-banner-wrap > picture > .site-banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  margin: 0;
}

/* Rotating banner pool (default, contained banner, not full site width) */
.banner-rotator {
  position: relative;
  width: 100%;
  max-height: 300px;
  aspect-ratio: 3 / 1;
  overflow: hidden;
}
.banner-rotator picture { display: contents; }
.banner-rotator .site-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.banner-rotator .site-banner.is-active { opacity: 1; }

/* Logo overlay, centered on top of whichever banner is showing */
.banner-logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(220px, 42%);
  height: auto;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.65));
  pointer-events: none;
}

/* Page-specific override banners (birthday/pricing/about) get the logo
   pinned to the upper-left instead of centered, since the image itself
   is the page's subject. */
.banner-logo-overlay--corner {
  top: 1rem;
  left: 1rem;
  transform: none;
  width: min(160px, 32%);
}

@media (max-width: 640px) {
  .site-banner-wrap > picture > .site-banner,
  .banner-rotator { max-height: 160px; aspect-ratio: 16 / 9; }
  .banner-logo-overlay { width: min(150px, 55%); }
  .banner-logo-overlay--corner { width: min(110px, 28%); top: 0.6rem; left: 0.6rem; }
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #2a2f4a;
}
.price-table th {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: rgba(108, 92, 231, 0.08); }

.toc {
  background: var(--card);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}
.toc h3 { margin-top: 0; font-size: 0.9rem; text-transform: uppercase; color: var(--muted); }
.toc ul { columns: 2; padding-left: 1.2rem; }
.toc a { color: var(--fg); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.listing {
  padding: 1rem 0;
  border-bottom: 1px solid #2a2f4a;
}
.listing h3 { margin-bottom: 0.2rem; }
.listing-location { color: var(--muted); margin-top: 0; }
.listing-rating { color: #f5c518; margin: 0.2rem 0; font-size: 0.9rem; }
.listing-reviews { color: var(--muted); }
.listing-address { color: var(--fg); margin: 0.2rem 0; }
.listing-meta { color: var(--muted); font-size: 0.9rem; margin: 0.2rem 0; }
.listing-meta a { color: var(--accent); text-decoration: none; }
.listing-actions { display: flex; gap: 0.5rem; margin: 0.5rem 0; flex-wrap: wrap; }
.listing-btn {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  text-decoration: none;
}
.listing-btn:hover { background: var(--accent); color: white; }
.listing-hours { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.listing-hours summary { cursor: pointer; color: var(--fg); }
.listing-hours ul { list-style: none; padding-left: 0; margin: 0.4rem 0 0; }
.listing-hours .day { display: inline-block; width: 5.5rem; color: var(--fg); }

.state-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.state-grid a {
  display: block;
  background: var(--card);
  color: var(--fg);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}
.state-grid a:hover { background: var(--accent); }

.cta {
  display: inline-block;
  margin-top: 1rem;
  background: var(--accent);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
}

.back-link { margin-top: 2rem; }
.back-link a { color: var(--muted); }

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
  font-size: 0.85rem;
}
