/**
 * Footer styles for FungusHead Theme
 */

/* Footer Main Styles */
.site-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 0 40px;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

.site-footer .container {
    max-width: 1170px; /* Match site content width */
    width: auto;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Reset any parent container constraints */
body #page {
    overflow: visible;
}

body.page #content,
body.single #content,
body.blog #content,
body.archive #content {
    overflow: visible;
}

@media (max-width: 1200px) {
    .site-footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: black;
}

/* Footer Top Section - Logo and Newsletter */
.footer-top {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-logo {
    max-width: 100%;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 12px;
}

.footer-site-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 14px;
    color: black;
}

.footer-newsletter {
    max-width: 100%;
}

@media (min-width: 768px) {
    .footer-newsletter {
        max-width: 400px;
    }
}

.footer-form-row {
    display: flex;
    margin-top: 16px;
    max-width: 400px;
}

.footer-form-row input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 3px solid black;
    border-right: none;
    font-size: 14px;
    outline: none;
}

.footer-btn {
    height: 48px;
    padding: 0 16px;
    background-color: black;
    color: white;
    font-weight: bold;
    border: 3px solid black;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    background-color: var(--color-primary);
}

/* Footer Widgets Section */
.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

@media (min-width: 576px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: none;
    position: relative;
    color: #ffffff;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-widget p {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Fix for Contact Us section alignment */
.footer-widget:nth-child(4) {
    text-align: left;
}

.footer-widget:nth-child(4) .contact-info,
.footer-widget:nth-child(4) .contact-item {
    text-align: left;
    justify-content: flex-start;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0;
    background-color: #ffffff;
    color: #000000;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Links */
.footer-links, .contact-info {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* Contact Info */
.contact-info {
    margin: 0;
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: left;
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 14px;
}

.contact-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--color-primary);
}

.business-hours {
    display: flex;
    flex-direction: column;
}

.business-hours span {
    margin-bottom: 4px;
}

/* Footer Bottom Section */
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-brand {
    max-width: 100%;
}

@media (min-width: 768px) {
    .footer-brand {
        max-width: 70%;
    }
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

.footer-site-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 20px;
}

/* Back to Top Button */
.back-to-top-container {
    display: flex;
    justify-content: flex-end;
}

.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-top-btn:hover {
    background-color: #ffffff;
    color: var(--color-primary);
}

.back-to-top-btn svg {
    width: 16px;
    height: 16px;
}

/* Footer Legal Info */
.footer-legal {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.copyright {
    font-size: 14px;
    color: #999999;
    margin-bottom: 16px;
}

.disclaimer {
    font-size: 12px;
    color: #777777;
    max-width: 800px;
}

.disclaimer p {
    margin-bottom: 10px;
}

/* MOBILE: Center all footer content on mobile devices */
@media (max-width: 768px) {
    /* INCREASE ALL FONT SIZES BY 10% ON MOBILE */
    .site-footer {
        font-size: 110% !important;
    }
    
    /* Specific font size increases for key elements */
    .footer-site-title {
        font-size: 30.8px !important; /* 28px * 1.1 */
    }
    
    .footer-widget-title {
        font-size: 19.8px !important; /* 18px * 1.1 */
    }
    
    .footer-links a,
    .footer-widget p,
    .contact-item,
    .footer-tagline {
        font-size: 15.4px !important; /* 14px * 1.1 */
    }
    
    .back-to-top-btn {
        font-size: 15.4px !important; /* 14px * 1.1 */
    }
    
    .copyright {
        font-size: 15.4px !important; /* 14px * 1.1 */
    }
    
    .disclaimer {
        font-size: 13.2px !important; /* 12px * 1.1 */
    }
    
    /* Center footer top section */
    .footer-top {
        text-align: center !important;
        align-items: center !important;
    }
    
    .footer-logo {
        text-align: center !important;
    }
    
    .footer-newsletter {
        text-align: center !important;
    }
    
    /* Center all footer widgets */
    .footer-widgets {
        text-align: center !important;
    }
    
    .footer-widget {
        text-align: center !important;
    }
    
    .footer-widget-title {
        text-align: center !important;
    }
    
    .footer-widget-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .footer-links {
        text-align: center !important;
    }
    
    .contact-info {
        text-align: center !important;
    }
    
    .contact-item {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .business-hours {
        align-items: center !important;
        text-align: center !important;
    }
    
    /* Center social links */
    .social-links {
        justify-content: center !important;
    }
    
    /* Center footer bottom section */
    .footer-bottom {
        text-align: center !important;
        align-items: center !important;
    }
    
    .footer-brand {
        text-align: center !important;
    }
    
    .back-to-top-container {
        justify-content: center !important;
    }
    
    /* Center footer legal section */
    .footer-legal {
        text-align: center !important;
    }
    
    .copyright {
        text-align: center !important;
    }
    
    .disclaimer {
        text-align: center !important;
        margin: 0 auto !important;
    }
} 