/* ============================================================
   SHOWCASE DETAIL PAGES
   Shared stylesheet for case-study pages.
   ============================================================ */

.showcase-hero {
  background: linear-gradient(135deg, #0E4C81 0%, #0A1F3D 100%);
  color: var(--white);
  padding: 100px var(--pad-x) 70px;
  position: relative;
  overflow: hidden;
}
.showcase-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(184,153,104,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.showcase-hero .inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}
.showcase-hero .breadcrumb {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #94A3B8;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.showcase-hero .breadcrumb a {
  color: #94A3B8;
  text-decoration: none;
  transition: color .15s ease;
}
.showcase-hero .breadcrumb a:hover { color: #B89968; }
.showcase-hero .breadcrumb .sep { margin: 0 10px; color: #475569; }
.showcase-hero .service-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #B89968;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 5px 12px;
  border: 1px solid #B89968;
  border-radius: 2px;
}
.showcase-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.showcase-hero .subtitle {
  font-size: clamp(16px, 1.4vw, 20px);
  color: #CBD5E1;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 0;
}

/* Hero image */
.showcase-hero-img {
  width: 100%;
  max-width: 1080px;
  margin: -40px auto 0;
  display: block;
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(10,31,61,0.25);
  position: relative;
  z-index: 2;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #1F1F1F;
}

/* Body sections */
.case-body {
  padding: 80px 0 60px;
  background: var(--white);
}
.case-body .container { max-width: 920px; }
.case-section { margin-bottom: 56px; }
.case-section:last-child { margin-bottom: 0; }
.case-section .label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.case-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  line-height: 1.2;
}
.case-section p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.case-section ul {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}
.case-section ul li {
  padding: 12px 0 12px 28px;
  border-bottom: 1px dashed var(--border);
  font-size: 16px;
  color: var(--ink-soft);
  position: relative;
}
.case-section ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}
.case-section ul li:last-child { border-bottom: 0; }

/* Quote callout */
.case-quote {
  background: var(--grey-light);
  border-left: 4px solid var(--navy);
  padding: 36px 40px;
  margin: 40px 0;
  border-radius: 2px;
}
.case-quote p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.case-quote .attribution {
  font-size: 13px;
  color: var(--steel);
  letter-spacing: 0.06em;
}
.case-quote .attribution strong { color: var(--ink); font-weight: 700; }

/* Meta grid (key facts row) */
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}
.case-meta .meta-item .meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--steel);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.case-meta .meta-item .meta-value {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
@media (max-width: 800px) {
  .case-meta { grid-template-columns: repeat(2, 1fr); }
}

/* Gallery */
.case-gallery {
  background: var(--grey-light);
  padding: 80px 0;
}
.case-gallery .container { max-width: 1080px; }
.case-gallery .gallery-heading {
  text-align: center;
  margin-bottom: 36px;
}
.case-gallery .gallery-heading .label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.case-gallery .gallery-heading h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
}
/* === Bulleted lists inside case body === */
.case-body .case-bullets {
  list-style:disc;
  padding-left:24px;
  margin:8px 0 20px;
}
.case-body .case-bullets li {
  font-size:16px;
  line-height:1.7;
  color:var(--ink-soft);
  margin-bottom:6px;
}
.case-body .case-bullets li::marker { color:var(--navy); font-weight:700; }

/* === Inline image inside case body
   Image displays in its NATIVE aspect ratio (no crop). Uses negative margin
   to break out ~80px each side of the 920px text column on wide screens. === */
.case-body .case-inline-img {
  display:block;
  width:calc(100% + 160px);
  height:auto;
  max-width:1080px;
  margin:36px -80px 12px;
  border-radius:4px;
  box-shadow:0 18px 44px rgba(15,23,42,0.18);
  /* Explicitly override any inherited aspect/object-fit */
  aspect-ratio:auto !important;
  object-fit:contain !important;
}
@media (max-width: 1100px) {
  .case-body .case-inline-img {
    width:100%;
    margin-left:auto;
    margin-right:auto;
    max-width:100%;
  }
}

/* === Side image (floats to the right of body text — e.g. phone mockups)
   No frame · no shadow → transparent PNG/AVIF sits flush against the page. === */
.case-body .case-side-img {
  float:right;
  width:260px;
  max-width:40%;
  height:auto;
  margin:6px 0 18px 32px;
  background:transparent;
  aspect-ratio:auto !important;
  object-fit:contain !important;
}
@media (max-width: 700px) {
  .case-body .case-side-img {
    float:none;
    width:100%;
    max-width:320px;
    margin:24px auto;
    display:block;
  }
}
.case-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.case-gallery .gallery-cell {
  aspect-ratio: 3 / 2;                   /* Shorter than 4:3 → less horizontal cropping when images cover-fit */
  background-color: #1F1F1F;             /* Neutral dark backer when an image is missing */
  background-size: cover;                /* Every cell fills identically — one visual standard site-wide */
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  font-size: 13px;
  text-align: center;
  padding: 0;
  overflow: hidden;
}
@media (max-width: 700px) {
  .case-gallery .gallery-grid { grid-template-columns: 1fr; }
}

/* Related cases */
.case-related {
  padding: 80px var(--pad-x);
  background: var(--white);
  border-top: 1px solid var(--border);
}
.case-related .container { max-width: 1080px; }
.case-related .related-heading {
  text-align: center;
  margin-bottom: 36px;
}
.case-related .related-heading .label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.case-related h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
}
.case-related .related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.case-related .related-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--grey-light);
  border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.case-related .related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(14,76,129,0.12);
  border-color: var(--navy);
}
.case-related .related-card .thumb {
  aspect-ratio: 1.4 / 1;
  background: #1F1F1F;
  background-size: cover;
  background-position: center;
}
.case-related .related-card .name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 14px 16px 4px;
  text-transform: uppercase;
}
.case-related .related-card .summary {
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--steel);
}
@media (max-width: 800px) {
  .case-related .related-grid { grid-template-columns: 1fr; }
}

/* Bottom CTA */
.case-cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 70px var(--pad-x);
  text-align: center;
}
.case-cta-band h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.case-cta-band p {
  font-size: 15px;
  color: #CBD5E1;
  max-width: 580px;
  margin: 0 auto 26px;
  line-height: 1.6;
}
.case-cta-band .btn-cta-light { background: var(--white); color: var(--navy); }
