/* =============================================
   CSS Variables - Move to app.css if you want
   these available in child components
   ============================================= */
:root {
    --mainBlack: #000000;
    --mainWhite: #ffffff;
    --primeColor: #6ba66b;
    --secondColor: #c2e07a; /* Bumped from #add468 for WCAG AA contrast on dark */
    --outlineColor: #dddddd;
    --footerBg: #212529;
}

/* =============================================
   Page Structure
   ============================================= */
.webpage {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

header {
    background-color: var(--mainWhite);
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
    color: var(--mainWhite);
    font-size: 0.9rem;
    border-top: 3px solid var(--primeColor);
}

    .site-footer .row {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }

/* Logo */
.footer-logo {
    max-width: 200px;
    margin-top: 1.2rem;
    border-radius: 5px;
}

/* Section Titles */
.footer-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondColor);
    font-size: 1.1rem;
}

/* Links */
.footer-link {
    color: var(--mainWhite);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

    .footer-link:hover,
    .footer-link:focus-visible {
        color: var(--secondColor);
        text-decoration: underline;
    }

/* Social Icons */
.social-link {
    color: var(--mainWhite);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: color 0.3s ease, background-color 0.3s ease;
}

    .social-link:hover,
    .social-link:focus-visible {
        color: var(--secondColor);
        background-color: rgba(255, 255, 255, 0.1);
        outline: 2px solid var(--secondColor);
        outline-offset: 2px;
    }

/* Copyright Divider */
.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 0.75rem;
}

/* =============================================
   Focus Styles (WCAG 2.4.7)
   ============================================= */
.footer-link:focus-visible {
    outline: 2px solid var(--secondColor);
    outline-offset: 2px;
    border-radius: 2px;
}

/* =============================================
   Responsive - Footer stacks vertically (991px and below,
   matching the navbar collapse breakpoint)
   ============================================= */
@media (max-width: 991.98px) {
    .site-footer .row {
        flex-direction: column;
        align-items: center;
    }

        .site-footer .row > * {
            width: 100%;
            max-width: 100%;
            text-align: center !important;
        }

            .site-footer .row > *:not(:last-child) {
                margin-bottom: 1.5rem !important;
            }
}

/* =============================================
   Responsive - Tablet (768px and below)
   ============================================= */
@media (max-width: 768px) {
    .footer-logo {
        max-width: 140px;
    }

    .site-footer {
        font-size: 0.85rem;
    }

    .footer-title {
        font-size: 1rem;
    }
}

/* =============================================
   Responsive - Mobile (480px and below)
   ============================================= */
@media (max-width: 480px) {
    .footer-logo {
        max-width: 100px;
    }

    .site-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }
}
