/* ==============================================================
   INNOSOL — Business Solution pages and their enquiry forms
   seamlesshr.php, built-africa.php, salesforce.php,
   e-crime-cybersecurity.php and the four *-enquiry.php pages.
   Loaded from header.php on those pages only, after service-line.css
   (whose sl-* components are reused). Product pages are scoped under
   .solution-page; form additions use bs- classes.
   ============================================================== */

/* -------------------- Hero -------------------- */
.solution-page .bs-hero {
    padding: calc(var(--nav-height) + 44px) 0 64px;
    text-align: left;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 90% 10%, rgba(249,157,42,0.18), transparent 45%),
        radial-gradient(ellipse at 0% 100%, rgba(44,48,147,0.7), transparent 55%),
        linear-gradient(135deg, var(--brand-indigo-deep) 0%, var(--footer-bg) 100%);
}
.solution-page .bs-hero::after { display: none; }
.bs-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: center;
}
.solution-page .bs-hero .breadcrumbs { display: flex; flex-wrap: wrap; row-gap: 4px; margin-bottom: 18px; }
.bs-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 0.675rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
}
.bs-hero-label::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand-orange); }
.solution-page .bs-hero h1 {
    margin: 0 0 16px;
    font-size: calc(clamp(1.9rem, 1.2rem + 2.2vw, 3rem) - 2px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.solution-page .bs-hero .page-hero-lead { max-width: 560px; margin: 0; }
.solution-page .bs-hero-actions { justify-content: flex-start; }
/* Scoped so it outranks the shared .page-hero p margin reset. */
.solution-page .bs-hero .bs-partner-cue {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 12px;
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.14);
    font-size: 0.775rem;
    color: rgba(255,255,255,0.82);
}
.bs-partner-logo {
    display: grid;
    place-items: center;
    height: 44px;
    padding: 6px 12px;
    border-radius: 10px;
    background: #fff;
}
.bs-partner-logo img { width: auto; height: auto; max-height: 30px; max-width: 130px; object-fit: contain; }

.bs-hero-visual { position: relative; margin: 0; }
.bs-hero-frame {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(5,4,30,0.45);
    border: 1px solid rgba(255,255,255,0.18);
}
.bs-hero-frame img { width: 100%; height: auto; }
.bs-hero-float {
    position: absolute;
    left: -36px;
    bottom: -30px;
    width: min(44%, 240px);
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(5,4,30,0.35);
    border: 1px solid rgba(11,18,32,0.06);
}
.bs-hero-float img { width: 100%; height: auto; }

/* -------------------- Sections -------------------- */
.solution-page .bs-section { padding: 72px 0; background: #fff; }
.solution-page .bs-section--soft { background: var(--surface-soft); }
.solution-page .bs-section--indigo {
    background:
        radial-gradient(ellipse at 100% 0%, rgba(249,157,42,0.16), transparent 50%),
        linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-indigo-deep) 100%);
}
.bs-section--indigo .sl-eyebrow,
.bs-section--indigo .sl-head h2 { color: #fff; }
.bs-section--indigo .sl-head p { color: rgba(255,255,255,0.86); }
.bs-section--indigo :focus-visible { outline-color: var(--brand-orange); }

/* Challenge: today vs with the platform */
.bs-shift { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bs-shift li {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 22px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid rgba(44,48,147,0.08);
}
.bs-shift-before { font-size: 0.825rem; line-height: 1.55; color: var(--text-2); }
.bs-shift-after {
    display: flex;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px dashed rgba(44,48,147,0.2);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.55;
    color: var(--ink-900);
}
.bs-shift-after svg { flex-shrink: 0; margin-top: 1px; color: var(--brand-orange-dark); }

/* Capability modules: all shown at once in a grid */
.bs-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bs-module {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(11,18,32,0.08);
    transition: box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.bs-module:hover { box-shadow: 0 18px 40px rgba(44,48,147,0.1); border-color: rgba(44,48,147,0.18); }
/* Screenshots are contained, never cropped, on a soft frame. */
.bs-module-visual {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    margin: 0;
    padding: 16px;
    background: linear-gradient(160deg, #EEF0F8 0%, #E3E6F3 100%);
}
/* overflow and min-height keep tall images from stretching the 16:10 frame. */
.bs-module-visual { overflow: hidden; min-height: 0; }
.bs-module-visual img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 8px; }
.bs-module-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.bs-module-icon {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    margin-bottom: 16px;
    border-radius: 14px;
    background: rgba(44,48,147,0.08);
    color: var(--brand-indigo);
}
.bs-module h3 { margin-bottom: 8px; font-size: 1.05rem; line-height: 1.3; }
.bs-module-body > p { margin-bottom: 14px; font-size: 0.825rem; line-height: 1.65; }
.bs-points { display: grid; gap: 8px; }
.bs-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.825rem; line-height: 1.55; color: var(--ink-700); }
.bs-points svg { flex-shrink: 0; margin-top: 1px; color: var(--brand-orange-dark); }

/* Showcase rows */
.bs-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 44px;
    align-items: center;
}
.bs-showcase + .bs-showcase { margin-top: 56px; }
.bs-showcase--flip .bs-showcase-visual { order: 2; }
.bs-showcase-visual { margin: 0; overflow: hidden; border-radius: 18px; background: var(--surface-soft); border: 1px solid rgba(11,18,32,0.08); box-shadow: 0 20px 44px rgba(44,48,147,0.1); }
.bs-showcase-visual img { width: 100%; height: auto; }
.bs-showcase-copy h3 { margin-bottom: 10px; font-size: calc(clamp(1.2rem, 1rem + 0.6vw, 1.5rem) - 2px); }
.bs-showcase-copy > p { margin-bottom: 16px; line-height: 1.7; }

/* Why Innosol */
.bs-innosol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.bs-innosol li { grid-column: span 2; padding: 24px 22px; border-radius: 16px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); }
.bs-innosol li:nth-child(n+4) { grid-column: span 3; }
.bs-innosol-icon {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: var(--brand-orange);
}
.bs-innosol h3 { margin-bottom: 6px; font-size: 0.975rem; color: #fff; }
.bs-innosol p { font-size: 0.825rem; line-height: 1.6; color: rgba(255,255,255,0.85); }

/* Implementation timeline */
.bs-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; counter-reset: none; }
.bs-timeline li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid rgba(44,48,147,0.08);
}
.bs-timeline-num {
    flex-shrink: 0;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--brand-indigo);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
}
.bs-timeline h3 { margin: 6px 0 4px; font-size: 0.95rem; }
.bs-timeline p { font-size: 0.8rem; line-height: 1.6; }

/* Who it suits */
.bs-fit-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 44px; align-items: start; }
.bs-fit-grid h2 { margin-bottom: 12px; font-size: calc(clamp(1.5rem, 1.1rem + 1.4vw, 2.05rem) - 2px); line-height: 1.2; }
.bs-fit-grid > div > p:last-child { line-height: 1.7; }
.bs-fit { display: grid; gap: 12px; }
.bs-fit li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(44,48,147,0.1);
}
.bs-fit svg { flex-shrink: 0; margin-top: 2px; color: var(--brand-indigo); }
.bs-fit strong { display: block; margin-bottom: 2px; font-family: var(--font-display); font-size: 0.9rem; color: var(--ink-900); }
.bs-fit span { font-size: 0.825rem; line-height: 1.55; color: var(--text-2); }

/* Customers (vendor-published) */
.solution-page .bs-customers { padding: 56px 0; }
.bs-customers .sl-head { margin-bottom: 28px; }
.bs-customers .sl-head h2 { font-size: calc(clamp(1.25rem, 1rem + 0.8vw, 1.6rem) - 2px); }
.bs-customers .sl-head p { font-size: 0.8rem; }
.bs-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bs-logos li {
    display: grid;
    place-items: center;
    width: 164px;
    height: 76px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(11,18,32,0.08);
}
.bs-logos img { width: auto; height: auto; max-width: 100%; max-height: 44px; object-fit: contain; }

/* FAQ width and final CTA */
.solution-page .faq { max-width: 860px; }
.solution-page .bs-cta { padding: 0 0 72px; background: var(--surface-soft); }

/* -------------------- Enquiry form additions -------------------- */
.bs-form-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(249,157,42,0.12);
    border: 1px solid rgba(215,114,12,0.35);
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--ink-900);
}
.bs-form-notice svg { flex-shrink: 0; color: var(--brand-orange-dark); }
.bs-interests { border: 0; padding: 0; margin: 0; min-width: 0; }
.bs-interests legend { margin-bottom: 8px; padding: 0; font-size: 0.775rem; font-weight: 600; color: var(--ink-900); }
.bs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bs-chip { position: relative; display: inline-flex; cursor: pointer; }
.bs-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bs-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(11,18,32,0.18);
    background: #fff;
    font-size: 0.8rem;
    color: var(--ink-700);
    transition: background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
.bs-chip span::before {
    content: "";
    width: 14px; height: 14px;
    margin-right: 8px;
    border-radius: 4px;
    border: 1.5px solid rgba(11,18,32,0.35);
    background: #fff;
    flex-shrink: 0;
}
.bs-chip:hover span { border-color: var(--brand-indigo); }
.bs-chip input:checked + span { background: rgba(44,48,147,0.08); border-color: var(--brand-indigo); color: var(--brand-indigo); font-weight: 600; }
.bs-chip input:checked + span::before {
    border-color: var(--brand-indigo);
    background: var(--brand-indigo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.bs-chip input:focus-visible + span { outline: 3px solid var(--brand-indigo); outline-offset: 2px; }
.bs-interests:has([aria-invalid="true"]) .bs-chip span { border-color: #B2242C; }
.bs-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8rem; line-height: 1.55; color: var(--ink-700); cursor: pointer; }
.bs-check input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--brand-indigo); }
.bs-check a { color: var(--brand-indigo); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* -------------------- Responsive -------------------- */
@media (max-width: 1024px) {
    .bs-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .bs-hero-visual { max-width: 640px; }
    .bs-hero-float { left: auto; right: -12px; }
    .bs-showcase { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .bs-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bs-showcase--flip .bs-showcase-visual { order: 0; }
    .bs-shift, .bs-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bs-innosol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bs-innosol li, .bs-innosol li:nth-child(n+4) { grid-column: auto; }
    .bs-innosol li:last-child { grid-column: 1 / -1; }
    .bs-fit-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 767px) {
    .solution-page .bs-hero { padding: calc(var(--nav-height) + 28px) 0 52px; }
    .solution-page .bs-section { padding: 52px 0; }
    .solution-page .bs-cta { padding-bottom: 52px; }
    .bs-module-body { padding: 20px 18px 22px; }
}

@media (max-width: 640px) {
    .bs-shift, .bs-timeline, .bs-innosol, .bs-modules { grid-template-columns: minmax(0, 1fr); }
    .bs-hero-float { display: none; }
    .bs-partner-cue { flex-wrap: wrap; }
    .bs-logos li { width: calc(50% - 6px); }
}

@media (prefers-reduced-motion: reduce) {
    .bs-module, .bs-chip span { transition: none; }
}
