/* ==========================================================
   INDUSTRY STANDARD FOOTER
   ========================================================== */

.site-footer {
    background-color: #0a0a0a; /* Slightly darker than standard #121212 body */
    border-top: 3px solid #ff3333; /* Signature red brand line */
    padding: 5rem 5% 2rem;
    color: #aaaaaa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 4rem;
}

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

/* --- Top Grid --- */
.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; /* Brand gets more space, others get equal */
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Column Typography */
.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Brand Column Specifics */
.footer-main-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-description {
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 350px;
}

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

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

.footer-links a,
.footer-contact-list a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-contact-list a:hover {
    color: #ff3333; /* Hover red */
}

/* Contact Column Specifics */
.footer-contact-list strong {
    color: #cccccc;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.2rem;
}

.address-line {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Bottom Legal Bar --- */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Parent Brand Tag */
.footer-parent-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: bold;
    color: #666666;
    letter-spacing: 1px;
}

.footer-logo-inline {
    height: 24px;
    width: auto;
    filter: grayscale(100%) opacity(0.7); /* Mutes the logo to fit the dark aesthetic */
    transition: filter 0.3s ease;
}

.footer-logo-inline:hover {
    filter: grayscale(0%) opacity(1); /* Brings full color back on hover */
}

/* Copyright & Legal Links */
.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.85rem;
    color: #777777;
}

.footer-legal-links p {
    margin: 0;
}

.legal-anchors {
    display: flex;
    gap: 1.5rem;
}

.legal-anchors a {
    color: #777777;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-anchors a:hover {
    color: #cccccc;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr; /* Switch to 2x2 grid on tablets */
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 4rem 5% 2rem;
    }

    .footer-top-grid {
        grid-template-columns: 1fr; /* Stack everything on mobile */
        gap: 3rem;
    }

    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-legal-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ==========================================================
   FOOTER LOGO & SPACING REFINEMENTS
   ========================================================== */

/* Reduce the massive top padding of the footer */
.site-footer {
    padding: 3.5rem 5% 1.5rem !important; 
}

/* Force the footer logo to be compact */
.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

/* Lock the icon size */
.footer-brand-logo .logo-img {
    height: 40px !important; 
    width: auto;
    flex-shrink: 0;
}

/* Scale down the stacked text */
.footer-brand-logo .logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.footer-brand-logo .logo-text span:first-child {
    font-size: 1rem !important; /* Smaller than header */
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    white-space: nowrap;
}

.footer-brand-logo .logo-text .wellness-text {
    font-size: 0.85rem !important; /* Smaller than header */
    font-weight: 600;
    color: #ff3333;
    letter-spacing: 2px;
}

/* Make the description text sleeker and less distracting */
.footer-description {
    font-size: 0.85rem !important;
    color: #888888 !important; /* Muted gray */
    line-height: 1.6;
    max-width: 320px;
}

/* ==========================================================
   FOOTER COMPACT & SIZING FIXES
   ========================================================== */

/* 1. Drastically reduce overall footer height and padding */
.site-footer {
    padding: 2.5rem 5% 1rem !important; /* Slashes top and bottom empty space */
}

.footer-top-grid {
    margin-bottom: 2rem !important; /* Pulls the bottom legal bar much higher */
    gap: 2rem !important; /* Tightens the horizontal space between columns */
}

/* 2. Center the Fire Dept Wellness logo and text in its column */
.footer-col.brand-col {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally */
    text-align: center;
}

.footer-brand-logo {
    margin-bottom: 0.5rem !important; /* Keeps logo tight to the description */
}

/* 3. Reduce vertical spacing between rows on the right-side menus */
.footer-heading {
    margin-bottom: 0.75rem !important; /* Brings heading closer to the list */
    font-size: 1rem !important;
}

.footer-links li,
.footer-contact-list li {
    margin-bottom: 0.35rem !important; /* Slashes the previous 1rem gap */
}

.footer-contact-list strong {
    margin-bottom: 0 !important; /* Removes gap between "Sales:" and the email */
}

.address-line {
    margin-top: 0.5rem !important; /* Pulls the physical address closer to the phone number */
}

/* 4. Make the Wellness USA logo significantly larger */
.footer-logo-inline {
    height: 42px !important; /* Nearly double the previous size */
    width: auto;
}

.footer-parent-brand {
    gap: 0.75rem;
    font-size: 0.95rem; /* Slightly bumps the "A / BRAND" text to match the larger logo */
}