:root {
  --pico-font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pico-font-size: 17px;
  --pico-line-height: 1.75;
  --pico-color: #2d3436;
  --pico-primary: #c0392b;
  --pico-primary-hover: #a93226;
  --accent: #c0392b;
  --accent-dark: #a93226;
  --dark: #1a1a1a;
  --body: #2d3436;
  --muted: #636e72;
  --light-bg: #f8f9fa;
  --border: #e9ecef;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

body {
  background: #fff;
  padding-top: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  font-weight: 700;
}

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

/* Navbar */
.site-nav {
  background: var(--dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
}
.site-nav .brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 0;
  letter-spacing: -0.02em;
}
.site-nav .brand span {
  color: var(--accent);
}
.site-nav nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 0.9rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-block;
  transition: color 0.15s;
}
.site-nav nav a:hover {
  color: #fff;
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav .nav-links { display: none; flex-direction: column; width: 100%; }
  .site-nav .nav-links.active { display: flex; }
  .site-nav .container { flex-wrap: wrap; }
  .site-nav nav a { padding: 0.6rem 0; }
}

/* Hero */
.hero {
  background: var(--light-bg);
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.hero .lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 1.5rem;
}
.hero .hero-img {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  max-height: 360px;
  width: 100%;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* Section */
.section {
  padding: 3rem 0;
}
.section-bordered {
  border-bottom: 1px solid var(--border);
}
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.section-desc {
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 1.5rem;
}

/* Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: var(--card-shadow);
  border-color: #d1d5db;
}
.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.card h3 a {
  color: var(--dark);
  text-decoration: none;
}
.card h3 a:hover {
  color: var(--accent);
}
.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}
.card .card-meta {
  font-size: 0.75rem;
  color: #adb5bd;
  margin-top: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Category badges */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}
.badge-problems { background: #fff3cd; color: #856404; }
.badge-inspections { background: #d4edda; color: #155724; }
.badge-tires { background: #cce5ff; color: #004085; }
.badge-standards { background: #e2d9f3; color: #4a1d96; }
.badge-guides { background: #f8d7da; color: #721c24; }

/* Article layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
}

.article-content h1 {
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.article-meta {
  font-size: 0.85rem;
  color: var(--muted);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.article-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.article-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.article-content p {
  margin-bottom: 1.25rem;
}
.article-content ul, .article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.article-content li {
  margin-bottom: 0.4rem;
}
.article-content img {
  width: 100%;
  border-radius: 6px;
  margin: 1.5rem 0;
}
.article-content .caption {
  font-size: 0.8rem;
  color: #adb5bd;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--light-bg);
  font-style: italic;
  color: #4b5563;
}
.article-content a {
  text-decoration: underline;
  text-decoration-color: #f5b7b1;
  text-underline-offset: 2px;
}
.article-content a:hover {
  text-decoration-color: var(--accent);
}

/* FAQ */
.faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.faq-item {
  margin-bottom: 1.5rem;
}
.faq-item h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.3rem;
}

/* Sidebar */
.sidebar-box {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.sidebar-box h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-box li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box li a {
  color: var(--body);
  text-decoration: none;
}
.sidebar-box li a:hover { color: var(--accent); }

/* Related */
.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* CTA box */
.cta-box {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
}
.site-footer ul {
  list-style: none;
  padding: 0;
}
.site-footer li {
  padding: 0.2rem 0;
  font-size: 0.9rem;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}
.site-footer .footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 340px;
}
.site-footer .footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* Banner image for category pages */
.cat-banner {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}
