/* =====================================================
   FOOTER & COPYRIGHT SECTION (AS GAMES)
===================================================== */

.site-footer {
    position: relative;
    font-family: inherit;
    color: var(--text-dark);
}

/* =====================================================
   FOOTER CONTACT CARDS (TOP SECTION)
===================================================== */

.footer-contact-section {
    position: relative;
    padding: 90px 0 85px;
    background: var(--white);
}

.footer-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-contact-card {
    text-align: center;
    position: relative;
    padding: 5px 20px;
}

.footer-contact-card:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -35px;
    top: 25px;
    height: 110px;
    width: 1px;
    background: var(--border-color);
}

.footer-contact-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 27px;
    border-radius: var(--radius-custom);
    transition: transform .35s ease, border-radius .35s ease;
}

.footer-contact-card:hover .footer-contact-icon {
    transform: translateY(-7px) rotate(-2deg);
    border-radius: 15px 0 15px 0;
}

.address-icon { background: var(--accent-green); }
.phone-icon { background: var(--accent-pink); }
.email-icon { background: var(--accent-teal); }

.footer-contact-card h4 {
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
}

.address-icon ~ h4 { color: var(--accent-green); }
.phone-icon ~ h4 { color: var(--accent-pink); }
.email-icon ~ h4 { color: var(--accent-teal); }

.footer-contact-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.footer-contact-card p a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact-card p a:hover {
    color: var(--primary-color);
}

/* =====================================================
   MAIN FOOTER SECTION
===================================================== */

.footer-main {
    position: relative;
    padding: 75px 0 60px;
    background-color: var(--accent-dark-teal);
    background-image: linear-gradient(rgba(70, 190, 173, .85), rgba(70, 190, 173, .85)), url(../images/footer-pattern.png);
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
    overflow: hidden;
    background-position: center;
}

.footer-main::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 18px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, .85) 0,
        rgba(255, 255, 255, .85) 45%,
        transparent 47%
    );
    background-size: 28px 15px;
    opacity: .7;
}

/* BRAND COLUMN */
.footer-brand {
    max-width: 330px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, .95);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.footer-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.footer-brand p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-4px);
}

/* NAVIGATION COLUMNS */
.footer-column h5 {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.footer-title-line {
    width: 38px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* CONTACT LIST COLUMN */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-list a,
.footer-contact-list div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    transition: var(--transition-fast);
}

.footer-contact-list a:hover {
    color: var(--secondary-color);
}

.footer-contact-list i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--white);
    flex-shrink: 0;
}

/* =====================================================
   COPYRIGHT BOTTOM BAR
===================================================== */

.footer-bottom {
    background-color: #275249;
    padding: 22px 0;
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

.footer-bottom-inner p span {
    color: var(--secondary-color);
    font-weight: 600;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.4);
}

/* =====================================================
   BACK TO TOP BUTTON
===================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-4px);
}

/* =====================================================
   RESPONSIVE MEDIA QUERIES
===================================================== */
@media (max-width: 991px) {
    .footer-contact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .footer-contact-card {
        padding: 5px 10px;
    }

    .footer-contact-card:not(:last-child)::after {
        right: -12px;
    }

    .footer-main {
        padding: 60px 0 45px;
    }

    .footer-column {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .footer-contact-section {
        padding: 50px 0 45px;
    }

    .footer-contact-grid {
        grid-template-columns: 1fr !important;
        gap: 35px;
    }

    .footer-contact-card {
        padding: 0;
    }

    .footer-contact-card:not(:last-child)::after {
        display: none !important;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
        margin-bottom: 35px;
    }

    .footer-logo {
        margin: 0 auto 15px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 10px;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 17px;
    }
}