/* ==========================================================================
   Saffron Design System — starter stylesheet
   --------------------------------------------------------------------------
   Drop-in styles for any BikeStand-network site.

   Use:
     <link rel="stylesheet" href="https://bikestand.company/saffron.css?v=1">
   Or copy this file into the target project at /css/saffron.css.

   What you get:
     - Design tokens (Saffron yellow, ink, cream, mint, charcoal)
     - Newsreader / DM Sans / JetBrains Mono via Google Fonts
     - Base typography
     - .wrap content container
     - Button variants: .btn-ink, .btn-pill, .btn-hero-yellow, .btn-hero-ghost
     - Sticky white pill nav with mobile burger + drawer
     - Hero with radial saffron glow, rotated yellow swatch on the headline,
       pulsing badge, and stacked CTA / trust rows
     - Section primitives (.section, .section-head, .eyebrow)
     - Charcoal footer with saffron-yellow column headings
     - Mobile breakpoints: ≤880px (burger), ≤560px (search row), ≤420px

   Required HTML hooks (see /index.html on bikestand.company for the full
   reference). Wordmark only — no brand-mark tile in nav or footer.

       <header class="site-header">
         <a class="brand" href="/"><span class="brand-name">YourBrand</span></a>
         <nav class="nav-links">…</nav>
         <a class="btn btn-ink btn-pill nav-cta" href="…">Shop now</a>
         <button class="menu-toggle" hidden aria-label="Open menu"
                 aria-expanded="false" aria-controls="mobileNav">
           <span></span><span></span><span></span>
         </button>
       </header>
       <div class="mobile-nav" id="mobileNav" hidden>
         <nav>…<a class="button" href="…">Shop now</a></nav>
       </div>

   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600;6..72,700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500;600&display=swap");

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --saffron-300: #FFE88A;
  --saffron-400: #FFDD63;
  --saffron-500: #FFD23F;
  --saffron-600: #F5C518;
  --saffron-700: #D9A800;

  --ink-900: #1B2235;
  --ink-800: #232B40;
  --ink-700: #3A4358;
  --ink-500: #6B7387;
  --ink-300: #B7BCC9;
  --ink-100: #E4E6EC;

  --cream-50:  #FAF6EC;
  --cream-100: #F3EEDD;
  --cream-200: #EAE3CB;

  --mint-200: #DDEDDE;
  --mint-600: #5A9466;

  --charcoal-800: #22303C;

  --bg: var(--cream-50);
  --fg: var(--ink-900);

  --border:        rgba(27, 34, 53, 0.08);
  --border-strong: rgba(27, 34, 53, 0.16);

  --tracking-tight:   -0.02em;
  --tracking-eyebrow:  0.12em;

  --radius-sm:   8px;
  --radius-md:  14px;
  --radius-xl:  28px;
  --radius-pill:999px;

  --shadow-sm: 0 1px 2px rgba(27,34,53,0.06), 0 1px 1px rgba(27,34,53,0.04);
  --shadow-md: 0 6px 16px rgba(27,34,53,0.08), 0 2px 4px rgba(27,34,53,0.05);
  --shadow-yellow: 0 10px 28px rgba(255, 210, 63, 0.45);

  --font-display: "Newsreader", "Cormorant Garamond", Georgia, serif;
  --font-sans:    "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease:       cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-micro: 150ms;
  --dur-base:  220ms;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { margin: 0; }
a   { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  color: var(--fg);
  margin: 0 0 16px;
  text-wrap: balance;
}
h3 { line-height: 1.2; }
h4 { line-height: 1.2; font-weight: 600; }
p  { text-wrap: pretty; margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--ink-700);
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-micro) var(--ease),
              transform 80ms var(--ease),
              color var(--dur-micro) var(--ease);
}
.btn:active        { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid rgba(255, 210, 63, 0.55); outline-offset: 2px; }
.btn-pill          { border-radius: var(--radius-pill); padding: 14px 26px; }

.btn-ink           { background: var(--ink-900); color: var(--cream-50); }
.btn-ink:hover     { background: var(--ink-700); }

.btn-hero-yellow {
  background: var(--saffron-500);
  color: var(--ink-900);
  box-shadow: var(--shadow-yellow);
  padding: 16px 26px;
  font-size: 16px;
  border-radius: var(--radius-pill);
}
.btn-hero-yellow:hover { background: var(--saffron-600); }

.btn-hero-ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1px solid var(--border-strong);
  padding: 16px 26px;
  font-size: 16px;
  border-radius: var(--radius-pill);
}
.btn-hero-ghost:hover { background: rgba(27, 34, 53, 0.04); }

/* --------------------------------------------------------------------------
   Sticky pill nav
   -------------------------------------------------------------------------- */
.site-header,
.nav-outer .nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  max-width: 1200px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  padding: 10px 12px 10px 24px;
  box-shadow: var(--shadow-md);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: none; }     /* wordmark only — never show a logo tile */
.brand > span,
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.brand-name .dot { color: var(--saffron-600); }

.nav-links,
.desktop-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a,
.desktop-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-900);
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease);
}
.nav-links a:hover,
.desktop-nav a:hover { color: var(--ink-700); }

.nav-cta { white-space: nowrap; padding: 12px 22px; font-size: 15px; }

/* --------------------------------------------------------------------------
   Mobile burger + drawer
   -------------------------------------------------------------------------- */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; border-radius: 14px;
  background: var(--ink-900);
  padding: 12px;
  cursor: pointer;
  flex: none;
}
.menu-toggle span {
  display: block; height: 2px;
  background: var(--cream-50);
  margin: 5px 0; border-radius: 1px;
  transition: transform var(--dur-micro) var(--ease),
              opacity   var(--dur-micro) var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(27, 34, 53, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 96px 28px 32px;
  overflow-y: auto;
}
.mobile-nav nav { display: grid; gap: 18px; }
.mobile-nav a {
  color: var(--cream-50);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--saffron-500); }
.mobile-nav .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: var(--saffron-500);
  color: var(--ink-900);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  margin-top: 12px;
}
.mobile-nav .button:hover { background: var(--saffron-600); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 210, 63, 0.32), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-700);
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint-600);
  box-shadow: 0 0 0 0 rgba(90, 148, 102, 0.6);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0  0 rgba(90, 148, 102, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(90, 148, 102, 0); }
  100% { box-shadow: 0 0 0  0 rgba(90, 148, 102, 0);   }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.2vw, 96px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 28px auto 0;
  max-width: 980px;
  color: var(--ink-900);
}
.hero h1 em     { font-style: italic; font-weight: 400; color: var(--ink-700); }
.hero h1 .swatch {
  display: inline-block;
  background: var(--saffron-500);
  padding: 0 14px;
  border-radius: 12px;
  transform: rotate(-1.5deg);
  margin: 0 4px;
}

.hero-sub {
  max-width: 640px;
  margin: 28px auto 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-700);
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 24px;
  font-size: 15px;
  color: var(--ink-700);
}
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-300); }
.hero-trust svg  { width: 18px; height: 18px; color: var(--mint-600); }
.hero-trust .item { display: inline-flex; align-items: center; gap: 8px; }

/* --------------------------------------------------------------------------
   Section primitives
   -------------------------------------------------------------------------- */
section { padding: 96px 0; }
.section, .section-shell { max-width: 1200px; margin: 0 auto; padding: 72px 32px; }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-head .eyebrow { color: var(--ink-700); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 14px 0 0;
  color: var(--ink-900);
}
.section-head p {
  font-size: 19px;
  color: var(--ink-700);
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer,
.site-footer {
  background: var(--charcoal-800);
  color: var(--cream-50);
  padding: 80px 32px 40px;
}
footer .footer-grid,
.site-footer .footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}
footer h4,
.site-footer h3 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--saffron-500);
  margin: 0 0 18px;
}
footer .brand-name,
.site-footer .footer-grid > div:first-child h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--cream-50);
  margin-bottom: 16px;
}
footer p,
.site-footer p {
  font-size: 15px;
  color: rgba(250, 246, 236, 0.7);
  line-height: 1.6;
  margin: 0 0 14px;
}
footer a,
.site-footer a {
  display: inline-block;
  color: rgba(250, 246, 236, 0.85);
  font-size: 15px;
  text-decoration: none;
  margin: 7px 0;
  transition: color var(--dur-micro) var(--ease);
}
footer a:hover,
.site-footer a:hover { color: var(--saffron-500); }

.delivery-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--cream-50);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.delivery-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron-500); }

.footer-bottom,
.copyright {
  max-width: 1200px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(250, 246, 236, 0.55);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 880px) {
  .nav-links, .desktop-nav, .nav-cta { display: none; }
  .menu-toggle,
  .menu-toggle[hidden] { display: block; }
  .site-header,
  .nav-outer .nav { margin: 12px 12px 0; max-width: none; gap: 12px; padding: 8px 8px 8px 18px; }
  .brand-name, .brand > span { font-size: 18px; }
  footer .footer-grid,
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  footer .footer-grid,
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  body { font-size: 17px; }
  .brand-name, .brand > span { font-size: 16px; }
  .menu-toggle { width: 40px; height: 40px; padding: 10px; }
}

/* --------------------------------------------------------------------------
   Companion JS (paste into a small script on each site)
   --------------------------------------------------------------------------

   (function () {
     const toggle = document.querySelector('.menu-toggle');
     const drawer = document.getElementById('mobileNav');
     if (!toggle || !drawer) return;
     const open  = () => { drawer.removeAttribute('hidden');
                           toggle.setAttribute('aria-expanded', 'true');
                           document.body.style.overflow = 'hidden'; };
     const close = () => { drawer.setAttribute('hidden', '');
                           toggle.setAttribute('aria-expanded', 'false');
                           document.body.style.overflow = ''; };
     toggle.addEventListener('click', () =>
       drawer.hasAttribute('hidden') ? open() : close());
     drawer.addEventListener('click', e => { if (e.target.tagName === 'A') close(); });
     document.addEventListener('keydown', e => {
       if (e.key === 'Escape' && !drawer.hasAttribute('hidden')) close();
     });
     document.querySelectorAll('a[href^="#"]').forEach(a => {
       a.addEventListener('click', e => {
         const id = a.getAttribute('href');
         if (id && id.length > 1) {
           const t = document.querySelector(id);
           if (t) { e.preventDefault();
             window.scrollTo({ top: t.getBoundingClientRect().top + window.scrollY - 24,
                               behavior: 'smooth' }); }
         }
       });
     });
   })();
*/
