:root {
  --bg: #1e2a1f;
  --bg-dark: #151d16;
  --accent: #b59b63;
  --text: #f1eee6;
  --text-muted: #d6d2c6;
  --card: #263126;
  /* Switch to hero2.jpg when desired */
  --hero-image: url("assets/img/hero2.jpg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 48px; /* Add space for sticky banner */
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Sticky Banner */
.sticky-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-dark);
  color: var(--text);
  z-index: 1000;
  overflow: hidden;
  height: 48px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sticky-banner__scroll {
  display: flex;
  width: max-content;
  animation: scroll-banner 25s linear infinite;
}

.sticky-banner__text {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 2rem;
}

.sticky-banner__link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 700;
  margin-left: 0.5rem;
  transition: opacity 0.2s ease;
}

.sticky-banner__link:hover {
  opacity: 0.8;
  color: var(--accent);
}

.sticky-banner__scroll:hover {
  animation-play-state: paused;
}

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

h1,
h2,
h3 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
}

p {
  margin: 0 0 1rem 0;
}

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

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background: var(--bg-dark) var(--hero-image) center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 29, 22, 0.5), rgba(21, 29, 22, 0.9));
}

.hero__content {
  position: relative;
  padding: 4rem 0 3rem;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.lead {
  max-width: 640px;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #1b1f1a;
}

.btn--ghost {
  background: transparent;
  border-color: var(--accent);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
}

.section {
  padding: 3.5rem 0;
  background: var(--bg);
}

.section--dark {
  background: #141c15;
}

.section__intro {
  max-width: 760px;
  color: var(--text-muted);
}

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

.section--logo-grid {
  background: #233028;
  padding: 3rem 0;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3rem;
  margin-top: 1.5rem;
}

.logo-grid a {
  display: inline-block;
}

.logo-grid img {
  height: 56px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo-grid a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
  padding: 1.25rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee__inner {
  display: flex;
  width: max-content;
  animation: logo-marquee 32s linear infinite;
}

.logo-marquee__inner:hover {
  animation-play-state: paused;
}

.logo-marquee__group {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
}

.logo-marquee img {
  height: 56px;
  width: auto;
  opacity: 0.78;
  filter: grayscale(100%);
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.logo-marquee img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}

.cards {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.card {
  background: var(--card);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.note {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 200, 0, 0.1);
  border-left: 4px solid var(--accent, #ffc800);
  border-radius: 0 6px 6px 0;
  color: var(--text);
  font-style: italic;
  font-weight: 500;
}

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

.timeline li {
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
}

.timeline .time {
  display: block;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.info-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.signup {
  margin-top: 2rem;
  display: grid;
  gap: 1.75rem;
}

.signup__details,
.signup__cta {
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.signup__count {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.signup__count .count {
  color: var(--accent);
  font-size: 2rem;
  display: inline-block;
  margin-right: 0.25rem;
}

.btn--wide {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.signup__hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.signup__notice {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.info-grid div {
  background: rgba(255, 255, 255, 0.04);
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer {
  background: var(--bg-dark);
  padding: 2.5rem 0;
}

.footer__content {
  display: grid;
  gap: 2rem;
}

.footer__meta {
  color: var(--text-muted);
}

.footer__social {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: rgba(181, 155, 99, 0.2);
}

@keyframes logo-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-25%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee__inner,
  .sticky-banner__scroll {
    animation: none;
  }
}

@media (min-width: 720px) {
  .hero {
    min-height: 70vh;
  }

  .cards,
  .info-grid,
  .signup {
    grid-template-columns: repeat(3, 1fr);
  }

  .signup {
    grid-template-columns: 2fr 1fr;
  }

  .footer__content {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .hero__content {
    padding: 5rem 0 4rem;
  }

  h1 {
    font-size: 3.2rem;
  }
}

/* Registration Form Styles */
.page-header {
  background: var(--bg-dark);
  padding: 2rem 0 3rem;
}

.back-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.back-link:hover {
  text-decoration: underline;
}

.notice {
  margin-top: 1rem;
  color: #ff6b6b;
  font-weight: 600;
  font-size: 1rem;
}

.notice--full {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: rgba(255, 107, 107, 0.12);
  border-left: 4px solid #ff6b6b;
  border-radius: 4px;
  color: #ff6b6b;
  font-size: 1rem;
  line-height: 1.6;
}

.notice--prominent {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 107, 107, 0.12);
  border-left: 4px solid #ff6b6b;
  border-radius: 4px;
  color: #ff6b6b;
  font-size: 1rem;
  line-height: 1.6;
}

.registration-form {
  max-width: 800px;
}

.form-section {
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group input {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.vehicle-entry {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.vehicle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.vehicle-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.btn-remove {
  background: transparent;
  border: 1px solid rgba(255, 100, 100, 0.4);
  color: #ff8080;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-remove:hover {
  background: rgba(255, 100, 100, 0.15);
  border-color: rgba(255, 100, 100, 0.6);
}

.lunch-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lunch-input {
  width: 80px;
}

.lunch-price {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn--add {
  width: 100%;
  margin-bottom: 2rem;
}

.form-summary {
  background: var(--card);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-total {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--accent);
}

.form-submit {
  text-align: center;
}

.form-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.success-message,
.error-message {
  text-align: center;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.success-message h2 {
  color: var(--accent);
}

.error-message h2 {
  color: #ff8080;
}

.success-message p,
.error-message p {
  max-width: 500px;
  margin: 1rem auto;
  color: var(--text-muted);
}

@media (min-width: 720px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row:has(.lunch-input-wrapper) {
    grid-template-columns: 1fr 1fr 1.5fr;
  }
}

/* Motorcycle checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Volunteer form */
.volunteer-form {
  margin-top: 1.5rem;
}

/* Partner form total cost */
.total-cost-box {
  background: var(--card);
  padding: 1rem;
  border-radius: 4px;
  margin: 1.5rem 0;
  border: 2px solid var(--accent);
  color: var(--text);
  font-size: 1.1rem;
}

.total-cost-box strong {
  color: var(--text-muted);
}

.total-cost-box #totalAmount {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
}
