/* Sticky Footer Flex Layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.zolar-footer-section {
    position: relative;
    background-color: #242526;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    padding: 100px 0 80px;
    margin-top: auto; /* Pushes footer to the bottom */
}

.zolar-footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/wp-content/themes/zolar/img/zolar-footer-bg-layer-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

.zolar-footer-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
}

/* Left Form Container */
.zolar-footer-left {
    margin-top: -150px;
}

.zolar-footer-form-wrap {
    background-color: #f6faf9;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    color: #161616;
}

.zolar-footer-form-header {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #161616;
    margin-bottom: 10px;
}

.zolar-decor-asterisk {
    font-size: 18px;
}

.zolar-footer-form-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 30px;
}

.zolar-footer-form input,
.zolar-footer-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: 1px solid #e1e9e7;
    border-radius: 30px;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 15px;
    color: #161616;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.zolar-footer-form textarea {
    border-radius: 20px;
    resize: none;
}

.zolar-footer-form input:focus,
.zolar-footer-form textarea:focus {
    outline: none;
    border-color: var(--zolar-accent, #c8e86b);
}

.zolar-footer-btn {
    background-color: var(--zolar-accent, #c8e86b);
    color: #161616;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.zolar-footer-btn:hover {
    background-color: #b5d55b;
}

.zolar-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #161616;
    color: #ffffff;
    border-radius: 50%;
}

.zolar-footer-form-note {
    margin-top: 30px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Right Content Area */
.zolar-footer-right {
    display: flex;
    flex-direction: column;
}

/* Contact Row */
.zolar-footer-contact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.zolar-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.zolar-footer-contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.zolar-footer-contact-text {
    display: flex;
    flex-direction: column;
}

.zolar-footer-contact-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.zolar-footer-contact-value {
    color: #cccccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.zolar-footer-contact-value:hover {
    color: var(--zolar-accent, #c8e86b);
}

/* Divider */
.zolar-footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 50px;
}

/* Menus Row */
.zolar-footer-menus-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
}

/* Brand */
.zolar-footer-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px;
}

.zolar-footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.zolar-footer-tagline {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 30px;
    font-family: 'Space Grotesk', sans-serif;
}

.zolar-footer-brand-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding-bottom: 4px;
    border-bottom: 2px solid #ffffff;
    transition: color 0.3s, border-color 0.3s;
}

.zolar-footer-brand-link:hover {
    color: var(--zolar-accent, #c8e86b);
    border-color: var(--zolar-accent, #c8e86b);
}

/* Menus */
.zolar-footer-menu-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 25px;
    font-family: 'Space Grotesk', sans-serif;
}

.zolar-footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zolar-footer-nav li {
    margin-bottom: 15px;
}

.zolar-footer-nav a {
    color: #cccccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.zolar-footer-nav a:hover {
    color: var(--zolar-accent, #c8e86b);
}

/* Scroll To Top */
.zolar-footer-scroll-top {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: var(--zolar-accent, #c8e86b);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 10;
}

.zolar-footer-scroll-top:hover {
    background-color: #b5d55b;
    transform: translateY(-5px);
}

/* Apply box-sizing to everything in the footer */
.zolar-footer-section,
.zolar-footer-section * {
    box-sizing: border-box;
}

/* Responsive */
@media (max-width: 1024px) {
    .zolar-footer-container {
        grid-template-columns: 1fr;
    }
    
    .zolar-footer-left {
        margin-top: -150px;
        margin-bottom: 40px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .zolar-footer-section {
        padding: 180px 0 60px;
    }

    .zolar-footer-contact-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .zolar-footer-contact-item {
        background: rgba(255,255,255,0.03);
        padding: 20px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.05);
    }

    .zolar-footer-menus-row {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
    }
}

@media (max-width: 480px) {
    .zolar-footer-section {
        padding: 150px 0 50px;
    }
    
    .zolar-footer-left {
        margin-top: -180px; /* Pull it up more on small screens */
    }

    .zolar-footer-form-wrap {
        padding: 40px 25px;
        border-radius: 20px;
        box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    }
    
    .zolar-footer-form-title {
        font-size: 28px;
    }

    .zolar-footer-menus-row {
        grid-template-columns: 1fr 1fr; /* Keep 2 columns on mobile for menus */
    }

    .zolar-footer-brand-column {
        grid-column: span 2;
        text-align: center;
        margin-bottom: 20px;
    }

    .zolar-footer-logo {
        margin: 0 auto 20px;
    }

    .zolar-footer-tagline {
        font-size: 20px;
    }

    .zolar-footer-scroll-top {
        bottom: 20px;
        right: 20px;
    }
}
