/* Doheny Bike — Design Tokens
 * Pulled verbatim from website-rebuild/02-homepage-wireframe.md
 * These map 1:1 to Shopify Liquid section CSS later.
 */

:root {
  /* Color */
  --color-primary: #E27328;
  --color-primary-hover: #C5641F;
  --color-secondary: #9DA88B;
  --color-secondary-deep: #5F6B53;
  --color-coastal-blue: #A4BBC4;
  --color-bg: #FFFFFF;
  --color-bg-warm: #FAF7F1;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-border: #E5E2DA;

  /* Typography — Chivo */
  --font-family: 'Chivo', system-ui, -apple-system, sans-serif;
  --font-display-xl: clamp(36px, 6.4vw, 80px);
  --font-display-lg: clamp(32px, 4.8vw, 60px);
  --font-display-md: clamp(24px, 3.2vw, 40px);
  --font-display-sm: clamp(20px, 2.2vw, 28px);
  --font-body-lg: clamp(16px, 1.4vw, 18px);
  --font-body: clamp(15px, 1.25vw, 16px);
  --font-body-sm: clamp(13px, 1.1vw, 14px);
  --font-eyebrow: 12px;
  --font-button: 14px;

  /* Spacing — 8px scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;

  /* Layout */
  --container-max: 1280px;
  --container-pad: 32px;
  --container-pad-mobile: 16px;
  --grid-gutter: 24px;

  /* Section rhythm */
  --section-pad-y: var(--space-8);
  --section-pad-y-mobile: var(--space-6);

  /* Header */
  --header-h: 80px;
  --header-h-mobile: 64px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-base: 300ms;
  --duration-slow: 600ms;

  /* Shadows */
  --shadow-card: 0 12px 24px rgba(0, 0, 0, 0.08);
  --shadow-text-light: 0 2px 24px rgba(0, 0, 0, 0.4);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-family);
  font-size: var(--font-body);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; }

/* Typography helpers */
.eyebrow {
  font-size: var(--font-eyebrow);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary);
}
.h1 { font-size: var(--font-display-xl); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.h2 { font-size: var(--font-display-lg); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.h3 { font-size: var(--font-display-md); font-weight: 700; line-height: 1.2; }
.h4 { font-size: var(--font-display-sm); font-weight: 700; line-height: 1.25; }
.lede { font-size: var(--font-body-lg); line-height: 1.55; color: var(--color-text-muted); }
.muted { color: var(--color-text-muted); }
.mono-tracking { letter-spacing: 1px; }

/* Layout primitives */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}
.section { padding-block: var(--section-pad-y); }
.section--warm { background: var(--color-bg-warm); }
.section--sage { background: var(--color-secondary); color: #fff; }
.section--sage .eyebrow { color: rgba(255,255,255,0.85); }
.section--sage .muted { color: rgba(255,255,255,0.75); }

@media (max-width: 768px) {
  .container { padding-inline: var(--container-pad-mobile); }
  .section { padding-block: var(--section-pad-y-mobile); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 16px 28px;
  font-size: var(--font-button);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 0;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--light {
  background: #fff;
  color: var(--color-text);
}
.btn--light:hover { background: var(--color-primary); color: #fff; }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.btn--ghost-light:hover { background: #fff; color: var(--color-text); }

/* Text-link arrow */
.linkx {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--font-button);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-primary);
  position: relative;
}
.linkx::after { content: "→"; transition: transform var(--duration-fast) var(--ease-out); }
.linkx:hover::after { transform: translateX(4px); }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* Card hover lift */
.lift { transition: transform var(--duration-fast) var(--ease-out),
                    box-shadow var(--duration-fast) var(--ease-out); }
.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
