/* ── Blog general ── */
.blog-main { padding-top: 80px; }

/* ── Article hero ── */
.article-hero { position: relative; height: 520px; overflow: hidden; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,30,20,.85) 50%, rgba(10,30,20,.2)); display: flex; align-items: flex-end; }
.article-hero-inner { max-width: 820px; padding: 48px 40px; }
.blog-tag { background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 20px; display: inline-block; margin-bottom: 14px; }
.article-hero-inner h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; margin: 0 0 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: rgba(255,255,255,.75); font-size: .82rem; }
.article-meta i { margin-right: 5px; color: var(--green); }

/* ── Article layout ── */
.article-shell { max-width: 1160px; margin: 0 auto; padding: 56px 24px 80px; display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.article-body { min-width: 0; }
.article-lead { font-size: 1.1rem; line-height: 1.75; color: var(--soft-ink); margin-bottom: 32px; border-left: 4px solid var(--green); padding-left: 20px; }
.article-body h2 { font-size: 1.35rem; color: var(--ink); margin: 40px 0 14px; }
.article-body h3 { font-size: 1.05rem; color: var(--ink); margin: 0 0 8px; }
.article-body p { font-size: .96rem; line-height: 1.75; color: var(--soft-ink); margin-bottom: 18px; text-align: justify; }
.article-lead { text-align: justify; }

/* ── Stat bar ── */
.stat-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 32px 0; }
.stat-item { background: var(--paper); padding: 20px 16px; text-align: center; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 900; color: var(--green); line-height: 1; }
.stat-label { display: block; font-size: .75rem; color: var(--muted); margin-top: 6px; line-height: 1.3; }

/* ── Photo gallery grid ── */
.photo-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 12px; margin: 32px 0; }
.photo-gallery-grid figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.photo-gallery-grid .gallery-featured { grid-column: 1 / 3; }
.photo-gallery-grid img { width: 100%; height: 220px; object-fit: cover; object-position: center; display: block; transition: transform .3s ease; cursor: zoom-in; }
.photo-gallery-grid .gallery-featured img { height: 320px; object-position: center top; }
.photo-gallery-grid img:hover { transform: scale(1.03); }
.photo-gallery-grid figcaption { padding: 8px 12px; font-size: .76rem; color: var(--muted); line-height: 1.4; }

/* ── Product lines ── */
.product-lines { display: flex; flex-direction: column; gap: 20px; margin: 24px 0 32px; }
.product-line-card { display: grid; grid-template-columns: 140px 1fr; gap: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; align-items: center; }
.product-line-card img { width: 140px; height: 140px; object-fit: contain; }
.product-line-card h3 { font-size: 1rem; margin: 0 0 8px; }
.product-line-card p { font-size: .88rem; color: var(--soft-ink); line-height: 1.6; margin: 0; }

/* ── Article CTA ── */
.article-cta { background: var(--green); color: #fff; border-radius: var(--radius-sm); padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 40px 0; flex-wrap: wrap; }
.article-cta h3 { color: #fff; font-size: 1.1rem; margin: 0 0 8px; }
.article-cta p { color: rgba(255,255,255,.85); font-size: .9rem; margin: 0; line-height: 1.5; }
.article-cta .btn-primary { background: #fff; color: var(--green); white-space: nowrap; flex-shrink: 0; }
.article-cta .btn-primary:hover { background: var(--mint); }

/* ── Tags ── */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-tags span { background: var(--mint); color: var(--green-3); font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; }

/* ── Sidebar ── */
.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; }
.sidebar-card h4 { font-size: .95rem; color: var(--ink); margin: 0 0 10px; }

/* ── Blog index ── */
.blog-index-hero { background: var(--green); padding: 72px 24px 56px; text-align: center; }
.blog-index-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 12px; }
.blog-index-hero p { color: rgba(255,255,255,.8); font-size: 1rem; max-width: 520px; margin: 0 auto; }
.blog-grid-shell { max-width: 1100px; margin: 0 auto; padding: 56px 24px 80px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blog-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow .2s, transform .2s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; object-position: center top; }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin-bottom: 8px; }
.blog-card-title { font-size: 1rem; font-weight: 800; color: var(--ink); line-height: 1.35; margin: 0 0 10px; }
.blog-card-excerpt { font-size: .85rem; color: var(--muted); line-height: 1.6; flex: 1; }
.blog-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.blog-card-footer span { color: var(--green); font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .article-shell { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .photo-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-gallery-grid .gallery-featured { grid-column: 1 / 3; }
  .product-line-card { grid-template-columns: 100px 1fr; }
  .article-hero { height: 420px; }
  .article-hero-inner { padding: 32px 20px; }
}
@media (max-width: 520px) {
  .product-line-card { grid-template-columns: 1fr; text-align: center; }
  .product-line-card img { width: 100px; height: 100px; margin: 0 auto; }
  .article-cta { flex-direction: column; text-align: center; }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
}
