/* ==========================================================
   MIDAS TOUCH — Blog Listing Page
   Reuses global tokens/components from ../styles.css and
   ../services/service.css (hero, cta, eyebrow, section-title,
   buttons, reveal/scramble/magnetic behaviour via service.js).
   This file only styles the blog-specific featured post + grid.
   ========================================================== */

.blog-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Shared tag + meta pills ───────────────────────────── */
.blog-tag {
  display: inline-block;
  font-family: var(--ff-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.35);
  padding: 6px 14px;
  border-radius: 999px;
}
.blog-tag.on-img {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(8,8,8,0.72);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-top: 14px;
}
.blog-meta-dot { color: var(--gold-dk); }

.blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-family: var(--ff-accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold);
  text-decoration: none;
  transition: gap 0.3s var(--ease-expo), color 0.3s var(--ease-expo);
}
.blog-readmore:hover { gap: 12px; color: var(--gold-lt); }

/* ── Featured post ─────────────────────────────────────── */
/* Reserved for when the first post goes live — not currently used
   on blog/index.html (which shows a "coming soon" notice instead).
   Wire a .blog-featured-section back in once there's a lead story to
   pin, linking its .blog-readmore to blog/<post-slug>.html. */
.blog-featured-section {
  background: var(--black);
  padding: 90px 0 60px;
}

.blog-featured {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.08);
}

.blog-featured-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease-expo);
}
.blog-featured:hover .blog-featured-img { transform: scale(1.04); }

.blog-featured-over {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0) 20%, rgba(8,8,8,0.75) 70%, rgba(8,8,8,0.96) 100%);
}

.blog-featured-info {
  position: relative;
  z-index: 2;
  padding: 44px 48px;
  max-width: 720px;
}

.blog-featured-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: var(--white);
  margin: 18px 0 14px;
}

.blog-featured-excerpt {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--white-dim);
  max-width: 620px;
}

/* ── Coming soon notice ─────────────────────────────────── */
.blog-soon {
  max-width: 640px;
  margin: 0 auto;
  padding: 90px 0 110px;
  text-align: center;
}
.blog-soon .section-title { margin-top: 14px; }

.blog-soon-sub {
  font-family: var(--ff-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--white-dim);
  margin-top: 18px;
}

/* ── Grid section ───────────────────────────────────────── */
.blog-grid-section {
  background: var(--black);
}

/* Reserved for when posts exist — each .blog-card links out to its
   own flat blog/<post-slug>.html page. Not currently rendered (see
   the "coming soon" notice above instead). */
.blog-grid-section .svc-section-hd {
  margin-bottom: 48px;
}

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

.blog-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-expo), border-color 0.5s var(--ease-expo);
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,168,76,0.4);
}

.blog-card-imgwrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.blog-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-expo);
}
.blog-card:hover .blog-card-img { transform: scale(1.08); }

.blog-card-body {
  padding: 26px 26px 30px;
}

.blog-card-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.3;
  margin: 0;
}
.blog-card-title a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}
.blog-card-title a:hover { color: var(--gold); }

.blog-card-excerpt {
  font-family: var(--ff-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--white-dim);
  margin-top: 10px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .blog-featured { min-height: 400px; }
  .blog-featured-info { padding: 32px; }
}

@media (max-width: 768px) {
  .blog-wrap { padding: 0 20px; }
  .blog-grid { grid-template-columns: 1fr; gap: 24px; }
  .blog-featured-title { font-size: clamp(1.4rem, 5vw, 1.9rem); }
}

@media (max-width: 420px) {
  .blog-featured-info { padding: 24px 20px; }
  .blog-tag.on-img { left: 14px; bottom: 14px; }
}

/* ==========================================================
   BLOG POST / ARTICLE PAGE
   Used by flat blog/<post-slug>.html files. Reuses the
   .svc-hero shell from service.css (hero image swapped for a
   real <img> instead of a data-bg div) and defines the long-form
   article typography below.
   ========================================================== */

.blog-post-hero-img {
  position: absolute;
  inset: -20% 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
}

/* Post titles run longer than the short service names .svc-hero-heading
   was sized for (e.g. "Rural Marketing"), so a dedicated, smaller clamp
   keeps long headlines from wrapping into 4+ giant lines and overflowing
   above the viewport (.svc-hero clips with overflow:hidden). */
.blog-post-hero-heading {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.18;
  max-width: 820px;
}

.blog-post {
  background: var(--black);
  padding: 96px 0 40px;
}

.blog-post-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
  font-family: var(--ff-body);
  font-size: 0.88rem;
  color: var(--white-dim);
  flex-wrap: wrap;
}

/* ── Article body typography ───────────────────────────── */
.blog-post-body {
  font-family: var(--ff-body);
}

.blog-post-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--white-dim);
  margin: 0 0 24px;
}

.blog-post-body h2 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
  color: var(--white);
  margin: 52px 0 18px;
}
.blog-post-body h2:first-child { margin-top: 0; }

.blog-post-body strong { color: var(--white); font-weight: 600; }

.blog-post-body ul,
.blog-post-body ol {
  margin: 0 0 28px;
  padding-left: 1.3em;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--white-dim);
}
.blog-post-body li { margin-bottom: 10px; }
.blog-post-body li::marker { color: var(--gold); }

.blog-post-body a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201,168,76,0.4);
  text-underline-offset: 2px;
  transition: color 0.25s ease;
}
.blog-post-body a:hover { color: var(--gold-lt); }

/* ── Inline images ──────────────────────────────────────── */
.blog-post-img {
  margin: 36px 0 40px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--black-card);
}
.blog-post-img img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.blog-post-faq {
  margin-top: 60px;
  padding-top: 44px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.blog-post-faq h2 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white);
  margin: 0 0 28px;
}

.blog-faq-item { margin-bottom: 26px; }

.blog-faq-q {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--white);
  margin: 0 0 8px;
}

.blog-faq-a {
  font-family: var(--ff-body);
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--white-dim);
  margin: 0;
}
.blog-faq-a a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201,168,76,0.4);
}
.blog-faq-a a:hover { color: var(--gold-lt); }

/* ── Back link ──────────────────────────────────────────── */
.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 50px;
  font-family: var(--ff-accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-decoration: none;
  transition: gap 0.3s var(--ease-expo), color 0.3s var(--ease-expo);
}
.blog-post-back:hover { gap: 12px; color: var(--gold-lt); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .blog-post-wrap { padding: 0 20px; }
  .blog-post-body p,
  .blog-post-body ul,
  .blog-post-body ol { font-size: 1rem; }
  .blog-post-body h2 { margin: 42px 0 16px; }
}
