/* ═══════════════════════════════════════════
   BLOG — extends styles.css, reuses the same
   design tokens (colors/fonts) defined in :root
   ═══════════════════════════════════════════ */

/* Nav has no dark hero photo behind it on blog pages, so keep it solid
   from the start instead of relying on the .scrolled scroll-trigger. */
.blog-page #nav {
  background: rgba(14,18,24,.96);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border-d);
}
.blog-page { padding-top: 70px; }

/* ─── BLOG HEADER BAND ─── */
.blog-hero {
  background: var(--dark2);
  padding: 4.5rem 2.5rem 3.5rem;
  text-align: center;
}
.blog-hero .section-tag { justify-content: center; }
.blog-hero .section-h { color: #fff; }
.blog-hero .section-lead { color: rgba(255,255,255,.55); margin: 0 auto; text-align: center; max-width: 560px; }

/* ─── BLOG LISTING GRID ─── */
.blog-list-sec { background: #fff; padding: 5rem 2.5rem; }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; margin-top: 1rem;
}
.blog-card {
  background: var(--offwhite);
  border: 1px solid var(--border-l);
  border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,.1); border-color: var(--gold); }
.blog-card-img {
  width: 100%; height: 200px; object-fit: cover;
  filter: brightness(.94) saturate(.9);
  transition: filter .5s, transform .5s;
}
.blog-card:hover .blog-card-img { filter: brightness(1) saturate(1); transform: scale(1.03); }
.blog-card-img-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  display: flex; align-items: center; justify-content: center;
}
.blog-card-img-placeholder img { width: 40px; height: auto; opacity: .35; }
.blog-card-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-date {
  font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .6rem;
}
.blog-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .02em; color: var(--txt-dk);
  line-height: 1.1; margin-bottom: .7rem;
}
.blog-card:hover .blog-card-title { color: var(--gold-dk); }
.blog-card-desc { font-size: .86rem; font-weight: 400; color: var(--txt-mid); line-height: 1.7; flex: 1; margin-bottom: 1.2rem; }
.blog-card-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-dk);
}
.blog-card:hover .blog-card-link { color: var(--gold); }
.blog-empty {
  text-align: center; padding: 3rem 1rem;
  color: var(--txt-lt); font-size: .95rem;
}

/* ─── SINGLE POST ─── */
.post-header { background: #fff; padding: 3.5rem 2.5rem 0; }
.post-header .w { max-width: 760px; }
.post-back-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-dk); margin-bottom: 1.6rem;
}
.post-back-link:hover { color: var(--gold); }
.post-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  line-height: 1.02; color: var(--txt-dk); margin-bottom: 1rem;
}
.post-meta {
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--txt-lt); margin-bottom: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--border-l);
}
.post-hero-img {
  width: 100%; max-width: 760px; margin: 2rem auto 0;
  display: block; border-radius: 4px;
  max-height: 440px; object-fit: cover;
}
.post-body-sec { background: #fff; padding: 2.5rem 2.5rem 1rem; }
.post-body { max-width: 760px; margin: 0 auto; }
.post-body p { font-size: 1rem; font-weight: 400; color: var(--txt-mid); line-height: 1.9; margin-bottom: 1.4rem; }
.post-body h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  color: var(--txt-dk); line-height: 1.1; margin: 2.4rem 0 1rem;
}
.post-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  color: var(--txt-dk); line-height: 1.15; margin: 2rem 0 .8rem;
}
.post-body a { color: var(--gold-dk); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--gold); }
.post-body strong { font-weight: 700; color: var(--txt-dk); }
.post-body ul, .post-body ol { margin: 0 0 1.4rem 1.4rem; color: var(--txt-mid); font-size: 1rem; line-height: 1.85; }
.post-body li { margin-bottom: .4rem; }
.post-body blockquote {
  border-left: 3px solid var(--gold); padding: .2rem 0 .2rem 1.5rem;
  margin: 1.6rem 0; font-style: italic; color: var(--txt-mid);
}
.post-body img { width: 100%; border-radius: 4px; margin: 1.6rem 0; }
.post-body code { background: var(--lt-grey); padding: .15rem .4rem; border-radius: 3px; font-size: .88em; }
.post-body pre { background: var(--dark); color: #eef0f3; padding: 1.2rem; border-radius: 4px; overflow-x: auto; margin: 1.6rem 0; }
.post-body pre code { background: none; padding: 0; color: inherit; }
.post-body hr { border: none; border-top: 1px solid var(--border-l); margin: 2.5rem 0; }

.post-cta {
  margin: 3rem auto 0; max-width: 760px;
  background: var(--dark); border-radius: 4px;
  padding: 2.5rem; text-align: center;
}
.post-cta h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem; font-weight: 800; text-transform: uppercase;
  color: #fff; margin-bottom: .8rem;
}
.post-cta p { color: rgba(255,255,255,.55); font-size: .92rem; margin-bottom: 1.6rem; }

@media(max-width:1060px) {
  .blog-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:768px) {
  .blog-hero { padding: 3.5rem 1.5rem 2.5rem; }
  .blog-list-sec { padding: 3rem 1.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-header { padding: 2.5rem 1.5rem 0; }
  .post-body-sec { padding: 2rem 1.5rem 1rem; }
}
