/* Spoke & Trail Cycles: site styles. Brand: Trail Green, Spoke Orange, Mist, Ink. */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-600-normal.woff2?v=0a7db4011a) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-latin-700-normal.woff2?v=05ba48a1a6) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/source-sans-3-latin-400-normal.woff2?v=430012e873) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/source-sans-3-latin-600-normal.woff2?v=ada73f9a5d) format("woff2"); }

:root {
  --green: #1B4332;
  --orange: #E76F3C;
  --mist: #D8E2DC;
  --ink: #0F1A14;
  --white: #FFFFFF;
  --line: #B9C7BF;
  --field-line: #5B7165;
  --font-head: "Barlow Condensed", Arial, sans-serif;
  --font-body: "Source Sans 3", Arial, sans-serif;
  --gutter: 20px;
  --hh: 72px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) { body { font-size: 1.125rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

picture { display: contents; }
picture > source { display: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; text-wrap: pretty; }
[id] { scroll-margin-top: calc(var(--hh) + 16px); }
::selection { background: var(--orange); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
  hyphens: none;
  color: var(--green);
}
h1 { font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.75rem); max-width: 16ch; }
h2 { font-size: clamp(2.125rem, 1.6rem + 2.2vw, 3.25rem); max-width: 20ch; }
h3 { font-size: clamp(1.5rem, 1.35rem + .6vw, 1.875rem); max-width: 22ch; line-height: 1.1; }
.nowrap { white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--orange); color: var(--ink); padding: 12px 16px; font-weight: 600; }
.skip-link:focus { left: 8px; top: 8px; }

/* Focus */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
html[data-kendry-input="pointer"] :focus-visible { outline: none; }
.section-mist :focus-visible, .form-panel :focus-visible { outline-color: var(--green); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; min-width: 44px; padding: 0 1.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1; letter-spacing: .005em;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: color-mix(in srgb, var(--orange) 86%, white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: color-mix(in srgb, var(--green) 82%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .85); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--green);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
  text-decoration-color: var(--orange);
}
.text-link:hover { text-decoration-color: var(--green); }

.icon { width: 24px; height: 24px; flex: none; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background-color .3s; }
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -24px 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 26, 20, .6), rgba(15, 26, 20, 0));
  transition: opacity .3s;
}
.site-header.is-solid, html.menu-open .site-header { background: var(--green); }
.site-header.is-solid::before, html.menu-open .site-header::before { opacity: 0; }
.header-bar {
  position: relative; z-index: 2;
  width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto;
  height: var(--hh); display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; flex-shrink: 0; max-width: none; }
.desktop-nav, .header-cta { display: none; }
.menu-toggle {
  margin-left: auto; width: 48px; height: 48px; min-width: 44px; min-height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 2px solid rgba(255, 255, 255, .85); border-radius: var(--radius); color: var(--white); cursor: pointer;
}
.menu-bars { position: relative; width: 22px; height: 16px; display: block; }
.menu-bars span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 1px; transition: transform .25s var(--ease), opacity .2s; }
.menu-bars span:nth-child(1) { top: 0; }
.menu-bars span:nth-child(2) { top: 7px; }
.menu-bars span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  padding: calc(var(--hh) + 16px) var(--gutter) 32px;
  background: var(--green); overflow-y: auto; overscroll-behavior: contain;
  animation: menuIn .35s var(--ease) both;
}
.mobile-menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.mobile-nav { width: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.mobile-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 56px;
  font-family: var(--font-head); font-weight: 700; font-size: 2.25rem; line-height: 1.1;
  color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.mobile-nav a[aria-current="page"]:not(.btn) { color: var(--orange); }
.mobile-nav .btn { width: 100%; min-height: 56px; }

@media (min-width: 1024px) {
  :root { --hh: 84px; }
  .brand-logo { height: 44px; }
  .desktop-nav { display: block; margin-left: auto; }
  .desktop-nav ul { display: flex; gap: 28px; }
  .desktop-nav a {
    position: relative; display: inline-flex; align-items: center; min-height: 44px; min-width: 0;
    font-family: var(--font-head); font-weight: 600; font-size: 1.3125rem; color: var(--white); text-decoration: none;
  }
  .desktop-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; background: var(--orange);
    transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
  }
  .desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .header-cta { display: inline-flex; }
}
@media (min-width: 1024px) { .menu-toggle, .mobile-menu { display: none !important; } }

/* Hero */
.hero {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  min-height: clamp(520px, 70vh, 680px); background: var(--green); color: var(--white);
}
.hero-home { min-height: clamp(560px, 86vh, 820px); }
.hero-media { position: absolute; inset: 0; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 26, 20, .15) 0%, rgba(15, 26, 20, .25) 35%, rgba(15, 26, 20, .78) 100%);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 1.6s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-inner { position: relative; z-index: 1; padding-top: calc(var(--hh) + 56px); padding-bottom: clamp(40px, 6vw, 88px); }
.hero-content { animation: heroFade 1s .1s ease-out both; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero h1::before { content: ""; display: block; width: 56px; height: 5px; background: var(--orange); margin-bottom: 20px; }
.hero-sub { font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.5rem); line-height: 1.4; max-width: 38em; color: var(--white); margin-bottom: 1.5rem; }

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero-media { inset: -10% 0 0 0; animation: heroShift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes heroShift { from { transform: translateY(0); } to { transform: translateY(9%); } }
  }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-mist { background: var(--mist); }
.section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2 { margin-bottom: 0; }
.section-head h2::before, .band h2::before { content: ""; display: block; width: 48px; height: 4px; background: var(--orange); margin-bottom: 16px; }
.lead { font-size: clamp(1.125rem, 1.05rem + .4vw, 1.375rem); max-width: 62ch; }
.section-cta { margin-top: clamp(28px, 4vw, 48px); }

.split-text { display: grid; gap: 0; }
@media (min-width: 900px) { .split-text { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } .split-text .section-head { margin-bottom: 0; } }

.split { display: grid; gap: 40px; align-items: center; }
.split-media { margin: 0; width: 100%; max-width: 512px; }
.split-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 512px; gap: 72px; } }

/* Trust strip */
.trust { background: var(--mist); padding-block: 8px; }
.trust-list { display: grid; grid-template-columns: 1fr; }
.trust-list li { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 0; font-weight: 600; font-size: 1.0625rem; }
.trust-list .icon { color: var(--green); width: 28px; height: 28px; }
@media (min-width: 600px) { .trust-list { grid-template-columns: repeat(2, 1fr); column-gap: 24px; } }
@media (min-width: 1024px) { .trust-list { grid-template-columns: repeat(4, 1fr); } .trust-list li { min-height: 88px; padding: 0; } }

/* Cards */
.card-grid { display: grid; gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; max-width: 512px; }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { margin-bottom: 8px; }
.card-body .text-link { margin-top: auto; align-self: flex-start; }
@media (min-width: 768px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } .card { max-width: none; } }

/* Tiles */
.tile-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile {
  display: block; height: 100%; padding: 28px 24px; text-decoration: none;
  background: var(--mist); border-radius: var(--radius); border-top: 4px solid var(--orange);
  transition: background-color .2s, color .2s;
}
.tile h3 { margin-bottom: .25em; color: inherit; }
.tile p { margin: 0; }
.tile-icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--green); transition: color .2s; }
.tile:hover { background: var(--green); color: var(--white); }
.tile:hover .tile-icon { color: var(--orange); }
.tile-compact { padding: 20px; display: flex; align-items: center; gap: 14px; }
.tile-compact .tile-icon { margin: 0; width: 32px; height: 32px; }
.tile-compact h3 { margin: 0; font-size: 1.75rem; }
@media (min-width: 600px) { .tile-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tile-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.chip-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.chip-grid li { flex: 1 1 100%; }
@media (min-width: 600px) { .chip-grid li { flex: 1 1 200px; max-width: 250px; } }

/* Steps */
.steps { display: grid; gap: 36px; counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 16px;
  background: var(--orange); color: var(--ink); border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; font-size: 2rem; line-height: 1;
}
.step p { max-width: 32ch; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 28px; left: 72px; right: -36px; border-top: 3px dashed var(--green); opacity: .5;
  }
}

/* Lists */
.check-list { margin: 8px 0 28px; }
.check-list li { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; }
.check-list .icon { color: var(--green); }
.feature { margin-bottom: 24px; }
.feature p { max-width: 54ch; margin: 0; }
.spec-list { margin-bottom: 24px; }
.spec-list li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.spec-list li:last-child { border-bottom: 1px solid var(--line); }
.spec-list h3, .spec-list p { margin: 0; }
@media (min-width: 600px) { .spec-list li { grid-template-columns: 160px 1fr; gap: 24px; align-items: baseline; } }
.safety { background: var(--mist); padding: 20px 24px; border-radius: var(--radius); font-weight: 600; margin: 0; }
.look-list { max-width: 720px; }
.look-list li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--field-line); font-size: 1.25rem; font-weight: 600; }
.look-list li:last-child { border-bottom: 1px solid var(--field-line); }
.look-list .icon { width: 32px; height: 32px; color: var(--green); }

/* FAQ */
.faq-wrap { max-width: 920px; }
.faq details { border-top: 1px solid var(--field-line); }
.faq details:last-child { border-bottom: 1px solid var(--field-line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 0; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); color: var(--green);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 3px solid var(--green); border-bottom: 3px solid var(--green);
  transform: rotate(45deg); transition: transform .25s var(--ease); margin-right: 6px;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { max-width: 62ch; padding-bottom: 20px; margin: 0; }

/* CTA band */
.band { background: var(--green); color: var(--white); padding-block: clamp(48px, 7vw, 88px); }
.band h2 { color: var(--white); }
.band p { color: var(--mist); max-width: 46ch; font-size: 1.1875rem; margin-bottom: 0; }
.band-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .band-inner { grid-template-columns: 1fr auto; gap: 48px; } }

/* Forms */
.form-section { display: grid; gap: 32px; }
@media (min-width: 900px) { .form-section { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.form-intro .lead { margin-bottom: 0; }
.form-panel { background: var(--mist); padding: clamp(20px, 3vw, 40px); border-radius: var(--radius); }
.form-panel-white { background: var(--white); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 2px solid var(--field-line); border-radius: var(--radius);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 3px solid var(--orange); outline-offset: 1px; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #9B2C1C; }
.field-error { color: #8C2415; font-weight: 600; font-size: .9375rem; margin: 6px 0 0; }
.consent { margin: 20px 0; font-size: 1rem; max-width: 60ch; }
.form .btn { min-width: 200px; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 20px; border-radius: var(--radius); font-weight: 600; margin: 0 0 20px; }
.form-success { background: var(--green); color: var(--white); margin: 0; }
.form-error { background: #F6DAD5; color: #5C1409; }

/* Not found */
.notfound { background: var(--green); color: var(--white); padding: calc(var(--hh) + 72px) 0 96px; }
.notfound h1 { color: var(--white); }
.notfound .lead { margin-bottom: 28px; }

/* Footer */
.site-footer { background: var(--green); color: var(--white); padding-top: clamp(48px, 6vw, 80px); }
.footer-grid { display: grid; gap: 40px; }
.footer-logo-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin-bottom: 20px; }
.footer-logo { height: 52px; width: auto; flex-shrink: 0; max-width: none; }
.footer-brand p { color: var(--white); max-width: 36ch; }
.footer-area { display: flex; align-items: flex-start; gap: 10px; }
.footer-area .icon { color: var(--orange); margin-top: 2px; }
.footer-brand .btn { margin-top: 8px; }
.footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.footer-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; color: var(--white); text-decoration: none;
}
.footer-nav a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 48px; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: .9375rem;
}
.footer-bottom p { margin: 0; color: var(--mist); }
.kd-credit a { color: var(--mist); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 24px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr; gap: 80px; } .footer-nav ul { max-width: 420px; margin-left: auto; } }

/* Scroll reveal (enhancement only) */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(min(var(--i, 0), 5) * 80ms); }
  html.js .reveal.is-visible { opacity: 1; }
  @media (min-width: 1024px) {
    html.js .reveal { transform: translateY(18px); }
    html.js .reveal.is-visible { transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img, .hero-content, .mobile-menu { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
