/* Willy on Bike — shared styles */
:root {
  --orange: #b5600f;
  --navy: #020d1f;
  --ink: #1d1e20;
  --muted: #5a5c60;
  --pill: #f3f3f3;
  --light: #f4f4f4;
  --amber: #f7a51c;
  --blue: #163e7a;
  --green: #45d483;
  --radius: 16px;
  --max: 1224px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Lato", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; font-weight: 700; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(2, 13, 31, .92);
  backdrop-filter: blur(6px);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 56px; flex-wrap: wrap;
}
.nav .brand {
  color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .04em;
}
.nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav ul a { color: #dfe3ea; text-decoration: none; font-size: 15px; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Home ---------- */
.hero-home {
  background: linear-gradient(180deg, var(--orange) 0%, #5a2a14 55%, #12051d 100%);
  color: #fff;
  padding: 32px 0 80px;
}
.hero-home .grid {
  display: grid; grid-template-columns: 5fr 8fr; gap: 52px; align-items: start;
}
.hero-home .portrait { border-radius: var(--radius); width: 100%; aspect-ratio: 462/622; object-fit: cover; filter: grayscale(1); }
.hero-home h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: .01em; margin-top: 48px; margin-bottom: 4px; }
.hero-home .tagline { font-size: 24px; margin: 0 0 24px; }
.socials { display: flex; gap: 28px; margin-bottom: 36px; }
.socials a { color: #fff; display: inline-flex; }
.socials svg { width: 24px; height: 24px; }
.hero-home .wide { border-radius: var(--radius); width: 100%; aspect-ratio: 709/357; object-fit: cover; }

.dark { background: var(--navy); color: #fff; padding: 56px 0 72px; }
.dark h2 { font-size: clamp(30px, 4vw, 48px); text-align: center; margin-bottom: 32px; }
.pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 96px; }
.pills:last-child { margin-bottom: 0; }
.pill {
  display: block; text-align: center; text-decoration: none;
  background: var(--pill); color: var(--ink);
  font-family: "Inter", system-ui, sans-serif; font-weight: 500; font-size: 16px;
  padding: 18px 16px; border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.pill:hover { background: #fff; transform: translateY(-2px); }

.partners { padding: 56px 0 72px; }
.partners h2 { text-align: center; font-size: 36px; margin-bottom: 32px; }
.partners .logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: center; }
.partners .logos img { max-height: 120px; width: auto; margin: 0 auto; }

/* ---------- Generic page sections ---------- */
.section { padding: 56px 0; }
.section.grey { background: var(--light); }
.section h2 { font-size: clamp(28px, 3.5vw, 40px); text-align: center; }
.lead { font-size: 20px; text-align: center; margin: 0 0 24px; }
.small { font-size: 14px; color: var(--muted); }

.btn {
  display: inline-block; text-decoration: none; border: 0; cursor: pointer;
  font: inherit; font-size: 15px; padding: 12px 24px; border-radius: 8px; color: #fff;
  background: #000; transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.15); }
.btn.amber { background: var(--amber); }
.btn.blue { background: var(--blue); }
.btn.green { background: var(--green); }
.btn.orange { background: #f0922b; font-size: 17px; }
.btn-row { display: flex; gap: 56px; justify-content: center; flex-wrap: wrap; }
.btn-row > div { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* ---------- Bikepacking: slideshow ---------- */
.slider { position: relative; height: min(82vh, 820px); overflow: hidden; background: #000; }
.slider img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  opacity: 0; transition: opacity .8s ease;
}
.slider img.active { opacity: 1; }
.slider .dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.slider .dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.5);
}
.slider .dots button.active { background: #fff; }
.slider .arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; padding: 8px 16px;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.slider .prev { left: 8px; } .slider .next { right: 8px; }

.intro h1 { font-size: clamp(32px, 4.5vw, 48px); text-align: center; }
.intro .sub { font-size: 24px; text-align: center; margin: 0 auto 32px; }
.intro p { text-align: center; font-size: 18px; max-width: 720px; margin: 0 auto 24px; }
.map-link img { border-radius: 12px; margin: 0 auto; width: min(545px, 100%); }
.social-logos { display: flex; justify-content: center; align-items: center; gap: 40px; margin-top: 24px; }
.social-logos img { height: 52px; width: auto; }

.trips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.trips figure { margin: 0; }
.trips img { border-radius: 12px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.trips figcaption { margin-top: 10px; font-size: 20px; font-weight: 700; text-align: center; }

/* ---------- Route ---------- */
.banner { height: 410px; background: center/cover no-repeat; }
.route-head { text-align: center; padding: 36px 0 56px; }
.route-head h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 4px; }
.route-head p { font-size: 18px; margin: 0 0 20px; }

/* ---------- Gear ---------- */
.gear-hero {
  background: linear-gradient(135deg, #1d4ac4 0%, #9a8a80 50%, #fbb94c 100%);
  color: #fff; padding: 80px 0 90px; text-align: center;
}
.gear-hero h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 8px; }
.gear-hero p { margin: 0 0 56px; font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { background: rgba(255,255,255,.14); padding: 40px 20px 64px; }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { margin: 0; font-size: 17px; }

/* ---------- Footer ---------- */
footer { margin-top: auto; background: var(--navy); color: #c8ccd4; padding: 28px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .hero-home .grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-home h1 { margin-top: 0; }
  .pills, .partners .logos, .cards, .trips { grid-template-columns: 1fr; gap: 16px; }
  .pills { margin-bottom: 56px; }
  .btn-row { gap: 24px; }
  .banner { height: 240px; }
  .slider { height: 70vh; }
}
