/* Footer specific modern styles */
.modern-footer {
    color: var(--text-primary);
    padding: 40px 0 20px;
    font-family: var(--font-family-primary);
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: "";
    position: absolute;
    top: -20%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #f0748d, #6577cf);
    pointer-events: none;
}

.modern-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0 20px;
    align-items: stretch;
}

.modern-footer .footer-col {
    flex: 1 1 220px;
    min-width: 220px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.modern-footer .footer-col.about {
    width: 360px;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-4);
}

.modern-footer .footer-col.about p {
    margin-bottom: 5px;
    line-height: 1.5;
    font-size: 16px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.modern-footer .footer-col h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 1.2em;
}

.modern-footer .footer-col p,
.modern-footer .footer-col li,
.modern-footer .footer-col a {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.modern-footer .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-footer .footer-col ul li {
    margin-bottom: 8px;
}

.modern-footer .footer-col ul li a {
    text-decoration: none;
    color: var(--text-secondary);
}

.modern-footer .footer-col ul li a:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.modern-footer .footer-logo {
    width: 100px;
    max-width: 150px;
    height: auto;
    margin-bottom: 5px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    background-color: #fff;
    justify-content: center;
    align-items: center;
}

.footer-extra {
    max-width: 1200px;
    margin: 0 auto 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 0 20px;
}

.footer-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.footer-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.footer-newsletter {
    max-width: 1200px;
    margin: 0 auto 16px;
    padding: 0 20px;
    text-align: center;
}

.newsletter-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.newsletter-form input[type="email"] {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    min-width: 260px;
    font-size: 0.95rem;
}

.newsletter-form button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.newsletter-desc {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 12px 0 0;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-social a i {
    font-size: 1rem;
}

.footer-social a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.footer-payments {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin: 10px 0;
}

.footer-payments i {
    font-size: 1.6rem;
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    padding-bottom: 16px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-legal {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .modern-footer .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-extra {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .modern-footer {
        padding: 28px 0 14px;
    }

    .modern-footer .footer-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .modern-footer .footer-col.about {
        width: fit-content;
        text-align: left;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-4);
    }

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

    .newsletter-form input[type="email"] {
        min-width: 100%;
    }
}

/* Accessibility focus states */
.footer-social a:focus,
.newsletter-form button:focus {
    outline: 3px solid rgba(99, 102, 241, 0.18);
    outline-offset: 3px;
}