/* ========================================
   PAGE-SPECIFIC: SINGLE BLOG POST
   Matches the design package's current blog-post.css/blog-post-*.html:
   featured image as a full-bleed "title-on-photo" hero (falls back to
   the plain cream hero below when a post has no featured image), a
   single-column article body (no TOC/share sidebar — dropped from the
   design), an end-of-article shop CTA, then "Keep reading" (3 related
   posts) using its own card treatment (photo + tag, title below in its
   own white body) distinct from the archive grid's card. No author
   bio, no post-to-post pagination — dropped per client request earlier
   and still absent from the current design.

   .article-layout / .related-section keep this theme's own client-
   specified width/padding customization (1140px, 100px vertical / 0
   horizontal desktop, 80/20 tablet, 50/15 mobile) — unrelated to the
   design refresh, left as previously built. .blog-cta uses the design's
   own padding as-is, since it's a new self-contained component, not a
   retrofit of the old full-bleed .cta-strip.
   ======================================== */

/* Reading progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, #1f5d3f, #ff6b35);
  z-index: 9999;
  width: 0%;
  transition: width 0.05s linear;
}

/* Hero — plain cream version, used when a post has no featured image */
.post-hero {
  padding: 56px 32px 48px;
  background: #ede4d3;
  border-bottom: 3px solid #1a1a1a;
  position: relative;
}
.post-hero::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: repeating-linear-gradient(
    90deg,
    #1a1a1a 0, #1a1a1a 12px,
    #ff6b35 12px, #ff6b35 24px
  );
}
.post-hero-inner {
  max-width: 800px; margin: 0 auto;
  text-align: center;
}
.post-category {
  display: inline-block;
  padding: 6px 14px;
  background: #1a1a1a; color: #ff6b35;
  border-radius: 980px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  transform: rotate(-1deg);
}
.post-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.post-hero h1 .accent {
  background: linear-gradient(135deg, #1f5d3f 0%, #ff6b35 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.post-meta {
  display: inline-flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #555;
  font-weight: 600;
}
.post-meta .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #999;
}

/* Hero — cover-photo version, used when a post HAS a featured image.
   Featured image + gradient are set inline (background-image) by
   single.php; everything else here is layout/typography. */
.post-hero-cover {
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid #1a1a1a;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 56px 32px 44px;
}
.post-hero-cover::before { display: none; }
.post-hero-cover .post-hero-inner { text-align: left; max-width: 860px; }
.post-hero-cover .post-category {
  display: inline-block; margin-bottom: 16px;
  background: #fcfaf4; color: #1a1a1a;
  padding: 6px 14px; border-radius: 980px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  transform: none;
}
.post-hero-cover h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4); }
.post-hero-cover h1 .accent {
  background: none; -webkit-text-fill-color: #ff8c5a; color: #ff8c5a;
}
.post-hero-cover .post-meta { color: rgba(255, 255, 255, 0.88); }
.post-hero-cover .post-meta .dot { background: rgba(255, 255, 255, 0.55); }

/* ========== ARTICLE LAYOUT ==========
   Single column, no TOC/share sidebar (dropped from the design).
   1140 wide, client-specified padding: 100px vertical / 0 horizontal on
   desktop (the 1140 max-width + auto margin handles centering), 80/20 on
   tablet, 50/15 on mobile. */
.article-layout {
  max-width: 1140px; margin: 0 auto;
  padding: 100px 0;
}

/* Article body — capped well under 800px for readability */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: #2a2a2a;
}
.article-body p { margin-bottom: 22px; }
.article-body p.lede {
  font-size: 22px;
  line-height: 1.55;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.article-body h2 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 56px 0 20px;
}
.article-body h2 .accent {
  background: linear-gradient(135deg, #1f5d3f 0%, #ff6b35 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.article-body h3 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
}
.article-body strong { font-weight: 800; }
.article-body a {
  color: #1a1a1a;
  border-bottom: 2px solid #ff6b35;
  font-weight: 600;
  transition: background 0.2s;
}
.article-body a:hover { background: rgba(255, 107, 53, 0.15); }
.article-body ul, .article-body ol {
  margin: 0 0 22px 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body img {
  max-width: 100%;
  height: auto;
  margin: 36px 0;
  border-radius: 20px;
  border: 3px solid #1a1a1a;
}

/* Callout box — available for content authors via a custom HTML block
   (<div class="callout"><div class="callout-label">...</div><p>...</p></div>) */
.callout {
  background: rgba(255, 107, 53, 0.06);
  border-left: 4px solid #ff6b35;
  padding: 24px 28px;
  border-radius: 0 16px 16px 0;
  margin: 32px 0;
}
.callout-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800;
  color: #ff6b35;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.callout p {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 0;
  color: #333;
}

/* Comparison table — same, custom HTML block use */
.compare-table {
  margin: 32px 0;
  border: 3px solid #1a1a1a;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.compare-row {
  display: grid;
  grid-template-columns: 130px 1fr 1fr 1fr;
  border-bottom: 2px solid #f0e8d8;
}
.compare-row:last-child { border-bottom: none; }
.compare-row.header {
  background: #1a1a1a;
  color: #ff6b35;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare-row > div {
  padding: 16px;
  border-right: 2px solid #f0e8d8;
  font-size: 14px;
  line-height: 1.45;
}
.compare-row > div:last-child { border-right: none; }
.compare-row > div:first-child {
  font-weight: 800;
  background: #fcfaf4;
}
.compare-row.header > div:first-child { background: #1a1a1a; }
.compare-row.header > div { border-right-color: rgba(255, 107, 53, 0.2); }

/* Product mention block — same, custom HTML block use */
.product-mention {
  margin: 36px 0;
  padding: 24px;
  background: #1a1a1a;
  color: #fcfaf4;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: center;
}
.product-mention-img {
  width: 100px; height: 100px;
  border-radius: 16px;
  border: 2px solid #ff6b35;
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
.product-mention-info .tag {
  font-size: 11px; font-weight: 800;
  color: #ff6b35;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.product-mention-info .name {
  font-size: 20px; font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.product-mention-info .desc {
  font-size: 13px;
  color: rgba(255, 248, 240, 0.7);
  line-height: 1.5;
}
.product-mention-cta {
  padding: 12px 22px;
  background: #ff6b35;
  color: #1a1a1a;
  border-radius: 980px;
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.product-mention-cta:hover { background: #fcfaf4; }

/* ========== END-OF-ARTICLE SHOP CTA ========== */
.blog-cta { padding: 8px 32px 56px; }
.blog-cta-inner {
  max-width: 784px; margin: 44px auto 0;
  background: #1a1a1a; color: #fcfaf4;
  border: 2px solid #1a1a1a; border-radius: 24px;
  box-shadow: 6px 6px 0 #ff6b35;
  padding: 30px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.blog-cta-copy h2 {
  font-size: 26px; font-weight: 900; letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 6px; color: #fcfaf4;
}
.blog-cta-copy h2 .accent {
  background: none; -webkit-text-fill-color: #ff8c5a; color: #ff8c5a;
}
.blog-cta-copy p { font-size: 14px; color: rgba(255, 248, 240, 0.72); line-height: 1.5; margin: 0; }
.blog-cta-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  background: #ff6b35; color: #1a1a1a;
  padding: 14px 24px; border-radius: 980px;
  font-size: 14px; font-weight: 800; letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
}
.blog-cta-btn:hover { background: #fcfaf4; }

/* ========== KEEP READING (related posts) ==========
   Own card treatment (image + tag, title below in its own white body)
   — distinct from the archive grid's title-on-photo .blog-card. Section
   width/padding keep this theme's own client-specified recipe, same as
   .article-layout above. */
.related-section {
  background: #ede4d3;
  border-top: 3px solid #1a1a1a;
  padding: 100px 0;
}
.related-inner { max-width: 1140px; margin: 0 auto; }
.related-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap; gap: 16px;
}
.related-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.related-header h2 .accent {
  background: linear-gradient(135deg, #1f5d3f 0%, #ff6b35 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.related-link {
  font-size: 13px; font-weight: 800;
  color: #1a1a1a;
  display: inline-flex; align-items: center; gap: 6px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.related-link:hover { color: #ff6b35; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  background: #fff;
  border: 3px solid #1a1a1a;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  text-decoration: none;
  color: #1a1a1a;
}
.related-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 #1a1a1a;
}
.related-img {
  height: 180px;
  border-bottom: 3px solid #1a1a1a;
  background-size: cover; background-position: center;
  position: relative;
}
.related-cat {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  background: #ff6b35;
  color: #1a1a1a;
  border-radius: 980px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transform: rotate(-2deg);
}
.related-body { padding: 20px; }
.related-meta {
  font-size: 11px;
  color: #6b6b6b;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.related-card h3 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .article-layout { padding: 80px 20px; }
  .product-mention { grid-template-columns: 80px 1fr; }
  .product-mention-cta { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .product-mention-img { width: 80px; height: 80px; }
  .related-section { padding: 80px 20px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .post-hero { padding: 36px 22px 32px; }
  .post-hero h1 { font-size: 25px; }
  .post-hero-cover { min-height: 56vh; padding: 32px 22px 28px; }
  .article-body { font-size: 14px; }
  .article-body h2 { font-size: 20px; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div { border-right: none; border-bottom: 1px solid #f0e8d8; }
  .compare-row > div:last-child { border-bottom: none; }
  .compare-row.header { display: none; }
  .article-layout { padding: 50px 15px; }
  .related-section { padding: 50px 15px; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-cta { padding: 4px 22px 40px; }
  .blog-cta-inner { flex-direction: column; align-items: flex-start; padding: 24px; margin-top: 28px; }
  .blog-cta-btn { align-self: stretch; justify-content: center; }
}
