/**
 * Footer Styles
 * Styles for the site footer
 */

.site-footer {
    position: relative;
    background: linear-gradient(to bottom right, #ffffff, #f3f4f6);
    color: #000000;
    width: 100%;
}

.footer-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 640px) {
    .footer-container {
        padding: 0 2rem;
    }
}

/* Footer Main Content */
.footer-main {
    display: grid;
    gap: 3rem;
    padding: 4rem 0;
}

@media (min-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        padding: 5rem 0;
    }
}

/* Brand Section */
.footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-logo {
    width: auto;
    max-width: 200px;
    margin: 0 auto;
    object-fit: contain;
}

@media (min-width: 1024px) {
    .footer-logo {
        margin: 0;
    }
}

.footer-site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-primary-color, #991b1b);
}

.footer-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.6;
}

.footer-accent-line {
    width: 4rem;
    height: 0.25rem;
    background-color: var(--theme-primary-color, #991b1b);
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .footer-accent-line {
        margin: 0;
    }
}

/* Footer Navigation Grid */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

.footer-nav-grid:empty {
    display: none;
}

@media (min-width: 768px) {
    .footer-nav-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
}

@media (min-width: 1280px) {
    .footer-nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Footer Columns */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-column-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--theme-primary-color, #991b1b);
    margin: 0;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #000000;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--theme-primary-color, #991b1b);
}

.footer-note {
    font-size: 0.875rem;
    color: #000000;
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(153, 27, 27, 0.3);
    padding: 1.5rem 0;
}

.footer-bottom-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--theme-primary-color, #991b1b), transparent);
    opacity: 0.3;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 1.5rem;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: #000000;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .footer-legal-links {
        justify-content: flex-end;
    }
}

.footer-legal-links a {
    font-size: 0.875rem;
    color: #000000;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--theme-primary-color, #991b1b);
}
