/* Durango Wheel Club — 90s Stumpjumper / Worlds cap palette */

:root {
  /* 90s MTB & cap: bold primaries */
  --red: #c41e3a;
  --red-dark: #9f1239;
  --green-90s: #22c55e;
  --green-bright: #4ade80;
  --blue-90s: #1d4ed8;
  --blue-bright: #3b82f6;
  --yellow-90s: #eab308;
  --orange-90s: #f97316;
  /* Stumpjumper gradient */
  --gradient-stump: linear-gradient(135deg, #eab308 0%, #f97316 50%, #dc2626 100%);
  /* Legacy + neutrals */
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #2dd4bf;
  --cream: #fffbeb;
  --cream-dark: #fef3c7;
  --charcoal: #1c1917;
  --stone: #44403c;
  --white: #fafaf9;
  --border: rgba(28, 25, 23, 0.14);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem; /* 16px base for mobile zoom / accessibility */
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Subtle retro warmth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(254, 243, 199, 0.35) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

@media (min-width: 640px) {
  body { font-size: 1.0625rem; }
}

a {
  color: var(--blue-90s);
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(29, 78, 216, 0.15);
}

a:hover {
  color: var(--red);
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

.container--wide {
  max-width: 880px;
}

.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  margin: 0 0 1.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--charcoal);
  box-shadow: 0 3px 0 0 var(--red);
  display: inline-block;
}

/* Header — 90s stripe */
.site-header {
  position: sticky;
  top: 0;
  z-index: 101;
  background: var(--white);
  border-bottom: 4px solid var(--charcoal);
  box-shadow: 0 2px 0 var(--red);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.logo:hover {
  color: var(--red);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 1.75rem;
}

.main-nav a {
  font-weight: 500;
  color: var(--stone);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
}

.main-nav a:hover {
  color: var(--red);
}

.nav-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--charcoal);
  background: transparent;
  border-radius: 4px;
  color: var(--charcoal);
}

.nav-toggle::before {
  content: "☰";
  font-size: 1.1rem;
}

/* Hero — compact height */
.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 4rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--cream) 0%, #fff8e7 30%, rgba(254, 243, 199, 0.95) 60%, rgba(234, 179, 8, 0.06) 100%);
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  background: radial-gradient(ellipse at 85% 40%, rgba(249, 115, 22, 0.08) 0%, rgba(29, 78, 216, 0.04) 50%, transparent 70%);
  pointer-events: none;
}

/* Retro stripe accent */
.hero-bg::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-stump);
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-90s);
  margin: 0 0 0.5rem;
  text-shadow: 0 0 0 var(--charcoal);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  margin: 0 0 0.5rem;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.8);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--stone);
  max-width: 420px;
  margin: 0 auto 0.5rem;
}

.hero-inclusive {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-90s);
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* 2030 badge — cap / Worlds style */
.hero-badge {
  position: absolute;
  bottom: max(2rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 1;
  color: var(--blue-90s);
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
}

.hero-badge::before {
  content: "2030 ";
  color: var(--green-90s);
}

/* Buttons — min 44px touch target */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  border: 2px solid transparent;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--gradient-stump);
  color: var(--white);
  border-color: var(--red-dark);
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  filter: brightness(1.08);
  color: var(--white);
  text-decoration: none;
  border-color: var(--red-dark);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  border-color: var(--red);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Intro — 90s stripe */
.intro .container {
  position: relative;
  padding-left: 1.5rem;
}

.intro .container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-stump);
  border-radius: 0 2px 2px 0;
}

.intro-lead {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--stone);
  margin: 0;
}

/* About timeline — polished, premium */
.about-timeline {
  background: var(--charcoal);
  color: var(--cream);
  padding: 4rem 0;
}

.about-timeline .section-title {
  color: inherit;
}

.timeline-head {
  margin-bottom: 2.5rem;
}

.timeline-eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 0.5rem;
}

.timeline-title {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 3rem);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255, 251, 235, 0.12);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-marker {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: var(--yellow-90s);
  padding-top: 0.15rem;
  min-width: 4rem;
  text-shadow: 0 0 0 var(--charcoal);
}

.timeline-card {
  padding: 0;
}

.timeline-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.timeline-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 251, 235, 0.85);
}

@media (min-width: 640px) {
  .timeline-item {
    grid-template-columns: 6rem 1fr;
    padding: 2rem 0;
  }
  .timeline-marker {
    font-size: 1.25rem;
    min-width: 6rem;
  }
}

/* 2030 Worlds */
.worlds-2030 p {
  margin: 0 0 1rem;
  color: var(--stone);
}

.worlds-lead {
  font-size: 1.125rem;
  color: var(--charcoal);
}

/* Sponsors */
.sponsor-feature {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .sponsor-feature {
    grid-template-columns: 1fr 200px;
  }
}

.sponsor-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-90s);
}

.sponsor-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  margin: 0.25rem 0 0.75rem;
}

.sponsor-feature-content p {
  margin: 0 0 0.75rem;
  color: var(--stone);
}

.sponsor-meta {
  font-size: 0.875rem;
  color: var(--red);
  font-weight: 500;
}

.sponsor-feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logo-placeholder {
  width: 140px;
  height: 140px;
  background: var(--gradient-stump);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sponsor-inquiry {
  font-size: 0.9375rem;
  color: var(--stone);
  margin: 0;
}

/* Events */
.events-intro {
  margin: 0 0 1.5rem;
  color: var(--stone);
}

.events-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.event-item {
  display: grid;
  gap: 0.25rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
}

@media (max-width: 480px) {
  .event-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .event-date {
    grid-row: auto;
    min-width: 0;
  }
  .event-desc {
    grid-column: 1;
  }
}

.event-item:last-child {
  border-bottom: none;
}

.event-date {
  grid-row: 1 / -1;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--green-90s);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 8rem;
}

.event-name {
  font-weight: 600;
  color: var(--charcoal);
}

.event-desc {
  font-size: 0.9375rem;
  color: var(--stone);
  grid-column: 2;
}

.events-note {
  font-size: 0.9375rem;
  color: var(--stone);
  margin: 0;
}

/* CTA section — Stumpjumper stripe */
.cta-section {
  background: linear-gradient(180deg, var(--white) 0%, #fff8e7 100%);
  border-top: 4px solid var(--charcoal);
  box-shadow: inset 0 4px 0 0 var(--red);
}

.cta-section .section-title {
  margin-bottom: 0.5rem;
}

.cta-text {
  margin: 0 0 1.5rem;
  color: var(--stone);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  background: var(--charcoal);
  color: var(--cream);
}

.site-footer a {
  color: var(--green-bright);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.25rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 251, 235, 0.8);
  margin: 0 0 0.75rem;
}

.footer-usa-cycling {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 251, 235, 0.85);
}

.footer-usa-logo {
  width: 48px;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

.footer-nav {
  margin-bottom: 1rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--green-bright);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-legal {
  font-size: 0.8125rem;
  color: rgba(255, 251, 235, 0.6);
  margin: 0;
}

/* Inner pages */
.page-header {
  padding: 3rem 0 2rem;
  background: var(--white);
  border-bottom: 4px solid var(--charcoal);
  box-shadow: 0 4px 0 0 var(--red);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--charcoal);
}

.page-content {
  padding: 2.5rem 0 4rem;
}

.history-photo {
  margin: 0 0 2rem;
}

.history-photo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 2px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.history-photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--stone);
  font-style: italic;
}

.page-content p {
  margin: 0 0 1rem;
  color: var(--stone);
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 2rem 0 0.75rem;
  color: var(--charcoal);
}

.page-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--stone);
}

/* Members page notice */
.members-notice {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.06) 0%, rgba(249, 115, 22, 0.05) 50%, rgba(196, 30, 58, 0.04) 100%);
  border: 2px solid var(--red);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.members-notice h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--charcoal);
}

.members-notice p {
  margin: 0;
  color: var(--stone);
}

.usa-cycling-badge {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.usa-cycling-logo {
  flex-shrink: 0;
  width: 80px;
  height: auto;
  object-fit: contain;
}

.usa-cycling-badge h2 {
  margin-top: 0;
}

/* Signup form */
.signup-form {
  margin: 1.5rem 0;
  max-width: 28rem;
}

.signup-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 1rem 0 0.35rem;
}

.signup-form label:first-of-type {
  margin-top: 0;
}

.signup-form input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--charcoal);
}

.signup-form input:focus {
  outline: none;
  border-color: var(--blue-90s);
}

.signup-form .btn {
  margin-top: 1.25rem;
}

.signup-note {
  font-size: 0.875rem;
  color: var(--stone);
  margin: 0.5rem 0 0;
}

/* Membership tiers */
.tiers {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 560px) {
  .tiers {
    grid-template-columns: 1fr 1fr;
  }
}

.tier-card {
  padding: 1.5rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
}

.tier-card--featured {
  border-color: var(--red);
  background: linear-gradient(180deg, rgba(196, 30, 58, 0.06) 0%, var(--white) 30%);
}

.tier-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-90s);
  margin-bottom: 0.25rem;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  margin: 0 0 0.75rem;
}

.tier-period {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--stone);
}

.tier-note {
  font-size: 0.9375rem;
  color: var(--stone);
  margin: 0 0 0.5rem;
}

.tier-benefits {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--stone);
  font-size: 0.9375rem;
}

.tier-benefits li {
  margin-bottom: 0.35rem;
}

/* Mobile nav and layout */
@media (max-width: 600px) {
  .hero {
    min-height: 50vh;
    padding: 2.5rem 1rem 3.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    border-bottom: 4px solid var(--red);
  }

  .main-nav.is-open a {
    min-height: 48px;
    justify-content: flex-start;
    padding-left: 0.5rem;
  }

  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 2px solid var(--charcoal);
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    border-radius: 4px;
    -webkit-tap-highlight-color: transparent;
  }
}

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