/**
 * ==========================================
 * ILL IT SOLUTIONS - DARKLOOKS UI
 * ==========================================
 *
 * ILL IT-specific DarkLooks presentation
 * refinements.
 *
 * DarkLooks remains responsible for the
 * actual Light / Dark engine.
 */


/* ==========================================
   GLOBAL DARK MODE BUTTON TEXT
   ========================================== */

html.darklooks-mode-changer-enabled
a.button.primary,
html.darklooks-mode-changer-enabled
a.button.is-primary,
html.darklooks-mode-changer-enabled
.button.primary,
html.darklooks-mode-changer-enabled
.button.is-primary {
    color: #FFFFFF !important;
}

html.darklooks-mode-changer-enabled
a.button.primary span,
html.darklooks-mode-changer-enabled
a.button.is-primary span,
html.darklooks-mode-changer-enabled
.button.primary span,
html.darklooks-mode-changer-enabled
.button.is-primary span {
    color: #FFFFFF !important;
}


/* ==========================================
   MAIN NAVIGATION
   ========================================== */

html.darklooks-mode-changer-enabled
.header-main .nav > li > a {
    color: #F5F7FB !important;
}

html.darklooks-mode-changer-enabled
.header-main .nav > li > a:hover,
html.darklooks-mode-changer-enabled
.header-main .nav > li.active > a,
html.darklooks-mode-changer-enabled
.header-main .nav > li.current-menu-item > a {
    color: #4A99D4 !important;
}


/* ==========================================
   DARK MODE SERVICE CARDS
   ==========================================
 *
 * Services Section:
 *     illit-services
 *
 * Each service Column:
 *     illit-service-card
 */

html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card > .col-inner {
    position: relative !important;
    overflow: hidden !important;

    border: 1px solid #E3E6EA !important;
    border-radius: 10px !important;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;
}


/* WHITE CARD SURFACE */

html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card > .col-inner::before {
    content: "" !important;

    position: absolute !important;
    inset: 0 !important;

    display: block !important;

    background: #FFFFFF !important;
    background-color: #FFFFFF !important;

    border-radius: 10px !important;

    z-index: 0 !important;
    pointer-events: none !important;
}


/* KEEP CARD CONTENT ABOVE WHITE SURFACE */

html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card > .col-inner > * {
    position: relative !important;
    z-index: 1 !important;
}


/* ICON BOX */

html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card .icon-box,
html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card .icon-box-text {
    background: transparent !important;
    background-color: transparent !important;

    filter: none !important;
    opacity: 1 !important;
}


/* SERVICE HEADINGS */

html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card .icon-box-text h1,
html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card .icon-box-text h2,
html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card .icon-box-text h3,
html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card .icon-box-text h4,
html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card .icon-box-text h5,
html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card .icon-box-text h6,
html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card .icon-box-text strong {
    color: #333333 !important;
}


/* SERVICE DESCRIPTION */

html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card .icon-box-text p,
html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card .icon-box-text span {
    color: #5D5D5D !important;
}


/* ORIGINAL SERVICE ARTWORK */

html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card img,
html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card .icon-box-img {
    filter: none !important;
    opacity: 1 !important;
}


/* LINKS INSIDE SERVICE CARDS */

html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card a {
    color: #333333 !important;
}

html.darklooks-mode-changer-enabled
.illit-services
.illit-service-card a:hover {
    color: #4A99D4 !important;
}


/* ==========================================
   ILL IT BLUE CTA
   ========================================== */

html.darklooks-mode-changer-enabled
.illit-blue-cta,
html.darklooks-mode-changer-enabled
.illit-blue-cta .section-bg,
html.darklooks-mode-changer-enabled
.illit-blue-cta .bg-fill {
    filter: none !important;
    opacity: 1 !important;
}

html.darklooks-mode-changer-enabled
.illit-blue-cta .section-bg-overlay {
    opacity: 0 !important;
    filter: none !important;
}


/* ==========================================
   SYSTEM / LIGHT / DARK TOP-BAR CONTROL
   ========================================== */

/*
 * The native DarkLooks menu switch stays in the DOM
 * as the underlying actuator, but its visual control
 * is hidden and replaced by the ILL IT selector.
 */

.illit-appearance-host {
    position: relative !important;
    overflow: visible !important;
}

.illit-darklooks-native-switch {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    margin: -1px !important;
    padding: 0 !important;

    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    opacity: 0 !important;
    pointer-events: none !important;
}


/* CONTROL */

.illit-appearance-control {
    position: relative;

    display: inline-flex;
    align-items: center;

    font-size: 12px;
    line-height: 1;

    z-index: 1001;
}


/* TRIGGER */

.illit-appearance-trigger {
    appearance: none;

    min-width: 76px;
    height: 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    margin: 0 !important;
    padding: 0 8px !important;

    background: rgba(15, 39, 64, 0.90) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 999px !important;

    color: #FFFFFF !important;

    font: inherit;
    font-weight: 600;

    box-shadow: none !important;

    cursor: pointer;
}

.illit-appearance-trigger:hover,
.illit-appearance-trigger:focus {
    background: #0F2740 !important;
    border-color: rgba(255, 255, 255, 0.50) !important;

    color: #FFFFFF !important;

    outline: none;
}

.illit-appearance-trigger:focus-visible {
    box-shadow:
        0 0 0 2px #4A99D4,
        0 0 0 4px rgba(255, 255, 255, 0.80) !important;
}

.illit-appearance-trigger__icon {
    width: 14px;

    display: inline-flex;
    justify-content: center;

    color: #FFFFFF !important;

    font-size: 13px;
    line-height: 1;
}

.illit-appearance-trigger__label {
    color: #FFFFFF !important;

    white-space: nowrap;
}

.illit-appearance-trigger__chevron {
    color: rgba(255, 255, 255, 0.78) !important;

    font-size: 10px;
    transform: translateY(-1px);
}


/* MENU */

.illit-appearance-menu {
    position: absolute;

    top: calc(100% + 7px);
    right: 0;

    width: 220px;

    margin: 0;
    padding: 7px;

    background: #FFFFFF;
    border: 1px solid #E3E6EA;
    border-radius: 10px;

    color: #333333;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.20);

    text-align: left;

    z-index: 99999;
}

.illit-appearance-menu[hidden] {
    display: none !important;
}


/* MENU HEADING */

.illit-appearance-menu__heading {
    display: flex;
    flex-direction: column;
    gap: 3px;

    padding: 8px 9px 9px;

    border-bottom: 1px solid #E8EAED;

    color: #333333;
}

.illit-appearance-menu__heading strong {
    color: #333333 !important;

    font-size: 13px;
    line-height: 1.2;
}

.illit-appearance-menu__heading span {
    color: #777777 !important;

    font-size: 11px;
    line-height: 1.3;
}


/* OPTIONS */

.illit-appearance-option {
    appearance: none;

    width: 100%;

    display: grid;
    grid-template-columns: 24px 1fr 18px;
    align-items: center;
    gap: 7px;

    margin: 3px 0 0 !important;
    padding: 8px 9px !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 7px !important;

    color: #333333 !important;

    font: inherit;
    text-align: left;

    box-shadow: none !important;

    cursor: pointer;
}

.illit-appearance-option:hover,
.illit-appearance-option:focus {
    background: #F3F6F9 !important;

    outline: none;
}

.illit-appearance-option.is-active {
    background: #EDF6FC !important;
}

.illit-appearance-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #4A99D4 !important;

    font-size: 16px;
}

.illit-appearance-option__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;

    min-width: 0;
}

.illit-appearance-option__copy strong {
    color: #333333 !important;

    font-size: 12px;
    line-height: 1.2;
}

.illit-appearance-option__copy small {
    color: #777777 !important;

    font-size: 10px;
    line-height: 1.25;
}

.illit-appearance-option__check {
    visibility: hidden;

    color: #4A99D4 !important;

    font-size: 13px;
    font-weight: 700;

    text-align: right;
}

.illit-appearance-option.is-active
.illit-appearance-option__check {
    visibility: visible;
}


/* DARK MENU */

html.darklooks-mode-changer-enabled
.illit-appearance-menu {
    background: #303030 !important;
    border-color: #4A4A4A !important;

    color: #F5F7FB !important;
}

html.darklooks-mode-changer-enabled
.illit-appearance-menu__heading {
    border-color: #484848 !important;
}

html.darklooks-mode-changer-enabled
.illit-appearance-menu__heading strong,
html.darklooks-mode-changer-enabled
.illit-appearance-option__copy strong {
    color: #F5F7FB !important;
}

html.darklooks-mode-changer-enabled
.illit-appearance-menu__heading span,
html.darklooks-mode-changer-enabled
.illit-appearance-option__copy small {
    color: #BFC4C9 !important;
}

html.darklooks-mode-changer-enabled
.illit-appearance-option {
    color: #F5F7FB !important;
}

html.darklooks-mode-changer-enabled
.illit-appearance-option:hover,
html.darklooks-mode-changer-enabled
.illit-appearance-option:focus {
    background: #3A3A3A !important;
}

html.darklooks-mode-changer-enabled
.illit-appearance-option.is-active {
    background: rgba(74, 153, 212, 0.16) !important;
}


/* MOBILE */

@media (max-width: 849px) {

    .illit-appearance-trigger {
        min-width: 34px;

        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    .illit-appearance-trigger__label {
        display: none;
    }

    .illit-appearance-trigger__chevron {
        display: none;
    }

    .illit-appearance-menu {
        right: -4px;

        width: min(220px, calc(100vw - 24px));
    }
}
