/* ims/hero-slide — background-as-true-background layout for type-a/b/c */

.ims-hero-slide {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 560px;
}
/* Flex-column layout for type-a/b/c: content-wrap grows to fill any leftover
   height (from the slider's flex-stretch equalising all slide heights) and
   vertically centers its own content instead of sticking to the top and
   leaving a dead gap below. Bottom sections (challenges/accreditation/value
   bar) stay in normal flow, sized to their own content, always at the base. */
.ims-hero-slide--type-a,
.ims-hero-slide--type-b,
.ims-hero-slide--type-c {
    display: flex;
    flex-direction: column;
}

/* ── Full-bleed background photo layer ── */
.ims-slide__bg-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.ims-slide__bg-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.ims-slide__bg-overlay {
    position: absolute;
    inset: 0;
}
/* Type A: dark navy gradient, strong left-to-right for text on dark */
.ims-slide__bg-overlay--type-a {
    background: linear-gradient(100deg, rgba(15,23,42,0.94) 0%, rgba(26,42,74,0.88) 40%, rgba(26,42,74,0.55) 68%, rgba(26,42,74,0.25) 100%);
}
/* Type B: light overlay, photo still visible, text on light panel */
.ims-slide__bg-overlay--type-b {
    background: linear-gradient(100deg, rgba(240,244,248,0.96) 0%, rgba(240,244,248,0.9) 42%, rgba(240,244,248,0.55) 70%, rgba(240,244,248,0.2) 100%);
}
/* Type C: light overlay with a touch more transparency on the right for visual */
.ims-slide__bg-overlay--type-c {
    background: linear-gradient(100deg, rgba(240,244,248,0.97) 0%, rgba(240,244,248,0.93) 55%, rgba(240,244,248,0.6) 80%, rgba(240,244,248,0.25) 100%);
}

/* ── Content wrap: everything sits above the background ── */
.ims-slide__content-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 56px 56px;
    align-items: center;
    box-sizing: border-box;
    flex: 1 0 auto;
}
.ims-hero-slide--type-a .ims-slide__content-wrap { grid-template-columns: 1fr; }
.ims-hero-slide--type-b .ims-slide__content-wrap { grid-template-columns: 1fr 1.05fr; gap: 40px; }
.ims-hero-slide--type-c .ims-slide__content-wrap { grid-template-columns: 0.85fr 1fr; gap: 40px; }

.ims-slide__content { max-width: 620px; }
.ims-hero-slide--type-a .ims-slide__content { max-width: 640px; }

/* ── Text styles ── */
.ims-slide__eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c8a951;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ims-slide__eyebrow::after { content: ''; display: block; width: 32px; height: 2px; background: #c8a951; }

.ims-slide__heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.2;
    margin: 0 0 16px;
    color: #1a2a4a;
}
.ims-hero-slide--type-a .ims-slide__heading { color: #fff; }
.ims-slide__heading--two-tone .ims-slide__heading-accent { display: block; color: #c8a951; }

.ims-slide__subline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 2vw, 22px);
    color: #2c5f8d;
    margin: 0 0 12px;
}

.ims-slide__body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    margin: 0 0 24px;
    max-width: 480px;
    color: #52606d;
}
.ims-hero-slide--type-a .ims-slide__body { color: rgba(255,255,255,0.85); }

/* ── CTA ── */
.ims-slide__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #c8a951;
    color: #1a2a4a;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 24px;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ims-slide__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,169,81,0.4); color: #1a2a4a; }
.ims-slide__cta-icon { width: 16px; height: 16px; }
.ims-slide__cta-arrow { margin-left: 4px; }

/* ── Stats ── */
.ims-slide__stats { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ims-slide__stat { display: flex; align-items: center; gap: 8px; }
.ims-slide__stat-icon { width: 26px; height: 26px; color: #c8a951; flex-shrink: 0; }
.ims-slide__stat-icon svg { width: 100%; height: 100%; }
.ims-slide__stat-text { display: flex; flex-direction: column; }
.ims-slide__stat-number { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 15px; line-height: 1; color: #1a2a4a; }
.ims-hero-slide--type-a .ims-slide__stat-number { color: #fff; }
.ims-slide__stat-label { font-family: 'Inter', sans-serif; font-size: 11px; white-space: nowrap; color: #6b7a8d; }
.ims-hero-slide--type-a .ims-slide__stat-label { color: rgba(255,255,255,0.65); }
.ims-slide__stat-divider { color: #c8d0db; font-size: 20px; }
.ims-hero-slide--type-a .ims-slide__stat-divider { color: rgba(255,255,255,0.2); }

/* ── Trust strip (Type A) ── */
.ims-slide__trust {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    padding: 14px 20px;
    margin-top: 4px;
    box-sizing: border-box;
}
.ims-slide__trust-label {
    font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 9px;
    letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6);
    flex-shrink: 0; line-height: 1.4;
}
.ims-slide__trust-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, 84px);
    gap: 10px;
    justify-content: start;
    min-width: 0;
}
.ims-slide__trust-logos img {
    width: 84px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    padding: 6px 10px;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* ── Challenge cards (Type A, below content) ── */
.ims-slide__challenges {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 32px 56px;
}
.ims-slide__challenges-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(18px, 2vw, 24px);
    color: #1a2a4a;
    text-align: center;
    margin: 0 0 24px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}
.ims-slide__challenges-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    max-width: 1440px;
    margin: 0 auto;
}
.ims-slide__challenge-card {
    background: #f8fafc;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    padding: 18px 14px;
}
.ims-slide__challenge-icon {
    width: 30px; height: 30px; color: #2c5f8d;
    display: flex; align-items: center; justify-content: center;
    background: rgba(44,95,141,0.08); border-radius: 50%;
    margin-bottom: 10px; padding: 6px; box-sizing: border-box;
}
.ims-slide__challenge-icon svg { width: 100%; height: 100%; }
.ims-slide__challenge-q { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; color: #1a2a4a; margin: 0 0 6px; line-height: 1.3; }
.ims-slide__challenge-a { font-family: 'Inter', sans-serif; font-size: 12px; color: #6b7a8d; margin: 0; line-height: 1.5; }

/* ── Industries (Type B) ── */
.ims-slide__industries { margin-top: 12px; }
.ims-slide__industries-label { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #6b7a8d; display: block; margin-bottom: 12px; }
.ims-slide__industries-list { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; overflow-x: auto; }
.ims-slide__industry { display: flex; align-items: center; gap: 6px; font-family: 'Inter', sans-serif; font-size: 12px; color: #3d4451; white-space: nowrap; flex-shrink: 0; }
.ims-slide__industry-icon { width: 16px; height: 16px; color: #2c5f8d; flex-shrink: 0; }
.ims-slide__industry-icon svg { width: 100%; height: 100%; }

/* ── Client grid (Type B) ── */
.ims-slide__client-grid { align-self: center; }
.ims-slide__panel-heading {
    font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #6b7a8d; text-align: center; margin: 0 0 16px;
    display: flex; align-items: center; gap: 12px;
}
.ims-slide__panel-heading::before, .ims-slide__panel-heading::after { content: ''; flex: 1; height: 1px; background: #c8d0db; }
.ims-slide__client-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ims-slide__client-logo { background: #fff; border: 1px solid #e5e9f0; border-radius: 8px; padding: 10px; display: flex; align-items: center; justify-content: center; height: 68px; }
.ims-slide__client-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ── ISO panel (Type C) ── */
.ims-slide__iso-panel { background: #fff; border: 1px solid #e5e9f0; border-radius: 12px; padding: 20px; box-shadow: 0 4px 24px rgba(26,42,74,0.1); }
.ims-slide__iso-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.ims-slide__iso-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 14px 8px; border-radius: 8px; background: #f8fafc; border: 1px solid #e5e9f0;
    text-align: center; gap: 4px; text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ims-slide__iso-card:hover { border-color: var(--card-color, #2c5f8d); box-shadow: 0 4px 12px rgba(44,95,141,0.15); transform: translateY(-2px); }
.ims-slide__iso-card-std { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 14px; color: var(--card-color, #2c5f8d); line-height: 1.2; }
.ims-slide__iso-card-name { font-family: 'Inter', sans-serif; font-size: 10px; color: #6b7a8d; line-height: 1.3; }

/* ── Accreditation strip (Type C) ── */
.ims-slide__accreditation {
    position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px;
    background: #f8fafc; border-top: 1px solid #e5e9f0; padding: 20px 56px;
}
.ims-slide__acc-label { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: #1a2a4a; flex-shrink: 0; line-height: 1.4; }
.ims-slide__acc-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, 76px);
    gap: 12px;
    justify-content: start;
    min-width: 0;
}
.ims-slide__acc-logos img {
    width: 76px;
    height: 52px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 6px;
    padding: 8px 10px;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ims-slide__acc-logos img:hover {
    border-color: #c8a951;
    box-shadow: 0 4px 12px rgba(200,169,81,0.15);
    transform: translateY(-2px);
}

/* ── Value props bar (Type C) ── */
.ims-slide__value-bar {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
    gap: 24px; background: #1a2a4a; padding: 14px 56px; flex-wrap: wrap;
}
.ims-slide__vp { display: flex; align-items: center; gap: 8px; font-family: 'Inter', sans-serif; font-size: 13px; color: rgba(255,255,255,0.85); }
.ims-slide__vp-icon { width: 18px; height: 18px; color: #c8a951; }
.ims-slide__vp-icon svg { width: 100%; height: 100%; }
.ims-slide__vp-divider { color: rgba(255,255,255,0.2); }

/* ── Image only ── */
.ims-hero-slide--image-only .ims-hero-slide__full-image { width: 100%; height: auto; display: block; object-fit: cover; }
.ims-hero-slide__placeholder {
    min-height: 500px; background: linear-gradient(135deg, #2c5f8d, #1a3a52);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); font-family: 'Inter', sans-serif; font-size: 15px;
}

/* ── Mobile ── */
@media (max-width: 900px) {
    .ims-slide__content-wrap { padding: 32px 24px; grid-template-columns: 1fr !important; gap: 24px; }
    .ims-slide__challenges { padding: 24px; }
    .ims-slide__challenges-grid { grid-template-columns: repeat(2, 1fr); }
    .ims-slide__client-logos { grid-template-columns: repeat(3, 1fr); }
    .ims-slide__iso-cards { grid-template-columns: repeat(2, 1fr); }
    .ims-slide__accreditation, .ims-slide__value-bar { padding: 12px 24px; }

    /* Trust panel: stack label above logos, force a proper multi-column
       grid instead of letting auto-fill collapse to 1 column at narrow widths */
    .ims-slide__trust {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .ims-slide__trust-logos {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .ims-slide__trust-logos img {
        width: 100% !important;
    }

    /* Accreditation strip: same fix */
    .ims-slide__accreditation {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .ims-slide__acc-logos {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .ims-slide__acc-logos img {
        width: 100% !important;
    }

    .ims-slide__industries-list { overflow-x: auto; }
}
@media (max-width: 600px) {
    .ims-slide__challenges-grid { grid-template-columns: 1fr; }
    .ims-slide__client-logos { grid-template-columns: repeat(2, 1fr); }
    .ims-slide__iso-cards { grid-template-columns: repeat(2, 1fr); }
    .ims-slide__stat-divider { display: none; }

    .ims-slide__trust-logos { grid-template-columns: repeat(2, 1fr) !important; }
    .ims-slide__acc-logos { grid-template-columns: repeat(3, 1fr) !important; }
}
