/* =========================================================
   Flores Sprinkler & Landscape — Blog Styles
   ========================================================= */

/* ---- Blog Hero ---- */
.blog-hero {
  background: linear-gradient(135deg, #0f1a0e 0%, #1a3318 100%);
  color: #fff;
  padding: 5rem 1rem 4rem;
  text-align: center;
}

.blog-hero__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7bc67a;
  margin-bottom: .75rem;
}

.blog-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.blog-hero__sub {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
}

/* ---- Grid Section ---- */
.blog-grid-section {
  padding: 4rem 1rem;
  background: #f8faf7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* ---- Post Card ---- */
.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
}

.blog-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #e8ede7;
}

.blog-card__img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a7a0a22 0%, #0f1a0e22 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blog-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
}

.blog-card__category {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #1a7a0a;
  background: #e8f5e5;
  padding: .2rem .55rem;
  border-radius: 99px;
}

.blog-card__date {
  font-size: .78rem;
  color: #7a8c78;
}

.blog-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f1a0e;
  margin-bottom: .5rem;
}

.blog-card__excerpt {
  font-size: .875rem;
  color: #4a5c48;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__read-more {
  font-size: .85rem;
  font-weight: 600;
  color: #1a7a0a;
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-top: auto;
}

.blog-card__read-more::after {
  content: '→';
  transition: transform .2s;
}

.blog-card:hover .blog-card__read-more::after {
  transform: translateX(4px);
}

/* ---- Empty State ---- */
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: #4a5c48;
}

.blog-empty p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* ---- CTA Banner ---- */
.blog-cta {
  background: #0f1a0e;
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;
}

.blog-cta h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: .75rem;
}

.blog-cta p {
  color: rgba(255,255,255,.7);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.blog-cta .btn--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.4);
  color: #fff;
  margin-left: .75rem;
}

.blog-cta .btn--outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
}

/* ---- Individual Post Page ---- */
.post-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.post-header {
  margin-bottom: 2rem;
}

.post-header__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-header__back {
  font-size: .85rem;
  color: #1a7a0a;
  text-decoration: none;
  font-weight: 500;
}

.post-header__back:hover { text-decoration: underline; }

.post-header__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f1a0e;
  margin-bottom: .75rem;
}

.post-header__subtitle {
  font-size: 1.1rem;
  color: #4a5c48;
  line-height: 1.6;
}

.post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #2a3a28;
}

.post-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f1a0e;
  margin: 2.5rem 0 .75rem;
}

.post-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a3318;
  margin: 1.75rem 0 .5rem;
}

.post-content p { margin-bottom: 1.25rem; }

.post-content ul,
.post-content ol {
  margin: 0 0 1.25rem 1.5rem;
}

.post-content li { margin-bottom: .4rem; }

.post-content strong { color: #0f1a0e; }

.post-cta-box {
  background: linear-gradient(135deg, #e8f5e5 0%, #d4edcf 100%);
  border-left: 4px solid #1a7a0a;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.post-cta-box p {
  margin: 0 0 1rem;
  font-weight: 500;
  color: #0f1a0e;
}

.post-cta-box .btn { display: inline-block; }

/* ---- Active nav link ---- */
.nav__active { font-weight: 600; color: #1a7a0a !important; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-cta .btn--outline {
    margin-left: 0;
    margin-top: .75rem;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}
