/* =========================================================
   KEDCO - WHY CHOOSE SECTION
   APPROVED DESIGN
   LIGHT / DARK MODE
   ========================================================= */

.kedco-why {
    width: 100%;
    background: var(--kedco-page-bg);
    padding: 55px 0 60px;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}


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

.kedco-why-container {
    width: min(1250px, calc(100% - 80px));
    margin: 0 auto;
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.kedco-why-header {
    text-align: center;
    margin-bottom: 28px;
}


.kedco-why-eyebrow {
    margin: 0 0 5px;

    color: var(--kedco-primary);

    font-family: "Candara", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.7px;
    text-transform: uppercase;
}


.kedco-why-title {
    margin: 0;

    color: var(--kedco-text);

    font-family: "Candara", Arial, sans-serif;
    font-size: 31px;
    line-height: 1.1;
    font-weight: 700;
}


/* =========================================================
   FEATURE GRID
   ========================================================= */

.kedco-why-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    grid-template-rows: 68px 68px;

    gap: 12px;

    width: 100%;
}


/* =========================================================
   FEATURE CARDS
   ========================================================= */

.kedco-why-card {
    width: 100%;
    height: 68px;

    box-sizing: border-box;

    background: var(--kedco-surface);

    border: 1px solid var(--kedco-border);

    border-radius: 8px;

    padding: 12px 15px;

    display: flex;
    align-items: center;

    gap: 12px;

    box-shadow:
        0 2px 8px rgba(1, 17, 116, 0.05);

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.kedco-why-card:hover {
    transform: translateY(-2px);

    border-color: rgba(1, 17, 116, 0.18);

    box-shadow:
        0 6px 16px rgba(1, 17, 116, 0.09);
}


/* =========================================================
   CARD ICON
   ========================================================= */

.kedco-why-card-icon {
    width: 30px;
    height: 30px;

    min-width: 30px;

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

    background: var(--kedco-surface-alt);

    border-radius: 50%;

    color: var(--kedco-primary);

    font-size: 14px;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}


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

.kedco-why-card-content {
    min-width: 0;
}


.kedco-why-card-content h3 {
    margin: 0 0 2px;

    color: var(--kedco-text);

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

    font-size: 14px;
    line-height: 1.15;

    font-weight: 700;
}


.kedco-why-card-content p {
    margin: 0;

    color: var(--kedco-body-text);

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

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


/* =========================================================
   MYKEDCO APP
   SECOND ROW / RIGHT SIDE
   ========================================================= */

.kedco-why-app {
    grid-column: 3 / 5;
    grid-row: 2;

    position: relative;

    width: 100%;
    height: 120px;

    overflow: hidden;

    box-sizing: border-box;

    background: #010c4e;

    border-radius: 8px;

    box-shadow:
        0 4px 12px rgba(1, 17, 116, 0.15);

    padding: 10px 175px 10px 18px;

    color: #ffffff;
}


/* =========================================================
   DARK MODE APP
   ========================================================= */

[data-theme="dark"] .kedco-why-app {
    background: #08102d;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.35);
}


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

.kedco-why-app-content {
    position: relative;

    z-index: 5;

    width: 100%;
}


.kedco-why-app-title {
    margin: 0 0 2px;

    color: #ffffff;

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

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

    font-weight: 700;
}


.kedco-why-app-description {
    margin: 0 0 6px;

    color: rgba(255, 255, 255, 0.78);

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

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


/* =========================================================
   APP STORE BUTTONS
   ========================================================= */

.kedco-why-app-buttons {
    display: flex;

    align-items: center;

    gap: 5px;
}


.kedco-app-store {
    height: 30px;

    padding: 0 20px;

    box-sizing: border-box;

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

    gap: 4px;

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 4px;

    background: rgba(0, 0, 0, 0.85);

    color: #ffffff;

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

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

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


.kedco-app-store:hover {
    background: rgba(255, 255, 255, 0.15);

    transform: translateY(-1px);

    color: #ffffff;
}


.kedco-app-store i {
    font-size: 16px;
}


/* =========================================================
   PHONE
   ========================================================= */

.kedco-why-phone {
    position: absolute;

    right: 8px;
    bottom: -47px;

    width: 270px;

    z-index: 10;

    transform: rotate(10deg);

    pointer-events: none;
}


.kedco-why-phone img {
    display: block;

    width: 100%;
    height: auto;

    filter:
        drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35));
}


/* =========================================================
   YELLOW DECORATIVE DOT
   ========================================================= */

.kedco-why-app-dot {
    position: absolute;

    width: 13px;
    height: 13px;

    right: 70px;
    top: 24px;

    background: var(--kedco-yellow);

    border-radius: 50%;

    z-index: 2;
}


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

@media (max-width: 1000px) {

    .kedco-why {
        padding: 50px 0;
    }


    .kedco-why-container {
        width: calc(100% - 50px);
    }


    .kedco-why-title {
        font-size: 27px;
    }


    .kedco-why-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-template-rows: auto;

        gap: 12px;
    }


    .kedco-why-card {
        height: 70px;
    }


    .kedco-why-app {
        grid-column: 1 / 3;
        grid-row: auto;

        height: 150px;

        padding-right: 180px;
    }


    .kedco-why-phone {
        width: 320px;

        right: 20px;
        bottom: -55px;
    }
}


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

@media (max-width: 600px) {

    .kedco-why {
        padding: 45px 0 50px;
    }


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


    .kedco-why-header {
        margin-bottom: 22px;
    }


    .kedco-why-title {
        font-size: 25px;
    }


    /* -----------------------------------------
       SINGLE COLUMN
    ----------------------------------------- */

    .kedco-why-grid {
        grid-template-columns: 1fr;

        grid-template-rows: auto;

        gap: 12px;
    }


    /* -----------------------------------------
       FEATURE CARDS
    ----------------------------------------- */

    .kedco-why-card {
        width: 100%;
        height: 68px;

        padding: 12px 14px;
    }


    .kedco-why-card-icon {
        width: 30px;
        height: 30px;

        min-width: 30px;
    }


    .kedco-why-card-content h3 {
        font-size: 13px;
    }


    .kedco-why-card-content p {
        font-size: 10px;
    }


    /* -----------------------------------------
       MYKEDCO APP
    ----------------------------------------- */

    .kedco-why-app {
        grid-column: auto;
        grid-row: auto;

        width: 100%;
        height: 125px;

        padding: 18px 125px 15px 18px;
    }


    .kedco-why-app-title {
        font-size: 16px;
    }


    .kedco-why-app-description {
        max-width: 180px;

        font-size: 9px;
    }


    /* -----------------------------------------
       PHONE
    ----------------------------------------- */

    .kedco-why-phone {
        width: 260px;

        right: 3px;
        bottom: -43px;

        transform: rotate(10deg);
    }


    /* -----------------------------------------
       DOT
    ----------------------------------------- */

    .kedco-why-app-dot {
        width: 11px;
        height: 11px;

        right: 73px;
        top: 40px;
    }
}


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

@media (max-width: 400px) {

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


    .kedco-why-title {
        font-size: 23px;
    }


    .kedco-why-card {
        height: 66px;
    }


    .kedco-why-app {
        height: 120px;

        padding-left: 15px;
        padding-right: 110px;
    }


    .kedco-why-app-title {
        font-size: 15px;
    }


    .kedco-why-phone {
        width: 235px;

        right: 0;
        bottom: -38px;
    }


    .kedco-app-store {
        padding: 0 4px;
    }
}


@media (max-width: 320px) {

    .kedco-why-phone {
        width: 150px;

        right: 0;
    }


    .kedco-app-store {
        padding: 0 2px;
    }
}

/* =========================================================
   KEDCO WHY CHOOSE
   DARK MODE REFINEMENT
========================================================= */

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


/* =========================================================
   SECTION HEADER
========================================================= */

[data-theme="dark"] .kedco-why-eyebrow {
    color: #E8DE03;
}

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


/* =========================================================
   FEATURE CARDS
========================================================= */

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

    border-color: #263244;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .kedco-why-card:hover {
    border-color: rgba(59, 159, 232, 0.45);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.32);
}


/* =========================================================
   CARD ICON
========================================================= */

[data-theme="dark"] .kedco-why-card-icon {
    background: #182338;

    color: #3B9FE8;
}


/* =========================================================
   CARD TEXT
========================================================= */

[data-theme="dark"] .kedco-why-card-content h3 {
    color: #F8FAFC;
}

[data-theme="dark"] .kedco-why-card-content p {
    color: #94A3B8;
}


/* =========================================================
   MYKEDCO APP
========================================================= */

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

    border: 1px solid #1D3155;

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

[data-theme="dark"] .kedco-why-app-title {
    color: #FFFFFF;
}

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


/* =========================================================
   APP STORE BUTTONS
========================================================= */

[data-theme="dark"] .kedco-app-store {
    background: #020617;

    border-color: rgba(255, 255, 255, 0.20);

    color: #FFFFFF;
}

[data-theme="dark"] .kedco-app-store:hover {
    background: #182338;

    color: #FFFFFF;
}


/* =========================================================
   DECORATIVE YELLOW DOT
========================================================= */

[data-theme="dark"] .kedco-why-app-dot {
    background: #E8DE03;

    box-shadow:
        0 0 12px rgba(232, 222, 3, 0.25);
}