/* Kids Bike Finder — Content Hub */

:root {
  --accent: #1565C0;
  --accent-light: #E3F2FD;
  --bg: #f5f5f0;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-light: #555;
  --text-lighter: #888;
  --border: rgba(0,0,0,0.06);
  --radius: 14px;
  --shadow: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.1);
  --font-head: 'Fredoka', sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --max-w: 780px;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* ── Hero ───────────────────────────────────── */
.hero {
  text-align: center;
  padding: 56px 20px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Content Sections ────────────────────────── */
.content-section {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  padding: 0 16px;
}

.content-section h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-left: 4px;
}

/* ── Card Grid ───────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.guide-card-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.guide-card-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 4px;
}

.guide-card-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── Footer ──────────────────────────────────── */
.footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 36px 16px 24px;
  margin-top: 20px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 6px;
}

.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: white; text-decoration: none; }

.footer-legal {
  margin-top: 12px;
  font-size: 0.8rem;
}

.footer-fine {
  margin-top: 10px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 500px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 16px 28px; }
}

/* ── Focus ───────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
