/* Footer Variables */
:root {
    --footer-bg: #444444;
}

.site-footer {
    background-color: var(--footer-bg);
    color: var(--color-white);
    padding-top: var(--spacing-16);
    padding-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: space-between;
}

/* Left Column: Info */
.site-footer__info {
    flex: 1 1 300px;
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 2rem;
    display: block;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
}

.footer-address,
.footer-contact {
    margin-bottom: 2rem;
}

.footer-address p,
.footer-contact p {
    margin: 0.5rem 0;
    color: var(--color-gray-50);
}

.footer-contact a {
    color: var(--color-gray-50);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--color-white);
}

/* Right Column: Menu */
.footer-navigation {
    flex: 2 1 400px;
}

#footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Top Level Items (Columns) */
#footer-menu>.menu-item {
    flex: 1 1 150px;
    padding-left: 2.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

#footer-menu>.menu-item>a {
    display: block;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.125rem;
}

/* Sub Menus - Using the new custom class */
.footer-sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-sub-menu .menu-item {
    margin-bottom: 1rem;
}

.footer-sub-menu a {
    color: var(--color-gray-50);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-sub-menu a:hover {
    color: var(--color-white);
}

/* Copyright Bar */
.site-footer__bottom {
    background-color: #161616;
    margin-top: 4rem;
    padding: 2.5rem 0;
}

.site-footer__copyright {
    text-align: left;
    /* Based on image usually left or center, but image seems left or slightly offset */
    color: var(--color-gray-50);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-footer {
        text-align: left;
    }

    .site-footer__inner {
        flex-direction: column;
        gap: 3rem;
    }

    #footer-menu {
        flex-direction: column;
        gap: 0;
    }

    #footer-menu>.menu-item {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 2rem;
        margin-bottom: 2rem;
    }

    .site-footer__bottom {
        text-align: center;
        margin-top: 2rem;
    }

    .site-footer__copyright {
        text-align: center;
    }
}

/* =========================================
   CONTACT & MAP SECTION
   ========================================= */

.contact-map-section {
    background-color: #F5F5F5;
    padding: 0;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-16) 0;
    margin-top: var(--spacing-16);
}

@media (max-width: 768px) {
    .contact-map-section {
        margin-top: var(--spacing-8);
    }
}


/* Map Wrapper - Layout handled by grid utilities */
.contact-map-wrapper {
    min-height: 400px;
    /* Optional: standard min-height if grid fails or content is empty */
}

/* Left Column: Map */
.contact-map-left {
    position: relative;
    /* Grid item stretches by default */
}

.google-map-embed {
    width: 100%;
    height: 100%;
}

.google-map-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Right Column: Contact Info */
.contact-map-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-heading {
    font-family: var(--font-family-heading);
    color: var(--color-primary);
    font-weight: 700;
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-8);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--color-text-light);
    /* Gray text */
    font-size: 1rem;
    line-height: 1.5;
}

.contact-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 3px;
    /* visual alignment */
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-text {
    flex: 1;
}

.contact-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--color-primary);
}

.contact-text a.primary-link {
    color: var(--color-primary);
    font-weight: 500;
}

.hours-label {
    display: block;
    font-weight: 500;
    color: #444;
    margin-bottom: 0.25rem;
}

.wysiwyg-content p {
    margin-bottom: 0.75rem;
    color: var(--color-text-light);

}

.wysiwyg-content p:last-child {
    margin-bottom: 0;
}

.registration-hours {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .contact-map-wrapper {
        flex-direction: column;
    }

    .contact-map-left {
        min-height: 300px;
        order: 1;
    }

    .contact-map-right {
        order: 2;
    }
}