/* ─────────────────────────────────────────────────────────────
   Shared skeleton for the consulting-service landing pages
   (AWS architecture, Proxmox/VMware, Keycloak). Mirrors the
   design system of the AI DevOps / Website Chat pages.
   Loaded only by those views; plain file, no Mix build.
   ───────────────────────────────────────────────────────────── */

/* Header overlays the dark hero on these pages — recolour the
   transparent state only, leave sticky alone. */
#header .primary-menu:not(.sticky-on) .nav-link {
    color: rgba(226, 232, 240, .82);
}

#header .primary-menu:not(.sticky-on) .nav-link:hover,
#header .primary-menu:not(.sticky-on) .nav-link.active {
    color: #e74c3c;
}

#header .primary-menu:not(.sticky-on) .logo img {
    content: url('/images/logo-white.png');
}

#header .primary-menu:not(.sticky-on) .btn-dark {
    background: #fff;
    border-color: #fff;
    color: #0f172a;
}

#header .primary-menu:not(.sticky-on) .btn-dark:hover {
    background: var(--khim-primary, #c0392b);
    border-color: var(--khim-primary, #c0392b);
    color: #fff;
}

#header .primary-menu:not(.sticky-on) .navbar-toggler span {
    background-color: #e2e8f0;
}

/* ── Hero ── */
.khim-svc-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #312e33 100%);
    color: #e2e8f0;
    padding: 7rem 0 4.5rem;
}

.khim-svc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, .35);
    background: rgba(231, 76, 60, .08);
    border-radius: 999px;
    padding: .4rem 1rem;
    margin-bottom: 1.5rem;
}

.khim-svc-hero h1 {
    font-family: var(--bs-heading-font-family);
    text-transform: uppercase;
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.25rem;
}

.khim-svc-hero h1 span {
    color: #e74c3c;
}

.khim-svc-lead {
    font-size: 1.12rem;
    line-height: 1.75;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 34rem;
}

.khim-svc-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-bottom: 2rem;
}

.khim-svc-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: 10px;
    padding: .8rem 1.6rem;
    font-weight: 600;
    font-size: .98rem;
    text-decoration: none;
    transition: all .2s ease;
    border: 1px solid transparent;
}

.khim-svc-btn-primary {
    background: var(--khim-primary, #c0392b);
    color: #fff;
}

.khim-svc-btn-primary:hover {
    background: #a5321f;
    color: #fff;
    transform: translateY(-2px);
}

.khim-svc-btn-ghost {
    border-color: rgba(226, 232, 240, .35);
    color: #e2e8f0;
}

.khim-svc-btn-ghost:hover {
    border-color: #fff;
    color: #fff;
}

.khim-svc-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 2rem;
    font-size: .9rem;
    color: #94a3b8;
}

.khim-svc-hero-meta i {
    color: #4ade80;
    margin-right: .4rem;
}

/* ── Hero artifact panel (each page fills it differently) ── */
.khim-svc-panel {
    background: #111827;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
    overflow: hidden;
    font-size: .85rem;
}

.khim-svc-panel-bar {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem 1rem;
    background: #0b1220;
    border-bottom: 1px solid rgba(148, 163, 184, .15);
    color: #b5bac1;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .76rem;
}

.khim-svc-panel-bar .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4ade80;
    flex: 0 0 9px;
}

.khim-svc-panel-bar-tag {
    margin-left: auto;
    font-size: .68rem;
    color: #6b7280;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.khim-svc-panel-body {
    padding: 1.1rem;
}

/* ── Sections ── */
.khim-svc-section {
    padding: 5rem 0;
    scroll-margin-top: 90px;
    background: #fff;
}

.khim-svc-section-alt {
    background: #f8fafc;
}

.khim-svc-head {
    max-width: 44rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.khim-svc-head span {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--khim-primary, #c0392b);
    margin-bottom: .75rem;
}

.khim-svc-head h2 {
    font-family: var(--bs-heading-font-family);
    text-transform: uppercase;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
}

.khim-svc-head p {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
}

/* ── Pain cards ── */
.khim-svc-pain {
    height: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.85rem;
}

.khim-svc-pain i {
    font-size: 1.4rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    display: block;
}

.khim-svc-pain h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .6rem;
}

.khim-svc-pain p {
    color: #64748b;
    font-size: .95rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Capability cards ── */
.khim-svc-cap {
    height: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    transition: all .25s ease;
}

.khim-svc-cap:hover {
    border-color: var(--khim-primary, #c0392b);
    box-shadow: 0 12px 32px rgba(192, 57, 43, .1);
    transform: translateY(-3px);
}

.khim-svc-cap-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(192, 57, 43, .08);
    color: var(--khim-primary, #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.khim-svc-cap h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .75rem;
}

.khim-svc-cap p {
    color: #64748b;
    font-size: .96rem;
    line-height: 1.7;
}

.khim-svc-cap ul {
    list-style: none;
    padding: 0;
    margin: 1.15rem 0 0;
}

.khim-svc-cap li {
    position: relative;
    padding: .38rem 0 .38rem 1.5rem;
    color: #475569;
    font-size: .93rem;
}

.khim-svc-cap li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: .42rem;
    font-size: .72rem;
    color: #16a34a;
}

/* ── Process steps ── */
.khim-svc-step {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.khim-svc-step:last-child {
    border-bottom: none;
}

.khim-svc-step-num {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--khim-primary, #c0392b);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.khim-svc-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .35rem;
}

.khim-svc-step p {
    color: #64748b;
    font-size: .95rem;
    line-height: 1.7;
    margin: 0;
}

.khim-svc-step-when {
    font-size: .8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-left: auto;
    white-space: nowrap;
    padding-left: 1rem;
}

/* ── FAQ (must beat the theme's accordion specificity) ── */
.khim-svc-faq .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    margin-bottom: .85rem;
    overflow: hidden;
    background: #fff;
}

.accordion.khim-svc-faq .accordion-header .accordion-button {
    font-weight: 600;
    color: #0f172a;
    font-size: 1.02rem;
    padding: 1.2rem 1.4rem;
    background-color: #fff;
    border-radius: 0 !important;
    box-shadow: none;
}

.accordion.khim-svc-faq .accordion-header .accordion-button:hover {
    background-color: #f8fafc;
}

.accordion.khim-svc-faq:not(.accordion-flush) .accordion-header .accordion-button:not(.collapsed) {
    color: var(--khim-primary, #c0392b);
    background-color: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.accordion.khim-svc-faq .accordion-header .accordion-button::after {
    width: 1rem;
    height: 1rem;
    background-size: 1rem;
    /* Fully percent-encoded: the CSS minifier strips raw quotes/spaces from data URIs. */
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%20fill=%27none%27%20stroke=%27%2364748b%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M2%205L8%2011L14%205%27/%3E%3C/svg%3E");
}

.accordion.khim-svc-faq:not(.accordion-flush) .accordion-header .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2016%2016%27%20fill=%27none%27%20stroke=%27%23c0392b%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M2%205L8%2011L14%205%27/%3E%3C/svg%3E");
}

.khim-svc-faq .accordion-body {
    color: #475569;
    line-height: 1.75;
    font-size: .96rem;
    padding: 1.15rem 1.4rem 1.35rem;
}

/* ── Closing CTA ── */
.khim-svc-close {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #e2e8f0;
    text-align: center;
    padding: 4.5rem 0;
}

.khim-svc-close h2 {
    font-family: var(--bs-heading-font-family);
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}

.khim-svc-close p {
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 38rem;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .khim-svc-hero {
        padding: 6rem 0 3.5rem;
        text-align: center;
    }

    .khim-svc-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .khim-svc-cta-row,
    .khim-svc-hero-meta {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .khim-svc-section {
        padding: 3.5rem 0;
    }

    .khim-svc-step {
        flex-wrap: wrap;
    }

    .khim-svc-step-when {
        margin-left: 3.65rem;
        padding-left: 0;
    }
}
