/* =========================================================
   ESAR DIGITAL
   HOMEPAGE — SERVICES SECTION
   Premium Service Grid
   ========================================================= */


/* =========================================================
   SERVICES SECTION
   ========================================================= */

   .home-services {
    position: relative;

    padding: 105px 0 110px;

    background: #071A33;

    overflow: hidden;
}


/* =========================================================
   BACKGROUND DETAILS
   ========================================================= */

.home-services::before {
    content: "";

    position: absolute;

    width: 720px;
    height: 720px;

    top: -470px;
    right: -280px;

    border: 1px solid rgba(255, 204, 0, 0.08);

    border-radius: 50%;

    pointer-events: none;
}


.home-services::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    left: -300px;
    bottom: -300px;

    border-radius: 50%;

    background: rgba(255, 204, 0, 0.025);

    pointer-events: none;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.home-services__heading {
    position: relative;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;

    margin-bottom: 52px;

    z-index: 2;
}


.home-services .section-heading {
    margin: 0;
}


.home-services .section-heading__eyebrow {
    color: #FFCC00;
}


.home-services .section-heading__title {
    max-width: 700px;

    margin-top: 12px;

    color: #FFFFFF;

    font-size: clamp(38px, 4vw, 54px);

    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -1.8px;
}


.home-services .section-heading__description {
    max-width: 560px;

    margin-top: 18px;

    color: rgba(255, 255, 255, 0.58);

    font-size: 15px;

    line-height: 1.75;
}


/* =========================================================
   SERVICES GRID
   ========================================================= */

.home-services__grid {
    position: relative;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;

    z-index: 2;
}


/* =========================================================
   SERVICE CARD
   ========================================================= */

.home-services .service-card {
    position: relative;

    display: flex;

    flex-direction: column;

    min-height: 365px;

    padding: 30px 30px 27px;

    background: #F8FAFC;

    border: 1px solid rgba(255, 255, 255, 0.75);

    border-radius: 12px;

    color: #071A33;

    overflow: hidden;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12);

    transition:
        transform 240ms ease,
        box-shadow 240ms ease,
        border-color 240ms ease;
}


/* subtle bottom glow */

.home-services .service-card::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -90px;
    bottom: -95px;

    border-radius: 50%;

    background: rgba(255, 204, 0, 0.10);

    pointer-events: none;

    transition:
        transform 300ms ease,
        background 300ms ease;
}


/* thin gold accent */

.home-services .service-card::after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: #FFCC00;

    opacity: 0;

    transition: opacity 240ms ease;
}


.home-services .service-card:hover {
    transform: translateY(-7px);

    border-color: rgba(255, 204, 0, 0.38);

    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.20);
}


.home-services .service-card:hover::before {
    transform: scale(1.25);

    background: rgba(255, 204, 0, 0.15);
}


.home-services .service-card:hover::after {
    opacity: 1;
}


/* =========================================================
   CARD TOP
   ========================================================= */

.home-services .service-card__top {
    position: relative;

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    min-height: 70px;

    margin-bottom: 45px;

    z-index: 2;
}


/* =========================================================
   SERVICE NUMBER
   ========================================================= */

.home-services .service-card__number {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 32px;
    height: 26px;

    padding: 0 8px;

    background: #071A33;

    border-radius: 3px;

    color: #FFFFFF;

    font-size: 10px;

    font-weight: 800;

    line-height: 1;

    letter-spacing: 1.2px;
}


/* =========================================================
   SERVICE ICON
   ========================================================= */

.home-services .service-card__icon {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin: 0;

    flex-shrink: 0;

    background: #071A33;

    border: 1px solid rgba(255, 204, 0, 0.28);

    border-radius: 50%;

    color: #FFCC00;

    box-shadow:
        0 10px 22px rgba(7, 26, 51, 0.18);

    transition:
        background 240ms ease,
        color 240ms ease,
        border-color 240ms ease,
        transform 240ms ease,
        box-shadow 240ms ease;

    z-index: 2;
}


.home-services .service-card__icon svg {
    display: block;

    width: 23px;
    height: 23px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.home-services .service-card:hover .service-card__icon {
    background: #FFCC00;

    border-color: #FFCC00;

    color: #071A33;

    transform: translateY(-2px) rotate(4deg);

    box-shadow:
        0 12px 26px rgba(7, 26, 51, 0.22);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.home-services .service-card__content {
    position: relative;

    flex: 1;

    z-index: 2;
}


.home-services .service-card__title {
    position: relative;

    margin: 0;

    padding-left: 17px;

    color: #071A33;

    font-size: 21px;

    font-weight: 800;

    line-height: 1.25;

    letter-spacing: -0.45px;
}


/* small gold title marker */

.home-services .service-card__title::before {
    content: "";

    position: absolute;

    left: 0;
    top: 4px;

    width: 3px;
    height: 20px;

    background: #FFCC00;

    border-radius: 2px;
}


.home-services .service-card__description {
    max-width: 365px;

    margin: 14px 0 0;

    color: #64748B;

    font-size: 13px;

    line-height: 1.75;
}


/* =========================================================
   CARD LINK
   ========================================================= */

.home-services .service-card__link {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 28px;

    padding-top: 17px;

    border-top: 1px solid rgba(7, 26, 51, 0.10);

    color: #071A33;

    font-size: 11px;

    font-weight: 800;

    line-height: 1;

    text-decoration: none;

    z-index: 2;
}


.home-services .service-card__link > span:first-child {
    transition:
        color 180ms ease,
        transform 180ms ease;
}


.home-services .service-card__arrow {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    flex-shrink: 0;

    background: #FFCC00;

    border-radius: 50%;

    color: #071A33;

    font-size: 15px;

    line-height: 1;

    transition:
        transform 200ms ease,
        background 200ms ease,
        color 200ms ease;
}


.home-services .service-card:hover .service-card__arrow {
    transform: translateX(5px);

    background: #071A33;

    color: #FFCC00;
}


.home-services .service-card:hover .service-card__link > span:first-child {
    transform: translateX(2px);

    color: #071A33;
}


/* =========================================================
   CARD VARIATION — SECONDARY CARDS
   ========================================================= */

.home-services .service-card:nth-child(2),
.home-services .service-card:nth-child(5) {
    background: #FFFFFF;
}


.home-services .service-card:nth-child(2)::before,
.home-services .service-card:nth-child(5)::before {
    background: rgba(7, 26, 51, 0.035);
}


.home-services .service-card:nth-child(2) .service-card__icon,
.home-services .service-card:nth-child(5) .service-card__icon {
    background: #0B2444;
}


.home-services .service-card:nth-child(2):hover .service-card__icon,
.home-services .service-card:nth-child(5):hover .service-card__icon {
    background: #FFCC00;

    color: #071A33;
}


/* =========================================================
   BOTTOM CTA
   ========================================================= */

.home-services__bottom {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 20px;

    margin-top: 42px;

    z-index: 2;
}


.home-services__bottom p {
    margin: 0;

    color: rgba(255, 255, 255, 0.48);

    font-size: 13px;

    line-height: 1.5;
}


.home-services__cta {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #FFCC00;

    font-size: 12px;

    font-weight: 800;

    text-decoration: none;

    transition:
        gap 180ms ease,
        color 180ms ease;
}


.home-services__cta:hover {
    gap: 13px;

    color: #FFFFFF;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .home-services {
        padding: 85px 0 90px;
    }


    .home-services__heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;

        margin-bottom: 42px;
    }


    .home-services .section-heading__description {
        max-width: 650px;
    }


    .home-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 17px;
    }


    .home-services .service-card {
        min-height: 350px;
    }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 700px) {

    .home-services {
        padding: 72px 0 78px;
    }


    .home-services .section-heading__title {
        font-size: 38px;

        letter-spacing: -1.2px;
    }


    .home-services__grid {
        grid-template-columns: 1fr;
    }


    .home-services .service-card {
        min-height: 335px;

        padding: 28px;
    }


    .home-services .service-card__top {
        margin-bottom: 38px;
    }


    .home-services__bottom {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .home-services {
        padding: 62px 0 68px;
    }


    .home-services .section-heading__title {
        font-size: 32px;
    }


    .home-services .section-heading__description {
        font-size: 14px;
    }


    .home-services .service-card {
        min-height: 325px;

        padding: 25px;
    }


    .home-services .service-card__top {
        min-height: 62px;

        margin-bottom: 35px;
    }


    .home-services .service-card__icon {
        width: 54px;
        height: 54px;
    }


    .home-services .service-card__icon svg {
        width: 21px;
        height: 21px;
    }


    .home-services .service-card__title {
        font-size: 20px;
    }


    .home-services .service-card__description {
        font-size: 13px;
    }


    .home-services .service-card__link {
        margin-top: 24px;
    }

}