/* Breadbasket Sports — public site (Cloudflare Pages) · Brand v1.0 */
:root {
  --bb-bg: #07070A;
  --bb-surface: #0D0D12;
  --bb-elevated: #13131A;
  --bb-gold: #E8B84B;
  --bb-gold-dim: #BF942F;
  --bb-text: #EDEDF0;
  --bb-muted: #8A8A9E;
  --bb-dim: #525265;
  --bb-success: #22C55E;
  --bb-blue: #4080F0;
  --bb-border: rgba(255, 255, 255, 0.08);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --max-w: 1120px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bb-bg);
  color: var(--bb-text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--bb-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: rgba(7, 7, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bb-border);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bb-text);
  text-decoration: none;
}

.logo-link:hover { text-decoration: none; color: var(--bb-gold); }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a {
  color: var(--bb-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a.active { color: var(--bb-gold); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--bb-border);
  color: var(--bb-text);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.page-main { padding: 2.5rem 0 4rem; min-height: calc(100vh - var(--header-h) - 120px); }

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero-mark { width: 72px; height: 72px; margin: 0 auto 1.5rem; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.hero .subtitle {
  color: var(--bb-gold);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero .lead {
  color: var(--bb-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--bb-gold); color: var(--bb-bg); }
.btn-primary:hover { background: #F0CA6E; color: var(--bb-bg); }

.btn-secondary {
  background: transparent;
  color: var(--bb-text);
  border: 1px solid var(--bb-border);
}
.btn-secondary:hover { border-color: var(--bb-gold); color: var(--bb-gold); }

/* Sections */
.section { padding: 3rem 0; }
.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.section-desc { color: var(--bb-muted); margin-bottom: 2rem; max-width: 560px; }

/* Cards grid */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  transition: border-color 0.2s ease;
}

.card:hover { border-color: rgba(232, 184, 75, 0.35); }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.card p { color: var(--bb-muted); font-size: 0.95rem; }

.card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bb-gold);
  margin-bottom: 0.5rem;
}

/* Pipeline */
.pipeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2rem 0;
}

.pipeline-step {
  background: var(--bb-elevated);
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  padding: 1rem 2rem;
  min-width: 220px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.pipeline-arrow {
  color: var(--bb-gold);
  font-size: 1.25rem;
  padding: 0.35rem 0;
  line-height: 1;
}

.pipeline-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  align-items: center;
}

.pipeline-row .pipeline-step { min-width: auto; padding: 0.65rem 1rem; font-size: 0.95rem; }
.pipeline-row .pipeline-arrow { padding: 0; }

/* Status table */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.status-item {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.status-item .label { color: var(--bb-muted); font-size: 0.8rem; margin-bottom: 0.25rem; }
.status-item .value { font-weight: 600; font-size: 1.05rem; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-live { background: rgba(34, 197, 94, 0.15); color: var(--bb-success); }
.badge-partial { background: rgba(232, 184, 75, 0.15); color: var(--bb-gold); }
.badge-planned { background: rgba(64, 128, 240, 0.15); color: var(--bb-blue); }
.badge-fail { background: rgba(239, 68, 68, 0.15); color: #EF4444; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--bb-gold);
  color: var(--bb-bg);
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--bb-text);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--bb-gold);
  outline-offset: 2px;
}

.nav-toggle:focus-visible { outline-offset: 2px; }

.status-error {
  color: var(--bb-gold);
  background: rgba(232, 184, 75, 0.08);
  border: 1px solid rgba(232, 184, 75, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}

/* Roadmap */
.roadmap { list-style: none; }
.roadmap li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--bb-border);
}
.roadmap li:last-child { border-bottom: none; }
.roadmap-phase {
  font-family: var(--font-display);
  color: var(--bb-gold);
  min-width: 5rem;
  font-weight: 700;
}
.roadmap-body h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.roadmap-body p { color: var(--bb-muted); font-size: 0.9rem; }

/* Prose (legal) */
.prose h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.5rem; }
.prose .meta { color: var(--bb-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--bb-gold);
  margin: 2rem 0 0.75rem;
}
.prose p, .prose li { color: var(--bb-muted); margin-bottom: 0.75rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose strong { color: var(--bb-text); }

/* Contact form (static — mailto fallback) */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--bb-muted); margin-bottom: 0.35rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  max-width: 480px;
  padding: 0.65rem 0.85rem;
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: 10px;
  color: var(--bb-text);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--bb-border);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p { color: var(--bb-muted); font-size: 0.9rem; margin-top: 0.75rem; max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  color: var(--bb-text);
}

.footer-col a {
  display: block;
  color: var(--bb-muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  text-decoration: none;
}
.footer-col a:hover { color: var(--bb-gold); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--bb-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--bb-dim);
  font-size: 0.85rem;
}

/* 404 */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-page h1 { font-family: var(--font-display); font-size: 4rem; color: var(--bb-gold); }
.error-page p { color: var(--bb-muted); margin: 1rem 0 2rem; }

/* Docs links */
.doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: var(--bb-text);
  transition: border-color 0.2s;
}
.doc-link:hover { border-color: var(--bb-gold); text-decoration: none; }
.doc-link span { color: var(--bb-muted); font-size: 0.9rem; }

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bb-bg);
    border-bottom: 1px solid var(--bb-border);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.75rem;
  }
  .site-nav.open { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pipeline-row { flex-direction: column; }
}

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