/* =================================
   SERVICES PAGE SETTINGS
================================= */

.services-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =================================
   SERVICES HERO
================================= */

.services-hero {
    position: relative;

    display: flex;
    min-height: 440px;

    align-items: center;

    overflow: hidden;

    background-color: #ffffff;

    background-image:
        linear-gradient(
            105deg,
            #ffffff 0%,
            #ffffff 38%,
            rgba(255, 255, 255, 0.93) 45%,
            rgba(255, 255, 255, 0.25) 63%,
            rgba(255, 255, 255, 0) 72%
        ),
        url("../images/services-hero.webp");

    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
}

.services-hero-container {
    position: relative;
    z-index: 2;

    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.services-hero-content {
    width: min(100%, 570px);
    padding: 65px 0;
}

.services-label,
.facilities-label {
    margin: 0 0 9px;

    color: #d99517;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.services-hero-title {
    margin: 0;

    color: #163d31;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 4.8vw, 70px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -2px;
}

.services-hero-title span {
    display: block;
}

.services-gold-line {
    width: 50px;
    height: 3px;
    margin: 24px 0;

    background-color: #e2a01d;
}

.services-hero-description {
    max-width: 500px;
    margin: 0;

    color: #37443f;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.65;
}


/* =================================
   MAIN SERVICES
================================= */

.main-services-section {
    padding: 60px 0 20px;
    background-color: #ffffff;
}

.services-heading {
    display: flex;
    margin-bottom: 28px;

    align-items: center;
    justify-content: center;
    gap: 12px;
}

.services-heading span {
    width: 32px;
    height: 2px;

    background-color: #e2a01d;
}

.services-heading p {
    margin: 0;

    color: #d99517;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid #e8e1d7;
    border-left: 1px solid #e8e1d7;
}

.service-card {
    position: relative;

    min-height: 260px;
    padding: 30px 25px;

    text-align: center;

    background-color: #ffffff;
    border-right: 1px solid #e8e1d7;
    border-bottom: 1px solid #e8e1d7;

    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.service-card:hover {
    z-index: 2;

    background-color: #faf8f3;
    box-shadow: 0 15px 35px rgba(0, 59, 43, 0.12);
    transform: translateY(-5px);
}

.service-card-icon {
    min-height: 57px;
    margin-bottom: 12px;

    color: #004331;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 46px;
    line-height: 1;
}

.service-card:nth-child(3n) .service-card-icon {
    color: #d99517;
}

.service-card h2 {
    max-width: 190px;
    margin: 0 auto 12px;

    color: #1b3129;

    font-size: 16px;
    line-height: 1.25;
}

.service-card p {
    max-width: 230px;
    margin: 0 auto;

    color: #59635f;

    font-size: 12px;
    line-height: 1.65;
}


/* =================================
   HOA SECTION
================================= */

.hoa-section {
    padding: 25px 0 12px;
    background-color: #ffffff;
}

.hoa-card {
    display: grid;
    grid-template-columns: 80px 1.05fr 1.3fr 1.25fr;

    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            #f8f4eb,
            #fbfaf6
        );

    border: 1px solid #eee5d6;
    border-radius: 9px;
}

.hoa-icon {
    padding: 25px;

    color: #004331;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 50px;
    text-align: center;
}

.hoa-heading,
.hoa-description,
.hoa-extra {
    padding: 20px 28px;
}

.hoa-heading,
.hoa-description {
    border-right: 1px solid rgba(226, 160, 29, 0.45);
}

.hoa-heading p {
    margin: 0 0 5px;

    color: #d99517;

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.hoa-heading h2 {
    margin: 0;

    color: #17372d;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;
}

.hoa-description p,
.hoa-extra p {
    margin: 0;

    color: #4d5c56;

    font-size: 12px;
    line-height: 1.65;
}


/* =================================
   FACILITIES MANAGEMENT
================================= */

.facilities-section {
    padding: 12px 0 75px;
    background-color: #ffffff;
}

.facilities-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;

    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            #f7f4eb,
            #f2f7f3
        );

    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 59, 43, 0.08);
}

.facilities-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 355px;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.facilities-image-wrapper {
    overflow: hidden;
}

.facilities-image-wrapper:hover .facilities-image {
    transform: scale(1.04);
}

.facilities-content {
    padding: 50px;
}

.facilities-content h2 {
    margin: 0 0 16px;

    color: #163d31;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.1;
}

.facilities-content p:not(.facilities-label) {
    margin: 0 0 15px;

    color: #52605b;

    font-size: 14px;
    line-height: 1.7;
}

.facilities-button {
    display: inline-flex;
    min-height: 49px;
    margin-top: 10px;
    padding: 0 22px;

    align-items: center;
    gap: 16px;

    color: #ffffff;
    background-color: #004331;
    border: 1px solid #004331;
    border-radius: 4px;

    font-size: 13px;
    font-weight: 700;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.facilities-button:hover {
    color: #004331;
    background-color: #ffffff;
    transform: translateY(-2px);
}


/* =================================
   TABLET
================================= */

@media (max-width: 950px) {

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hoa-card {
        grid-template-columns: 80px 1fr 1fr;
    }

    .hoa-extra {
        grid-column: 1 / -1;
        border-top: 1px solid #e6dccb;
    }

    .facilities-card {
        grid-template-columns: 1fr;
    }

    .facilities-image {
        height: 400px;
        min-height: auto;
    }
}


/* =================================
   MOBILE
================================= */

@media (max-width: 600px) {

    .services-container,
    .services-hero-container {
        width: calc(100% - 28px);
    }

    .services-hero {
        min-height: 530px;

        align-items: flex-end;

        background-image:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.2) 0%,
                rgba(255, 255, 255, 0.75) 38%,
                rgba(255, 255, 255, 0.98) 68%,
                #ffffff 100%
            ),
            url("../images/services-hero.webp");

        background-position: center top;
    }

    .services-hero-content {
        padding: 200px 0 50px;
    }

    .services-hero-title {
        font-size: 44px;
        letter-spacing: -1.5px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
        padding: 32px 24px;
    }

    .hoa-card {
        grid-template-columns: 1fr;
    }

    .hoa-icon {
        padding-bottom: 5px;
    }

    .hoa-heading,
    .hoa-description,
    .hoa-extra {
        padding: 18px 24px;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid #e6dccb;
    }

    .hoa-extra {
        grid-column: auto;
        border-bottom: none;
    }

    .facilities-section {
        padding-bottom: 55px;
    }

    .facilities-image {
        height: 280px;
    }

    .facilities-content {
        padding: 32px 24px;
    }

    .facilities-content h2 {
        font-size: 35px;
    }

    .facilities-button {
        width: 100%;
        justify-content: center;
    }
}