/* ============================================================
   Car Lot Wizard — Blog Editorial Design System
   Loaded alongside ../styles.css on all blog pages
   ============================================================ */

/* --- Blog-scoped variables --- */
:root {
  --serif: 'Playfair Display', Georgia, serif;
  --sans-blog: 'DM Sans', 'Inter', sans-serif;
  --mono-blog: 'DM Mono', 'JetBrains Mono', monospace;
  --gold: #b8922a;
  --green-light: #f0faf3;
  --green-border: #c3e4cc;
  --green-dark: #2e9e50;
  --green-text: #1a4d26;
  --green-label: #2e7d3e;
}

/* --- Reset blog body font --- */
body { font-family: var(--sans-blog); }

/* ============================================================
   BLOG HERO
   ============================================================ */
.blog-hero {
  background: var(--color-dark);
  color: var(--color-proof-text);
  padding: 100px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 28px,
    rgba(255,255,255,0.025) 28px,
    rgba(255,255,255,0.025) 29px
  );
  pointer-events: none;
}

.blog-hero-eyebrow {
  font-family: var(--mono-blog);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  position: relative;
}

.blog-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto 24px;
  color: var(--color-proof-text);
  position: relative;
}

.blog-hero h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.blog-hero-sub {
  color: rgba(245, 240, 232, 0.65);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  position: relative;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 90, 45, 0.18);
  border: 1px solid rgba(196, 90, 45, 0.4);
  border-radius: 100px;
  padding: 8px 20px;
  font-family: var(--mono-blog);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #e8a07a;
  position: relative;
}

/* ============================================================
   BLOG INTRO
   ============================================================ */
.blog-intro {
  padding: 56px 24px 0;
  max-width: 760px;
  margin: 0 auto;
}

.blog-intro p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 18px;
  color: #1a1916;
  max-width: none;
}

.blog-intro p:first-child {
  font-size: 20px;
  font-weight: 500;
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: var(--mono-blog);
  letter-spacing: 0.05em;
  color: var(--color-muted);
  text-decoration: none;
  margin-bottom: 0;
  padding: 32px 24px 0;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.blog-back:hover { color: var(--color-accent); }

.pattern-callout {
  border-left: 4px solid var(--color-accent);
  padding: 18px 24px;
  background: var(--color-accent-light);
  border-radius: 0 8px 8px 0;
  margin: 36px 0;
  font-size: 16px;
  color: #5a1a13;
  line-height: 1.7;
}

/* ============================================================
   EDITORIAL CARDS
   ============================================================ */
.editorial-list {
  padding: 48px 24px 0;
  max-width: 760px;
  margin: 0 auto;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.editorial-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  animation: fadeUp 0.4s ease both;
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--color-border);
  background: #faf9f6;
}

.card-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-border);
  line-height: 1;
  min-width: 44px;
  flex-shrink: 0;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark);
}

.card-body {
  padding: 24px 28px;
  display: grid;
  gap: 20px;
}

.section-label {
  font-family: var(--mono-blog);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.card-body p {
  font-size: 15.5px;
  line-height: 1.72;
  color: #2a2926;
  max-width: none;
  margin-bottom: 0;
}

.card-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.card-body ul li {
  font-size: 15px;
  line-height: 1.65;
  color: #2a2926;
  padding-left: 16px;
  position: relative;
}

.card-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 12px;
}

/* ============================================================
   COUNTER-SCRIPT BOX (green)
   ============================================================ */
.counter-script {
  background: var(--green-light);
  border: 1px solid var(--green-border);
  border-left: 4px solid var(--green-dark);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
}

.counter-script .section-label {
  color: var(--green-label);
  margin-bottom: 10px;
}

.counter-script blockquote {
  font-family: var(--mono-blog);
  font-size: 14px;
  line-height: 1.7;
  color: var(--green-text);
  border: none;
  padding: 0;
  background: none;
  font-style: normal;
  margin: 0;
}

.counter-script blockquote + blockquote {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--green-border);
}

/* ============================================================
   BEST-USE BOX (accent tint, for tools comparison)
   ============================================================ */
.best-use {
  background: var(--color-accent-light);
  border: 1px solid #e8d5c8;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
}

.best-use .section-label {
  color: var(--color-accent);
  margin-bottom: 10px;
}

.best-use p {
  font-size: 14.5px;
  color: #5a2a0f;
}

/* ============================================================
   FRAMEWORK BOX (dark, 2-col)
   ============================================================ */
.framework-section {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.framework-box {
  background: var(--color-dark);
  color: var(--color-proof-text);
  border-radius: 16px;
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
}

.framework-box::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(196, 90, 45, 0.12);
  pointer-events: none;
}

.framework-box h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-proof-text);
}

.framework-box > p {
  color: rgba(245,240,232,0.7);
  font-size: 15px;
  line-height: 1.7;
  max-width: none;
  margin-bottom: 0;
}

.framework-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 28px;
}

.framework-col h3 {
  font-family: var(--mono-blog);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.framework-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.framework-col li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 15px;
  color: rgba(245,240,232,0.82);
  display: flex;
  gap: 10px;
  align-items: baseline;
  line-height: 1.5;
}

.framework-col li:last-child { border-bottom: none; }

.step-num {
  font-family: var(--mono-blog);
  font-size: 11px;
  color: var(--gold);
  min-width: 20px;
  flex-shrink: 0;
}

/* Framework table (quick reference) */
.framework-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  font-size: 14px;
}

.framework-table th {
  text-align: left;
  padding: 10px 14px;
  font-family: var(--mono-blog);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.framework-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(245,240,232,0.85);
  vertical-align: top;
}

.framework-table tr:last-child td { border-bottom: none; }

.framework-table td:first-child {
  color: rgba(245,240,232,0.55);
  font-family: var(--mono-blog);
  font-size: 13px;
}

/* ============================================================
   COMPARISON TABLE (dark header, light rows)
   ============================================================ */
.comparison-section {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.comparison-section h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table th {
  background: var(--color-dark);
  color: var(--color-proof-text);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}

.comparison-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: top;
  line-height: 1.5;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table td:first-child { color: var(--color-muted); font-weight: 500; }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  max-width: 760px;
  margin: 56px auto 72px;
  padding: 0 24px;
}

.cta-box-editorial {
  background: linear-gradient(135deg, var(--color-accent) 0%, #8a3010 100%);
  color: white;
  border-radius: 16px;
  padding: 44px 48px;
  text-align: center;
}

.cta-box-editorial h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.cta-box-editorial p {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: none;
  color: white;
}

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: white;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--sans-blog);
}

.btn-cta-primary:hover {
  background: var(--color-accent-light);
}

.btn-cta-outline {
  background: transparent;
  color: white;
  font-weight: 500;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.5);
  text-decoration: none;
  font-family: var(--sans-blog);
}

.btn-cta-outline:hover { border-color: white; }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-editorial {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.faq-editorial h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--color-dark);
}

.faq-editorial details {
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}

.faq-editorial summary {
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--color-dark);
}

.faq-editorial summary::-webkit-details-marker { display: none; }

.faq-editorial summary::after {
  content: '+';
  font-family: var(--mono-blog);
  font-size: 18px;
  color: var(--color-muted);
  flex-shrink: 0;
}

.faq-editorial details[open] summary::after { content: '−'; }

.faq-editorial details p {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.75;
  color: #3a3835;
  max-width: none;
}

/* ============================================================
   BLOG INDEX — Editorial hero + cards
   ============================================================ */
.blog-editorial-hero {
  background: var(--color-dark);
  color: var(--color-proof-text);
  padding: 100px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-editorial-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 28px,
    rgba(255,255,255,0.025) 28px,
    rgba(255,255,255,0.025) 29px
  );
  pointer-events: none;
}

.blog-editorial-hero .eyebrow {
  font-family: var(--mono-blog);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  position: relative;
}

.blog-editorial-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto 20px;
  color: var(--color-proof-text);
  position: relative;
}

.blog-editorial-hero p {
  color: rgba(245,240,232,0.65);
  max-width: 520px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  position: relative;
}

.blog-editorial-cards {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.blog-editorial-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.blog-editorial-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.blog-editorial-card .card-tag {
  font-family: var(--mono-blog);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.blog-editorial-card h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-dark);
  margin: 0;
}

.blog-editorial-card p {
  color: var(--color-muted);
  font-size: 14.5px;
  line-height: 1.65;
  flex: 1;
  margin: 0;
  max-width: none;
}

.blog-editorial-card .card-meta {
  font-family: var(--mono-blog);
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

.blog-editorial-card .read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .blog-hero { padding: 80px 20px 56px; }
  .framework-box { padding: 32px 24px; }
  .framework-cols { grid-template-columns: 1fr; }
  .cta-box-editorial { padding: 36px 28px; }
  .card-header { padding: 18px 20px; }
  .card-body { padding: 18px 20px; }
  .editorial-list { padding: 32px 16px 0; }
  .blog-intro { padding: 40px 16px 0; }
  .framework-section, .faq-editorial, .cta-strip, .comparison-section { padding: 0 16px; }
  .blog-editorial-cards { grid-template-columns: 1fr; padding: 40px 16px 60px; }
}
