/* =========================================================
   FACILITIES PAGE
   ========================================================= */


/* ---------------------------------------------------------
   FACILITIES HERO
   --------------------------------------------------------- */

.facilities-hero {

    height: 430px;

    display: flex;

    align-items: center;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--navy) 0%,
            var(--navy-dark) 65%,
            #092d52 100%
        );

}

.facilities-hero::before {

    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    border: 1px solid
        rgba(242, 182, 50, 0.18);

    border-radius: 50%;

    right: -220px;
    top: -300px;

}


.facilities-hero::after {

    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    border: 1px solid
        rgba(255,255,255,0.07);

    border-radius: 50%;

    right: 170px;
    bottom: -250px;

}


.facilities-hero .container {

    position: relative;
    z-index: 2;

}


.facilities-hero h1 {

    color: var(--white);

    font-size: clamp(3rem, 6vw, 5rem);

    line-height: 1.02;

    margin-top: 15px;

}


.facilities-hero p {

    color: rgba(255,255,255,0.78);

    font-size: 17px;

    margin-top: 25px;

}


/* ---------------------------------------------------------
   FACILITIES SHOWCASE
   --------------------------------------------------------- */

.facilities-showcase {

    padding: 100px 0;

    background: var(--white);

}


.facilities-showcase .container {

    display: flex;

    flex-direction: column;

    gap: 70px;

}


/* ---------------------------------------------------------
   FACILITY FEATURE
   --------------------------------------------------------- */

.facility-feature {

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(0, .85fr);

    min-height: 430px;

    background: var(--white);

    border: 1px solid var(--gray-200);

    box-shadow: var(--shadow-sm);

    overflow: hidden;

    transition: var(--transition);

}


.facility-feature:hover {

    box-shadow: var(--shadow-md);

    transform: translateY(-4px);

}


/* ---------------------------------------------------------
   REVERSE LAYOUT
   --------------------------------------------------------- */

.facility-feature.reverse {

    grid-template-columns:
        minmax(0, .85fr)
        minmax(0, 1.15fr);

}


.facility-feature.reverse .facility-image {

    order: 2;

}


.facility-feature.reverse .facility-content {

    order: 1;

}


/* ---------------------------------------------------------
   FACILITY IMAGE
   --------------------------------------------------------- */

.facility-image {

    position: relative;

    min-height: 430px;

    overflow: hidden;

    background: var(--navy);

}


.facility-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 21, 47, .45),
            transparent 45%
        );

    pointer-events: none;

}


.facility-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .5s ease;

}


.facility-feature:hover .facility-image img {

    transform: scale(1.04);

}


/* ---------------------------------------------------------
   FACILITY NUMBER
   --------------------------------------------------------- */

.facility-number {

    position: absolute;

    z-index: 2;

    top: 25px;

    left: 25px;

    width: 52px;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--navy);

    color: var(--gold);

    font-size: 15px;

    font-weight: 800;

    border: 1px solid rgba(
        255,
        255,
        255,
        .35
    );

}


/* ---------------------------------------------------------
   FACILITY CONTENT
   --------------------------------------------------------- */

.facility-content {

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 55px;

    position: relative;

}


.facility-content::before {

    content: "";

    position: absolute;

    top: 55px;

    left: 0;

    width: 4px;

    height: 65px;

    background: var(--gold);

}


.facility-label {

    display: block;

    margin-bottom: 13px;

    color: var(--gold);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

}


.facility-content h2 {

    max-width: 480px;

    margin-bottom: 18px;

    font-size: clamp(
        2rem,
        3vw,
        3rem
    );

    line-height: 1.1;

}


.facility-content p {

    max-width: 480px;

    color: var(--gray-500);

    font-size: 15px;

    line-height: 1.7;

}


/* ---------------------------------------------------------
   FACILITY BUILDING
   --------------------------------------------------------- */

.facility-building {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 20px;

    padding: 12px 0;

    border-top: 1px solid var(--gray-200);

    border-bottom: 1px solid var(--gray-200);

}

.facility-building-label {

    flex-shrink: 0;

    color: var(--gold);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

}

.facility-building-name {

    color: var(--navy);

    font-size: 12px;

    font-weight: 700;

    line-height: 1.5;

}


/* ---------------------------------------------------------
   FACILITY LINK
   --------------------------------------------------------- */

.facility-link {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    width: fit-content;

    margin-top: 30px;

    padding-bottom: 7px;

    border-bottom: 2px solid var(--gold);

    color: var(--navy);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .7px;

    transition: var(--transition);

}


.facility-link span {

    color: var(--gold);

    font-size: 18px;

    line-height: 1;

    transition: var(--transition);

}


.facility-link:hover {

    color: var(--gold);

}


.facility-link:hover span {

    transform: translateX(5px);

}


/* ---------------------------------------------------------
   CLOSING SECTION
   --------------------------------------------------------- */

.facilities-closing {

    padding: 0 0 100px;

}


.facilities-closing-inner {

    position: relative;

    padding: 75px 80px;

    background: var(--navy);

    overflow: hidden;

}


.facilities-closing-inner::after {

    content: "RC";

    position: absolute;

    right: -30px;

    bottom: -90px;

    color: rgba(
        255,
        255,
        255,
        .035
    );

    font-family: "Playfair Display", serif;

    font-size: 260px;

    font-weight: 700;

    line-height: 1;

}


.facilities-closing-inner .section-label {

    color: var(--gold-light);

}


.facilities-closing-inner h2 {

    position: relative;

    z-index: 1;

    margin-top: 12px;

    color: var(--white);

    font-size: clamp(
        2.5rem,
        5vw,
        4.5rem
    );

    line-height: 1.02;

}


.facilities-closing-inner p {

    position: relative;

    z-index: 1;

    max-width: 650px;

    margin-top: 20px;

    color: #e5ebf2;

    line-height: 1.7;

}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .facility-feature,
    .facility-feature.reverse {

        grid-template-columns: 1fr;

    }


    .facility-feature.reverse .facility-image,
    .facility-feature.reverse .facility-content {

        order: initial;

    }


    .facility-image {

        min-height: 350px;

    }


    .facility-content {

        min-height: 360px;

        padding: 45px;

    }


    .facility-content::before {

        top: 0;

        left: 45px;

        width: 65px;

        height: 4px;

    }


    .facilities-showcase {

        padding: 70px 0;

    }


    .facilities-showcase .container {

        gap: 50px;

    }

}


@media (max-width: 600px) {

    .facilities-hero {

        padding: 60px 0;

    }


    .facilities-hero h1 {

        font-size: 2.7rem;

    }


    .facilities-hero p {

        font-size: 15px;

    }


    .facilities-showcase {

        padding: 50px 0;

    }


    .facility-image {

        min-height: 270px;

    }


    .facility-content {

        min-height: auto;

        padding: 40px 30px;

    }


    .facility-content::before {

        left: 30px;

    }


    .facility-number {

        top: 18px;

        left: 18px;

        width: 45px;

        height: 45px;

    }


    .facility-content h2 {

        font-size: 2rem;

    }


    .facilities-closing {

        padding-bottom: 60px;

    }


    .facilities-closing-inner {

        padding: 50px 30px;

    }

}
