/* =====================================================================
   BERGGEIST24 — Desert Shred Theme (shared.css)
   Bold, Energetic, Resilient BMX & Mountain Bike Culture
   ===================================================================== */

:root {
  --color-primary: #E2725B;       /* Terracotta */
  --color-accent: #5F9EA0;        /* Dusty Turquoise */
  --color-secondary: #FD5E53;     /* Sunset Orange */
  --color-base: #D2B48C;          /* Sandstone */
  --color-bg: #141210;            /* Sun-baked Dark Earth */
  --color-surface: #1E1B18;       /* Surface Dark */
  --color-surface-card: #282420;  /* Container Card */
  --color-text: #F5EBE6;           /* Sandstone Off-White */
  --font-heading: 'Archivo Black', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --shadow-heavy: 5px 5px 0px #000000;
  --shadow-accent: 5px 5px 0px #FD5E53;
}

/* ── Reset & Base ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

a { color: var(--color-text); text-decoration: none; transition: color 0.2s ease, transform 0.2s ease; }
a:hover { color: var(--color-secondary); }
button { font-family: var(--font-body); cursor: pointer; }

/* ── Focus-visible rings (keyboard users) ─────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Header ───────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 40px;
  height: 72px;
  background: rgba(20, 18, 16, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(210, 180, 140, 0.18);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  will-change: height;
}

/* Scroll-driven header shrink — Chrome 115+, Edge 115+, Safari 26+. */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @keyframes shrink-header {
    to {
      height: 56px;
      background: rgba(20, 18, 16, 0.98);
      box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
    }
  }
  header {
    animation: shrink-header auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 140px;
  }
  @media (prefers-reduced-motion: reduce) {
    header { animation: none; }
  }
}

/* ── Brand Logo ───────────────────────────────────────────────────── */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #F5EBE6;
  flex-shrink: 0;
}
.brand-logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* ── Navigation ───────────────────────────────────────────────────── */
nav {
  display: flex;
  gap: 24px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
nav a {
  color: rgba(245, 235, 230, 0.8);
  white-space: nowrap;
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
nav a:hover { color: var(--color-secondary); }
nav a.active,
nav a[aria-current="page"] {
  color: #F5EBE6;
  border-bottom: 3px solid rgba(210, 180, 140, 0.55);
}

/* ── Status Badge ─────────────────────────────────────────────────── */
.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 2px solid var(--color-accent);
  border-radius: 4px;
  background: rgba(95, 158, 160, 0.12);
  box-shadow: 3px 3px 0px #000;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 10px var(--color-secondary);
  flex-shrink: 0;
}

/* ── Buttons (Bold Drop Shadows & Vibrant Hover) ──────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 4px;
  background: var(--color-primary);
  color: #000;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid #000;
  box-shadow: var(--shadow-heavy);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--color-secondary);
  color: #FFF;
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px #000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-base);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid var(--color-base);
  box-shadow: var(--shadow-heavy);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: var(--color-accent);
  color: #FFF;
  background: var(--color-accent);
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px #000;
}

/* ── Footer ───────────────────────────────────────────────────────── */
footer {
  padding: 56px 40px 36px;
  border-top: 1px solid rgba(210, 180, 140, 0.18);
  background: #0E0C0A;
}

/* ── Animated Ticker Bar ──────────────────────────────────────────── */
.ticker-bar {
  overflow: hidden;
  border-bottom: 2px solid rgba(226, 114, 91, 0.3);
  background: #181512;
  font: 700 12px var(--font-body);
  letter-spacing: 0.14em;
  color: var(--color-base);
  text-transform: uppercase;
  height: 46px;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
  will-change: transform;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  padding: 0 40px;
}
.ticker-track span::before {
  content: '▲';
  color: var(--color-secondary);
  margin-right: 10px;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ── Scroll-entry Reveal (progressive enhancement) ───────────────── */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @keyframes reveal-up {
    from {
      opacity: 0;
      translate: 0 32px;
    }
  }
  .bento-card,
  .bike-card,
  .brand-card,
  .reveal-on-scroll {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 28%;
  }
  @media (prefers-reduced-motion: reduce) {
    .bento-card,
    .bike-card,
    .brand-card,
    .reveal-on-scroll {
      animation: none;
    }
  }
}

/* ── Bento Card (Bold Heavy Shadows & Angled Aesthetic) ───────────── */
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface-card);
  border: 2px solid #000;
  box-shadow: var(--shadow-heavy);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.bento-card:hover {
  border-color: var(--color-primary);
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0px #000;
}
.bento-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: brightness(0.85) contrast(1.1);
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.bento-card:hover .bento-bg {
  opacity: 0.75;
  transform: scale(1.03);
}
.bento-content {
  position: relative;
  z-index: 5;
}

/* ── Brand Card ───────────────────────────────────────────────────── */
.brand-card {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 6px;
  background: var(--color-surface-card);
  border: 2px solid rgba(210, 180, 140, 0.25);
  box-shadow: 4px 4px 0px #000;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-card:hover {
  border-color: var(--color-primary);
  background: var(--color-surface);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--color-secondary);
}
.brand-card img {
  max-height: 52px;
  max-width: 85%;
  object-fit: contain;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  header {
    padding: 0 20px;
    gap: 16px;
  }
  nav { display: none; }
}
