/* =================================
   REGISTRATION AND PARTNERSHIP
================================= */

.registration-section {
    padding: 65px 0 30px;
    background-color: #f8f6f0;
}

.registration-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.registration-heading {
    margin-bottom: 24px;
    text-align: center;
}

.registration-heading h2 {
    margin: 0 0 8px;

    color: #163d31;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 3vw, 44px);
    font-weight: 400;
}

.registration-heading p {
    margin: 0;

    color: #56635d;

    font-size: 15px;
}

.registration-image {
    display: block;
    width: 100%;

    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 59, 43, 0.1);
}


/* =================================
   PARTNERSHIP CALL TO ACTION
================================= */

.partnership-cta {
    position: relative;

    color: #ffffff;
    background:
        linear-gradient(
            90deg,
            rgba(0, 53, 39, 0.98),
            rgba(0, 53, 39, 0.82)
        ),
        url("../images/services-hero.webp");

    background-position: center;
    background-size: cover;
}

.partnership-cta-container {
    width: min(1140px, calc(100% - 40px));
    min-height: 185px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.partnership-cta-content h2 {
    max-width: 610px;
    margin: 0 0 7px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 3.2vw, 47px);
    font-weight: 400;
    line-height: 1;
}

.partnership-cta-content p {
    margin: 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 16px;
}

.partnership-cta-buttons {
    display: flex;
    flex-shrink: 0;
    gap: 15px;
}

.partnership-button {
    display: inline-flex;
    min-height: 52px;
    padding: 0 24px;

    align-items: center;
    justify-content: center;
    gap: 15px;

    border: 1px solid;
    border-radius: 5px;

    font-size: 13px;
    font-weight: 700;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.partnership-button:hover {
    transform: translateY(-2px);
}

.partnership-button-gold {
    color: #17362c;
    background-color: #e2a01d;
    border-color: #e2a01d;
}

.partnership-button-gold:hover {
    color: #ffffff;
    background-color: #004331;
}

.partnership-button-outline {
    color: #ffffff;
    background-color: transparent;
    border-color: #ffffff;
}

.partnership-button-outline:hover {
    color: #004331;
    background-color: #ffffff;
}


/* =================================
   TABLET AND MOBILE
================================= */

@media (max-width: 850px) {

    .partnership-cta-container {
        padding: 45px 0;

        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {

    .registration-section {
        padding: 50px 0 25px;
    }

    .registration-container,
    .partnership-cta-container {
        width: calc(100% - 28px);
    }

    .registration-heading h2 {
        font-size: 34px;
    }

    .registration-heading p {
        font-size: 14px;
    }

    .registration-image {
        min-height: 170px;
        object-fit: cover;
        object-position: center;
    }

    .partnership-cta-content h2 {
        font-size: 35px;
    }

    .partnership-cta-buttons {
        width: 100%;
        flex-direction: column;
    }

    .partnership-button {
        width: 100%;
    }
}/* =================================
   SERVICES PAGE SECTION ORDER
================================= */

main {
    display: flex;
    flex-direction: column;
}

/* All normal Services sections remain first */

.services-hero,
.main-services-section,
.hoa-section,
.facilities-section {
    order: 0;
}

/* Green partnership section comes next */

.partnership-cta {
    order: 1;
}

/* Registration section separates CTA and footer */

.registration-section {
    order: 2;
}