/* 
   ========================================
   FOOTER COMPONENT
   Single Source of Truth for Footer Styles
   ======================================== 
*/

.footer {
    background-color: #1a1a1a;
    /* Slightly lighter than pure black for better contrast */
    color: var(--color-text-inverse);
    padding: var(--spacing-xl) 0 0;
    /* Reduced top padding */
    font-size: var(--font-size-sm);
    /* Smaller base font size */
}

.footer__container {
    max-width: 1200px;
    /* Slightly narrower for compactness */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 0.8fr;
    /* Adjusted column ratios */
    gap: var(--spacing-lg);
    /* Reduced gap */
}

/* Sections */
.footer__section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    /* Reduced gap */
}

.footer__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    /* Smaller title */
    font-weight: var(--font-weight-bold);
    color: var(--color-text-inverse);
    margin-bottom: var(--spacing-xs);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--color-brand-red);
    /* Thinner border */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Contact Info */
.footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer__contact-item {
    line-height: 1.5;
    display: flex;
    gap: var(--spacing-xs);
}

.footer__contact-item strong {
    font-weight: 600;
    color: #e5e5e5;
    min-width: 60px;
}

.footer__link {
    color: #d4d4d4;
    transition: color var(--transition-base);
    text-decoration: none;
}

.footer__link:hover {
    color: var(--color-brand-red);
}

/* Locations */
.footer__locations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns to keep addresses in a single line */
    gap: var(--spacing-lg);
}

.footer__location {
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* Very tight spacing */
}

.footer__location-title {
    font-weight: 600;
    font-size: var(--font-size-base);
    color: #fff;
    margin-bottom: 2px;
}

.footer__location-address {
    font-size: 0.8rem;
    /* Smaller address text */
    line-height: 1.4;
    color: #a3a3a3;
}

.footer__appointment {
    font-style: italic;
    font-size: 0.75rem;
    color: #737373;
    display: block;
    margin-top: 2px;
}

/* Navigation Links */
.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* Tighter link spacing */
}

.footer__nav-link {
    font-size: 0.9rem;
    color: #d4d4d4;
    transition: all var(--transition-base);
    padding: 2px 0;
    position: relative;
    width: fit-content;
}

.footer__nav-link:hover {
    color: var(--color-brand-red);
    padding-left: 8px;
}

.footer__nav-link::before {
    content: '›';
    position: absolute;
    left: -10px;
    opacity: 0;
    transition: all var(--transition-base);
    color: var(--color-brand-red);
}

.footer__nav-link:hover::before {
    opacity: 1;
    left: 0;
}

/* Bottom Bar */
.footer__bottom {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md) 0;
    background-color: #000;
    /* Darker bottom bar */
    border-top: 1px solid #333;
}

.footer__bottom .footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: unset;
    gap: var(--spacing-md);
    padding-top: 0;
    /* Reset padding since it's handled by footer__bottom */
    padding-bottom: 0;
}

.footer__copyright {
    font-size: 0.8rem;
    color: #737373;
}

.footer__legal {
    display: flex;
    gap: var(--spacing-md);
}

.footer__legal-link {
    font-size: 0.8rem;
    color: #737373;
    transition: color var(--transition-base);
    text-decoration: none;
}

.footer__legal-link:hover {
    color: var(--color-brand-red);
}

/* Accreditations */
.footer__accreditations {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.footer__accreditation-logo {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    background-color: white;
    padding: 4px;
    border-radius: 4px;
    transition: transform var(--transition-base);
}

.footer__accreditation-logo:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer__accreditations {
        justify-content: center;
        /* Center logos on tablet/mobile when footer stacks */
    }

    .footer__bottom .footer__container {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer__locations {
        grid-template-columns: 1fr;
        /* Stack locations on smaller screens */
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .footer__accreditation-logo {
        height: 60px;
        /* Slightly smaller on very small screens */
    }
}
