@charset "UTF-8";
@import '../stickyNavigation.css';
@import '../hero2.css';
@import '../footer.css';

/* VARIABLES */
/* --------------------- */
/* --------------------- */
/* --------------------- */
:root {
    --desktop-title-size: clamp(22px, 2vw, 24px);
    --desktop-subtitle-size: clamp(20px, 1.3vw, 22px);
    --desktop-paragraph-size: clamp(16px, 1.2vw, 20px);

    --tablet-title-size: clamp(0.9rem, 2.3vw, 2rem);
    --tablet-subtitle-size: clamp(0.9rem, 2vw, 2rem);
    --tablet-font-size: clamp(0.9rem, 1.2vw, 1.5rem);

    --mobile-title-size: 18px;
    --mobile-subtitle-size: 14px;
    --mobile-font-size: 12px;

    --color-primary: #000000;
    --color-secondary: #000000;
    --color-secondary-light: #709B84;
    --color-secondary-dark: #000000;
    --color-background: transparent;
}

/* removes all default padding and margins */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.kanji-font {
    font-family: 'Zen Old Mincho';
}

/* FACILITY */
/* ---------------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------------- */

/* formatting for grid navigation */
.split {
    display: flex;
    flex-direction: column;
    width: min(100vw, 1200px);
    padding: 100px 40px;
    gap: 50px;
    justify-self: center;
    align-self: center;
}

.top-info {
    padding: 0 !important;
    width: 100% !important;
    text-align: left;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.facility-grid> :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    /* Span both columns */
    justify-self: center;
    /* Center the item */
    width: 50%;
}


.image-wrapper {
    position: relative;
    overflow: hidden;
    /* prevents scaled image from spilling out */
    display: block;
}

.facility-grid-image {
    width: 100%;
    height: auto;
    max-height: 240px;
    display: block;
    transition: transform 0.4s ease;
    /* smooth scaling */
    object-fit: cover;
}

.image-wrapper:hover .facility-grid-image {
    transform: scale(1.05);
    /* zoom in slightly on hover */
}

.facility-section-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Vertical label styling */
.vertical-label {
    position: absolute;
    bottom: 0;
    right: 0;
    writing-mode: vertical-rl;
    text-orientation: upright;
    text-align: center;
    font-size: 16px;
    height: 100%;
    color: white;
    background-color: rgba(20, 71, 56, 0.8);
    padding: 12px 2px;
    font-family: 'Zen Old Mincho', serif;
    z-index: 2;
}

.top-info h2 {
    color: #144738;
    font-size: var(--desktop-title-size);
    font-weight: 100;
}

.coming-soon-wrapper {
    margin: 45px 0;
    position: relative;
    display: inline-block;
    max-height: 550px;
    object-fit: cover;
    overflow: hidden;
}

.coming-soon {
    position: absolute;
    top: 93%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    font-family: 'Federo', serif;
    font-size: 30px;
    padding: 5px;
    white-space: nowrap;
}

.coming-soon-sub-text {
    font-size: 8px;
    display: block;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}


.top-info h3 {
    color: #333333;
    font-size: var(--desktop-paragraph-size) !important;
    line-height: 160% !important;
    font-weight: 100;
}

.see-more-button {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #144738;
    border-radius: 50px;
    font-family: 'Zen Old Mincho';
    padding: 5px;
    border: solid 1px;
    transition: 1s;
    width: 150px;
    height: 38px;
    letter-spacing: 0.1em;
    background-color: transparent;
    font-size: var(--desktop-paragraph-size);
    margin-top: 15px;
}

.see-more-button:hover {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: rgba(20, 71, 56, 1);
    transition: 0.5s;
    border: solid rgba(20, 71, 56, 1) 1px;
    font-size: var(--desktop-paragraph-size);
}

.facility-text-title {
    font-family: 'Zen Old Mincho';
    color: rgba(20, 71, 56, 0.8);
    font-weight: 100;
    font-size: var(--desktop-title-size);
    text-align: center;
}

.facility-text-text {
    font-family: 'Zen Old Mincho';
    font-size: var(--desktop-paragraph-size);
    color: #333333;
    text-align: center;
}

.facility-paragraph {
    font-family: 'Zen Old Mincho';
    font-size: var(--desktop-paragraph-size);
    color: #333333;
}

/* GENERAL FORMATTING FOR CONTAINER SECTIONS */
.single-facility-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: center;
    position: relative;
    z-index: 2;
    margin: auto;
    width: 100vw;
    height: auto;
}

.single-facility-thumbnail {
    width: 100%;
    max-height: 290px;
    /* fixed height, not just max-height */
    overflow: hidden;
    position: relative;
}

.single-facility-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    display: block;
}



/* container for image on the right, text on the left section */
.single-facility-item {
    padding: 100px 40px;
    display: flex;
    flex-direction: row-reverse;
    max-width: 100%;
    width: 100%;
    height: auto;
    align-items: center;
    justify-self: center;
    justify-items: center;
    gap: 5%;
    overflow: hidden;
    justify-content: center;
}

.special-padding {
    padding: 0;
}

.title-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.single-facility-item-with-text {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    padding: 100px 40px;
    width: 100%;
    height: auto;
    align-items: center;
    justify-self: center;
    justify-items: center;
    gap: 30px;
    overflow: hidden;
}

.facility-text {
    display: flex;
    flex-direction: column;
    width: 47.5%;
    gap: 10px;
}

/* two items in container */
.single-facility-thumbnail {
    width: 47.5%;
    overflow: hidden;
    position: relative;
}

.single-facility-title {
    font-family: 'Zen Old Mincho';
    color: rgba(20, 71, 56, 0.8);
    font-weight: 100;
    font-size: var(--desktop-title-size);
}

li {
    font-family: 'Zen Old Mincho';
    font-size: var(--desktop-paragraph-size);
}

/* TABLET */
/* --------------------- */
/* --------------------- */
/* --------------------- */
@media (max-width: 1024px) and (min-width: 768px) {
    .single-facility-title {
        font-size: var(--tablet-title-size);
    }

    .single-facility-date {
        font-size: var(--tablet-paragraph-size);
    }

    .single-facility-content {
        font-size: var(--tablet-font-size);
    }
}

/* PHONE */
/* --------------------- */
/* --------------------- */
/* --------------------- */
@media (max-width: 767px) {
    .single-facility-content {
        margin: auto;
    }

    .facility-grid-image {
        max-height: 120px;
    }

    .facility-grid> :last-child:nth-child(odd) {
        width: 100%;
    }

    .split {
        padding: 10vw 4vw;
    }

    .facility-grid {
        grid-template-columns: 1fr;
    }

    .vertical-label {
        font-size: 12px;
    }

    .single-facility-item-with-text {
        padding: 0;
    }

    .facility-text-title {
        font-size: var(--mobile-title-size);
    }

    .facility-text-text,
    .facility-paragraph {
        font-size: var(--mobile-font-size);
    }

    h1,
    h2 {
        font-size: var(--mobile-title-size) !important;
    }

    li {
        font-size: var(--mobile-font-size);
    }

    .single-facility-text {
        width: 100%;
    }

    .single-facility-container {
        padding: 10vw 4vw;
    }

    .single-facility-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        width: 100%;
        margin: auto;
    }

    .single-facility-thumbnail {
        width: 100%;
        padding-bottom: 10px;
    }

    .facility-text {
        width: 100%;
    }

    .single-facility-title {
        font-size: var(--mobile-title-size);
    }

    .single-facility-date {
        font-size: var(--mobile-paragraph-size);
    }

    .single-facility-content {
        font-size: var(--mobile-font-size);
    }

    .single-facility-thumbnail {
        width: 100%;
        height: 350px;
        /* fixed height, not just max-height */
        overflow: hidden;
        position: relative;
    }
}