/*
  =============================================================
  blog.css — Blog Index + Post Styles
  =============================================================
*/


/* =============================================================
   1. BLOG POST — CINEMATIC HERO
   ============================================================= */
.post-hero {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.post-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0.75) 80%,
    rgba(0,0,0,0.92) 100%
  );
}

.post-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0 56px;
}

.post-hero__content .container {
  max-width: 820px;
}

.post-hero__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-primary);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.post-hero__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.post-hero__meta-item {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-hero__meta-item svg {
  width: 14px;
  height: 14px;
  stroke: rgba(255,255,255,0.5);
  stroke-width: 2;
  fill: none;
}


/* =============================================================
   2. BLOG POST — ARTICLE BODY
   ============================================================= */
.post-body {
  background: #fff;
  padding: 72px 0 96px;
}

.post-body .container {
  max-width: 780px;
}

.post-content {
  font-size: 17px;
  line-height: 1.85;
  color: #374151;
}

.post-content h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--color-black);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.post-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-black);
  margin: 36px 0 12px;
}

.post-content p {
  margin-bottom: 24px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-content li {
  padding-left: 8px;
}

.post-content strong {
  color: var(--color-black);
  font-weight: 700;
}

.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Pull quote */
.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 40px 0;
  padding: 4px 0 4px 28px;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-black);
  font-style: italic;
  line-height: 1.5;
}


/* =============================================================
   3. MID-POST CTA BANNER
   ============================================================= */
.post-cta-banner {
  background:
    linear-gradient(rgba(10,8,6,0.82), rgba(10,8,6,0.82)),
    url('../images/kitchen-breaker.png') center / cover no-repeat;
  border-radius: 16px;
  padding: 48px;
  margin: 56px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.post-cta-banner__text h3 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.25;
}

.post-cta-banner__text p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin: 0;
  line-height: 1.6;
}

.post-cta-banner__btn,
.post-content .post-cta-banner__btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 16px 52px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(194,65,12,0.45);
  transition: background 0.2s ease, transform 0.2s ease;
}

.post-cta-banner__btn:hover,
.post-content .post-cta-banner__btn:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-2px);
}


/* =============================================================
   4. POST FOOTER — back to blog + share
   ============================================================= */
.post-footer {
  background: var(--color-surface);
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.post-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-body-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-back:hover {
  color: var(--color-primary);
}

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-body-text);
  background: var(--color-border);
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
}


/* =============================================================
   5. BLOG INDEX — HERO
   ============================================================= */
.blog-hero {
  background: #0f0e0d;
  padding: 64px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(194,65,12,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(194,65,12,0.12);
  border: 1px solid rgba(194,65,12,0.25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.blog-hero__headline {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.blog-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.7;
}


/* =============================================================
   6. BLOG INDEX — POST GRID
   ============================================================= */
.blog-index {
  background: var(--color-surface);
  padding: var(--section-padding) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.1);
}

.blog-card__img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__img-wrap img {
  transform: scale(1.04);
}

.blog-card__category {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--color-primary);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
}

.blog-card__body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-black);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.blog-card__excerpt {
  font-size: 14px;
  color: var(--color-body-text);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-body-text);
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.blog-card__read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}


/* =============================================================
   7. RESPONSIVE
   ============================================================= */
@media (max-width: 1023px) {

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-hero {
    height: 460px;
  }

  .post-cta-banner {
    padding: 36px 32px;
  }

}

@media (max-width: 767px) {

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .post-hero {
    height: 380px;
  }

  .post-hero__title {
    font-size: 26px;
  }

  .post-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-cta-banner {
    padding: 28px 24px;
  }

  /* Post body: scale down text on mobile */
  .post-content {
    font-size: 15px;
  }

  .post-content h3 {
    font-size: 18px;
  }

  .post-content blockquote {
    font-size: 17px;
    padding-left: 20px;
  }

  /* CTA banner heading on mobile */
  .post-cta-banner__text h3 {
    font-size: 22px;
  }

  /* Blog card image: slightly shorter on mobile */
  .blog-card__img-wrap {
    height: 180px;
  }

}
