/* Case Studies only. The hero follows the Our Process banner pattern; the
   study rows reuse the page palette already set by gsroofing.css. */
.case-studies-page .container, #footer .container { max-width: min(1210px, 100%); }
.case-studies-page { color: var(--gsroof-primary); background: #fff; }
.case-studies-page .case-study[id] { scroll-margin-top: 100px; }
.case-studies-page .btn-custom { border-radius: 5px; box-shadow: none; white-space: normal; }

.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/roofing-case-hero-1440.webp') center / cover; }
.case-hero > .container { min-height: 460px; display: flex; flex-direction: column; justify-content: center; padding-top: 64px; padding-bottom: 44px; }
.case-hero > .container::before, .case-hero > .container::after { content: none; }
.case-hero-copy { max-width: 735px; }
.case-hero .gs-hero-eyebrow { color: var(--gsroof-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(--gsroof-accent); }
.case-hero-lead { max-width: 540px; color: #fff; font-size: 18px; line-height: 1.5; margin-bottom: 0; }
.case-hero-index { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 30px 0 0; }
.case-hero-index a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 14px; font-weight: 600; }
.case-hero-index a:hover, .case-hero-index a:focus { background: rgba(255,255,255,.18); color: #fff; text-decoration: none; }

/* One study per row, separated by a hairline rather than boxed: the copy is
   long-form, and the aside panel is the only card the row needs. */
.case-studies-page section > .container.gs-section { padding-top: 76px; padding-bottom: 76px; }
.case-study { padding: 56px 0; border-top: 1px solid var(--gsroof-line); }
.case-study:first-child { padding-top: 0; border-top: 0; }
.case-study:last-child { padding-bottom: 0; }
.case-study-aside { background: var(--gsroof-cream); border: 1px solid var(--gsroof-line); border-top: 4px solid var(--gsroof-primary); border-radius: 7px; padding: 28px 26px; }
.case-study-kicker { color: var(--gsroof-primary); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 14px; }
.case-study-metric { color: var(--gsroof-primary-dark); font-size: 54px; font-weight: 700; line-height: 1; margin: 0 0 8px; }
.case-study-metric-label { color: var(--gsroof-primary); font-size: 15px; line-height: 1.45; margin: 0 0 20px; }
.case-study-client { display: flex; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--gsroof-line); color: var(--gsroof-primary-dark); font-size: 15px; font-weight: 700; margin: 0; }
.case-study-client .fa { color: var(--gsroof-primary); }
.case-study-num { color: var(--gsroof-primary); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 8px; }
.case-study-title { color: var(--gsroof-primary-dark); font-size: 28px; line-height: 1.25; margin: 0 0 18px; }
.case-study-body > p:not(.case-study-num) { font-size: 16px; line-height: 1.75; }
.case-study-quote { margin: 26px 0 0; padding: 18px 22px; border-left: 4px solid var(--gsroof-primary); background: var(--gsroof-cream); border-radius: 0 6px 6px 0; }
.case-study-quote p { color: var(--gsroof-primary-dark); font-size: 17px; font-style: italic; margin: 0 0 8px; }
.case-study-quote footer { color: var(--gsroof-primary); font-size: 13px; font-weight: 700; }
.case-study-quote footer::before { content: '\2014\00a0'; }

/* No photo here: the shared .gs-cta-band navy + dotted motif carries it, so the
   jobsite photograph is not repeated on every closing band across the site. */

#footer .footer-logo { width: 230px; height: auto; }
#footer .footer-blurb, #footer .footer-links, #footer .footer-contact { font-size: 13px; }
#footer > .container > .row { display: flex; flex-wrap: wrap; }
#footer .visible-sm-block { display: none !important; }

@media (min-width: 1200px) { .case-studies-page .container, #footer .container { width: 1210px; } }

@media (max-width: 991px) {
  .case-studies-page section > .container.gs-section { padding-top: 56px; padding-bottom: 56px; }
  .case-study-aside { margin-bottom: 28px; }
  .case-study { padding: 44px 0; }
}

@media (max-width: 767px) {
  .case-studies-page .container, #footer .container { width: 100%; padding-left: 22px; padding-right: 22px; }
  .case-hero { background-position: 65% center; }
  .case-hero > .container { min-height: 0; padding-top: 48px; padding-bottom: 40px; }
  .case-hero-lead { font-size: 17px; }
  .case-study-title { font-size: 24px; }
  .case-study-metric { font-size: 46px; }
  #footer > .container > .row > [class*='col-'] { width: 100%; }
}

@media (max-width: 480px) {
  .case-studies-page .btn { width: 100%; padding-left: 16px; padding-right: 16px; }
  .case-hero { background-image: linear-gradient(90deg, rgba(35, 42, 53, .96), rgba(35, 42, 53, .8)), url('../images/resized/webp/roofing-case-hero-1440.webp'); }
}
