/* ============================================================
   Karl Malone Chrysler Dodge Jeep Ram — Shared Stylesheet
   Design: Clean white surfaces, blue #2B7FFF accent,
   Libre Baskerville headings + Inter body, generous spacing,
   soft rounded cards, sticky header.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #2B7FFF;
  --blue-dark:  #1a5fd4;
  --blue-light: #e8f0ff;
  --white:      #ffffff;
  --gray-50:    #f8f9fa;
  --gray-100:   #f1f3f5;
  --gray-200:   #e9ecef;
  --gray-400:   #adb5bd;
  --gray-600:   #6c757d;
  --gray-800:   #343a40;
  --gray-900:   #212529;
  --radius:     10px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.10);
  --max-w:      1200px;
  --font-head:  'Libre Baskerville', Georgia, serif;
  --font-body:  'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section--alt { background: var(--gray-50); }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.site-header__brand {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
  text-decoration: none;
}
.site-header__brand:hover { text-decoration: none; color: var(--blue); }

.site-nav { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }

.site-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--blue-light);
  color: var(--blue);
  text-decoration: none;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f2d5e 0%, #1a4fa0 60%, #2B7FFF 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pill {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

.stars { color: #ffd700; font-size: 1.1rem; letter-spacing: 0.05em; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); }

.btn--outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn--outline:hover { background: var(--blue-light); }

.btn--white { background: var(--white); color: var(--blue); }
.btn--white:hover { background: var(--gray-100); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ── Review Cards ─────────────────────────────────────────── */
.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.review-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.review-card__author { font-weight: 600; font-size: 0.95rem; color: var(--gray-900); }
.review-card__meta { font-size: 0.78rem; color: var(--gray-600); margin-top: 0.1rem; }
.review-card__stars { color: #f59e0b; font-size: 1rem; white-space: nowrap; }
.review-card__text { font-size: 0.9rem; line-height: 1.6; color: var(--gray-800); }
.review-card__source {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--gray-600);
}
.review-card__source a { color: var(--blue); }

/* ── Q&A / FAQ ────────────────────────────────────────────── */
.qa-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 0;
}
.qa-item:last-child { border-bottom: none; }

.qa-item__q {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.qa-item__a {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--gray-800);
}

.qa-item__source {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--gray-600);
}
.qa-item__source a { color: var(--blue); }

/* ── Section Headings ─────────────────────────────────────── */
.section-head { margin-bottom: 2.5rem; }
.section-head--center { text-align: center; }

.section-head__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.section-head__title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-head__body {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 640px;
}
.section-head--center .section-head__body { margin: 0 auto; }

/* ── Info Grid ────────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.info-card {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.info-card__icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.info-card__title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.info-card__body { font-size: 0.88rem; color: var(--gray-700, #495057); }

/* ── Comparison Table ─────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th, .compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.compare-table th {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}
.compare-table tr:nth-child(even) td { background: var(--gray-50); }
.compare-table td:first-child { font-weight: 600; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  color: var(--gray-800);
  transition: background 0.15s;
}
.pagination a:hover { background: var(--blue-light); color: var(--blue); text-decoration: none; }
.pagination .current { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ── Contact Bar ──────────────────────────────────────────── */
.contact-bar {
  background: var(--blue);
  color: var(--white);
  padding: 2rem 0;
}
.contact-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.contact-bar__item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.contact-bar__item strong { font-size: 1rem; }
.contact-bar a { color: var(--white); font-weight: 600; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 2.5rem 0;
  font-size: 0.85rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer__brand { color: var(--white); font-weight: 600; font-family: var(--font-head); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer__links a { color: var(--gray-400); }
.site-footer__links a:hover { color: var(--white); }
.site-footer__updated { font-size: 0.78rem; color: var(--gray-600); margin-top: 0.5rem; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--gray-600);
  padding: 0.75rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb__sep { color: var(--gray-400); }

/* ── Tag / Badge ──────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
}
.badge--green { background: #d1fae5; color: #065f46; }
.badge--yellow { background: #fef3c7; color: #92400e; }

/* ── Stat Strip ───────────────────────────────────────────── */
.stat-strip {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 2rem 0;
}
.stat-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}
.stat-item { text-align: center; }
.stat-item__value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.stat-item__label { font-size: 0.82rem; color: var(--gray-600); margin-top: 0.25rem; }

/* ── Table of Contents ────────────────────────────────────── */
.toc {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.toc__title { font-weight: 700; margin-bottom: 0.5rem; font-size: 0.9rem; }
.toc ol { padding-left: 1.25rem; }
.toc li { font-size: 0.88rem; margin-bottom: 0.25rem; }
.toc a { color: var(--blue); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 2.5rem 0; }
  .card-grid { grid-template-columns: 1fr; }
  .contact-bar__inner { flex-direction: column; align-items: flex-start; }
  .compare-table { font-size: 0.82rem; }
  .compare-table th, .compare-table td { padding: 0.6rem 0.75rem; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.5rem; }
  .container { padding: 0 1rem; }
}

/* ── Mobile Nav Toggle ────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-800);
  padding: 0.25rem;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .contact-bar, .nav-toggle { display: none; }
  body { font-size: 12pt; }
}
