﻿/* ==========================================================================
   FOOTER - LIGHT PROFESSIONAL — SIEGWART GOVERNMENT INSTITUTION
   Clean, structured, authoritative — Navy & Blue palette
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --f-bg: #f0f4f9;
    --f-bg2: #e6ecf5;
    --f-white: #ffffff;
    --f-navy: #002D62;
    --f-navy-dark: #001b3d;
    --f-blue: #0060B6;
    --f-blue-mid: #0077cc;
    --f-blue-lt: #ddeeff;
    --f-text: #4a5772;
    --f-text-lt: #7a8aa8;
    --f-ink: #0d1b2a;
    --f-border: #d8e0ee;
    --f-border-lt: #eaeef7;
    --f-shadow-sm: 0 2px 8px rgba(0,29,61,0.06);
    --f-shadow-md: 0 6px 20px rgba(0,29,61,0.10);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

/* ===== WRAPPER ===== */
.sig-footer {
    background: var(--f-bg);
    padding: 80px 0 0;
    font-family: var(--font-body);
    position: relative;
    border-top: 1px solid var(--f-border);
}

    /* Top navy accent */
    .sig-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--f-navy) 0%, var(--f-blue-mid) 50%, var(--f-navy) 100%);
    }

/* ===== BRAND COLUMN ===== */
.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 18px;
    transition: opacity 0.2s;
}

    .footer-logo:hover {
        opacity: 0.8;
    }

    .footer-logo img {
        height: 52px;
        width: auto;
    }

.footer-desc {
    color: var(--f-text);
    line-height: 1.72;
    font-size: 0.9rem;
    margin-bottom: 24px;
    font-weight: 400;
}

/* ===== SOCIAL ===== */
.footer-social {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

    .footer-social a {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: var(--f-white);
        border: 1.5px solid var(--f-border);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--f-navy);
        font-size: 1rem;
        transition: all 0.2s;
        text-decoration: none;
        box-shadow: var(--f-shadow-sm);
    }

        .footer-social a:hover {
            background: var(--f-navy);
            border-color: var(--f-navy);
            color: var(--f-white);
            transform: translateY(-2px);
            box-shadow: var(--f-shadow-md);
        }

/* ===== SECTION DIVIDER between brand and content ===== */
.footer-divider {
    width: 1px;
    background: var(--f-border);
    margin: 0 24px;
    align-self: stretch;
}

/* ===== HEADINGS ===== */
.footer-heading {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--f-navy);
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

    .footer-heading::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 30px;
        height: 2px;
        background: var(--f-blue-mid);
        border-radius: 2px;
    }

html[dir="rtl"] .footer-heading::after {
    left: auto;
    right: 0;
}

.footer-subtitle {
    font-size: 0.83rem;
    color: var(--f-text-lt);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ===== QUICK LINKS ===== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 9px;
    }

    .footer-links a {
        color: var(--f-text);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: color 0.18s, gap 0.18s;
        padding: 3px 0;
    }

        .footer-links a i {
            font-size: 0.6rem;
            color: var(--f-blue-mid);
            transition: transform 0.18s;
            flex-shrink: 0;
        }

        .footer-links a:hover {
            color: var(--f-navy);
            gap: 12px;
        }

            .footer-links a:hover i {
                transform: translateX(3px);
            }

html[dir="rtl"] .footer-links a:hover i {
    transform: translateX(-3px);
}

/* ===== CONTACT LIST ===== */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-contact li {
        display: flex;
        gap: 13px;
        margin-bottom: 10px;
        padding: 14px 16px;
        background: var(--f-white);
        border-radius: 10px;
        border: 1.5px solid var(--f-border-lt);
        transition: border-color 0.2s, box-shadow 0.2s;
        align-items: flex-start;
        box-shadow: var(--f-shadow-sm);
    }

        .footer-contact li:hover {
            border-color: rgba(0,119,204,0.35);
            box-shadow: 0 4px 16px rgba(0,96,182,0.1);
        }

.contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--f-blue-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--f-blue-mid);
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 1.5px solid rgba(0,119,204,0.15);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

    .contact-text strong {
        color: var(--f-ink);
        font-size: 0.73rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.6px;
    }

    .contact-text span,
    .contact-text a {
        color: var(--f-text);
        font-size: 0.86rem;
        text-decoration: none;
        font-weight: 500;
        word-break: break-word;
        transition: color 0.18s;
    }

        .contact-text a:hover {
            color: var(--f-blue-mid);
        }

/* ===== MAP ===== */
.footer-map {
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid var(--f-border);
    box-shadow: var(--f-shadow-md);
}

    .footer-map iframe {
        width: 100%;
        height: 205px;
        border: 0;
        display: block;
    }

/* ===== BOTTOM BAR ===== */
.footer-bottom {
    margin-top: 64px;
    padding: 22px 0;
    background: var(--f-navy);
    border-top: none;
}

.footer-copyright {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
}

    .footer-copyright strong {
        color: rgba(255,255,255,0.95);
        font-weight: 700;
    }

.footer-legal {
    list-style: none;
    display: inline-flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

    .footer-legal a {
        font-size: 0.85rem;
        color: rgba(255,255,255,0.6);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.18s;
        position: relative;
    }

        .footer-legal a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: rgba(255,255,255,0.8);
            transition: width 0.2s;
        }

        .footer-legal a:hover {
            color: var(--f-white);
        }

            .footer-legal a:hover::after {
                width: 100%;
            }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet 992px */
@media (max-width: 991px) {
    .sig-footer {
        padding: 60px 0 0;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-bottom {
        margin-top: 52px;
    }
}

/* Mobile 767px */
@media (max-width: 767px) {
    .sig-footer {
        padding: 48px 0 0;
    }

    .footer-brand {
        max-width: 100%;
        margin-bottom: 4px;
    }

    .footer-logo img {
        height: 44px;
    }

    .footer-desc {
        font-size: 0.88rem;
        margin-bottom: 18px;
    }

    /* Social centered */
    .footer-social {
        gap: 8px;
    }

        .footer-social a {
            width: 38px;
            height: 38px;
            font-size: 0.95rem;
            border-radius: 7px;
        }

    /* Links: 2 columns */
    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 16px;
    }

        .footer-links li {
            margin-bottom: 0;
        }

        .footer-links a {
            font-size: 0.87rem;
            padding: 4px 0;
        }

    /* Contact: compact */
    .footer-contact li {
        padding: 12px 14px;
        gap: 10px;
    }

    .contact-icon {
        width: 34px;
        height: 34px;
        font-size: 0.84rem;
        border-radius: 7px;
    }

    .contact-text strong {
        font-size: 0.7rem;
    }

    .contact-text span, .contact-text a {
        font-size: 0.83rem;
    }

    /* Map */
    .footer-map iframe {
        height: 185px;
    }

    /* Bottom */
    .footer-bottom {
        margin-top: 44px;
        padding: 18px 0;
    }

        .footer-bottom .row > div {
            text-align: center !important;
        }

    .footer-copyright {
        margin-bottom: 10px;
        font-size: 0.82rem;
    }

    .footer-legal {
        gap: 14px;
        justify-content: center;
        flex-wrap: wrap;
    }

        .footer-legal a {
            font-size: 0.82rem;
        }
}

/* Small phones 575px */
@media (max-width: 575px) {
    .sig-footer {
        padding: 38px 0 0;
    }

    .footer-logo img {
        height: 40px;
    }

    .footer-desc {
        font-size: 0.85rem;
    }

    /* Single column links */
    .footer-links {
        grid-template-columns: 1fr;
        gap: 4px;
    }

        .footer-links a {
            font-size: 0.85rem;
        }

    /* Smaller contact */
    .footer-contact li {
        padding: 10px 12px;
        gap: 9px;
    }

    .contact-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .footer-map iframe {
        height: 170px;
    }

    .footer-bottom {
        margin-top: 36px;
        padding: 16px 0;
    }

    .footer-legal {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

/* Very small 380px */
@media (max-width: 380px) {
    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .footer-heading {
        font-size: 0.68rem;
        letter-spacing: 1.5px;
    }
}

/* ===== RTL ===== */
html[dir="rtl"] .footer-links a {
    gap: 8px;
}

    html[dir="rtl"] .footer-links a:hover {
        gap: 12px;
    }

/* ===== Print ===== */
@media print {
    .sig-footer {
        background: #fff;
    }

    .footer-social, .footer-map {
        display: none;
    }

    .footer-bottom {
        background: #fff;
        border-top: 1px solid #000;
    }

    .footer-copyright, .footer-legal a {
        color: #000;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
