/**
 * Footer Styles
 * 
 * @package ChildTheme_Clean
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

.site-footer.footer-main {
    background-color: #fff;
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Ensure footer doesn't create stacking context above drawer */
    transform: none;
    filter: none;
    isolation: auto;
}

/* Force footer below cart drawer on mobile */
@media (max-width: 767px) {
    .site-footer.footer-main,
    .site-footer,
    footer {
        z-index: 1 !important;
        position: relative !important;
        overflow: visible !important;
        isolation: auto !important;
        transform: none !important;
        filter: none !important;
    }
}

/* Background watermark text */
.footer-watermark {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.footer-watermark-inner {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-watermark-text {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 3.75rem;
    font-weight: 400;
    color: #171717;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .site-footer.footer-main {
        padding: 4rem 1.5rem;
    }

    .footer-watermark-text {
        font-size: 5rem;
    }
}

@media (min-width: 1024px) {
    .footer-watermark-text {
        font-size: 5.625rem;
    }
}

/* Footer Container */
.footer-container-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .footer-container-inner {
        padding: 0 1.5rem;
    }
}

/* Footer Columns Grid */
.footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        margin-bottom: 4rem;
    }
}

@media (min-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(3, 1fr) 1.5fr;
        gap: 3rem;
    }
}

/* Footer Section */
.footer-section {
    margin-bottom: 0;
}

.footer-section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

@media (min-width: 768px) {
    .footer-section-toggle {
        width: auto;
        display: block;
        margin-bottom: 1.5rem;
    }
}

.footer-section-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #171717;
    text-transform: uppercase;
    margin: 0;
}

@media (min-width: 768px) {
    .footer-section-title {
        font-size: 1.25rem;
    }
}

.footer-toggle-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .footer-toggle-icon {
        display: none;
    }
}

.footer-section-toggle[aria-expanded="true"] .footer-toggle-icon {
    transform: rotate(180deg);
}

/* Footer Section Content */
.footer-section-content {
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
}

@media (min-width: 768px) {
    .footer-section-content {
        max-height: none;
        opacity: 1;
    }
}

.footer-section-toggle[aria-expanded="true"]+.footer-section-content,
.footer-section-content.active {
    max-height: 1000px;
    opacity: 1;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #525252;
    padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-links {
        padding-bottom: 0;
    }
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #525252;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #171717;
}

/* Footer Contact Section */
.footer-contact-section {
    margin-bottom: 0;
}

/* Contact section always open on mobile */
.footer-contact-section .footer-section-content {
    max-height: 1000px !important;
    opacity: 1 !important;
}

/* Hide toggle button for contact section on mobile */
@media (max-width: 767px) {
    .footer-contact-section .footer-section-toggle {
        pointer-events: none;
        cursor: default;
    }

    .footer-contact-section .footer-toggle-icon {
        display: none;
    }
}

.footer-contact-box {
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: #fff;
}

@media (min-width: 768px) {
    .footer-contact-box {
        padding: 2rem;
    }
}

/* Force contact box and social links to always be visible on mobile */
@media (max-width: 767px) {
    .footer-contact-section .footer-contact-box {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .footer-contact-section .footer-social-links {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 1.25rem !important;
    }
}

.footer-contact-text {
    font-size: 0.875rem;
    color: #525252;
    margin: 0 0 1rem 0;
}

@media (min-width: 768px) {
    .footer-contact-text {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
}

.footer-contact-email {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color, #245c2a);
    text-decoration: none;
    display: block;
    margin-bottom: 1.25rem;
    transition: opacity 0.2s ease;
    word-break: break-all;
}

@media (min-width: 768px) {
    .footer-contact-email {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
}

.footer-contact-email:hover {
    opacity: 0.8;
}

/* Footer Social Links */
.footer-social-links {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 1.25rem !important;
}

@media (min-width: 768px) {
    .footer-social-links {
        gap: 1.25rem;
    }
}

/* Force visibility on mobile */
@media (max-width: 767px) {
    .footer-social-links {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 1.25rem !important;
    }
}

.footer-social-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 1.25rem !important;
    min-height: 1.25rem !important;
    width: auto !important;
    height: auto !important;
    flex-shrink: 0 !important;
}

/* Force visibility on mobile */
@media (max-width: 767px) {
    .footer-social-link {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 1.25rem !important;
        min-height: 1.25rem !important;
    }
}

.footer-social-link:hover {
    opacity: 0.8;
}

.footer-social-icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
    color: #404040;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    flex-shrink: 0 !important;
}

/* Override base.css SVG constraints for footer social icons */
.footer-social-links svg,
.footer-social-link svg,
.footer-social-icon {
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    min-width: 1.25rem !important;
    min-height: 1.25rem !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* Force SVG icons to be visible on mobile */
@media (max-width: 767px) {

    .footer-social-links svg,
    .footer-social-link svg,
    .footer-social-icon {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 1.25rem !important;
        max-height: 1.25rem !important;
        min-width: 1.25rem !important;
        min-height: 1.25rem !important;
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
}

.footer-social-link:hover .footer-social-icon {
    color: inherit;
}

/* Instagram hover color */
.footer-social-link[aria-label="Instagram"]:hover .footer-social-icon {
    color: #E4405F;
}

/* WhatsApp hover color */
.footer-social-link[aria-label="WhatsApp"]:hover .footer-social-icon {
    color: #25D366;
}

/* Facebook hover color */
.footer-social-link[aria-label="Facebook"]:hover .footer-social-icon {
    color: #1877F2;
}

/* Location hover color */
.footer-social-link[aria-label="Location"]:hover .footer-social-icon {
    color: var(--primary-color, #245c2a);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #e5e5e5;
    padding-top: 2rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        padding-top: 3rem;
    }
}

.footer-bottom-inner {
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        margin-bottom: 2rem;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: #404040;
    margin: 0 0 1.5rem 0;
}

@media (min-width: 768px) {
    .footer-copyright {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

.footer-bottom-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #525252;
}

@media (min-width: 768px) {
    .footer-bottom-nav {
        gap: 1.5rem;
        font-size: 0.875rem;
    }
}

.footer-bottom-link {
    color: #525252;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-link:hover {
    color: #171717;
}

.footer-bottom-separator {
    color: #d4d4d4;
}

.footer-tagline {
    text-align: center;
}

.footer-tagline-text {
    font-size: 0.75rem;
    color: #737373;
    font-style: italic;
    margin: 0;
}

@media (min-width: 768px) {
    .footer-tagline-text {
        font-size: 0.875rem;
    }
}

/* Remove empty space after footer on all screen sizes */
.site-footer.footer-main,
.site-footer,
footer {
    margin-bottom: 0 !important;
}

/* Ensure no extra space after footer */
body > #page:last-child,
body > .site:last-child {
    margin-bottom: 0 !important;
}

/* Remove any padding/margin on body after footer */
body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

html {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Mobile-specific: Remove blank space under footer */
@media (max-width: 767px) {
    .site-footer.footer-main,
    .site-footer,
    footer,
    #page .site-footer,
    #page footer {
        margin-bottom: 0 !important;
    }
    
    body {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    html {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    #page.site {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Ensure no extra space after footer container */
    .footer-tagline {
        margin-bottom: 0 !important;
    }
    
    .footer-tagline-text {
        margin-bottom: 0 !important;
    }
}