/* Base tokens */
:root {
  --primary: #b51618;
  --primary-dark: #5e0b0c;
  --secondary: #3b4c2b;
  --surface: #1f1f1f;
  --surface-alt: #2a2a2a;
  --text: #f3f4f6;
  --muted: #cbd5f5;
  --border: #3b3b3b;
  --header-height: 90px;
  --content-width: 70rem;
  --hero-image: url('../images/hero-bike.jpg');
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #111;
  color: var(--text);
  line-height: 1.6;
  padding-top: var(--header-height);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

main {
  flex: 1;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

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

.inline-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.contact-section {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.contact-section .card {
  padding: 0.35rem 0.6rem 0.6rem;
}

.contact-section .form {
  gap: 0.3rem;
}

.thank-you-section {
  min-height: calc(100vh - var(--header-height) - 180px);
  display: flex;
  align-items: center;
}

.thank-you-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  align-items: center;
}

.thank-you-card p {
  margin: 0;
  max-width: 32rem;
}

.thank-you-actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.thank-you-actions .btn {
  min-width: 180px;
}

.narrow {
  max-width: 40rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #000;
  border-radius: 0.25rem;
}

.eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.page-title {
  text-transform: none;
  letter-spacing: normal;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  background: color-mix(in srgb, var(--secondary) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand img {
  height: 100%;
  width: auto;
  max-height: 100%;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text);
  margin-left: auto;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

.site-nav {
  position: absolute;
  top: 100%;
  right: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  width: min(18rem, calc(100% - 2rem));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    width: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-left: auto;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 1rem;
  }

  .site-nav a {
    padding: 0.25rem 0.5rem;
  }
}


/* Hero */
.full-bleed {
  width: 100%;
  margin-inline: calc(50% - 50vw);
}

.hero {
  position: relative;
  min-height: clamp(26rem, 60vh, 36rem);
  padding: 4rem 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.3));
  z-index: 0;
}

.hero__content {
  text-align: center;
  padding: 0 1rem 3rem;
  position: relative;
  z-index: 1;
}

.hero-cta,
.footer-cta {
  margin-top: 1.5rem;
  align-self: center;
  justify-self: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.hero-cta {
  position: relative;
  bottom: -1rem;
  margin-top: 24rem;
}

/* Mission cards */
.mission {
  background: var(--surface);
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 4rem;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.mission .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 2.5rem auto 0;
  justify-content: center;
}

.mission .card {
  padding: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--text);
}

.form input,
.form textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: #121212;
  color: var(--text);
  padding: 0.85rem 1rem;
  font: inherit;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.contact-social {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.contact-social-link:hover,
.contact-social-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-social-link img {
  width: 60px;
  height: 60px;
  border-radius: 0.75rem;
  object-fit: cover;
}

/* Footer */
.site-footer {
  background: var(--secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  color: var(--text);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.footer-left {
  justify-self: start;
  text-align: left;
}

.footer-inner nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  justify-content: center;
}

.footer-inner nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.footer-inner nav a:hover,
.footer-inner nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.footer-center {
  justify-self: end;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-link img {
  height: 48px;
  width: auto;
  border-radius: 0.5rem;
  display: block;
}

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

:target {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

@media (max-width: 640px) {
  :root {
    --header-height: 80px;
  }
  .mission .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
  .footer-left,
  .footer-center {
    justify-self: center;
    text-align: center;
  }
  .footer-center {
    flex-direction: column;
  }
  .footer-inner nav {
    grid-column: 1;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

