/* /case-studies index. Loaded after css/it-managed-services-zazz.css (tokens,
   .z-container, footer, .zmit-insights). Numbers are live's, measured at 1440
   and 375 on archive template 12105 unless marked as an owner deviation. */

/* ============ 1 HERO (a6a2784 / bc8c83b) ============
   live: 600 tall, bg cover centre, no overlay, no form, no trust strip.
   crumb t+74, pill t+141 (32 tall), headline t+193, sub, CTA; copy 819 wide. */
.cst-hero {
    min-height: 600px; color: #fff;
    background: #0b0a1a var(--hero) center / cover no-repeat;
    padding: 74px 0 60px;
}
.cst-hero .z-container > * { max-width: 819px; }
.cst-crumb { font-size: 12px; line-height: 17px; color: rgba(255, 255, 255, .76); }
.cst-crumb a { color: #fff; text-decoration: none; }
.cst-crumb .sep { margin: 0 6px; }
.zmit .cst-pill {
    display: inline-block; margin: 50px 0 0; padding: 4px 12px; border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    font-size: 16px; line-height: 24px; font-weight: 400; color: #fff;
}
/* live is fluid, lh 1.2: 31px @375, 48.6 @1024, capped 54 @1440 (owner 2026-09-29: match live, not the 42/52 LP cap) */
.zmit .cst-headline { margin: 20px 0 0; font-size: clamp(31px, calc(20.84px + 2.71vw), 54px); line-height: 1.2; font-weight: 600; color: #fff; }
.zmit .cst-sub { margin: 19px 0 0;   /* .zmit scope: the shared .zmit p margin was winning */
    font-size: 16px; line-height: 26.4px; color: #fff; }
.zmit .cst-hero-btn {
    display: inline-flex; align-items: center; gap: 20px; margin-top: 21px;
    padding: 13px 35px; border-radius: 8px; background: #f2f7ff; color: #0161ff;
    font-size: 16px; line-height: 16px; font-weight: 500; text-decoration: none;
}
.zmit .cst-hero-btn:hover { background: #fff; }

/* ============ 2 FEATURED CAROUSEL (990f5c9 / 2a064db) ============
   80px margin above and below; slides 100% - 2x80 peek, 10px gap; slide
   min 560 (Ontario's 4-line title makes all 608), padding 50, 90deg black
   gradient 35% -> 74% at .84. Bullets 12px, 18px under the slides. */
.cst-featured { margin: 80px 0; --peek: 80px; overflow: hidden; }
.cst-viewport { padding: 0 var(--peek); }
.cst-track { display: flex; gap: 10px; transition: transform .5s ease; will-change: transform; touch-action: pan-y; }
.cst-slide {
    position: relative; flex: 0 0 100%; min-height: 560px; box-sizing: border-box;
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    padding: 50px; color: #fff;
    background: #000 var(--bg) center / cover no-repeat;
}
/* the track starts one clone in: pre-JS position = one slide + gap (translate % is the track width = one slide) */
.cst-track { transform: translateX(calc(-100% - 10px)); }
.cst-slide::before {
    content: ""; position: absolute; inset: 0; opacity: .84;
    background: linear-gradient(90deg, #000 35%, rgba(0, 0, 0, 0) 74%);
}
.cst-slide > * { position: relative; }
.zmit .cst-slide h3 {
    width: 53%; margin: 0; color: #fff; font-weight: 600;
    font-size: clamp(1.625rem, 1.1316rem + 2.6316vw, 3.5rem); line-height: 1.3;
}
.cst-slide p { width: 50%; margin: 0; font-size: 18px; line-height: 27px; color: #fff; }
.zmit .cst-slide-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 15px;
    width: 25%; min-width: 250px; box-sizing: border-box; padding: 13px 35px;
    background: #fff; color: #000; font-size: 16px; line-height: 16px; font-weight: 500; text-decoration: none;
}
.cst-slide-btn svg { width: 8px; height: 16px; }
.cst-slide-tabs { display: flex; flex-wrap: wrap; gap: 0 50px; margin: auto 0 0; padding: 0; list-style: none; }
.cst-slide-tabs li { padding-bottom: 5px; font-size: 16px; line-height: 24px; color: #aeaeae; border-bottom: 1px solid transparent; }
.cst-slide-tabs li.on { color: #fff; border-bottom-color: #fff; }
.cst-dots { display: flex; justify-content: center; gap: 6px; margin: 18px 0 20px; }
.cst-dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: #000; opacity: .2; cursor: pointer; }
.cst-dots button[aria-current] { opacity: 1; }
@media (max-width: 1366px) {
    .zmit .cst-slide h3 { width: 70%; }
    .cst-slide p { width: 60%; }
}
@media (max-width: 880px) { .cst-slide-tabs li { font-size: 14px; } }
@media (max-width: 767px) {
    .cst-featured { --peek: 15px; }
    .cst-slide { padding: 30px; background-position: var(--bg-m); }
    .zmit .cst-slide h3, .cst-slide p { width: 100%; }
    .zmit .cst-slide-btn { width: 100%; min-width: 0; }
}

/* ============ 3 GRID (67ed0b0 / cbf6cee) ============
   title 36/50.4 600 #141414, 21 above the grid; 3/2/1 columns, 30px gap,
   equal-height rows; card #eff0f7 r5, image 250 cover, logo row 50 (pad 25),
   20px rhythm, h3 18/25.2 700, copy 14/23.1 pad 0 30 30; hover lifts 15px.
   HOUSE WIDTH: live runs this grid edge to edge (1425 at x0); ours sits in the
   shared 1340 container - CLAUDE.md "never widen the content box". */
.cst-list { padding: 0 0 80px; }
.zmit .cst-list-title { margin: 0 0 21px; font-size: 36px; line-height: 50.4px; font-weight: 600; color: #141414; }
.cst-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 30px; }
.cst-grid.is-paged > [data-more]:not([data-shown]) { display: none; }
.cst-card {
    position: relative; display: flex; flex-direction: column; gap: 20px;
    padding-bottom: 20px; border-radius: 5px; background: #eff0f7;
    transition: transform .4s;
}
.cst-card:hover, .cst-card:focus-within { transform: translateY(-15px); }
.zmit .cst-card-img { display: block; width: 100%; height: 250px; object-fit: cover; border-radius: 5px 5px 0 0; background: #dfe3ee; }
.zmit .cst-card-logo { display: block; align-self: flex-start; height: 50px; width: auto; max-width: calc(100% - 50px); margin: 0 25px; object-fit: contain; object-position: left center; }
.zmit .cst-card h3 { margin: 0; padding: 0 25px; font-size: 18px; line-height: 25.2px; font-weight: 700; color: #14142b; }
.cst-card h3 a { color: inherit; text-decoration: none; }
.cst-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 5px; }   /* whole card clickable, one tab stop */
.cst-card h3 a:focus-visible { outline: none; }
.cst-card h3 a:focus-visible::after { outline: 2px solid #0161ff; outline-offset: 2px; }
.cst-card p { margin: 0; padding: 0 30px 30px; font-size: 14px; line-height: 23.1px; color: #14142b; }
.cst-more-anchor { height: 1px; }
@media (max-width: 1024px) {
    .cst-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .cst-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .zmit .cst-list-title { font-size: 27.36px; line-height: 38.3px; }
    .cst-hero { padding-top: 60px; }
    .zmit .cst-headline { font-size: 31px; line-height: 1.2; }
    .zmit .cst-sub { font-size: 14px; line-height: 23.1px; }
}

/* ============ 4 PRE-FOOTER (f12a2c8 / component 9071, .zmit-insights) ============
   Same component as data-engineering-and-analytics; live band is 327 at 1440
   (80 padding, no CMS spacer paragraphs on this page). BLUE BAND => LIGHT COPY. */
/* Live renders this CTA band on the brand blue (#0161ff), not the shared sheet's
   black default. Override per-page only (never the shared sheet); the `.zmit`
   scope (0,3,0) outranks the shared `.zmit-insights` (0,1,0) at every width. */
.zmit .zmit-insights.z-section { background: #0161ff; }
.zmit-insights-copy p.zmit-insights-title { font-weight: 400; border-left: 2px solid #fff; }
.zmit-insights-copy p:not(.zmit-insights-title) { font-weight: 400; color: #fff; }
.zmit-insights-btns a {
    background: #fff; color: #000; border: 1px solid #fff; border-radius: 5px;
    font-size: 16px; font-weight: 500; line-height: 24px; min-width: 0; justify-content: center;
}
.zmit-insights-btns a:last-child { background: transparent; color: #fff; }
.zmit-insights-btns a:hover { background: #b3d0ff; color: #000; border-color: #b3d0ff; }
@media (min-width: 1081px) {
    .zmit .zmit-insights.z-section { padding: 80px 0; }
    .zmit-insights-grid { grid-template-columns: 770px 280px; justify-content: space-between; gap: 0; align-items: start; }
    .zmit-insights-copy { grid-template-columns: 225px 1fr; column-gap: 20px; row-gap: 20px; align-items: center; }
    .zmit .zmit-insights-logo { height: 50px; width: 225px; object-fit: contain; object-position: left center; }
    .zmit-insights-copy p.zmit-insights-title { font-size: 28px; line-height: 28px; padding-left: 20px; margin-left: 0; max-width: none; }
    .zmit-insights-copy p:not(.zmit-insights-title) { font-size: 20px; line-height: 28px; max-width: 770px; margin: 0; }
    .zmit-insights-btns { gap: 20px; }
    .zmit-insights-btns a { padding: 16px 30px; width: 280px; }
}
@media (min-width: 681px) and (max-width: 1080px) {
    .zmit .zmit-insights.z-section { padding: 80px 0; }
    .zmit-insights-grid { grid-template-columns: 400px 218px; justify-content: space-between; gap: 0; align-items: start; }
    .zmit-insights-btns { gap: 20px; }
    .zmit-insights-btns a { width: 218px; padding: 16px 30px; }
}
@media (max-width: 680px) {
    .zmit .zmit-insights.z-section { padding: 60px 0; }
    .zmit-insights-grid { grid-template-columns: 1fr; gap: 20px; }
    .zmit-insights-btns { gap: 20px; }
    .zmit-insights-btns a { width: 100%; padding: 16px 30px; }
}
/* live <=1024: hero copy runs the full container width (headline fits one line at 1024) */
@media (max-width: 1024px) { .cst-hero .z-container > * { max-width: none; } }
/* live <=767: the hero button spans the full width, label centred */
@media (max-width: 767px) { .zmit .cst-hero-btn { display: flex; width: 100%; justify-content: center; } }
