/* ============================================
   FOOTER SECTION STYLES
   ============================================ */

footer {
    background: var(--footer-bg);
    color: var(--text-primary);
    padding: 80px 20px 30px;
    margin-top: 100px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light mode footer text - default state (no data-theme attribute) */
footer {
    color: #ffffff;
}

footer .footer-section p {
    color: #e8e8e8;
}

footer .footer-section a {
    color: #ffffff;
}

footer .footer-bottom {
    color: #e8e8e8;
}

/* Brighten blue headings in light mode for footer readability */
footer .footer-section h4 {
    color: #5eb3e8;
}

footer strong {
    color: #ffffff;
}

/* Dark mode footer text - overrides for when data-theme="dark" is set */
[data-theme="dark"] footer {
    color: var(--text-primary);
}

[data-theme="dark"] footer .footer-section p {
    color: var(--text-secondary);
}

[data-theme="dark"] footer .footer-section a {
    color: var(--text-primary);
}

[data-theme="dark"] footer .footer-bottom {
    color: var(--text-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    font-size: 1.05rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-section a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.footer-section a:hover {
    color: var(--accent-color);
}

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

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

.footer-section ul li a {
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.footer-bottom p {
    margin: 0;
}

/* Address and Contact Info Styling */
footer address {
    font-style: normal;
}

footer strong {
    color: #ffffff;
}

[data-theme="dark"] footer strong {
    color: var(--text-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    footer {
        padding: 40px 20px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 30px 15px 10px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.95rem;
    }

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