/* ==========================================================================
   Time Mission — Footer (grid layout used on sub-pages)
   ========================================================================== */

.footer {
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3.5rem 4rem calc(2rem + env(safe-area-inset-bottom, 0px));
    margin-bottom: 0;
}

/* Prevent body background from showing below footer */
html {
    background: var(--dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.footer-brand img {
    height: 36px;
    width: auto;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--body);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
}

.footer-social a {
    color: var(--gray);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--orange);
    transform: translateY(-2px);
}

.footer-title,
.footer-column h4 {
    font-family: var(--tech);
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-column {
    text-align: left;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-family: var(--body);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--orange);
}

/* Newsletter */
.footer-newsletter {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background: rgba(255, 107, 44, 0.05);
    border: 1px solid rgba(255, 107, 44, 0.15);
    border-radius: 16px;
    text-align: center;
}

.footer-newsletter .footer-title {
    margin-bottom: 0.5rem;
}

.footer-newsletter p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Compact signup only when embedded in .footer-newsletter — do not target page-level .newsletter-section */
.footer-newsletter .newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.footer-newsletter .newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: var(--white);
    font-family: var(--body);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.footer-newsletter .newsletter-form input:focus {
    border-color: var(--orange);
}

.footer-newsletter .newsletter-form input:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.footer-newsletter .newsletter-form input::placeholder {
    color: var(--gray);
}

.footer-newsletter .btn-subscribe {
    padding: 0.875rem 1.75rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 100px;
    color: var(--white);
    font-family: var(--body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter .btn-subscribe:hover {
    transform: translateY(-2px);
}

.footer-newsletter .btn-subscribe:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.footer-newsletter .newsletter-legal {
    color: var(--gray);
    font-size: 0.75rem;
}

.footer-newsletter .newsletter-legal a {
    color: var(--orange);
    text-decoration: none;
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--gray);
    font-size: 0.75rem;
}

.footer-legal {
    display: flex;
    gap: 1.25rem;
}

.footer-legal a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--orange);
}

/* Location Dropdown */
.footer-locations-title {
    font-family: var(--tech);
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-location-group {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-location-group:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-location-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-location-toggle:hover {
    color: var(--orange);
}

.footer-location-toggle svg {
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.4);
}

.footer-location-group.open .footer-location-toggle svg {
    transform: rotate(180deg);
}

.footer-location-list {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0 0 0.85rem 0.75rem;
}

.footer-location-group.open .footer-location-list {
    display: flex;
}

.footer-location-list a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-family: var(--body);
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-location-list a:hover {
    color: var(--orange);
}

.footer-location-list a.coming-soon {
    pointer-events: none;
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-location-list a.coming-soon .coming-soon-tag {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 107, 44, 0.15);
    color: var(--orange, #ff6b2c);
    padding: 0.15rem 0.4rem;
    border-radius: 100px;
}

/* Footer Location Info (shown when location is selected) */
.footer-location-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-loc-name {
    font-family: var(--tech);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--white);
    margin: 0;
}

.footer-loc-address {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--body);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

.footer-loc-phone {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--body);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-loc-phone:hover {
    color: var(--orange);
}

.footer-loc-hours {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.25rem;
}

.footer-hours-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-hours-row span:first-child {
    color: rgba(255, 255, 255, 0.85);
    min-width: 80px;
}

.footer-loc-map {
    color: var(--orange);
    font-family: var(--body);
    font-size: 0.8rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-loc-map:hover {
    opacity: 0.8;
}

.footer-loc-change {
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--body);
    font-size: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-loc-change:hover {
    color: var(--orange);
}

/* Responsive */
@media (max-width: 900px) {
    .footer {
        padding: 3rem 2rem 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 3rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-newsletter .newsletter-form {
        flex-direction: column;
    }
}
