
/* =========================================
   1. SERVICE SECTION
   Global WLA classes handle:
   background, border, radius, padding,
   glow and badge.
========================================= */

.home-page-service-section-card-section {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}


/* =========================================
   2. SERVICE GRID
========================================= */

.home-page-service-section-card-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}


/* =========================================
   3. SERVICE CARD
========================================= */

.home-page-service-section-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    min-width: 0;
    height: 300px;
    box-sizing: border-box;
}



/* =========================================
   4. CARD IMAGE AND LOTTIE
========================================= */

.home-page-service-section-card-image {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;
    overflow: hidden;

    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease,
        color 0.35s ease;
}

.home-page-service-section-card-image dotlottie-wc {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;
}

.home-page-service-section-card-image dotlottie-wc canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.home-page-service-section-card:hover
.home-page-service-section-card-image {
    transform: translateY(-10%);
    opacity: 0.04;
}


/* =========================================
   5. CARD CONTENT
========================================= */

.home-page-service-section-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    box-sizing: border-box;
    padding: 25px 20px;
    transform: translateY(100%);
    opacity: 0;
}

.home-page-service-section-card:hover
.home-page-service-section-card-content {
    transform: translateY(0);
    opacity: 1;
}


/* =========================================
   6. CARD TEXT - layout only.
   Top text style from global .wla-card-big-text,
   middle from .wla-card-medium-text,
   bottom from .wla-card-description-text.
========================================= */

.home-page-service-section-card-content h3 {
    margin-bottom: 5px;
}

.home-page-service-subtitle {
    margin-bottom: 5px;
}

.home-page-service-description {
    flex-grow: 1;
    margin-bottom: 10px;
}


/* =========================================
   7. LEARN MORE LINK
   Reuses global .wla-button styles.
========================================= */

.home-page-service-section-card .button-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.home-page-service-section-card .button-wrapper a.wla-button-link {
    display: inline-flex;
    align-items: center;

    color: inherit;
    text-decoration: none !important;
}

.home-page-service-section-card .button-wrapper a.wla-button-link:hover,
.home-page-service-section-card .button-wrapper a.wla-button-link:focus {
    text-decoration: none !important;
}

.home-page-service-section-card .button-wrapper .wla-button {
    max-width: 100%;
}


/* =========================================
   8. TAP TO VIEW BUTTON
   Global .wla-button handles appearance.
   Hidden on desktop by default.
========================================= */

.home-page-service-section-card-image
.weblodge-agency-service-tap-to-view {
    display: none;

    position: absolute;
    top: 85%;
    left: 50%;
    z-index: 10;

    transform: translate(-50%, -50%);

    width: fit-content;
    max-width: calc(100% - 20px);
    box-sizing: border-box;

    padding: 0 17px;
    overflow: hidden;
    white-space: nowrap;

    cursor: pointer;
}

.home-page-service-section-card-image
.weblodge-agency-service-tap-to-view:active {
    transform: translate(-50%, -50%) scale(0.97);
}


/* =========================================
   9. TABLET
========================================= */

@media (max-width: 1024px) {

    .home-page-service-section-card-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .home-page-service-section-card-image
    .weblodge-agency-service-tap-to-view {
        display: inline-flex;
    }

    /* Card text sizes now come from the global file */
}


/* =========================================
   10. MOBILE
========================================= */

@media (max-width: 767px) {

    .home-page-service-section-card-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .home-page-service-section-card {
        height: 270px;
        min-width: 0;
    }

    .home-page-service-section-card-content {
        padding: 25px 20px;
    }

    .home-page-service-section-card-image
    .weblodge-agency-service-tap-to-view {
        max-width: calc(100% - 20px);
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Card text sizes now come from the global file */
}
