/* ==================================================
   CAMP RIVERSTONE
   AMENITIES SECTION
================================================== */

.amenities {
    position: relative;
    padding: 110px 0;
    background: #f7faf6;
    overflow: hidden;
}


/* ==================================================
   DECORATIVE BACKGROUND
================================================== */

.amenities::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    top: -180px;
    left: -180px;

    border-radius: 50%;

    background: rgba(30, 86, 49, 0.06);

    pointer-events: none;
}


.amenities::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: -150px;
    bottom: -150px;

    border-radius: 50%;

    background: rgba(30, 86, 49, 0.05);

    pointer-events: none;
}


/* ==================================================
   CONTAINER
================================================== */

.amenities .container {
    position: relative;
    z-index: 2;
}


/* ==================================================
   SECTION TITLE
================================================== */

.amenities .section-title {
    max-width: 850px;

    margin: 0 auto 65px;

    text-align: center;
}


.amenities .section-title span {
    display: inline-block;

    margin-bottom: 15px;

    color: #1e5631;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 5px;
}


.amenities .section-title h2 {
    margin: 0 auto 20px;

    max-width: 850px;

    color: #1e5631;

    font-size: clamp(38px, 5vw, 64px);

    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -1.5px;
}


.amenities .section-title p {
    max-width: 700px;

    margin: 0 auto;

    color: #69746b;

    font-size: 17px;

    line-height: 1.8;
}


/* ==================================================
   AMENITIES GRID
================================================== */

.amenities-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;

    max-width: 1200px;

    margin: 0 auto;
}


/* ==================================================
   AMENITY CARD
================================================== */

.amenity-card {

    position: relative;

    min-height: 260px;

    padding: 32px;

    background: #ffffff;

    border: 1px solid rgba(30, 86, 49, 0.08);

    border-radius: 24px;

    box-shadow:
        0 10px 35px rgba(20, 50, 30, 0.06);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


/* TOP ACCENT */

.amenity-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: #1e5631;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.35s ease;
}


/* BACKGROUND NUMBER / DECORATION */

.amenity-card::after {

    content: "";

    position: absolute;

    width: 110px;
    height: 110px;

    right: -40px;
    bottom: -40px;

    border-radius: 50%;

    background: rgba(30, 86, 49, 0.045);

    transition:
        transform 0.4s ease,
        background 0.4s ease;
}


/* ==================================================
   HOVER
================================================== */

.amenity-card:hover {

    transform: translateY(-10px);

    border-color: rgba(30, 86, 49, 0.18);

    box-shadow:
        0 22px 45px rgba(20, 60, 35, 0.12);
}


.amenity-card:hover::before {

    transform: scaleX(1);
}


.amenity-card:hover::after {

    transform: scale(1.8);

    background: rgba(30, 86, 49, 0.07);
}


/* ==================================================
   ICON
================================================== */

.amenity-icon {

    position: relative;

    z-index: 2;

    width: 64px;
    height: 64px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border-radius: 18px;

    background: #eaf4ec;

    color: #1e5631;

    font-size: 26px;

    transition:
        transform 0.35s ease,
        background 0.35s ease,
        color 0.35s ease;
}


.amenity-card:hover .amenity-icon {

    transform: rotate(-5deg) scale(1.08);

    background: #1e5631;

    color: #ffffff;
}


/* ==================================================
   TITLE
================================================== */

.amenity-card h3 {

    position: relative;

    z-index: 2;

    margin: 0 0 12px;

    color: #1b2b20;

    font-size: 21px;

    line-height: 1.3;

    font-weight: 700;

    transition: color 0.3s ease;
}


.amenity-card:hover h3 {

    color: #1e5631;
}


/* ==================================================
   DESCRIPTION
================================================== */

.amenity-card p {

    position: relative;

    z-index: 2;

    margin: 0;

    max-width: 300px;

    color: #6d756f;

    font-size: 15px;

    line-height: 1.7;
}


/* ==================================================
   SMALL ARROW
================================================== */

.amenity-card .amenity-arrow {

    position: absolute;

    right: 28px;
    bottom: 25px;

    z-index: 3;

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f0f5f1;

    color: #1e5631;

    font-size: 13px;

    opacity: 0;

    transform: translateX(-8px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


.amenity-card:hover .amenity-arrow {

    opacity: 1;

    transform: translateX(0);
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1000px) {

    .amenities {

        padding: 90px 0;

    }


    .amenities-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}


@media (max-width: 650px) {

    .amenities {

        padding: 75px 0;

    }


    .amenities .section-title {

        margin-bottom: 45px;

    }


    .amenities .section-title span {

        font-size: 11px;

        letter-spacing: 3px;

    }


    .amenities .section-title h2 {

        font-size: 36px;

        letter-spacing: -0.8px;

    }


    .amenities .section-title p {

        font-size: 15px;

    }


    .amenities-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }


    .amenity-card {

        min-height: auto;

        padding: 27px;

    }

}