:root {
  --bg: #123524;
  --bg-alt: #edf5ef;
  --accent: #5bbd7c;
  --accent-dark: #2f7a4a;
  --accent-blue: #1f5aa6;
  --accent-gold: #ff6b35;
  --accent-berry: #6a0dad;
  --cta-gradient: linear-gradient(135deg, #2f7a4a 0%, #1f5aa6 52%, #3f7dd1 100%);
  --cta-gradient-hover: linear-gradient(135deg, #3d9b61 0%, #2a6fc0 55%, #4a8dea 100%);
  --cream: #f4f9f2;
  --text: #1f2a23;
  --muted: #4b6656;
  --hero-gradient: radial-gradient(circle at top left, #f4f9f2 0%, #dff0e4 32%, #a7d7b9 62%, #2f7a4a 100%);
  --card-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 249, 242, 0.88));
  --font-body: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Pacifico', 'Brush Script MT', cursive;
  color-scheme: only light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, #f4f9f2 0%, #ffffff 40%, #fef6e6 100%);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

a:hover,
a:focus {
  color: var(--accent-dark);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: rgba(18, 53, 36, 0.85);
  color: white;
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 8px 20px rgba(18, 53, 36, 0.2);
}

.promo-banner {
  background: linear-gradient(120deg, rgba(255, 107, 53, 0.92) 0%, rgba(106, 13, 173, 0.85) 45%, rgba(47, 122, 74, 0.92) 100%);
  color: white;
  padding: 1.25rem 0;
  box-shadow: 0 14px 32px rgba(18, 53, 36, 0.16);
  position: relative;
  z-index: 5;
}

.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 55%);
  pointer-events: none;
}

.promo-banner-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.promo-copy {
  flex: 1 1 360px;
  min-width: 260px;
}

.promo-label {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.35rem;
  opacity: 0.85;
}

.promo-headline {
  font-size: clamp(1.2rem, 2vw + 0.6rem, 1.65rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.promo-subtext {
  margin: 0;
  max-width: 46ch;
}

.promo-banner .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
}

.brand-text {
  letter-spacing: 0.04em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2vw, 2.5rem);
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:focus-visible::after,
.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 0.18rem;
  border-radius: 999px;
  background: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  position: relative;
  color: var(--text);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 6rem);
  background-image:
    linear-gradient(120deg, rgba(244, 249, 242, 0.92) 0%, rgba(244, 249, 242, 0.78) 32%, rgba(18, 53, 36, 0.52) 92%),
    url('images/halloween-parade-hero.png');
  background-size: cover, auto;
  background-position: center, top left;
  background-repeat: no-repeat, repeat;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  gap: clamp(2rem, 6vw, 4rem);
  position: relative;
  z-index: 1;
  justify-items: start;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--bg);
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: rgba(18, 53, 36, 0.75);
  margin-bottom: 1rem;
}

.hero p {
  max-width: 40ch;
}

.hero-copy {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 1.75rem;
  background: rgba(244, 249, 242, 0.82);
  box-shadow: 0 18px 34px rgba(18, 53, 36, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
}

@supports not ((backdrop-filter: blur(1px))) {
  .hero-copy {
    background: rgba(244, 249, 242, 0.92);
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-cta .btn {
  flex: 1 1 200px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
}

.btn.primary {
  background: var(--cta-gradient);
  color: white;
  box-shadow: 0 12px 26px rgba(31, 90, 166, 0.25);
}

.btn.secondary {
  background: rgba(47, 122, 74, 0.12);
  color: var(--accent-dark);
  border-color: rgba(47, 122, 74, 0.22);
  box-shadow: 0 10px 18px rgba(18, 53, 36, 0.08);
}

.btn.highlight {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #f77754 48%, var(--accent-berry) 100%);
  color: white;
  box-shadow: 0 14px 28px rgba(217, 78, 103, 0.28);
}

.btn.outline {
  background: rgba(255, 255, 255, 0.75);
  color: var(--accent-blue);
  border-color: rgba(31, 90, 166, 0.4);
  box-shadow: 0 12px 24px rgba(31, 90, 166, 0.12);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px) scale(1.01);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: var(--cta-gradient-hover);
  box-shadow: 0 15px 30px rgba(31, 90, 166, 0.32);
}

.btn.highlight:hover,
.btn.highlight:focus-visible {
  box-shadow: 0 18px 34px rgba(217, 78, 103, 0.35);
}

.btn.outline:hover,
.btn.outline:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(31, 90, 166, 0.55);
  box-shadow: 0 15px 28px rgba(31, 90, 166, 0.2);
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  background: rgba(47, 122, 74, 0.2);
  box-shadow: 0 12px 24px rgba(18, 53, 36, 0.12);
}

.btn:focus-visible {
  outline: 3px solid rgba(31, 90, 166, 0.4);
  outline-offset: 3px;
}

.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  margin-bottom: 1rem;
  font-family: var(--font-display);
  color: var(--bg);
}

.section-lead {
  max-width: 60ch;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.card {
  position: relative;
  background: var(--card-gradient);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 18px 35px rgba(18, 53, 36, 0.08);
  border: 1px solid rgba(47, 122, 74, 0.16);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  left: 1.75rem;
  right: 1.75rem;
  top: 0.75rem;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue), var(--accent-gold));
  opacity: 0.9;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card h3 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card .tag {
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.section.connect {
  background: linear-gradient(135deg, rgba(31, 90, 166, 0.1), rgba(255, 107, 53, 0.12), rgba(106, 13, 173, 0.12));
}

.connect-wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.connect-intro {
  max-width: 60ch;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.connect-card {
  backdrop-filter: blur(6px);
}

.connect-card h3 {
  color: var(--accent-blue);
}

.connect-card .btn {
  margin-top: 1.5rem;
}

.festivities {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

.fest-card {
  background: linear-gradient(135deg, rgba(91, 189, 124, 0.18), rgba(31, 90, 166, 0.14), rgba(255, 107, 53, 0.2));
  border-radius: 1.5rem;
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: 0 18px 35px rgba(18, 53, 36, 0.08);
}

.fest-card a {
  color: var(--accent-dark);
  font-weight: 700;
}

.schedule {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.25rem;
}

.schedule li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.schedule .time {
  background: var(--accent-dark);
  color: white;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

.tips-card {
  background: var(--card-gradient);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 18px 35px rgba(18, 53, 36, 0.08);
  border: 2px dashed rgba(31, 90, 166, 0.35);
}

.tips-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.visit {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

.visit-card {
  background: var(--card-gradient);
  border-radius: 1.25rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 18px 35px rgba(18, 53, 36, 0.08);
  border: 1px solid rgba(47, 122, 74, 0.16);
}

.visit-card h3 {
  margin-top: 0;
  font-family: var(--font-display);
  color: var(--bg);
}

.visit-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.65rem;
  font-weight: 600;
}

.visit-card ul span {
  color: var(--accent-dark);
  margin-right: 0.5rem;
}

.visit-card .address {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  background: var(--bg);
  color: white;
  padding: 1.5rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 600;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.social-links {
  display: inline-flex;
  gap: 0.75rem;
  font-size: 1.35rem;
}

.social-links a {
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 768px) {
  .promo-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .promo-banner .btn {
    width: 100%;
    max-width: 320px;
  }

  .site-nav {
    position: absolute;
    inset: calc(100% - 2px) 0 auto;
    background: rgba(18, 53, 36, 0.98);
    padding: 1rem 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    text-align: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(0.38rem) rotate(45deg);
  }

  .nav-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-0.38rem) rotate(-45deg);
  }

  .hero-content {
    justify-items: center;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }

  .festivities,
  .visit {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
