/* ============================
   ZWAP Sub-Pages — Shared Styles
   ============================ */

/* ===== SUB-HERO ===== */
.sub-hero {
  position: relative;
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-inverse);
  overflow: hidden;
  padding: calc(80px + var(--space-12)) var(--space-6) var(--space-10);
}

.sub-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sub-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle 1px, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Color Variants */
.sub-hero--ride {
  background: var(--surface-dark);
}
.sub-hero--ride .sub-hero__bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% 40%, rgba(255,140,0,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 20% 80%, rgba(255,140,0,0.04) 0%, transparent 60%);
}

.sub-hero--support {
  background: var(--surface-dark);
}
.sub-hero--support .sub-hero__bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% 40%, rgba(255,77,77,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 80% 80%, rgba(255,77,77,0.04) 0%, transparent 60%);
}

.sub-hero--build {
  background: var(--surface-dark);
}
.sub-hero--build .sub-hero__bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% 40%, rgba(44,181,160,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 80% 80%, rgba(44,181,160,0.04) 0%, transparent 60%);
}

.sub-hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.sub-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeUp 0.7s 0.1s forwards;
}

.sub-hero--ride .sub-hero__badge {
  background: rgba(255,140,0,0.1);
  border: 1px solid rgba(255,140,0,0.2);
  color: var(--orange-light);
}
.sub-hero--support .sub-hero__badge {
  background: rgba(255,77,77,0.1);
  border: 1px solid rgba(255,77,77,0.2);
  color: #FF8A8A;
}
.sub-hero--build .sub-hero__badge {
  background: rgba(44,181,160,0.1);
  border: 1px solid rgba(44,181,160,0.2);
  color: #6EDBC8;
}

.sub-hero__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.sub-hero--ride .sub-hero__title-accent { color: var(--orange); }
.sub-hero--support .sub-hero__title-accent { color: var(--red); }
.sub-hero--build .sub-hero__title-accent { color: var(--teal); }

.sub-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(240,237,232,0.7);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s forwards;
}

/* ===== BACK LINK ===== */
.sub-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-6) 0 var(--space-2);
  transition: color var(--transition);
}
.sub-back-link:hover {
  color: var(--text);
}
.sub-back-link svg {
  transition: transform var(--transition);
}
.sub-back-link:hover svg {
  transform: translateX(-3px);
}

/* ===== CONTENT AREA ===== */
.sub-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-16);
}

/* ===== SECTIONS ===== */
.sub-section {
  padding: var(--space-10) 0;
}

.sub-section h2 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--space-5);
  line-height: 1.15;
}

.sub-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
  line-height: 1.25;
}

.sub-section p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.sub-section p:last-child {
  margin-bottom: 0;
}

/* ===== DIVIDER ===== */
.sub-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ===== NUMBERED STEPS ===== */
.sub-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: var(--space-6) 0;
}

.sub-steps li {
  counter-increment: step-counter;
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-light);
}

.sub-steps li:last-child {
  border-bottom: none;
}

.sub-steps li::before {
  content: counter(step-counter);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  margin-top: 2px;
}

.sub-steps--orange li::before {
  background: var(--orange-dim);
  color: var(--orange);
}
.sub-steps--red li::before {
  background: var(--red-dim);
  color: var(--red);
}
.sub-steps--teal li::before {
  background: var(--teal-dim);
  color: var(--teal);
}

.sub-steps li strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.sub-steps li p,
.sub-steps li span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.sub-steps li div {
  flex: 1;
  min-width: 0;
}

/* ===== BULLET LIST ===== */
.sub-bullets {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}

.sub-bullets li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) var(--space-6);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  border-bottom: 1px solid var(--border-light);
}

.sub-bullets li:last-child {
  border-bottom: none;
}

.sub-bullets li::before {
  content: '';
  position: absolute;
  left: var(--space-1);
  top: calc(var(--space-3) + 0.55em);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
}

.sub-bullets--orange li::before { background: var(--orange); opacity: 0.6; }
.sub-bullets--red li::before { background: var(--red); opacity: 0.6; }
.sub-bullets--teal li::before { background: var(--teal); opacity: 0.6; }

.sub-bullets li strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== CALLOUT BOX ===== */
.sub-callout {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-secondary);
}

.sub-callout--orange {
  background: var(--orange-glow);
  border-left: 4px solid var(--orange);
}

.sub-callout--red {
  background: rgba(255,77,77,0.04);
  border-left: 4px solid var(--red);
}

.sub-callout--teal {
  background: rgba(44,181,160,0.04);
  border-left: 4px solid var(--teal);
}

.sub-callout--subtle {
  background: var(--surface-warm);
  border-left: 4px solid var(--border);
}

.sub-callout p {
  margin-bottom: var(--space-3);
}
.sub-callout p:last-child {
  margin-bottom: 0;
}

.sub-callout ul {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
}
.sub-callout ul li {
  position: relative;
  padding: var(--space-1) 0 var(--space-1) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}
.sub-callout ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

/* ===== PULL QUOTE ===== */
.sub-quote {
  position: relative;
  padding: var(--space-8) var(--space-6);
  margin: var(--space-8) 0;
  text-align: center;
}

.sub-quote::before {
  content: '\201C';
  display: block;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--orange);
  opacity: 0.2;
  margin-bottom: var(--space-2);
}

.sub-quote p {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== TWO-COLUMN GRID ===== */
.sub-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin: var(--space-6) 0;
}

/* ===== INFO CARD ===== */
.sub-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.sub-info-card:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(255,140,0,0.06);
}

.sub-info-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.sub-info-card__icon--orange { background: var(--orange-dim); color: var(--orange); }
.sub-info-card__icon--teal { background: var(--teal-dim); color: var(--teal); }

.sub-info-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.sub-info-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ===== SCHEDULE TABLE (sub-page version) ===== */
.sub-schedule {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-6) 0;
}

.sub-schedule__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border-light);
  align-items: center;
  transition: background 0.2s ease;
}

.sub-schedule__row:last-child { border-bottom: none; }

.sub-schedule__row:not(.sub-schedule__row--header):hover {
  background: var(--surface-warm);
}

.sub-schedule__row--header {
  background: var(--surface-warm);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: var(--space-3) var(--space-5);
}

.sub-schedule__day {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.sub-schedule__time {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.sub-schedule__type {
  font-size: var(--text-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.sub-schedule__type::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sub-schedule__type--ride { color: var(--teal); }
.sub-schedule__type--ride::before { background: var(--teal); }
.sub-schedule__type--workout { color: var(--orange-light); }
.sub-schedule__type--workout::before { background: var(--orange-light); }

/* ===== ROADMAP CARDS ===== */
.sub-roadmap {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin: var(--space-6) 0;
}

.sub-roadmap-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  padding-left: calc(var(--space-6) + 4px);
  border-left: 4px solid var(--teal);
}

.sub-roadmap-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--teal);
  margin-bottom: var(--space-2);
}

.sub-roadmap-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ===== CTA SECTION ===== */
.sub-cta-section {
  background: var(--surface-dark);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-10), 5vw, var(--space-16)) var(--space-8);
  text-align: center;
  margin: var(--space-10) 0 0;
  position: relative;
  overflow: hidden;
}

.sub-cta-section__glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  pointer-events: none;
}

.sub-cta-section__glow--orange {
  background: radial-gradient(circle, rgba(255,140,0,0.12) 0%, transparent 70%);
}
.sub-cta-section__glow--red {
  background: radial-gradient(circle, rgba(255,77,77,0.1) 0%, transparent 70%);
}
.sub-cta-section__glow--teal {
  background: radial-gradient(circle, rgba(44,181,160,0.1) 0%, transparent 70%);
}

.sub-cta-section h2 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--text-inverse);
  margin-bottom: var(--space-3);
  position: relative;
}

.sub-cta-section p {
  font-size: var(--text-lg);
  color: rgba(240,237,232,0.6);
  margin: 0 auto var(--space-8);
  max-width: 500px;
  position: relative;
}

.sub-cta-section .btn {
  position: relative;
  margin-bottom: var(--space-5);
}

.sub-cta-section__secondary {
  font-size: var(--text-sm);
  color: rgba(240,237,232,0.4);
  position: relative;
}

.sub-cta-section__secondary a {
  color: rgba(240,237,232,0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sub-cta-section__secondary a:hover {
  color: rgba(240,237,232,0.8);
}

/* Button color variants */
.btn--red {
  background: var(--red);
  color: white;
}
.btn--red:hover {
  background: #e04444;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,77,77,0.3);
}

.btn--teal {
  background: var(--teal);
  color: white;
}
.btn--teal:hover {
  background: #249e8c;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(44,181,160,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sub-hero {
    min-height: 36vh;
    padding-top: calc(70px + var(--space-10));
    padding-bottom: var(--space-8);
  }

  .sub-hero__title {
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  }

  .sub-content {
    padding: 0 var(--space-5) var(--space-12);
  }

  .sub-section {
    padding: var(--space-8) 0;
  }

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

  .sub-steps li {
    gap: var(--space-4);
  }

  .sub-steps li::before {
    width: 32px;
    height: 32px;
    font-size: var(--text-xs);
  }

  .sub-quote {
    padding: var(--space-6) var(--space-2);
  }

  .sub-cta-section {
    padding: var(--space-10) var(--space-5);
    border-radius: var(--radius-xl);
    margin: var(--space-8) 0 0;
  }

  .sub-schedule__row {
    grid-template-columns: 0.7fr 0.6fr 1fr;
    padding: var(--space-3) var(--space-4);
  }

  .sub-roadmap-card {
    padding: var(--space-5);
    padding-left: calc(var(--space-5) + 4px);
  }
}
