.footer {
    background: #fff;
    color: var(--text);
    padding: 60px 24px 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
    border-top: none;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1320px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

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

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-wrapper .logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 800;
}

.footer-logo-wrapper strong {
    font-size: 1.2rem;
    color: var(--text);
}

.footer-links h4, .footer-newsletter h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: var(--muted);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    width: fit-content;
}

.footer-nav a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-newsletter p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

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

.newsletter-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--accent-2);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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