/* Case Studies only. Hero follows the Contact/Our Process banner, the results
   strip follows the Our Process stat strip, and every colour is a palette
   token from gshvac.css. */
.case-studies-page { background: var(--gshvac-cream); }
.case-studies-page .case-study[id] { scroll-margin-top: 60px; }

/* Extra bottom padding is the room the results strip laps into. */
.case-hero { background: linear-gradient(90deg, rgba(35,42,53,.97), rgba(35,42,53,.85) 45%, rgba(35,42,53,.22)), url('../images/resized/webp/hvac-hero-1920d.webp') center / cover; }
.case-hero > .container { min-height: 440px; display: flex; flex-direction: column; justify-content: center; padding-top: 64px; padding-bottom: 110px; }
.case-hero > .container::before, .case-hero > .container::after { content: none; }
.case-hero-copy { max-width: 735px; }
.case-hero .gs-hero-eyebrow { color: var(--gshvac-accent); font-size: 12px; letter-spacing: 2px; margin-bottom: 10px; }
.case-hero h1 { color: #fff; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.12; text-transform: uppercase; margin: 0 0 18px; letter-spacing: -.5px; }
.case-hero h1 span { display: block; color: var(--gshvac-accent); }
.case-hero-lead { max-width: 540px; color: #fff; font-size: 18px; line-height: 1.5; margin-bottom: 0; }

/* Trust row: the homepage .gs-hero-points list laid out in a line. Its disc
   is yellow with a white tick, which the palette rules out (yellow carries
   ink); on this banner it is sky with an ink tick instead. */
.case-hero .case-hero-points { display: flex; flex-wrap: wrap; gap: 8px 30px; max-width: none; margin-top: 26px; }
.case-hero .case-hero-points li { padding-bottom: 0; font-size: 14px; font-weight: 600; }
.case-hero .case-hero-points .fa { background: var(--gshvac-accent); color: var(--gshvac-ink); }

/* Results strip. The theme pads every section container; here that would eat
   the overlap. Each cell is one link, so the whole figure is the hit area. */
.case-studies-page #results > .container { padding-top: 0; padding-bottom: 0; }
.case-results { position: relative; z-index: 2; margin-top: -64px; overflow: hidden; background: #fff; border: 1px solid var(--gshvac-line); border-radius: 12px; box-shadow: 0 18px 40px rgba(35,42,53,.08); }
.case-results > .row { margin: 0; }
.case-results > .row > [class*='col-'] { padding: 0; }
.case-result { display: flex; align-items: flex-start; gap: 18px; height: 100%; padding: 28px 28px 26px; color: var(--gshvac-body); transition: background-color .2s ease; }
.case-result:hover, .case-result:focus { background: var(--gshvac-cream); color: var(--gshvac-body); text-decoration: none; }
.case-result:focus-visible { outline: 3px solid var(--gshvac-primary); outline-offset: -3px; }
.case-result-icon { flex: 0 0 auto; padding-top: 6px; color: var(--gshvac-primary); font-size: 28px; line-height: 1; }
.case-result-body, .case-result-value, .case-result-label, .case-result-client { display: block; }
.case-result-value { margin-bottom: 8px; color: var(--gshvac-primary-dark); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.case-result-label { font-size: 14px; line-height: 1.45; }
.case-result-client { margin-top: 8px; color: var(--gshvac-ink); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* Studies. Light bands throughout; the middle one goes to white so the three
   still read as separate rows against the cream page. */
.case-study-alt { background: var(--gshvac-white); }

/* Photo card. The headline figure sits in an ink footer under the photo, so
   the result is the strongest shape in the row. */
.case-card { position: relative; margin: 0; overflow: hidden; background: var(--gshvac-ink); border-radius: 8px; box-shadow: 0 12px 30px rgba(35,42,53,.12); }
.case-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.case-card-badge { position: absolute; top: 18px; left: 18px; padding: 7px 12px; background: var(--gshvac-cream); border-radius: 4px; color: var(--gshvac-ink); font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: 1.4px; text-transform: uppercase; }
.case-card-metric { display: flex; align-items: center; gap: 18px; padding: 22px 28px; }
.case-card-value { flex: 0 0 auto; color: #fff; font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.case-card-label { flex: 1 1 auto; max-width: 190px; color: var(--gshvac-on-dark); font-size: 15px; line-height: 1.4; }
.case-card-client { flex: 0 1 auto; margin-left: auto; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.35; }

/* Story column. */
.case-studies-page .case-study-body > p.case-study-num { margin-bottom: 10px; color: var(--gshvac-primary); text-align: left; }
.case-study-title { max-width: 680px; margin: 0 0 20px; color: var(--gshvac-primary-dark); font-size: 30px; line-height: 1.25; }
.case-study-body > p { max-width: 68ch; font-size: 16px; line-height: 1.75; }
.case-study-quote { max-width: 68ch; margin-top: 28px; }
.case-study-alt .case-study-quote { background: var(--gshvac-cream); }
.case-study-quote .gs-quote-text { font-size: 17px; font-style: italic; }
/* Bootstrap shrinks a blockquote footer to 80%, which left the client name at 11px. */
.case-study-quote footer { font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .case-result { transition: none; }
}

@media (min-width: 768px) {
  .case-results > .row { display: flex; }
  .case-results > .row > [class*='col-'] + [class*='col-'] { border-left: 1px solid var(--gshvac-line); }
}

/* Side by side, the story centres on the photo card. Bootstrap's clearfix
   pseudo-elements would become flex items, so they are switched off. */
@media (min-width: 992px) {
  .case-study-row { display: flex; align-items: center; }
  .case-study-row::before, .case-study-row::after { content: none; }
  .case-study-body { padding-left: 30px; }
  .case-study-alt .case-study-body { padding-left: 15px; padding-right: 30px; }
}

@media (max-width: 991px) {
  .case-card { max-width: 640px; margin-bottom: 36px; }
  .case-result { gap: 14px; padding: 24px 20px 22px; }
  .case-result-icon { font-size: 24px; }
  .case-result-value { font-size: 34px; }
}

@media (max-width: 767px) {
  .case-hero { background-position: 65% center; }
  .case-hero > .container { min-height: 0; padding-top: 48px; padding-bottom: 88px; }
  .case-hero-lead { font-size: 17px; }
  .case-results { margin-top: -48px; }
  .case-results > .row > [class*='col-'] + [class*='col-'] { border-top: 1px solid var(--gshvac-line); }
  .case-result { align-items: center; padding: 18px 20px; }
  .case-result-icon { flex-basis: 28px; padding-top: 0; text-align: center; }
  .case-result-value { margin-bottom: 4px; font-size: 30px; }
  .case-result-client { margin-top: 4px; }
  .case-study-title { font-size: 24px; }
  .case-card-metric { flex-wrap: wrap; gap: 12px 16px; padding: 18px 20px; }
  .case-card-value { font-size: 40px; }
  .case-card-label { max-width: none; flex-basis: 0; }
  .case-card-client { flex-basis: 100%; margin-left: 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
}
