/* =====================================================================
   blog.css — Unified stylesheet for all MACK Rent a Car blog posts
   Single file to link in WordPress/CMS theme.
   ===================================================================== */

:root {
  --bg: #ffffff;
  --surface: #fdfdfd;
  --card: #ffffff;
  --text: #0a2351;
  --muted: #4b5563;
  --faint: #9ca3af;
  --border: #e2e8f0;

  --accent-red: #e13c3c;
  --accent-blue: #0a2351;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ── Layout ── */
.blog-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 980px) {
  .blog-shell {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 3rem;
  }
}

.blog-shell a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-shell a:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.breadcrumbs a { color: var(--muted); }
.crumb-sep { color: var(--faint); }

/* ── Post header ── */
.post-header {
  margin-bottom: 2rem;
}

.post-title {
  margin: 0.75rem 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--accent-blue);
}

.post-lede {
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.meta-pill {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ── Hero image — landscape ── */
.hero {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Hero image — portrait ── */
.hero-portrait {
  margin: 2rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 480px;
}

.hero-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.hero figcaption,
.hero-portrait figcaption {
  padding: 1rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ── Post body & prose ── */
.post-body {
  font-size: 1.1rem;
  color: var(--text);
}

.prose p { margin-bottom: 1.5rem; }

.prose h2 {
  margin: 3rem 0 1.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--accent-blue);
  border-bottom: 2px solid var(--accent-red);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.prose h3 {
  margin: 2rem 0 1rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--accent-blue);
}

.prose ul,
.prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li { margin-bottom: 0.5rem; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* ── Callout ── */
.callout {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--accent-red);
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.callout-title {
  font-weight: 800;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout--tip  { border-left-color: #2563eb; }
.callout--note { border-left-color: var(--accent-red); }

/* ── Steps list ── */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.step {
  counter-increment: step;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.step::before {
  content: counter(step);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* ── Info grid & cards ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.info-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.info-card .kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.info-card .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-red);
  margin: 0.5rem 0;
}

.info-card .desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ── Two-column grid ── */
.two-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

/* ── Highlight card ── */
.highlight-card {
  padding: 1.5rem;
  background: var(--accent-blue);
  color: #fff;
  border-radius: var(--radius-md);
  text-align: center;
}

.highlight-card__value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.highlight-card__label {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: 0.4rem;
}

/* ── Winery card ── */
.winery-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--accent-red);
  box-shadow: var(--shadow);
}

.winery-card__name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 0.25rem;
}

.winery-card__location {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* ── Comparison table ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-table th {
  background: var(--accent-blue);
  color: #fff;
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
}

.compare-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--surface); }

.compare-table .col-highlight {
  color: var(--accent-red);
  font-weight: 700;
}

/* ── Button ── */
a.btn, .btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent-blue);
  color: #ffffff !important;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

a.btn:hover, .btn:hover {
  background: var(--accent-red);
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-2px);
}

/* ── Tags ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* ── Post footer ── */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── FAQ ── */
.faq {
  margin: 3rem 0 2rem;
  padding-top: 2.5rem;
  border-top: 2px solid var(--border);
}

.faq-title {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 800;
  color: var(--accent-blue);
  margin: 0 0 1.5rem;
  border-bottom: 2px solid var(--accent-red);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover { box-shadow: var(--shadow); }

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-blue);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  transition: background 0.15s;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent-red);
  flex-shrink: 0;
  line-height: 1;
}

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

.faq-item[open] summary {
  background: #f0f4ff;
  border-bottom: 1px solid var(--border);
}

.faq-answer {
  padding: 1rem 1.25rem 1.25rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.faq-answer p { margin: 0 0 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--text); }

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

.related-title {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 800;
  color: var(--accent-blue);
  margin: 0 0 1rem;
}

.related-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-posts li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.related-posts li:last-child { border-bottom: none; }

.related-posts a {
  color: var(--muted);
  font-size: 0.97rem;
}

.related-posts a:hover { color: var(--accent-red); }

/* ── Sidebar ── */
.sidebar {
  position: relative;
  height: 100%;
}

@media (min-width: 980px) {
  .sidebar-inner {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.panel-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--accent-blue);
}

.panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.panel-hd .panel-title { margin-bottom: 0; }

.toc {
  list-style: none;
  padding: 0;
}

.toc li { margin-bottom: 0.75rem; }
.toc ol { padding-left: 1rem; margin-top: 0.5rem; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--accent-red); }
