/* Import Font Awesome globally for the footer icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ==========================================
   MASTER FOOTER STYLES (Editorial Theme)
   ========================================== */
.site-footer {
    background-color: #050505; /* Deep architectural black */
    color: #F8F8F7;
    padding-top: 4rem;
    font-family: 'Inter', system-ui, sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10; /* Forces footer over sticky hero */
}

.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-family: 'Playfair Display', serif; /* Editorial Font */
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

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

.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: #8B0000; /* Deep red interaction */
}

/* Column 1 Specifics */
.division-logos {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem; /* Pushes the policy links down */
}

.footer-brand-img {
    height: 84px; /* Scaled up 20% from 60px */
    width: auto;
    object-fit: contain;
    filter: brightness(0.9);
}

.footer-policy-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

/* --- SOCIAL ICONS --- */
.social-links {
    display: flex;
    gap: 1rem; /* Slightly increased gap to accommodate larger icons */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; /* Increased by 25% (from 35px) */
    height: 44px; /* Increased by 25% (from 35px) */
    background-color: #111;
    color: #8B0000; /* Default icon color is now deep red */
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.125rem; /* Font size increased by 25% */
}

.social-links a:hover {
    background-color: #8B0000; /* Background highlights deep red */
    color: #000000; /* Icon turns solid black */
}

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

/* Switched to flex to gracefully handle different width logos */
.accreditation-logos {
    display: flex;
    gap: 1.5rem; /* Increased gap slightly to separate raw logos */
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0 !important;
}

/* Removed the white background plate and padding */
.accreditation-logos a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: transform 0.3s ease;
}

.accreditation-logos a:hover {
    transform: translateY(-2px);
}

/* The Magic Sizing Rule: Balances different aspect ratios */
.accreditation-img {
    max-width: 150px;  /* Scaled up from 120px */
    max-height: 69px;  /* Scaled up from 55px */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* --- 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: #8B0000;
}

/* 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;
    }

    .division-logos,
    .policy-links,
    .social-links,
    .accreditation-logos,
    .footer-policy-group {
        justify-content: center !important;
        align-items: center !important;
    }
}

/* WhatsApp Specific Styling */
.social-links a.whatsapp-icon {
    background-color: #111;
    color: #25D366;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-links a.whatsapp-icon:hover {
    background-color: #25D366;
    color: #ffffff;
    transform: scale(1.1);
}

/* Global Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #20b858;
    color: #FFF;
}