/* Universal Footer Styles */
.site-footer {
    background: transparent;
    color: #3e2723;
    padding: 90px 90px 90px 90px;
    margin-top: 90px;
    width: 100%;
    position: relative;
    clear: both;
    border-top: 1px solid #8d6e63;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding-bottom: 20px;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-logo img {
    height: 24px;
    width: auto;
}

.footer-copyright {
    font-size: 13px;
    color: #6d4c41;
    line-height: 1.6;
    margin: 0;
}

/* Footer Links */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: #3e2723;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::before {
    content: '›';
    margin-right: 8px;
    color: #d84315;
    font-weight: bold;
}

.footer-links a:hover {
    color: #d84315;
}

/* Footer Contact */
.footer-email {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.footer-email .material-icons {
    color: #d84315;
    font-size: 20px;
}

.footer-email a {
    color: #3e2723;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-email a:hover {
    color: #d84315;
}

/* Footer About */
.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    color: #8d6e63;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 15px 15px !important;
        margin-top: 40px;
        margin-bottom: 180px !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-section h4 {
        font-size: 15px;
    }

    .footer-logo img {
        height: 40px;
    }
}

/* Tablet Responsive (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {

    /* Footer: Two-row layout */
    .site-footer .footer-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    /* Row 1: Logo and Copyright (horizontal, centered) */
    .footer-section.footer-brand {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        gap: 16px;
    }

    .footer-logo {
        margin-bottom: 0;
    }

    .footer-copyright {
        text-align: center;
    }

    /* Row 2: Links and Email (horizontal) */
    .footer-section.footer-links,
    .footer-section.footer-contact {
        width: auto;
    }

    .footer-section.footer-links ul {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-section.footer-links li {
        margin: 0;
    }

    .footer-contact {
        display: flex;
        align-items: center;
    }
}

@media (max-width: 767px) {

    /* Mobile footer - 4 rows, centered */
    .site-footer {
        padding: 40px 20px 100px 20px;
        /* Extra bottom padding for bottom nav */
        margin-top: 40px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    /* Row 1: Logo */
    .footer-section.footer-brand {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .footer-logo img {
        height: 28px;
    }

    /* Row 2: Copyright */
    .footer-copyright {
        text-align: center;
        font-size: 12px;
    }

    /* Row 3: Links */
    .footer-section.footer-links {
        width: 100%;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .footer-links li {
        width: 100%;
        text-align: center;
    }

    /* Row 4: Email */
    .footer-section.footer-contact {
        width: 100%;
    }

    .footer-email {
        justify-content: center;
        font-size: 13px;
    }
}