﻿/* ===== footer.css ===== */
/* Reset / base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    background: #f4f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* footer main container */
.site-footer {
    background: #0b2a3c;
    color: #e9f0f5;
    padding: 2rem 1rem 1rem;
    width: 100%;
    border-top: 4px solid #d4a34b;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.08);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem 1.5rem;
    align-items: start;
}

/* ===== brand / logo ===== */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-wrapper {
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.company-logo {
    max-width: 140px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.brand-text h2 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #f5e7c8;
    margin: 0.25rem 0 0.1rem;
    line-height: 1.2;
}

.tagline {
    font-size: 0.85rem;
    color: #b8cfdd;
    letter-spacing: 1px;
}

/* headings */
.footer-links h4,
.footer-products h4,
.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
    color: #f0dbaa;
    border-bottom: 2px solid #3e6a7d;
    padding-bottom: 0.4rem;
    display: inline-block;
}

/* lists */
.nav-links,
.product-list {
    list-style: none;
}

    .nav-links li,
    .product-list li {
        margin-bottom: 0.5rem;
    }

    .nav-links a,
    .product-list a {
        color: #d6e5ef;
        text-decoration: none;
        font-size: 0.95rem;
        transition: color 0.2s, padding-left 0.2s;
        display: inline-block;
    }

        .nav-links a:hover,
        .product-list a:hover {
            color: #f7d98c;
            padding-left: 6px;
        }

/* address */
.company-address {
    font-style: normal;
    line-height: 1.7;
    font-size: 0.95rem;
    color: #d6e5ef;
    margin-bottom: 1rem;
}

    .company-address strong {
        color: #f5e7c8;
    }

.contact-phone,
.contact-email {
    display: block;
    margin-top: 0.2rem;
}

/* ===== FOOTER BOTTOM BAR ===== */
.footer-bottom {
    border-top: 1px solid #2f566b;
    margin-top: 2rem;
    padding-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    gap: 0.8rem 1.5rem;
}

.footer-bottom-left p {
    font-size: 0.85rem;
    color: #b0cbd9;
    margin: 0;
}

.footer-bottom-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.6rem;
    font-size: 0.85rem;
    color: #b0cbd9;
}

.hosted-by-text {
    color: #b0cbd9;
}

.hosted-link {
    color: #f7d98c;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

    .hosted-link:hover {
        color: #ffeaaf;
        text-decoration: underline;
    }

.redirect-link {
    background: #1a3b4d;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    border: 1px solid #3a6a7e;
    font-size: 0.75rem;
    display: inline-block;
}

    .redirect-link a {
        color: #cfe0ed;
        text-decoration: none;
        transition: color 0.2s;
        word-break: break-all;
    }

        .redirect-link a:hover {
            color: #f7d98c;
            text-decoration: underline;
        }

/* ===== MOBILE RESPONSIVE ===== */
@media screen and (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.8rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }

    .logo-wrapper {
        margin-bottom: 0.25rem;
    }

    .brand-text h2 {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-bottom-right {
        justify-content: center;
    }

    .redirect-link {
        display: inline-block;
        margin-top: 0.2rem;
    }
}

@media screen and (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem 0;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .brand-text h2 {
        font-size: 1.4rem;
    }

    .company-logo {
        max-width: 120px;
    }

    .footer-links,
    .footer-products,
    .footer-contact {
        text-align: center;
    }

        .footer-links h4,
        .footer-products h4,
        .footer-contact h4 {
            display: inline-block;
            border-bottom: 2px solid #3e6a7d;
            padding-bottom: 0.3rem;
        }

    .nav-links a,
    .product-list a {
        font-size: 1rem;
    }

    .footer-bottom-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }

    .redirect-link {
        width: 100%;
        text-align: center;
    }
}

/* extra small screens */
@media screen and (max-width: 380px) {
    .footer-container {
        padding: 0 0.25rem;
    }

    .company-logo {
        max-width: 100px;
    }

    .brand-text h2 {
        font-size: 1.2rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }

    .redirect-link {
        font-size: 0.7rem;
        padding: 0.15rem 0.6rem;
    }
}
