/* ============================================================
   Karl Malone Chevrolet — Park City, UT
   Shared Stylesheet
   Design: Clean white surfaces, blue accent #2B7FFF,
   Libre Baskerville headings + Inter body (Google Fonts)
   Last updated: 2026-06-09
   ============================================================ */

/* --- Google Fonts --- */
@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; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #ffffff;
  color: #1a1a2e;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: #2B7FFF; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Libre Baskerville', Georgia, serif;
  line-height: 1.25;
  color: #0d1b2a;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* --- Layout --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.section--sm { padding: 2.5rem 0; }
.section--lg { padding: 6rem 0; }
.section--alt { background: #f7f9fc; }

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e5eaf2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.site-header__brand {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d1b2a;
  white-space: nowrap;
  text-decoration: none;
}
.site-header__brand:hover { text-decoration: none; color: #2B7FFF; }

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

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active {
  background: #eff5ff;
  color: #2B7FFF;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #374151;
}

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

.hero h1 { color: #ffffff; margin-bottom: 1rem; }
.hero p { font-size: 1.125rem; 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.6rem;
  margin-bottom: 2rem;
}

.pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

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

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

.btn--primary { background: #2B7FFF; color: #ffffff; }
.btn--primary:hover { background: #1a6ee0; color: #ffffff; }

.btn--outline { background: transparent; border-color: rgba(255,255,255,0.6); color: #ffffff; }
.btn--outline:hover { background: rgba(255,255,255,0.1); color: #ffffff; }

.btn--outline-dark { background: transparent; border-color: #2B7FFF; color: #2B7FFF; }
.btn--outline-dark:hover { background: #eff5ff; }

/* --- Rating Badge --- */
.rating-bar {
  background: #ffffff;
  border-bottom: 1px solid #e5eaf2;
  padding: 1rem 0;
  text-align: center;
}

.rating-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.rating-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

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

.rating-item__label { font-weight: 600; color: #0d1b2a; }
.rating-item__sub { color: #6b7280; font-size: 0.8rem; }

/* --- Cards --- */
.card {
  background: #ffffff;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 6px 20px rgba(43,127,255,0.1); transform: translateY(-2px); }

.card--review {
  position: relative;
  padding-top: 1.75rem;
}

.card--review::before {
  content: '\201C';
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: #2B7FFF;
  opacity: 0.3;
}

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

.review-author { font-weight: 700; font-size: 0.95rem; color: #0d1b2a; }
.review-date { font-size: 0.8rem; color: #6b7280; }
.review-platform {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2B7FFF;
  background: #eff5ff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.review-text { font-size: 0.9rem; color: #374151; line-height: 1.6; }

.review-source-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #2B7FFF;
}

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: #6b7280; max-width: 560px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2B7FFF;
  margin-bottom: 0.5rem;
}

/* --- Q&A / FAQ --- */
.qa-item {
  border-bottom: 1px solid #e5eaf2;
  padding: 1.5rem 0;
}
.qa-item:last-child { border-bottom: none; }

.qa-question {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d1b2a;
  margin-bottom: 0.75rem;
}

.qa-answer {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.7;
}

.qa-intent-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.intent-buying { background: #d1fae5; color: #065f46; }
.intent-models { background: #dbeafe; color: #1e40af; }
.intent-service { background: #fef3c7; color: #92400e; }
.intent-financing { background: #ede9fe; color: #5b21b6; }
.intent-location { background: #fee2e2; color: #991b1b; }
.intent-comparison { background: #f3f4f6; color: #374151; }
.intent-about { background: #e0f2fe; color: #0c4a6e; }

/* --- Comparison Table --- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th, .compare-table td {
  padding: 0.85rem 1rem;
  border: 1px solid #e5eaf2;
  text-align: left;
  vertical-align: top;
}
.compare-table th {
  background: #f7f9fc;
  font-weight: 700;
  font-family: 'Libre Baskerville', Georgia, serif;
  color: #0d1b2a;
}
.compare-table tr:nth-child(even) td { background: #fafbfd; }
.compare-table .check { color: #10b981; font-weight: 700; }
.compare-table .local-col { background: #eff5ff; }

/* --- Info Box --- */
.info-box {
  background: #eff5ff;
  border-left: 4px solid #2B7FFF;
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box p { margin: 0; font-size: 0.95rem; }

/* --- Contact / Address Block --- */
.contact-block {
  background: #0d1b2a;
  color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
}
.contact-block h3 { color: #ffffff; margin-bottom: 1rem; }
.contact-block a { color: #7cb9ff; }
.contact-block a:hover { color: #ffffff; }
.contact-row { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; }
.contact-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); display: block; }
.contact-value { font-weight: 600; }

.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  font-size: 0.9rem;
}
.hours-day { color: rgba(255,255,255,0.7); }
.hours-time { font-weight: 500; }

/* --- Product Line Cards --- */
.model-card {
  background: #ffffff;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.2s;
}
.model-card:hover { box-shadow: 0 4px 16px rgba(43,127,255,0.12); }
.model-card__name {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0d1b2a;
  margin-bottom: 0.4rem;
}
.model-card__desc { font-size: 0.875rem; color: #6b7280; }

/* --- Value Props --- */
.value-prop {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5eaf2;
}
.value-prop:last-child { border-bottom: none; }
.value-prop__icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.value-prop__text { font-size: 0.95rem; color: #374151; }
.value-prop__text strong { color: #0d1b2a; }

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.8rem;
  color: #6b7280;
  padding: 0.75rem 0;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: #2B7FFF; }
.breadcrumb span { color: #9ca3af; }

/* --- Page Header --- */
.page-header {
  background: #f7f9fc;
  border-bottom: 1px solid #e5eaf2;
  padding: 2.5rem 0 2rem;
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: #6b7280; max-width: 640px; }

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #e5eaf2;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.pagination a:hover { background: #eff5ff; color: #2B7FFF; border-color: #2B7FFF; }
.pagination .current { background: #2B7FFF; color: #ffffff; border-color: #2B7FFF; }

/* --- Footer --- */
.site-footer {
  background: #0d1b2a;
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  text-decoration: none;
}
.footer-col a:hover { color: #ffffff; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: #6b7280; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.divider {
  border: none;
  border-top: 1px solid #e5eaf2;
  margin: 2rem 0;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #eff5ff;
  color: #2B7FFF;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }

  .site-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #ffffff; border-bottom: 1px solid #e5eaf2; padding: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 2.5rem 0; }

  .compare-table { font-size: 0.8rem; }
  .compare-table th, .compare-table td { padding: 0.6rem 0.75rem; }
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .hero__ctas, .btn { display: none; }
  body { font-size: 12pt; }
  .section { padding: 1rem 0; }
}
