/* --- MASTER FOOTER STYLES --- */
.site-footer {
    background-color: #050505; /* Deep architectural black */
    color: #F8F8F7;
    padding-top: 4rem;
    font-family: 'Inter', sans-serif; /* Standard clean sans-serif */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr; /* 4 columns, slightly wider first col */
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Typography & Spacing */
.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col .spacer {
    margin-top: 2rem;
}

.footer-col p {
    color: #A0A0A0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a, .email-link, .policy-links a {
    color: #A0A0A0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover, .email-link:hover, .policy-links a:hover {
    color: #C89B3C; /* Matte Gold interaction */
}

/* Column 1 Specifics */
.division-logos {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* --- FOOTER BRAND IMAGES (Col 1 & Col 4) --- */
.footer-brand-img {
    height: 60px; /* Locks the height to match the old circular placeholders */
    width: auto; /* Lets the width adjust naturally so the logo doesn't stretch */
    object-fit: contain; /* Ensures the logo stays sharp and proportionally perfect */
    filter: brightness(0.9); /* Optional: Very slightly softens the stark white of the logos to blend with the dark theme */
}

.policy-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.policy-links .divider {
    color: #333;
}

/* --- SOCIAL ICONS --- */
.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #111;
    color: #C89B3C; /* Base Matte Gold icon color */
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.1rem; /* Controls the Font Awesome icon size */
}

.social-links a:hover {
    background-color: #C89B3C; /* Background turns gold */
    color: #050505; /* Icon instantly turns black */
}

/* Column 4 Specifics (Accreditations) */
.accreditations-col {
    display: flex;
    flex-direction: column;
}

.accreditation-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem; 
}

.clear-logo-placeholder {
    width: 80px;
    height: 80px;
    border: 1px dashed rgba(255, 255, 255, 0.6); /* Tripled the brightness */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E6E4E0; /* High contrast text */
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.2;
    background-color: rgba(255, 255, 255, 0.05); /* Faint fill to establish the bounding box */
}

/* --- BOTTOM LEGAL BAR --- */
.footer-legal {
    background-color: #000000; 
    padding: 1.5rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-legal p {
    color: #E0E0E0;
    font-size: 0.85rem;
    margin: 0;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.legal-links a {
    color: #666666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #C89B3C; /* Matte Gold interaction */
}

.legal-links .divider {
    color: #333333;
    font-size: 0.85rem;
}

/* Desktop View: Splits copyright left, links right */
@media (min-width: 768px) {
    .footer-legal {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Responsive Tablet & Mobile */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* Drops to 2x2 grid */
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stacks to single column */
        gap: 2.5rem;
        text-align: center; /* Centers all standard text and headings */
    }
    
    /* Center all the flexbox rows (logos, policies, socials, accreditations) */
    .division-logos,
    .policy-links,
    .social-links,
    .accreditation-logos {
        justify-content: center !important;
    }
}

/* ==========================================
   ACCREDITATION LOGOS (Bottom Right)
   ========================================== */

/* Target only the logos in the accreditation column */
.accreditation-logos .footer-brand-img {
    height: 90px; /* ~20% larger than the base 60px */
    width: 150px; /* Fixed width to create the uniform invisible bounding box */
    object-fit: contain; /* Forces the logo to fit the box without stretching */
    display: block;
}

/* Ensure the links wrapping the images act as proper containers */
.accreditation-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Optional: Adds a subtle interaction when users hover over the logos */
.accreditation-logos a:hover {
    transform: scale(1.05);
}

/* Removes the invisible heading completely from the layout */
.accreditations-col h3 {
    display: none;
}

/* Removes the extra top margin so the logos sit flush at the top */
.accreditation-logos {
    margin-top: 0 !important; 
}