/* Footer - Modern Redesign */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--separator-gradient);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    padding: 0.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    position: relative;
    width: fit-content;
}

.footer-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.footer-logo:hover::after {
    width: 100%;
}

.footer-logo:hover {
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
}

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column-toggle {
    display: flex;
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 0.75rem;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    gap: 0.5rem;
    transition: opacity 0.2s ease;
}

.footer-column-toggle:hover {
    opacity: 0.8;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
    flex: 1;
}

.footer-column-toggle h4 {
    margin: 0;
}

.footer-chevron {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
    display: none;
    flex-shrink: 0;
    width: 0.875rem;
    height: 0.875rem;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.footer-column-toggle:hover .footer-chevron {
    opacity: 0.8;
}

.footer-column[data-expanded="false"] .footer-chevron {
    transform: rotate(-90deg);
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease;
    max-height: 500px;
}

.footer-column[data-expanded="false"] ul {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
}

.footer-column ul li {
    margin: 0;
}

.footer-column ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    padding: 0;
    padding-left: 0;
    line-height: 1.4;
}

.footer-column ul li a::before {
    content: '→';
    position: absolute;
    left: -1.25rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--accent-primary);
    font-weight: 600;
}

.footer-column ul li a:hover {
    color: var(--accent-primary);
    padding-left: 1.25rem;
}

.footer-column ul li a:hover::before {
    opacity: 1;
    left: 0;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

/* Desktop - Show titles, hide chevron */
@media (min-width: 769px) {
    .footer-column-toggle {
        pointer-events: none;
        cursor: default;
        padding: 0;
        margin: 0 0 1rem;
    }

    .footer-column-toggle:hover {
        opacity: 1;
    }

    .footer-chevron {
        display: none !important;
    }

    .footer-column h4 {
        margin: 0 0 1rem;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .footer {
        padding: 2.5rem 0 1.75rem;
    }

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

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-tagline {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 1rem 0 0.75rem;
    }

    .footer-content {
        gap: 1rem;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-column {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .footer-column:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .footer-column-toggle {
        display: flex;
        margin-bottom: 0.3rem;
        padding: 0.25rem 0;
    }

    .footer-column h4 {
        margin: 0;
        font-size: 0.95rem;
    }

    .footer-column:not([data-expanded]) h4 {
        margin: 0 0 0.4rem;
    }

    .footer-chevron {
        display: flex !important;
    }

    .footer-column ul {
        gap: 0.4rem;
        margin-top: 0.15rem;
    }

    .footer-column ul li a {
        padding: 0;
    }

    .footer-column[data-expanded="false"] ul {
        margin-top: 0;
    }

    .footer-column ul li a {
        font-size: 0.9rem;
        padding-left: 0;
    }

    .footer-column ul li a::before {
        display: none;
    }

    .footer-column ul li a:hover {
        padding-left: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
        text-align: center;
    }

    .footer-tagline {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .footer-logo {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 0.875rem 0 0.625rem;
    }

    .footer-content {
        gap: 0.75rem;
        padding-bottom: 0.625rem;
        margin-bottom: 0.625rem;
    }

    .footer-column {
        padding-bottom: 0.4rem;
        margin-bottom: 0.4rem;
    }

    .footer-column-toggle {
        margin-bottom: 0.25rem;
        padding: 0.2rem 0;
    }

    .footer-column h4 {
        font-size: 0.9rem;
    }

    .footer-column:not([data-expanded]) h4 {
        margin: 0 0 0.3rem;
    }

    .footer-column ul {
        gap: 0.35rem;
        margin-top: 0.1rem;
    }

    .footer-column ul li a {
        font-size: 0.85rem;
    }

    .footer-brand {
        gap: 0.4rem;
    }

    .footer-logo {
        font-size: 1rem;
    }

    .footer-tagline {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .footer-bottom {
        gap: 0.5rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
        text-align: center;
    }
}