/* Fort Winter Festival - Modern static site
   Palette: winter night sky navy, ice blue, warm ember orange, snow */
:root {
  --navy: #0b2545;
  --navy-dark: #07182f;
  --ice: #8ecae6;
  --ice-light: #e0f2fe;
  --ember: #f57f20;
  --ember-dark: #c45a0a;
  --snow: #ffffff;
  --cream: #fdf6ec;
  --grey-100: #f5f5f5;
  --grey-300: #d4d4d4;
  --grey-500: #737373;
  --grey-700: #404040;
  --grey-900: #171717;

  --shadow-sm: 0 1px 2px rgba(7,24,47,.08), 0 1px 4px rgba(7,24,47,.05);
  --shadow-md: 0 4px 12px rgba(7,24,47,.12), 0 2px 4px rgba(7,24,47,.08);
  --shadow-lg: 0 12px 32px rgba(7,24,47,.18), 0 4px 8px rgba(7,24,47,.1);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --container: 1200px;
  --container-narrow: 800px;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--grey-900);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--ember); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p  { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

/* ------------------------ HEADER ------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,37,69,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.site-header__logo { display: flex; align-items: center; gap: 10px; }
.site-header__logo img { height: 56px; width: auto; }
.site-header__logo-text {
  /* hidden when logo image is present */
  display: none;
}

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .95rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-nav a.is-active { background: var(--ember); color: #fff; }

.nav-toggle span { background: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 86px;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .25s ease;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { padding: 14px 18px; font-size: 1.05rem; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ------------------------ HERO ------------------------ */
.hero {
  position: relative;
  color: var(--snow);
  background:
    linear-gradient(180deg, rgba(7,24,47,.6) 0%, rgba(7,24,47,.85) 100%),
    url('../images/banner.jpg') center/cover no-repeat;
  padding: clamp(60px, 12vw, 140px) 24px clamp(60px, 10vw, 110px);
  text-align: center;
  overflow: hidden;
}
.hero::after {
  /* subtle snow texture via radial pattern */
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255,255,255,.85) 1.2px, transparent 1.5px),
    radial-gradient(circle at 78% 38%, rgba(255,255,255,.7) 1px, transparent 1.4px),
    radial-gradient(circle at 33% 71%, rgba(255,255,255,.6) 1.4px, transparent 1.8px),
    radial-gradient(circle at 89% 86%, rgba(255,255,255,.8) 1px, transparent 1.4px),
    radial-gradient(circle at 53% 14%, rgba(255,255,255,.5) 1px, transparent 1.5px);
  background-size: 220px 220px, 180px 180px, 260px 260px, 200px 200px, 240px 240px;
  pointer-events: none;
  opacity: .7;
}
.hero > * { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ice);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--snow);
  max-width: 18ch;
  margin: 0 auto .4em;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero__dates {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--ice);
  margin: 0 0 1.5em;
}
.hero__lede {
  max-width: 56ch;
  margin: 0 auto 2em;
  font-size: 1.15rem;
  color: rgba(255,255,255,.92);
}
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ------------------------ BUTTONS ------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary { background: var(--ember); color: var(--snow); }
.btn--primary:hover { background: var(--ember-dark); color: var(--snow); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--secondary { background: transparent; color: var(--snow); border-color: rgba(255,255,255,.4); }
.btn--secondary:hover { background: rgba(255,255,255,.15); color: var(--snow); border-color: var(--snow); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--snow); }

/* ------------------------ SECTION ------------------------ */
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section--ice { background: var(--ice-light); }
.section--navy { background: var(--navy); color: var(--snow); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--snow); }
.section--cream { background: var(--cream); }
.section__head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section__eyebrow {
  display: inline-block;
  color: var(--ember);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section__lede { font-size: 1.1rem; color: var(--grey-700); margin: 0 auto; max-width: 56ch; }
.section--navy .section__lede { color: rgba(255,255,255,.85); }

/* ------------------------ HIGHLIGHTS / FEATURE CARDS ------------------------ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--snow);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11,37,69,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature__icon {
  display: inline-flex;
  width: 56px; height: 56px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--ice-light);
  color: var(--navy);
  margin-bottom: 18px;
  font-size: 28px;
}
.feature h3 { margin: 0 0 8px; font-size: 1.2rem; }
.feature p { margin: 0; color: var(--grey-700); font-size: .98rem; }

/* ------------------------ EVENTS / SCHEDULE ------------------------ */
.day-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 auto 40px;
  max-width: 700px;
}
.day-tab {
  background: var(--snow);
  border: 2px solid var(--ice);
  color: var(--navy);
  padding: 18px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.day-tab small { display: block; font-family: var(--font-body); font-size: .8rem; font-weight: 400; color: var(--grey-500); margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }
.day-tab.is-active { background: var(--navy); color: var(--snow); border-color: var(--navy); }
.day-tab.is-active small { color: var(--ice); }

.day-panel { display: none; }
.day-panel.is-active { display: block; }

.event-list {
  display: grid;
  gap: 12px;
}
.event {
  display: grid;
  grid-template-columns: 130px 1fr 200px;
  gap: 24px;
  padding: 22px 24px;
  background: var(--snow);
  border: 1px solid rgba(11,37,69,.08);
  border-left: 4px solid var(--ember);
  border-radius: var(--radius-md);
  align-items: center;
  transition: box-shadow .15s ease, transform .15s ease;
}
.event:hover { box-shadow: var(--shadow-md); transform: translateX(2px); }
.event__time {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
}
.event__main h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--navy); }
.event__main p { margin: 0; color: var(--grey-500); font-size: .92rem; }
.event__cost {
  text-align: right;
  font-size: .88rem;
  color: var(--grey-700);
  background: var(--ice-light);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
@media (max-width: 800px) {
  .event { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .event__cost { text-align: left; justify-self: start; }
}

/* ------------------------ MAP ------------------------ */
.festival-map-canvas {
  height: 460px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--grey-100);
  z-index: 0;
}
.festival-map-canvas .leaflet-popup-content { font-family: var(--font-body); font-size: .95rem; line-height: 1.4; }
.map-popup strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); display: block; margin-bottom: 2px; }
@media (max-width: 600px) { .festival-map-canvas { height: 360px; } }

/* ------------------------ MAIN STAGE TABLE ------------------------ */
.main-stage-table-wrap {
  background: var(--snow);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  max-width: 900px;
  margin: 0 auto;
}
.main-stage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.main-stage-table thead th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .02em;
}
.main-stage-table tbody td {
  padding: 14px 22px;
  border-bottom: 1px solid rgba(11,37,69,.08);
  color: var(--grey-800);
  vertical-align: top;
}
.main-stage-table tbody tr:last-child td { border-bottom: 0; }
.main-stage-table tbody td:first-child {
  white-space: nowrap;
  font-weight: 600;
  color: var(--navy);
  width: 1%;
}
.main-stage-table tbody tr:hover td { background: rgba(142,202,230,.10); }
@media (max-width: 600px) {
  .main-stage-table thead th,
  .main-stage-table tbody td { padding: 12px 14px; font-size: .95rem; }
}

/* ------------------------ GALLERY ------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-grid a {
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--grey-100);
  position: relative;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }

/* simple lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(7,24,47,.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  z-index: 200;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,.1);
  color: var(--snow);
  border: 0; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; font-size: 24px;
}

/* ------------------------ SPONSORS ------------------------ */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.sponsor {
  background: var(--snow);
  border: 1px solid rgba(11,37,69,.08);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.sponsor:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ember); }
.sponsor__img-wrap {
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.sponsor img { max-height: 120px; max-width: 100%; object-fit: contain; }
.sponsor h3 { margin: 0; font-size: 1rem; font-family: var(--font-body); font-weight: 600; color: var(--navy); line-height: 1.3; }

/* ------------------------ PLACES TO EAT / INFO STRIPE ------------------------ */
.info-stripe {
  background: var(--navy);
  color: var(--snow);
  padding: 60px 24px;
  text-align: center;
}
.info-stripe h2 { color: var(--snow); margin-bottom: .3em; }
.info-stripe p { color: rgba(255,255,255,.85); }

/* ------------------------ POSTERS ------------------------ */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.poster {
  background: var(--snow);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.poster:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.poster img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.poster__year {
  text-align: center;
  padding: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
}

/* ------------------------ CONTACT / CTA ------------------------ */
.contact-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  border: 1px solid rgba(11,37,69,.06);
}
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 32px 0;
  list-style: none;
  padding: 0;
}
.contact-list li { background: var(--snow); padding: 24px; border-radius: var(--radius-md); border: 1px solid rgba(11,37,69,.08); }
.contact-list strong { display: block; color: var(--navy); margin-bottom: 6px; }
.contact-list a { color: var(--ember-dark); font-weight: 500; }

/* ------------------------ FOOTER ------------------------ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.78);
  padding: 72px 24px 32px;
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
.site-footer h4 { color: var(--snow); font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0 0 14px; letter-spacing: .04em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--ice); }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 56px;
  padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  max-width: var(--container);
  margin-left: auto; margin-right: auto;
}
.site-footer__social { display: flex; gap: 12px; margin-top: 8px; }
.site-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  transition: background .15s ease, border-color .15s ease;
}
.site-footer__social a:hover { background: var(--ember); border-color: var(--ember); }
.site-footer__social svg { width: 18px; height: 18px; fill: currentColor; }

.waiver {
  background: rgba(255,255,255,.04);
  padding: 24px;
  border-radius: var(--radius-md);
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.06);
}

@media (max-width: 800px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ------------------------ PROSE PAGES (privacy, etc.) ------------------------ */
.prose { max-width: 70ch; margin: 0 auto; }
.prose h1 { margin-bottom: .6em; }
.prose h2 { margin-top: 1.6em; }
.prose ol, .prose ul { padding-left: 1.4em; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }

/* ------------------------ UTILITY ------------------------ */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only { position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ------------------------ SKIP LINK ------------------------ */
.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--navy);
  color: var(--snow);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { top: 0; }
