/* ════════════════════════════════════════════════════════════════════════
   post.css — typography & layout for single blog post pages + blog index
   Extends style.css (does NOT modify it). Versioned via ?v=1.
   ════════════════════════════════════════════════════════════════════════ */

/* ── post hero ─────────────────────────────────────────────────────────── */
.post-hero {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: var(--bg-peach);
}
.post-hero-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* ── article container ─────────────────────────────────────────────────── */
.post-container {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 64px;
}

/* ── meta strip ────────────────────────────────────────────────────────── */
.post-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 14px;
}
.post-back {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.post-back:hover { color: var(--orange); }
.post-cat-pill {
  background: var(--orange-soft, #FFE4D6);
  color: var(--orange, #FF6B35);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bg-peach);
}
.post-byline strong { color: var(--text-soft); font-weight: 600; }
.post-dot { opacity: 0.5; }

/* ── post body (renders raw WP HTML) ───────────────────────────────────── */
.post-body {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.75;
  font-family: 'Montserrat', system-ui, sans-serif;
}
.post-body > *:first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.2em; }
.post-body strong, .post-body b { color: var(--text); font-weight: 700; }
.post-body a {
  color: var(--orange, #FF6B35);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.post-body a:hover { color: var(--text); }

.post-body h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  margin: 2em 0 0.6em;
}
.post-body h3 {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  margin: 1.6em 0 0.5em;
}
.post-body h4, .post-body h5, .post-body h6 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 1.4em 0 0.4em;
}

.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.6em auto;
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,0.08));
}

.post-body ul, .post-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.post-body li { margin-bottom: 0.4em; }

.post-body blockquote {
  border-left: 4px solid var(--orange, #FF6B35);
  background: var(--bg-peach);
  margin: 1.6em 0;
  padding: 16px 22px;
  border-radius: 0 var(--radius, 14px) var(--radius, 14px) 0;
  font-style: italic;
  color: var(--text);
}
.post-body blockquote p:last-child { margin-bottom: 0; }

.post-body hr {
  border: 0;
  border-top: 1px solid var(--bg-peach);
  margin: 2em 0;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 15px;
}
.post-body th, .post-body td {
  border: 1px solid var(--bg-peach);
  padding: 10px 14px;
  text-align: left;
}
.post-body th { background: var(--bg-peach); color: var(--text); font-weight: 700; }

.post-body iframe, .post-body video {
  max-width: 100%;
  border-radius: var(--radius, 14px);
  margin: 1.6em 0;
}

/* strip Elementor inline <style> noise visual artifacts */
.post-body style { display: none !important; }

/* ── CTA block at end of post ──────────────────────────────────────────── */
.post-cta {
  margin-top: 56px;
  padding: 32px;
  background: var(--bg-peach);
  border-radius: var(--radius, 14px);
  text-align: center;
}
.post-cta h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}
.post-cta p { color: var(--text-soft); margin: 0 0 20px; }
.post-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── blog index page hero ──────────────────────────────────────────────── */
.blog-index-hero {
  background: linear-gradient(180deg, var(--bg-peach) 0%, var(--bg) 100%);
  padding: 64px 0 32px;
}
.blog-index-hero .section-header { margin-bottom: 0; }

/* ── blog index card image (override placeholder gradient height) ─────── */
#blog-list .blog-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
#blog-list .blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

@media (max-width: 640px) {
  .post-container { padding-top: 32px; padding-bottom: 48px; }
  .post-body { font-size: 16px; line-height: 1.7; }
  .post-cta { padding: 24px 20px; }
}
