/* =========================================================
   KEDCO HERO
   SUNLIGHT / MOONLIGHT
   ========================================================= */

.kedco-hero {
    position: relative;
    width: 100%;
    height: 580px;
    overflow: hidden;

    /* KEDCO primary fallback */
    background: var(--kedco-primary);

    transition: background-color 0.25s ease;
}


/* =========================================================
   HERO BACKGROUND
   ========================================================= */

.kedco-hero-background {
    position: absolute;
    inset: 0;

    background-image: url("../images/hero.jpg");
    background-size: cover;
    background-position: center center;

    z-index: 1;
}


/* =========================================================
   HERO OVERLAY
   ========================================================= */

.kedco-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(1, 17, 116, 0.99) 0%,
            rgba(1, 17, 116, 0.96) 20%,
            rgba(1, 17, 116, 0.86) 42%,
            rgba(1, 17, 116, 0.60) 65%,
            rgba(1, 17, 116, 0.22) 100%
        );

    z-index: 2;

    transition: background 0.3s ease;
}


/* =========================================================
   MOONLIGHT HERO OVERLAY
   ========================================================= */

[data-theme="dark"] .kedco-hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(5, 10, 35, 0.99) 0%,
            rgba(5, 10, 35, 0.95) 20%,
            rgba(7, 15, 45, 0.86) 42%,
            rgba(8, 18, 48, 0.65) 65%,
            rgba(8, 18, 48, 0.30) 100%
        );
}


/* =========================================================
   HERO CONTAINER
   ========================================================= */

.kedco-hero-container {
    width: calc(100% - 170px);
    max-width: 1680px;
    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;

    position: relative;
    z-index: 3;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.kedco-hero-content {
    position: relative;

    width: 52%;

    z-index: 5;

    padding-top: 0;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.kedco-hero-eyebrow {
    margin: 0 0 7px;

    color: var(--kedco-yellow);

    font-family: "Candara", Arial, sans-serif;

    font-size: 14px;
    font-weight: 700;
    font-style: italic;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================================================
   HERO TITLE
   ========================================================= */

.kedco-hero-title {
    margin: 0;

    color: #ffffff;

    font-family: "Candara", Arial, sans-serif;

    font-size: 48px;

    line-height: 1.02;

    font-weight: 700;

    letter-spacing: -0.5px;
}


.kedco-hero-title span {
    color: var(--kedco-yellow);
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.kedco-hero-description {
    max-width: 470px;

    margin: 16px 0 20px;

    color: #ffffff;

    font-family: "Candara", Arial, sans-serif;

    font-size: 18px;

    line-height: 1.45;

    font-weight: 400;
}


/* =========================================================
   HERO BUTTON
   ========================================================= */

.kedco-hero-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    min-width: 130px;
    height: 42px;

    padding: 0 18px;

    box-sizing: border-box;

    background: var(--kedco-yellow);

    color: var(--kedco-primary);

    border-radius: 6px;

    font-family: "Candara", Arial, sans-serif;

    font-size: 16px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.kedco-hero-button i {
    font-size: 12px;
}


.kedco-hero-button:hover {
    background: #ffffff;

    color: var(--kedco-primary);

    transform: translateY(-1px);
}


/* =========================================================
   ENGINEER
   ========================================================= */

.kedco-hero-engineer {
    position: absolute;

    right: 200px;
    bottom: 0;

    width: 43%;
    height: 100%;

    display: flex;

    align-items: flex-end;
    justify-content: flex-end;

    z-index: 4;
}


.kedco-hero-engineer img {
    display: block;

    width: auto;

    height: 100%;

    max-width: none;

    object-fit: contain;

    object-position: bottom right;
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (max-width: 1400px) {

    .kedco-hero-container {
        width: calc(100% - 120px);
    }


    .kedco-hero-title {
        font-size: 46px;
    }


    .kedco-hero-engineer {
        right: 20px;

        width: 45%;
    }


    .kedco-hero-engineer img {
        height: 102%;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .kedco-hero {
        height: 430px;
    }


    .kedco-hero-container {
        width: calc(100% - 40px);

        height: 100%;

        margin: 0 auto;

        padding-top: 42px;

        box-sizing: border-box;

        display: block;
    }


    .kedco-hero-content {
        width: 68%;
    }


    .kedco-hero-title {
        font-size: 38px;
    }


    .kedco-hero-description {
        max-width: 390px;

        font-size: 15px;
    }


    .kedco-hero-engineer {
        right: -10px;

        bottom: 0;

        width: 58%;

        height: 65%;
    }


    .kedco-hero-engineer img {
        height: 100%;

        width: auto;

        max-width: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .kedco-hero {
        height: 480px;
    }


    .kedco-hero-container {
        width: calc(100% - 32px);

        height: 100%;

        margin: 0 auto;

        padding-top: 32px;

        box-sizing: border-box;

        display: block;
    }


    .kedco-hero-content {
        width: 100%;

        position: relative;

        z-index: 6;
    }


    .kedco-hero-eyebrow {
        font-size: 12px;

        margin-bottom: 7px;
    }


    .kedco-hero-title {
        font-size: 36px;

        line-height: 1.05;
    }


    .kedco-hero-description {
        width: 82%;

        max-width: 330px;

        margin-top: 14px;

        margin-bottom: 18px;

        font-size: 16px;

        line-height: 1.4;
    }


    .kedco-hero-button {
        height: 40px;

        padding: 0 16px;

        font-size: 14px;
    }


    /* ============================================
       MOBILE ENGINEER
       ============================================ */

    .kedco-hero-engineer {
        position: absolute;

        width: 68%;

        height: 56%;

        right: -8px;

        bottom: 0;

        display: flex;

        align-items: flex-end;

        justify-content: flex-end;

        z-index: 4;

        pointer-events: none;
    }


    .kedco-hero-engineer img {
        display: block;

        width: auto;

        height: 100%;

        max-width: none;

        object-fit: contain;

        object-position: bottom right;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .kedco-hero {
        height: 460px;
    }


    .kedco-hero-container {
        width: calc(100% - 24px);

        padding-top: 30px;
    }


    .kedco-hero-title {
        font-size: 32px;
    }


    .kedco-hero-description {
        width: 88%;

        font-size: 14px;
    }


    .kedco-hero-engineer {
        width: 74%;

        height: 57%;

        right: -10px;
    }
}