/* =========================================================
   KEDCO ABOUT SECTION
   APPROVED COLLAGE DESIGN
========================================================= */

.kedco-about {
    width: 100%;
    background: #ffffff;
    padding: 75px 0 80px;
}

.kedco-about-container {
    width: min(1370px, calc(100% - 120px));
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 65px;
}


/* =========================================================
   LEFT - IMAGE COLLAGE
   APPROVED KEDCO DESIGN
========================================================= */

.kedco-about-visual {
    position: relative;

    width: 48%;
    height: 430px;

    flex-shrink: 0;
}


/* =========================================================
   COLLAGE TILE
========================================================= */

.kedco-about-image {
    position: absolute;

    overflow: hidden;

    background: #ffffff;

    border: 5px solid #ffffff;

    box-sizing: border-box;

    transform: rotate(45deg);

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   IMAGE INSIDE TILE

   Counter-rotate the image so the photograph itself
   remains straight while the tile is rotated.
========================================================= */

.kedco-about-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: rotate(-45deg) scale(1.42);
}


/* =========================================================
   STREET LIGHT
   TOP CENTER - SQUARE
========================================================= */

.kedco-about-image-one {
    width: 140px;
    height: 140px;

    top: 100px;
    left: 190px;

    z-index: 3;
}


/* =========================================================
   FAMILY
   LOWER LEFT - HORIZONTAL RECTANGLE
========================================================= */

.kedco-about-image-three {
    width: 215px;
    height: 155px;

    top: 250px;
    left: 240px;

    z-index: 2;
}


/* =========================================================
   ENGINEER
   MIDDLE RIGHT - HORIZONTAL RECTANGLE
========================================================= */

.kedco-about-image-two {
    width: 190px;
    height: 145px;

    left: 350px;
    top: 150px;
    z-index: 2;
}

/* =========================================================
   CUSTOMER BADGE
========================================================= */

.kedco-about-badge {
    position: absolute;

    width: 115px;
    height: 115px;

    left: 145px;
    bottom: 0;
    

    background: #011174;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    transform: rotate(45deg);

    z-index: 10;
}

/* Keep badge text horizontal */

.kedco-about-badge strong,
.kedco-about-badge span {
    transform: rotate(-45deg);
}


.kedco-about-badge strong {
    color: #ffffff;

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

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

    line-height: 1.1;
}


.kedco-about-badge span {
    margin-top: 5px;

    color: #ffffff;

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

    font-size: 13px;

    line-height: 1.2;

    text-align: center;
}



/* =========================================================
   RIGHT - CONTENT
========================================================= */

.kedco-about-content {
    width: 48%;
    max-width: 620px;
}


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

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

    color: #011174;

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

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

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


/* =========================================================
   HEADING
========================================================= */

.kedco-about-title {
    margin: 0;

    color: #111111;

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

    font-size: 39px;
    line-height: 1.08;

    font-weight: 700;
}


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

.kedco-about-description {
    max-width: 570px;

    margin: 18px 0 22px;

    color: #555555;

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

    font-size: 16px;
    line-height: 1.5;
}


/* =========================================================
   FEATURES
========================================================= */

.kedco-about-features {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    column-gap: 38px;
    row-gap: 18px;

    margin-bottom: 25px;
}


.kedco-about-feature {
    display: flex;
    align-items: flex-start;

    gap: 10px;
}


.kedco-about-feature-icon {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

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

    color: #011174;

    font-size: 15px;
}


.kedco-about-feature h3 {
    margin: 0 0 3px;

    color: #111111;

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

    font-size: 15px;
    font-weight: 700;
}


.kedco-about-feature p {
    margin: 0;

    color: #666666;

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

    font-size: 13px;

    line-height: 1.4;
}


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

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

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

    gap: 10px;

    height: 40px;

    padding: 0 18px;

    background: #011174;
    color: #ffffff;

    border-radius: 5px;

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

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

    text-decoration: none;

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


.kedco-about-button:hover {
    background: #E8DE03;

    color: #011174;

    transform: translateY(-1px);
}


.kedco-about-button i {
    font-size: 13px;
}


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

@media (max-width: 900px) {

    .kedco-about {
        padding: 65px 0;
    }

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

        flex-direction: column;

        gap: 50px;
    }

    .kedco-about-visual,
    .kedco-about-content {
        width: 100%;
    }

    .kedco-about-visual {
        height: 430px;

        max-width: 520px;
    }

    .kedco-about-content {
        max-width: 600px;
    }
}


/* =========================================================
   MOBILE VIEW
   BASED ON THE APPROVED DESKTOP COLLAGE
   ========================================================= */

@media (max-width: 600px) {

    .kedco-about {
        padding: 45px 0 55px;
    }

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

        display: flex;
        flex-direction: column;

        align-items: center;

        gap: 35px;
    }


    /* =====================================================
       IMAGE COLLAGE
       ===================================================== */

    .kedco-about-visual {
        position: relative;

        width: 100%;
        max-width: 340px;

        height: 390px;

        margin: 0 auto;

        flex-shrink: 0;
    }


    /* =====================================================
       STREET LIGHT
       TOP CENTER - SQUARE
       Scaled from desktop: 140px
       ===================================================== */

    .kedco-about-image-one {

        width: 100px;
        height: 100px;

        top: 100px;
        left: 120px;

        z-index: 3;
    }


    /* =====================================================
       ENGINEER
       LOWER LEFT - HORIZONTAL RECTANGLE
       Scaled from desktop: 190 × 145
       ===================================================== */

    .kedco-about-image-two {

        width: 135px;
        height: 105px;

        left: 40px;
        top: 175px;

        z-index: 2;
    }


    /* =====================================================
       FAMILY
       LOWER RIGHT - HORIZONTAL RECTANGLE
       Scaled from desktop: 215 × 155
       ===================================================== */

    .kedco-about-image-three {

        width: 145px;
        height: 105px;

        top: 180px;
        left: 175px;

        z-index: 2;
    }


    /* =====================================================
       CUSTOMER BADGE
       SCALED FROM DESKTOP
       ===================================================== */

    .kedco-about-badge {

        width: 82px;
        height: 82px;

        left: 5px;
        bottom: 48px;

        background: #011174;

        z-index: 10;
    }

    .kedco-about-badge strong {
        font-size: 17px;
    }

    .kedco-about-badge span {
        margin-top: 3px;

        font-size: 10px;
    }


    /* =====================================================
       ABOUT CONTENT
       ===================================================== */

    .kedco-about-content {
        width: 100%;
        max-width: 100%;
    }

    .kedco-about-eyebrow {
        font-size: 12px;
        margin-bottom: 7px;
    }

    .kedco-about-title {
        font-size: 32px;
        line-height: 1.08;
    }

    .kedco-about-description {
        max-width: 100%;

        margin: 16px 0 20px;

        font-size: 15px;
        line-height: 1.5;
    }


    /* =====================================================
       FEATURES
       ===================================================== */

    .kedco-about-features {

        grid-template-columns: 1fr;

        column-gap: 0;
        row-gap: 15px;

        margin-bottom: 24px;
    }

    .kedco-about-feature {
        gap: 9px;
    }

    .kedco-about-feature-icon {
        width: 30px;
        height: 30px;

        font-size: 14px;
    }

    .kedco-about-feature h3 {
        font-size: 15px;
    }

    .kedco-about-feature p {
        font-size: 13px;
        line-height: 1.4;
    }


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

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

        padding: 0 17px;

        font-size: 14px;
    }
}


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

@media (max-width: 400px) {

    .kedco-about {
        padding: 40px 0 50px;
    }

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

        gap: 30px;
    }


    /* =====================================================
       COLLAGE
       ===================================================== */

    .kedco-about-visual {
        width: 100%;
        max-width: 320px;

        height: 365px;
    }


    /* =====================================================
       STREET LIGHT
       ===================================================== */

    .kedco-about-image-one {

        width: 95px;
        height: 95px;

        top: 100px;
        left: 120px;
    }


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

    .kedco-about-image-two {

        width: 125px;
        height: 95px;

        left: 75px;
        top: 220px;
    }


    /* =====================================================
       FAMILY
       ===================================================== */

    .kedco-about-image-three {

        width: 135px;
        height: 98px;

        left: 165px;
        top: 170px;
    }


    /* =====================================================
       BADGE
       ===================================================== */

    .kedco-about-badge {

        width: 78px;
        height: 78px;

        left: 0;
        bottom: 45px;
    }

    .kedco-about-badge strong {
        font-size: 16px;
    }

    .kedco-about-badge span {
        font-size: 9.5px;
    }


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

    .kedco-about-title {
        font-size: 30px;
    }

    .kedco-about-description {
        font-size: 14.5px;
    }
}


/* =========================================================
   KEDCO ABOUT SECTION
   DARK MODE
========================================================= */

[data-theme="dark"] .kedco-about {
    background: #0F172A;
}


/* =========================================================
   IMAGE COLLAGE
========================================================= */

[data-theme="dark"] .kedco-about-image {
    background: #111827;

    border-color: #111827;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   ABOUT TEXT
========================================================= */

[data-theme="dark"] .kedco-about-eyebrow {
    color: var(--kedco-yellow);
}


[data-theme="dark"] .kedco-about-title {
    color: #F8FAFC;
}


[data-theme="dark"] .kedco-about-description {
    color: #CBD5E1;
}


/* =========================================================
   FEATURES
========================================================= */

[data-theme="dark"] .kedco-about-feature-icon {
    color: #3B9FE8;
}


[data-theme="dark"] .kedco-about-feature h3 {
    color: #F8FAFC;
}


[data-theme="dark"] .kedco-about-feature p {
    color: #94A3B8;
}


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

[data-theme="dark"] .kedco-about-button {
    background: #3B9FE8;

    color: #07111F;
}


[data-theme="dark"] .kedco-about-button:hover {
    background: var(--kedco-yellow);

    color: var(--kedco-primary);
}


/* =========================================================
   CUSTOMER BADGE
========================================================= */

[data-theme="dark"] .kedco-about-badge {
    background: #081535;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.35);
}
