/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --plaid-red:    #A31C2E;   /* Plaid Pantry crimson */
  --plaid-dark:   #7A1020;   /* darker crimson for hover/shadow */
  --plaid-navy:   #2A1F6E;   /* Plaid Pantry deep navy/purple */
  --plaid-gold:   #E8AA00;   /* Plaid Pantry golden yellow */
  --plaid-black:  #1a1a1a;
  --plaid-white:  #FAFAFA;
  --plaid-tan:    #FDF6E3;   /* warm off-white tinted toward gold */
  --accent-gold:  #E8AA00;
  --text-main:    #1a1a1a;
  --radius:       12px;
  --radius-lg:    24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  color: var(--text-main);
  background: var(--plaid-white);
  overflow-x: hidden;
}

/* === PLAID PATTERN UTILITY === */
.plaid-sash {
  width: 100%;
  height: 18px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--plaid-red)  0px,  var(--plaid-red)  30px,
      #fff              30px, #fff              36px,
      var(--plaid-navy) 36px, var(--plaid-navy) 42px,
      #fff              42px, #fff              48px,
      var(--plaid-gold) 48px, var(--plaid-gold) 78px,
      #fff              78px, #fff              84px,
      var(--plaid-navy) 84px, var(--plaid-navy) 90px,
      #fff              90px, #fff              96px
    );
}

/* === CONTAINER === */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HERO === */
.hero {
  background-color: var(--plaid-red);
  background-image:
    repeating-linear-gradient(
      transparent, transparent 39px,
      rgba(255,255,255,0.12) 39px, rgba(255,255,255,0.12) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent, transparent 39px,
      rgba(255,255,255,0.12) 39px, rgba(255,255,255,0.12) 40px
    ),
    repeating-linear-gradient(
      transparent, transparent 9px,
      rgba(0,0,0,0.08) 9px, rgba(0,0,0,0.08) 10px
    ),
    repeating-linear-gradient(
      90deg,
      transparent, transparent 9px,
      rgba(0,0,0,0.08) 9px, rgba(0,0,0,0.08) 10px
    );
  color: #fff;
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero .plaid-sash {
  margin-bottom: 0;
  height: 10px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--plaid-gold) 0px, var(--plaid-gold) 30px,
      var(--plaid-navy) 30px, var(--plaid-navy) 60px
    );
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 48px 24px 0;
}

.pedalpalooza-tag {
  display: inline-block;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.title {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 0.9;
  letter-spacing: -2px;
  color: #fff;
  text-shadow: 6px 6px 0 rgba(0,0,0,0.25);
}

.title-ride {
  color: var(--accent-gold);
  -webkit-text-stroke: 2px rgba(0,0,0,0.15);
}

.subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  margin: 20px auto 32px;
  max-width: 520px;
  opacity: 0.95;
  font-family: 'Permanent Marker', cursive;
}

.date-badge {
  display: inline-flex;
  flex-direction: column;
  background: #fff;
  color: var(--plaid-red);
  border-radius: var(--radius);
  padding: 14px 32px;
  margin-bottom: 32px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

.date-label {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.date-sub {
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.75;
  margin-top: 4px;
}

.cta-btn {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--plaid-black);
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1.4rem;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 100px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.3);
}

.hero-bikes {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  font-size: 2rem;
  opacity: 0.2;
  pointer-events: none;
}

.bike {
  display: inline-block;
  animation: cruise 8s linear infinite;
}
.b2 { animation-delay: -2.5s; }
.b3 { animation-delay: -5s; }

@keyframes cruise {
  0%   { transform: translateX(-80px); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(80px); opacity: 0; }
}

/* === SECTIONS === */
.section {
  padding: 72px 0;
}

.section h2 {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 28px;
  text-align: center;
  color: var(--plaid-black);
}

.section-intro {
  text-align: center;
  font-size: 1.15rem;
  opacity: 0.75;
  margin-bottom: 40px;
  font-weight: 600;
}

/* === WHAT IS THIS === */
.what-is-this {
  background: var(--plaid-tan);
}

.icon-row {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: 6px;
}

.big-text {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
}

.pantry-callout {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--plaid-red);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  max-width: 600px;
  margin: 24px auto;
  font-family: 'Permanent Marker', cursive;
  font-size: 1.2rem;
  line-height: 1.5;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
}

.pantry-plaid {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      45deg,
      var(--plaid-gold) 0,    var(--plaid-gold) 5px,
      #fff              5px,  #fff              10px,
      var(--plaid-navy) 10px, var(--plaid-navy) 15px,
      #fff              15px, #fff              20px
    );
}

/* === DETAILS === */
.details-section {
  background: var(--plaid-black);
  color: #fff;
}

.details-section h2 { color: #fff; }

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.detail-card {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: background 0.2s;
}

.detail-card:hover {
  background: rgba(255,255,255,0.14);
}

.detail-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.detail-card h3 {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-card p {
  font-size: 1rem;
  line-height: 1.4;
}

.detail-sub {
  font-size: 0.82rem !important;
  opacity: 0.6;
  margin-top: 4px;
}

/* === EMAIL === */
.email-section {
  background: var(--plaid-white);
}

.email-section a {
  font-size: 2rem;
  text-align: center;
  display: block;
}


/* === HOW IT WORKS === */
.how-section {
  background: var(--plaid-white);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.mode-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 3px solid;
}

.mode-card.solo {
  border-color: var(--plaid-red);
  background: #fff8f8;
}

.mode-card.relay {
  border-color: var(--plaid-navy);
  background: #f0f0fa;
}

.mode-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.mode-icon {
  font-size: 2.2rem;
}

.mode-card h3 {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1.6rem;
}

.mode-card.solo h3 { color: var(--plaid-red); }
.mode-card.relay h3 { color: var(--plaid-navy); }

.mode-card > p {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 20px;
  opacity: 0.8;
}

.mode-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-card ul li {
  padding-left: 24px;
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
}

.mode-card.solo ul li::before  { content: '🔴'; position: absolute; left: 0; font-size: 0.75rem; top: 3px; }
.mode-card.relay ul li::before { content: '🔵'; position: absolute; left: 0; font-size: 0.75rem; top: 3px; }

/* === PROOF OF PLAID === */
.proof-section {
  background: var(--plaid-tan);
}

.proof-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.proof-num {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 3rem;
  color: var(--plaid-red);
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
  text-align: center;
}

.proof-text h3 {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.proof-text p {
  font-size: 1rem;
  line-height: 1.6;
}

.snack-tip {
  background: var(--accent-gold);
  color: var(--plaid-black);
  border-radius: var(--radius);
  padding: 18px 28px;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  font-weight: 600;
}

/* === FINISH LINE === */
.finish-section {
  background: var(--plaid-navy);
  color: #fff;
}

.finish-section h2 { color: var(--plaid-gold); }

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

.finish-details {
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: left;
  border: 2px solid rgba(255,255,255,0.2);
}

.finish-graphic {
  font-size: 5rem;
  flex-shrink: 0;
}

.finish-text h3 {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 2rem;
  margin-bottom: 6px;
}

.finish-address {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 12px;
}

.finish-time {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--accent-gold);
}

.finish-text p:last-child {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* === QUOTE === */
.quote-section {
  background: var(--plaid-tan);
}

.feature-quote {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  border-left: none;
  padding: 0;
}

.feature-quote p {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  line-height: 1.5;
  color: var(--plaid-red);
  margin-bottom: 20px;
}

.feature-quote cite {
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
  opacity: 0.6;
}

/* === RULES === */
.rules-section {
  background: #fff;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.rule {
  background: var(--plaid-tan);
  border-left: 5px solid var(--plaid-red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 700;
}

.rule:last-child {
  border-left-color: var(--accent-gold);
  background: #fff8e6;
}

/* === FOOTER === */
.site-footer {
  background: var(--plaid-black);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding-bottom: 40px;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
}

.site-footer .plaid-sash {
  margin-bottom: 32px;
}

.footer-title {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
}

.footer-bikes {
  font-size: 1.4rem;
  letter-spacing: 6px;
  margin: 16px 0;
  opacity: 0.4;
}

.footer-disclaimer {
  font-size: 0.85rem;
  opacity: 0.55;
  margin-top: 8px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .finish-details {
    flex-direction: column;
    text-align: center;
  }

  .proof-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .proof-num {
    width: auto;
  }

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