/* ==========================================================================
   /case-studies — Company-cluster index page.
   Loaded after site.css + inner.css. Holds only this page's three sections:
   light mesh-gradient hero, static 3-up case-study card grid, navy CTA band.
   No submenu, no active nav highlight.
   ========================================================================== */

/* ------------------------------------------------------------- 01 HERO --- */
.cs-hero {
  position: relative;
  overflow: hidden;
  min-height: 569px;
  display: flex;
  align-items: center;
  background-color: #a5316a;
  /* gradient layer approximates the mesh while it loads */
  background-image: url("/img/case-studies/hero-mesh-gradient.png"),
                    linear-gradient(115deg, #5f3f85 0%, #963c6e 55%, #8a2b6b 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.cs-hero-inner { position: relative; z-index: 2; }
.cs-hero-copy { max-width: 520px; }
.cs-hero-title {
  font-size: 56px;
  line-height: 56px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.cs-hero-sub {
  font-size: 24px;
  line-height: 29px;
  font-weight: 400;
  color: #fff;
  margin: 0;
}
/* Browser-mockup collage floated on the right ~half, bleeding off the
   right + bottom edges (matches live). */
.cs-hero-collage {
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 54%;
  max-width: 800px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* ----------------------------------------------------- 02 CARD GRID --- */
.cs-grid-section {
  background: var(--tint);
  padding: 74px 0 84px;
}
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
  row-gap: 78px;
  align-items: stretch;
}
.cs-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(16, 42, 67, .06);
  transition: box-shadow .2s ease, transform .2s ease;
}
.cs-card:hover {
  box-shadow: 0 10px 28px rgba(16, 42, 67, .14);
  transform: translateY(-3px);
}
/* Card-top image (full-bleed). The source PNGs are Tilda card-top exports
   that already bake in the colored brand tile + centered "Read more >" link
   + hairline divider, so the image is shown UNCROPPED — no separate markup
   for those, matching live. */
.cs-card-thumb {
  display: block;
  width: 100%;
}
.cs-card-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.cs-card-title {
  font-size: 24px;
  line-height: 36px;
  font-weight: 700;
  color: var(--navy-section);
  margin: 20px 24px 12px;
}
.cs-card-desc {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: rgba(0, 0, 0, .9);
  margin: 0 24px 26px;
}

/* -------------------------------------------------- 03 CONTACT CTA --- */
.cs-cta {
  background: var(--navy-section);
  padding: 62px 0;
  text-align: center;
}
.cs-cta-text {
  font-size: 24px;
  line-height: 35px;
  font-weight: 400;
  color: var(--tint);
  margin: 0;
}
.cs-cta-text a {
  color: #fff;
  text-decoration: underline;
}
.cs-cta-text a:hover { color: #fff; opacity: .85; }

/* ============================================================ RESPONSIVE */
@media screen and (max-width: 960px) {
  .cs-grid { grid-template-columns: repeat(2, 1fr); column-gap: 24px; row-gap: 48px; }
}

@media screen and (max-width: 639px) {
  .cs-hero {
    min-height: 0;
    display: block;
    text-align: center;
    padding: 40px 0 0;
  }
  .cs-hero-copy { max-width: none; }
  .cs-hero-title { font-size: 36px; line-height: 40px; margin-bottom: 16px; }
  .cs-hero-sub { font-size: 18px; line-height: 24px; }
  /* collage drops below the copy, centered, full-width (matches live-390) */
  .cs-hero-collage {
    position: static;
    width: 82%;
    max-width: 340px;
    margin: 24px auto 0;
  }
  .cs-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .cs-grid-section { padding: 40px 0 48px; }
  .cs-cta { padding: 40px 0; }
  .cs-cta-text { font-size: 20px; line-height: 30px; }
}
