/* ============================================================
   WORK.CSS — template-work.php
   .page-section, .container, .reveal all load globally already.
   ============================================================ */

/* ── Hero — identical treatment to the Insights page hero
   (duplicated here rather than cross-loading blog.css, matching
   the pattern used by every other template's hero in this theme) */
.work-hero.blog-hero {
  background: var(--color-dark, #141414);
  padding: clamp(64px, 8vw, 100px) 0 clamp(48px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.work-hero .blog-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.work-hero .blog-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-hero .blog-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.4) 55%,
      rgba(0, 0, 0, 0.15) 100%
    ),
    linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, 0.55) 100%);
}
.work-hero .container {
  position: relative;
  z-index: 1;
}
.work-hero .blog-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}
.work-hero .blog-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.92;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.work-hero .blog-hero__sub {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  max-width: 640px;
}

/* ── Industries grid — sleek editorial tiles, text lives directly
   on the photo rather than in a separate content block ────────── */
.work-listing {
  background: var(--color-white, #fff);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  display: block;
  position: relative;
  text-decoration: none;
  border-radius: 4px 4px 0 4px;
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.work-card:hover {
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
  transform: translateY(-5px);
}
.work-card__image {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--color-off, #f8f7f5);
  overflow: hidden;
}
.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-charcoal, #47494f) 0%,
    var(--color-dark, #141414) 100%
  );
}
.work-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 26px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
}
.work-card__eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-red, #ed1c24);
  margin-bottom: 10px;
}
.work-card__title {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 16px;
}
.work-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
  transition:
    gap 0.18s,
    opacity 0.18s;
}
.work-card:hover .work-card__link {
  gap: 14px;
  opacity: 1;
}
.work-empty {
  font-size: 15px;
  color: var(--color-mid, #888);
}

/* ── Top / bottom copy blocks (optional) ────────────────────── */
.work-copy {
  background: var(--color-white, #fff);
  text-align: center;
}
.work-copy__body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
}
.work-copy .btn-group {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.work-copy--bottom {
  background: var(--color-white, #fff);
}

/* ── relevANT News — latest blog posts ──────────────────────── */
.work-news {
  background: #f8f7f5;
}
.work-news .section-label em {
  color: var(--color-red, #ed1c24);
  font-style: normal;
}

.work-news .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-news .blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-line, #e8e6e2);
  border-radius: 4px 4px 0 4px;
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.work-news .blog-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
  transform: translateY(-4px);
}
.work-news .blog-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 3/2;
}
.work-news .blog-card__image img,
.work-news .blog-card__image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-news .blog-card__image-placeholder {
  background: var(--color-off, #f8f7f5);
}
.work-news .blog-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
}
.work-news .blog-card__title {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.3px;
  margin-bottom: 18px;
  flex: 1;
}
.work-news .blog-card__title a {
  color: var(--color-black, #141414);
  text-decoration: none;
  transition: color 0.18s;
}
.work-news .blog-card__title a:hover {
  color: var(--color-red, #ed1c24);
}
.work-news .blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-red, #ed1c24);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.18s;
}
.work-news .blog-card__read-more:hover {
  gap: 14px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-news .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-card__image {
    aspect-ratio: 16/11;
  }
  .work-news .blog-grid {
    grid-template-columns: 1fr;
  }
}
