/* world-gateway.css */


/* ============================== */
/* PAGE */
/* ============================== */

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
}

.world-gateway-page {
    background: #050505;
}


/* ============================== */
/* GATEWAY */
/* ============================== */

.world-gateway {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    width: 100%;
    min-height: calc(100vh - 64px - 100px);

    margin-top: 64px;

    overflow: hidden;
}


/* ============================== */
/* CARDS */
/* ============================== */

.world-gateway-card {
    position: relative;

    display: block;

    min-height: calc(100vh - 64px - 100px);

    overflow: hidden;

    text-decoration: none;
    color: #ece4d5;

    background: #0a0a0a;
}

.world-gateway-card::after {
    content: "";

    position: absolute;
    inset: 0px;

    border: 2px solid rgba(255, 255, 255, 0);

    z-index: 10;
    pointer-events: none;

    transition: border-color 0.35s ease;
}

.world-gateway-card:hover::after,
.world-gateway-card:focus-visible::after {
    border-color: rgba(255, 255, 255, 0.85);
}

/* ============================== */
/* IMAGE */
/* ============================== */

.world-gateway-card-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.8s ease,
        filter 0.8s ease;
}


/* ============================== */
/* OVERLAY */
/* ============================== */

.world-gateway-card-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.08) 25%,
            rgba(0, 0, 0, 0.25) 55%,
            rgba(0, 0, 0, 0.85) 100%
        );

    transition: background 0.5s ease;
}


/* ============================== */
/* CONTENT */
/* ============================== */

.world-gateway-card-content {
    position: absolute;

    left: 40px;
    right: 40px;
    bottom: 55px;

    z-index: 2;

    transition: transform 0.5s ease;
}

.world-gateway-card-content h1 {
    margin: 0 0 10px;

    font-family: "Cinzel", serif;
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 600;

    letter-spacing: 3px;
    text-transform: uppercase;

    color: #ece4d5;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.5);
}

.world-gateway-card-content p {
    margin: 0;

    max-width: 360px;

    font-family: "Lora", serif;
    font-size: 1rem;
    line-height: 1.5;

    color: rgba(236, 228, 213, 0.8);
}


/* ============================== */
/* HOVER */
/* ============================== */

.world-gateway-card:hover .world-gateway-card-image,
.world-gateway-card:focus-visible .world-gateway-card-image {
    transform: scale(1.045);
    filter: brightness(1.08);
}

.world-gateway-card:hover .world-gateway-card-content,
.world-gateway-card:focus-visible .world-gateway-card-content {
    transform: translateY(-8px);
}

.world-gateway-card:hover .world-gateway-card-overlay {
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.02) 25%,
            rgba(0, 0, 0, 0.18) 55%,
            rgba(0, 0, 0, 0.78) 100%
        );
}


/* ============================== */
/* KEYBOARD FOCUS */
/* ============================== */

.world-gateway-card:focus-visible {
    outline: 2px solid #c2baac;
    outline-offset: -4px;
}


/* ============================== */
/* MOBILE */
/* ============================== */

@media (max-width: 800px) {

    .world-gateway {
        grid-template-columns: 1fr;

        min-height: auto;
    }

    .world-gateway-card {
        min-height: 70vh;
    }

    .world-gateway-card-content {
        left: 25px;
        right: 25px;
        bottom: 35px;
    }

}