/* Footer Styles */
.ehs-footer {
    background: var(--ehs-color-dark);
    color: var(--ehs-color-light);
    margin-top: auto;
    position: relative;
}

/* Add subtle background pattern */
.ehs-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(97, 6, 217, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 71, 244, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.ehs-footer__content {
    padding: var(--ehs-spacing-xl) 0 var(--ehs-spacing-lg);
    position: relative;
    z-index: 1;
}

.ehs-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: var(--ehs-spacing-lg);
    align-items: start;
}

.ehs-footer__section {
    display: flex;
    flex-direction: column;
    gap: var(--ehs-spacing-md);
}

/* Logo and Description */
.ehs-footer__logo {
    margin-bottom: var(--ehs-spacing-sm);
}

.ehs-footer__logo img {
    max-height: 48px;
    width: auto;
}

/* Hide condensed logo in footer, show only regular */
.ehs-footer__logo .ehs-logo-image--condensed {
    display: none !important;
}

.ehs-footer__logo .ehs-logo-image--regular {
    display: block !important;
}

.ehs-footer__description {
    font-size: var(--ehs-font-size-body);
    line-height: var(--ehs-line-height-relaxed);
    color: var(--ehs-color-muted-light);
    margin: 0;
}

.ehs-footer__rating {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ehs-footer__stars {
    color: #fbbf24;
    font-size: 1.125rem;
    letter-spacing: 0.1em;
}

.ehs-footer__rating-text {
    font-size: var(--ehs-font-size-small);
    color: var(--ehs-color-muted-light);
}

/* Section Titles */
.ehs-footer__title {
    font-size: var(--ehs-font-size-h4);
    font-weight: 700;
    color: var(--ehs-color-light);
    margin: 0 0 var(--ehs-spacing-md) 0;
    font-family: var(--ehs-font-family-heading);
}

/* Links Lists */
.ehs-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ehs-footer__links li {
    margin: 0;
}

.ehs-footer__links a {
    color: var(--ehs-color-muted-light);
    font-size: var(--ehs-font-size-body);
    transition: color 0.2s ease;
    text-decoration: none;
}

.ehs-footer__links a:hover,
.ehs-footer__links a:focus {
    color: var(--ehs-color-light);
}

/* Contact Section */
.ehs-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ehs-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ehs-color-muted-light);
    font-size: var(--ehs-font-size-body);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ehs-footer__contact-item:hover,
.ehs-footer__contact-item:focus {
    color: var(--ehs-color-light);
}

.ehs-footer__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Business Hours */
.ehs-footer__business-hours {
    margin-top: var(--ehs-spacing-md);
}

.ehs-footer__subtitle {
    font-size: var(--ehs-font-size-h5);
    color: var(--ehs-color-light);
    margin: 0 0 var(--ehs-spacing-sm) 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ehs-footer__hours {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ehs-footer__hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--ehs-font-size-small);
    line-height: 1.4;
}

.ehs-footer__hours-day {
    color: var(--ehs-color-muted-light);
    font-weight: 500;
}

.ehs-footer__hours-time {
    color: var(--ehs-color-light);
    font-weight: 600;
}

/* Social Section */
.ehs-footer__social-section {
    background: linear-gradient(135deg, rgba(97, 6, 217, 0.1) 0%, rgba(124, 71, 244, 0.05) 100%);
    padding: var(--ehs-spacing-lg);
    border-radius: var(--ehs-radius-lg);
    border: 1px solid rgba(97, 6, 217, 0.2);
    position: relative;
    overflow: hidden;
}

.ehs-footer__social-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.ehs-footer__social-section > * {
    position: relative;
    z-index: 1;
}

.ehs-footer__social-text {
    font-size: var(--ehs-font-size-body);
    color: var(--ehs-color-muted-light);
    margin: 0 0 var(--ehs-spacing-md) 0;
    line-height: var(--ehs-line-height-relaxed);
}

.ehs-footer__social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ehs-footer__social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(97, 6, 217, 0.15);
    border-radius: var(--ehs-radius-lg);
    color: var(--ehs-color-light);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(97, 6, 217, 0.3);
    font-size: var(--ehs-font-size-small);
    font-weight: 500;
}

.ehs-footer__social-link:hover,
.ehs-footer__social-link:focus {
    background: var(--ehs-gradient-cta-bright);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(97, 6, 217, 0.25);
    color: var(--ehs-color-light);
}

.ehs-footer__social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Bottom Bar */
.ehs-footer__bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--ehs-spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ehs-footer__bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ehs-spacing-md);
}

.ehs-footer__copyright {
    font-size: var(--ehs-font-size-small);
    color: var(--ehs-color-muted-light);
    margin: 0;
}

.ehs-footer__legal {
    display: flex;
    align-items: center;
    gap: var(--ehs-spacing-sm);
}

.ehs-footer__legal-link {
    font-size: var(--ehs-font-size-small);
    color: var(--ehs-color-muted-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ehs-footer__legal-link:hover {
    color: var(--ehs-color-light);
}

.ehs-footer__separator {
    font-size: var(--ehs-font-size-small);
    color: var(--ehs-color-muted-light);
    opacity: 0.5;
}

.ehs-footer__license {
    font-size: var(--ehs-font-size-small);
    color: var(--ehs-color-muted-light);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .ehs-footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
        gap: var(--ehs-spacing-lg);
    }
    
    .ehs-footer__content {
        padding: var(--ehs-spacing-lg) 0;
    }
}

@media (max-width: 960px) {
    .ehs-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--ehs-spacing-lg);
    }
    
    .ehs-footer__section:first-child {
        grid-column: 1 / -1;
    }
    
    .ehs-footer__social-section {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .ehs-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--ehs-spacing-lg);
    }
    
    .ehs-footer__section {
        text-align: center;
    }
    
    .ehs-footer__section:first-child {
        text-align: left;
    }
    
    .ehs-footer__content {
        padding: var(--ehs-spacing-lg) 0;
    }
    
    .ehs-footer__bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--ehs-spacing-sm);
    }
    
    .ehs-footer__legal {
        flex-direction: column;
        gap: var(--ehs-spacing-xs);
    }
    
    .ehs-footer__separator {
        display: none;
    }
    
    .ehs-footer__contact {
        align-items: center;
    }
    
    .ehs-footer__social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ehs-footer__social-section {
        padding: var(--ehs-spacing-md);
    }
    
    .ehs-footer__content {
        padding: var(--ehs-spacing-md) 0;
    }
    
    .ehs-footer__grid {
        gap: var(--ehs-spacing-md);
    }
    
    .ehs-footer__section {
        gap: var(--ehs-spacing-sm);
    }
    
    .ehs-footer__title {
        font-size: var(--ehs-font-size-h4);
        margin-bottom: var(--ehs-spacing-sm);
    }
}