/* =========================================================
   TYPES OF WEBSITES WE DESIGN
   Unique Prefix: wd-website-types
========================================================= */

.wd-website-types-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 90px 0;
    background:
        linear-gradient(135deg, #f5fbff 0%, #eef8ff 48%, #ffffff 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    color: #172b4d;
}

.wd-website-types-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #061d36;
    pointer-events: none;
}


/* =========================================================
   DECORATIVE ELEMENTS
========================================================= */

.wd-website-types-decoration {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}

.wd-website-types-decoration-one {
    top: -130px;
    left: -100px;
    width: 330px;
    height: 330px;
    background: rgba(61, 190, 255, 0.10);
}

.wd-website-types-decoration-two {
    right: -140px;
    bottom: -150px;
    width: 380px;
    height: 380px;
    background: rgba(0, 142, 255, 0.08);
}


/* =========================================================
   HEADER
========================================================= */

.wd-website-types-header {
    max-width: 850px;
    margin: 0 auto 55px;
}

.wd-website-types-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(0, 132, 201, 0.18);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.78);
    color: #087db9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    box-shadow: 0 7px 20px rgba(30, 100, 150, 0.06);
}

.wd-website-types-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(8, 125, 185, 0.10);
    font-size: 12px;
}

.wd-website-types-heading {
    margin: 0 0 17px;
    color: #102a43;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.wd-website-types-description {
    max-width: 760px;
    margin: 0 auto;
    color: #5f7184;
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   GRID
========================================================= */

.wd-website-types-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================================
   CARD
========================================================= */

.wd-website-types-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 355px;
    overflow: hidden;
    border: 1px solid rgba(20, 85, 130, 0.09);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 35px rgba(29, 82, 116, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.wd-website-types-card:hover {
    transform: translateY(-8px);
    border-color: rgba(8, 148, 218, 0.22);
    box-shadow: 0 22px 48px rgba(29, 82, 116, 0.14);
}


/* =========================================================
   CARD VISUAL
========================================================= */

.wd-website-types-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 145px;
    overflow: hidden;
    background:
        linear-gradient(135deg, #eaf8ff 0%, #d9f1ff 100%);
}

.wd-website-types-visual::after {
    position: absolute;
    right: -35px;
    bottom: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(0, 153, 224, 0.08);
    content: "";
}

.wd-website-types-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(0, 130, 205, 0.13);
    border-radius: 22px;
    background: #ffffff;
    color: #0797d7;
    font-size: 30px;
    box-shadow: 0 12px 25px rgba(0, 115, 170, 0.12);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.wd-website-types-card:hover .wd-website-types-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 30px rgba(0, 115, 170, 0.17);
}

.wd-website-types-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.wd-website-types-card:hover .wd-website-types-image {
    transform: scale(1.05);
}


/* =========================================================
   CARD CONTENT
========================================================= */

.wd-website-types-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px 23px 22px;
}

.wd-website-types-card-title {
    margin: 0 0 11px;
    color: #142b45;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 750;
}

.wd-website-types-card-description {
    margin: 0;
    color: #687b8d;
    font-size: 13.5px;
    line-height: 1.7;
}


/* =========================================================
   LINK
========================================================= */

.wd-website-types-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-top: auto;
    padding-top: 18px;
    color: #0789c9;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.25s ease,
        gap 0.25s ease;
}

.wd-website-types-link:hover {
    gap: 13px;
    color: #056b9d;
}

.wd-website-types-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}


/* =========================================================
   BOTTOM CTA
========================================================= */

.wd-website-types-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    max-width: 1180px;
    margin: 50px auto 0;
    padding: 25px 28px;
    border: 1px solid rgba(8, 137, 201, 0.12);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(29, 82, 116, 0.08);
}

.wd-website-types-cta-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wd-website-types-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 53px;
    height: 53px;
    border-radius: 16px;
    background: #e6f7ff;
    color: #078dcc;
    font-size: 21px;
}

.wd-website-types-cta-content h3 {
    margin: 0 0 4px;
    color: #172f4a;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 750;
}

.wd-website-types-cta-content p {
    margin: 0;
    color: #718294;
    font-size: 13px;
    line-height: 1.5;
}

.wd-website-types-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    min-height: 49px;
    padding: 0 22px;
    border-radius: 11px;
    background: #078dcc;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(7, 141, 204, 0.20);
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.wd-website-types-cta-button:hover {
    transform: translateY(-2px);
    background: #056f9f;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(7, 141, 204, 0.26);
}


/* =========================================================
   BACKGROUND IMAGE MODE
========================================================= */

.wd-website-types-section:has(
    .wd-website-types-overlay
) {
    color: #ffffff;
}

.wd-website-types-section:has(
    .wd-website-types-overlay
) .wd-website-types-heading {
    color: #ffffff;
}

.wd-website-types-section:has(
    .wd-website-types-overlay
) .wd-website-types-description {
    color: rgba(255, 255, 255, 0.78);
}

.wd-website-types-section:has(
    .wd-website-types-overlay
) .wd-website-types-badge {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.20);
    color: #ffffff;
}

.wd-website-types-section:has(
    .wd-website-types-overlay
) .wd-website-types-card {
    background: rgba(255, 255, 255, 0.95);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1199.98px) {

    .wd-website-types-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   TABLET / SMALL DESKTOP
========================================================= */

@media (max-width: 991.98px) {

    .wd-website-types-section {
        padding: 75px 0;
    }

    .wd-website-types-header {
        margin-bottom: 42px;
    }

    .wd-website-types-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .wd-website-types-card {
        min-height: 340px;
    }

    .wd-website-types-cta {
        margin-top: 40px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .wd-website-types-section {
        padding: 60px 0;
    }

    .wd-website-types-header {
        margin-bottom: 34px;
    }

    .wd-website-types-badge {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .wd-website-types-heading {
        font-size: 31px;
        letter-spacing: -0.4px;
    }

    .wd-website-types-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .wd-website-types-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .wd-website-types-card {
        min-height: auto;
        border-radius: 18px;
    }

    .wd-website-types-visual {
        height: 155px;
    }

    .wd-website-types-content {
        padding: 23px 21px 21px;
    }

    .wd-website-types-card-title {
        font-size: 18px;
    }

    .wd-website-types-card-description {
        font-size: 13.5px;
    }

    .wd-website-types-cta {
        flex-direction: column;
        align-items: stretch;
        margin-top: 32px;
        padding: 21px;
    }

    .wd-website-types-cta-content {
        align-items: flex-start;
    }

    .wd-website-types-cta-button {
        width: 100%;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .wd-website-types-heading {
        font-size: 28px;
    }

    .wd-website-types-visual {
        height: 145px;
    }

    .wd-website-types-icon {
        width: 68px;
        height: 68px;
        border-radius: 19px;
        font-size: 27px;
    }

    .wd-website-types-content {
        padding: 21px 19px;
    }

    .wd-website-types-cta-content {
        gap: 12px;
    }

    .wd-website-types-cta-icon {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }

    .wd-website-types-cta-content h3 {
        font-size: 18px;
    }

}