.amenities-page {
    --am-green: #0f5234;
    --am-green-deep: #093d27;
    --am-green-soft: #edf7f1;
    --am-orange: #f06449;
    --am-ink: #14251d;
    --am-muted: #6b7a73;
    --am-line: #dce8e1;
    color: var(--am-ink);
    padding: 8px 0 58px;
}

.amenities-page *,
.amenities-page *::before,
.amenities-page *::after {
    box-sizing: border-box;
}

.amenities-hero {
    position: relative;
    display: grid;
    min-height: 300px;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 45px;
    align-items: center;
    overflow: hidden;
    padding: 55px 58px;
    border-radius: 4px;
    background:
        linear-gradient(135deg, rgba(7, 48, 30, .98), rgba(22, 105, 68, .94)),
        url("../img/overlay.jpg") center / cover;
    color: #fff;
}

.amenities-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--am-orange);
}

.amenities-hero > * {
    position: relative;
    z-index: 1;
}

.amenities-kicker,
.amenities-section-heading span,
.amenities-assurance span {
    display: block;
    color: #ffab98;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.amenities-kicker {
    margin-bottom: 11px;
}

.amenities-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.12;
}

.amenities-hero p {
    max-width: 900px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    line-height: 1.85;
}

.amenities-hero-mark {
    display: flex;
    min-height: 175px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 50%;
    background: rgba(255, 255, 255, .075);
    box-shadow: inset 0 0 0 12px rgba(255, 255, 255, .025);
    text-align: center;
}

.amenities-hero-mark svg {
    width: 45px;
    height: 45px;
    margin-bottom: 13px;
    color: #ffb09d;
    stroke-width: 1.45;
}

.amenities-hero-mark span {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.5;
    text-transform: uppercase;
}

.amenities-overview {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: -25px 34px 58px;
    border: 1px solid var(--am-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 82, 52, .09);
}

.amenities-overview article {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 3px 12px;
    padding: 20px;
    border-right: 1px solid var(--am-line);
}

.amenities-overview article:last-child {
    border-right: 0;
}

.amenities-overview svg {
    width: 25px;
    height: 25px;
    grid-row: span 2;
    color: var(--am-orange);
    stroke-width: 1.7;
}

.amenities-overview strong {
    color: var(--am-green-deep);
    font-size: 14px;
    line-height: 1.25;
}

.amenities-overview span {
    color: var(--am-muted);
    font-size: 11px;
}

.facility-group + .facility-group {
    margin-top: 48px;
}

.amenities-section-heading {
    display: grid;
    grid-template-columns: 48px minmax(260px, .8fr) minmax(320px, 1fr);
    gap: 17px;
    align-items: center;
    margin-bottom: 24px;
}

.amenities-heading-icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--am-green-soft);
    color: var(--am-green);
}

.amenities-heading-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.6;
}

.amenities-section-heading span {
    margin-bottom: 3px;
    color: var(--am-orange);
}

.amenities-section-heading h2,
.amenities-assurance h2 {
    margin: 0;
    color: var(--am-green-deep);
    font-weight: 700;
}

.amenities-section-heading h2 {
    font-size: 27px;
}

.amenities-section-heading > p {
    margin: 0;
    color: var(--am-muted);
    font-size: 13px;
    line-height: 1.7;
    text-align: right;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.facility-grid article {
    position: relative;
    display: flex;
    min-height: 138px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--am-line);
    border-radius: 5px;
    background: linear-gradient(145deg, #f8fbf9, #fff);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.facility-grid article:hover {
    transform: translateY(-3px);
    border-color: #c4dbce;
    box-shadow: 0 12px 25px rgba(16, 71, 47, .08);
}

.facility-grid article::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: var(--am-green-soft);
}

.facility-grid svg {
    width: 27px;
    height: 27px;
    margin-bottom: 18px;
    color: var(--am-green);
    stroke-width: 1.55;
}

.facility-grid span {
    position: absolute;
    top: 17px;
    right: 18px;
    color: #b6c7be;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}

.facility-grid h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--am-green-deep);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.42;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.community-grid article {
    display: grid;
    min-height: 112px;
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 15px;
    align-items: start;
    padding: 21px;
    border: 1px solid var(--am-line);
    border-radius: 5px;
    background: #fff;
}

.community-grid svg {
    width: 43px;
    height: 43px;
    padding: 10px;
    border-radius: 50%;
    background: #fff0eb;
    color: var(--am-orange);
    stroke-width: 1.6;
}

.community-grid h3 {
    margin: 1px 0 7px;
    color: var(--am-green-deep);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.community-grid p {
    margin: 0;
    color: var(--am-muted);
    font-size: 12px;
    line-height: 1.55;
}

.amenities-assurance {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin-top: 43px;
    padding: 33px 37px;
    border-radius: 6px;
    background: linear-gradient(120deg, var(--am-green-deep), #176b45);
    color: #fff;
}

.amenities-assurance > svg {
    width: 58px;
    height: 58px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    stroke-width: 1.5;
}

.amenities-assurance span {
    margin-bottom: 5px;
}

.amenities-assurance h2 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 23px;
}

.amenities-assurance p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 1199px) {
    .amenities-hero {
        grid-template-columns: minmax(0, 1fr) 205px;
        padding: 47px 44px;
    }

    .facility-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .amenities-hero {
        grid-template-columns: 1fr;
    }

    .amenities-hero-mark {
        min-height: auto;
        flex-direction: row;
        gap: 14px;
        padding: 20px;
        border-radius: 10px;
    }

    .amenities-hero-mark svg {
        margin: 0;
    }

    .amenities-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .amenities-overview article:nth-child(2) {
        border-right: 0;
    }

    .amenities-overview article:nth-child(-n+2) {
        border-bottom: 1px solid var(--am-line);
    }

    .amenities-section-heading {
        grid-template-columns: 48px 1fr;
    }

    .amenities-section-heading > p {
        grid-column: 2;
        text-align: left;
    }

    .community-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .amenities-page {
        padding-bottom: 38px;
    }

    .amenities-hero {
        padding: 36px 25px;
    }

    .amenities-hero h1 {
        font-size: 31px;
    }

    .amenities-hero p {
        font-size: 14px;
        line-height: 1.7;
    }

    .amenities-overview {
        margin: 16px 0 42px;
        box-shadow: none;
    }

    .facility-grid,
    .community-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .amenities-assurance {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }
}

@media (max-width: 479px) {
    .amenities-hero {
        margin-right: -15px;
        margin-left: -15px;
        border-radius: 0;
    }

    .amenities-hero h1 {
        font-size: 28px;
    }

    .amenities-overview,
    .facility-grid,
    .community-grid {
        grid-template-columns: 1fr;
    }

    .amenities-overview article,
    .amenities-overview article:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--am-line);
    }

    .amenities-overview article:last-child {
        border-bottom: 0;
    }

    .amenities-section-heading {
        grid-template-columns: 42px 1fr;
        gap: 13px;
    }

    .amenities-heading-icon {
        width: 42px;
        height: 42px;
    }

    .amenities-section-heading h2 {
        font-size: 23px;
    }

    .community-grid article {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .facility-grid article {
        transition: none;
    }
}
