/* ────────────────────────────────
   FOOTER BASE
   ──────────────────────────────── */

.site-footer {
    background: var(--footer-bg);
    padding: 40px 0 30px;
    color: var(--footer-text);
}

/* 3‑column grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* ────────────────────────────────
   COLUMN ALIGNMENT
   ──────────────────────────────── */

/* Column 1: Brand — left aligned */
.footer-col-brand {
    text-align: left;
}

/* Column 2: Quick Links — centered */
.footer-col:nth-child(2) {
    text-align: center;
}

/* Column 3: Contact — left aligned */
.footer-col:nth-child(3) {
    text-align: left;
}

/* ────────────────────────────────
   HEADINGS
   ──────────────────────────────── */

.footer-col h3,
.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--footer-text);
    text-align: inherit; /* follows column alignment */
}

/* Column 1 heading inverse color */
.footer-col-brand h3 {
    color: var(--footer-bg);
    background: var(--footer-text);
    padding: 4px 12px;
}

/* ────────────────────────────────
   TEXT + LINKS
   ──────────────────────────────── */

.footer-col p,
.footer-col a,
.footer-col li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--footer-text);
    text-align: inherit; /* follows column alignment */
}

.footer-col ul {
    list-style-position: inside;
    padding-left: 0;
    margin: 0 auto;
    text-align: inherit; /* follows column alignment */
}

    .footer-col a:hover {
        color: var(--accent);
    }

/* ────────────────────────────────
   SOCIAL ICONS
   ──────────────────────────────── */

.footer-social {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

    .footer-social img {
        width: 60px;
        height: 60px;
        opacity: 0.8;
        transition: opacity 0.2s ease;
    }

        .footer-social img:hover {
            opacity: 1;
        }

/* ────────────────────────────────
   FOOTER BOTTOM
   ──────────────────────────────── */

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    color: var(--footer-text);
}

/* ────────────────────────────────
   RESPONSIVE
   ──────────────────────────────── */

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col-brand,
    .footer-col:nth-child(3) {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ── Mobile Navigation ── */
@media (max-width: 768px) {

    .nav-toggle {
        display: block;
        margin-left: 1rem;
        font-size: 2.1rem;
        background: none;
        border: none;
        color: var(--header-text);
        cursor: pointer;
        z-index: 9999;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        right: 0;
        width: 100%;
        background: var(--header-bg);
        padding: 0.5rem 0; /* tighter vertical padding */
        border-bottom: 1px solid var(--header-text);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        gap: 0.25rem; /* reduces space between items */
        z-index: 99999; /* ensures menu sits above page */
    }

        .nav-links.open {
            display: flex;
        }

        .nav-links a {
            padding: 0.75rem 1.25rem; /* adds left/right padding */
            font-size: 1.1rem; /* optional: slightly larger text */
        }
            .nav-links a.active::after {
                bottom: 6px; /* sits at bottom of the padded area */
                left: 1.25rem; /* matches your left padding */
                right: 1.25rem; /* keeps it centered */
                height: 2px;
            }

    .nav-cta {
        display: none;
    }
}

