:root {
  --bg: #f4f0ea;
  --bg-alt: #efe5db;
  --ink: #1f1b18;
  --muted: #524a44;
  --accent: #f05d2a;
  --accent-dark: #b13f1b;
  --sky: #f7c552;
  --stone: #d8c6b8;
  --white: #fffaf4;
  --shadow: rgba(31, 27, 24, 0.15);
  --paper: #f8f2ea;
  --pill: #f3d8c6;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Gill Sans", "Optima", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fbf4eb 0%, #f4e6d6 45%, #f1e1d1 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 250, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 27, 24, 0.08);
}

.hero-stripe {
  background: #1f1b18;
  color: #fff7ef;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: auto;
  height: 60px;
  object-fit: contain;
}

.brand-name {
  font-size: 0.95rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.4rem;
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
  margin: 5px 0;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  padding-right: 1rem;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero h1 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2.8rem, 3.6vw, 4.2rem);
  line-height: 1.1;
  margin: 0.6rem 0 1rem;
}

.hero-title-accent {
  color: var(--accent);
}

.hero-lead {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  background: var(--white);
  border-radius: 0.9rem;
  padding: 0.8rem 1.4rem;
  box-shadow: 0 14px 34px var(--shadow);
  font-size: 0.95rem;
  line-height: 1.3;
}

.hero-pill strong {
  font-weight: 700;
  color: var(--accent-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0 0.8rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-media {
  position: relative;
  justify-self: end;
}

.hero-stack {
  position: relative;
  width: min(110%, 680px);
  height: 440px;
  margin-right: -1.5rem;
}

.hero-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem 0 0 1rem;
  box-shadow: 0 20px 46px var(--shadow);
}

.hero-bubble {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 28px rgba(31, 27, 24, 0.25);
}

.hero-bubble--top {
  top: -20px;
  right: -18px;
}

.hero-bubble--bottom {
  bottom: -22px;
  left: -18px;
}

.full-bleed-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.full-bleed-media {
  width: 100%;
  min-height: 380px;
  background-image: url("images/main-hero.jpeg");
  background-size: cover;
  background-position: center;
  
  box-shadow: 0 18px 40px var(--shadow);
}


.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.8rem 1.5rem;
}

.section-full {
  max-width: 100%;
}

.schedule-section {
  background: #f7f0e7;
  padding-left: 3rem;
  padding-right: 3rem;
}

.section-alt {
  background: var(--bg-alt);
  border-radius: 2.8rem;
  margin: 2.5rem auto;
  box-shadow: inset 0 0 0 1px rgba(31, 27, 24, 0.04);
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.6rem;
}

.section-header h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  margin-bottom: 0.6rem;
}

.section-header p {
  font-size: 1.05rem;
}

.card-grid,
.prize-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card,
.prize-card {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 14px 28px var(--shadow);
}

.about-section {
  padding-left: 0;
  padding-right: 0;
  padding-top: 5.6rem;
  padding-bottom: 5.2rem;
}

.about-section .section-header,
.about-section .about-grid {
  padding: 0;
}

.about-grid {
  gap: 1rem;
}

.about-card {
  padding: 0 0 1.4rem;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-body {
  padding: 0 1.5rem;
}

.about-cover {
  border-radius: 1.4rem;
  padding: 1.2rem;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fbf4ec;
  position: relative;
  overflow: hidden;
}

.about-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}

.about-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 55%);
  mix-blend-mode: screen;
}

.about-section .section-header h2 {
  font-size: clamp(2.6rem, 3.6vw, 3.8rem);
}

.about-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

.about-title {
  font-size: 1.3rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.about-cover--ride {
  background: linear-gradient(140deg, #1f1b18 0%, #3b2a22 45%, #f05d2a 100%);
}

.about-cover--crew {
  background: linear-gradient(140deg, #1a403b 0%, #2ccac2 55%, #f7c552 100%);
  color: #0f2b28;
}

.about-cover--carnival {
  background: linear-gradient(140deg, #3f1b3c 0%, #682d63 45%, #f0852b 100%);
}

.about-cover--clue {
  background: linear-gradient(140deg, #3a2d12 0%, #7b5d1b 45%, #f7c547 100%);
  color: #2c1c08;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1rem;
}

.mosaic-card {
  border-radius: 1.4rem;
  padding: 1.4rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #1c1511;
  box-shadow: 0 12px 26px var(--shadow);
  position: relative;
  overflow: hidden;
}

.mosaic-card h3 {
  font-size: 2.35rem;
  line-height: 40px;
  font-weight: 800;
  margin: 0.2rem 0 0.6rem;
}

.mosaic-card--image {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
}

.mosaic-card--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mosaic-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(180deg, rgba(24, 16, 12, 0) 0%, rgba(24, 16, 12, 0.75) 100%);
  color: var(--white);
}

.mosaic-title {
  font-weight: 700;
  margin: 0 0 0.3rem;
}

.mosaic-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.mosaic-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.6);
}

.mosaic-card--coral {
  grid-column: span 2;
  background: #ff5a4e;
  color: #fff6f2;
}

.mosaic-card--gold {
  grid-column: span 2;
  background: #f7c547;
}

.mosaic-card--teal {
  grid-column: span 3;
  background: #2ccac2;
}

.mosaic-card--slate {
  grid-column: span 2;
  background: #6f7bf5;
  color: #f4f6ff;
}

.mosaic-card--sunset {
  grid-column: span 2;
  background: #f0852b;
  color: #fff7ef;
}

.mosaic-card--cta {
  grid-column: span 2;
  background: #1f1b18;
  color: #fff6f2;
}

.mosaic-card--cta .mosaic-pill {
  background: rgba(255, 255, 255, 0.18);
}

.mosaic-cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.6rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: #fff6f2;
  color: #1f1b18;
  font-weight: 700;
  font-size: 0.85rem;
}

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

.step {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(31, 27, 24, 0.08);
}

.steps-pill {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step-pill {
  padding: 1.6rem 1.6rem 2.2rem;
  border-radius: 2.2rem;
  color: #0f0b08;
  text-align: center;
  box-shadow: 0 18px 30px rgba(31, 27, 24, 0.22);
  position: relative;
  overflow: hidden;
}

.step-pill::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2.8rem;
  transform: translateX(-50%);
  width: 120%;
  height: 5.4rem;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 100% 100% 0 0;
}

.step-icon {
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.6rem;
}

.step-pill .step-number {
  display: block;
  margin-bottom: 0.4rem;
  color: inherit;
  opacity: 0.8;
}

.step-pill h3 {
  margin-top: 0.2rem;
}

.step-pill .step-note {
  color: rgba(15, 11, 8, 0.75);
}

.step-tag {
  display: inline-flex;
  margin-top: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
}

.step-pill--plum {
  background: linear-gradient(160deg, #c8b7e6, #e7d9f6);
  color: #3b2b4d;
}

.step-pill--lime {
  background: linear-gradient(160deg, #cfe9c0, #e8f5d8);
}

.step-pill--gold {
  background: linear-gradient(160deg, #f6e2b0, #f9efd1);
}

.step-pill--sky {
  background: linear-gradient(160deg, #c5e6f5, #e2f3fb);
}

.step-number {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-dark);
}

.step-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.schedule-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.schedule-track {
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(31, 27, 24, 0.1), rgba(31, 27, 24, 0.35), rgba(31, 27, 24, 0.1));
  z-index: 0;
}

.schedule-card {
  position: relative;
  background: var(--white);
  padding: 1.4rem 1.5rem 1.6rem;
  border-radius: 1.6rem;
  box-shadow: 0 12px 26px var(--shadow);
  z-index: 1;
}

.schedule-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: -12px;
  left: 1.5rem;
  border: 3px solid var(--white);
  box-shadow: 0 8px 16px rgba(240, 93, 42, 0.35);
}

.schedule-time {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.schedule-label {
  color: var(--muted);
  margin: 0.2rem 0 0;
}

.register-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  background: var(--white);
  border-radius: 2.4rem;
  padding: 2.4rem;
  box-shadow: 0 16px 36px var(--shadow);
}

.register-form {
  background: var(--bg-alt);
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.register-status {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.register-points {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.terms {
  display: flex;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.gallery-section .section-header {
  padding: 0 1.5rem;
}

.gallery-section .gallery {
  column-count: 4;
  column-gap: 1rem;
  padding: 0 1.5rem 1.5rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 10px 22px var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.btn {
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(240, 93, 42, 0.32);
}

.btn-secondary {
  border-color: #d3b7a7;
  color: #7a4b34;
  background: var(--pill);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.site-footer {
  padding: 3.5rem 1.5rem 4.5rem;
  text-align: center;
  background: #201613;
  color: #f9f3ea;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.logo-row img {
  width: 90px;
  height: 60px;
  object-fit: contain;
  filter: brightness(1.1);
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
  }

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

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    padding: 1rem;
    border-radius: 1rem;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .section-alt {
    border-radius: 1.5rem;
  }

  .schedule-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .mosaic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mosaic-card,
  .mosaic-card--image {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-badge {
    left: 1rem;
    bottom: -1.8rem;
  }

  .gallery-section .gallery {
    column-count: 2;
  }

  .mosaic-grid {
    grid-template-columns: 1fr;
  }

  .mosaic-card,
  .mosaic-card--image {
    grid-column: span 1;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .gallery-section .gallery {
    column-count: 1;
  }
}
