/* 
* ZoeyComm Construction - Footer Styles
* Modular footer styling for consistent application across pages
*/

/* ===== FOOTER VARIABLES ===== */
:root {
    --footer-bg-color: #0f75bd;
    --footer-text-color: #ffffff;
    --footer-link-hover: #FFD700;
    --footer-border-color: rgba(255, 255, 255, 0.1);
    --footer-text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --footer-transition: all 0.3s ease;
    --button-color: #0a5285; /* Changed from orange for better contrast */
    --button-hover-color: #083f66; /* Darker shade for hover */
}

/* ===== FOOTER STRUCTURE ===== */
footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 30px 20px 10px; /* Reduced padding from 40px to 30px top */
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== FOOTER SECTIONS ===== */
.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px; /* Reduced from 30px */
    padding: 0 15px;
}

.footer-section img {
    height: 60px;
    width: 125px;
    margin-bottom: 10px; /* Reduced from 15px */
    display: block;
}

.footer-section h3 {
    margin-bottom: 15px; /* Reduced from 20px */
    font-size: 18px; /* Reduced from 20px */
    color: var(--footer-text-color);
    font-weight: 600;
    text-shadow: var(--footer-text-shadow);
}

.footer-section p,
.footer-section a {
    color: var(--footer-text-color);
    text-decoration: none;
    margin-bottom: 6px; /* Reduced from 10px */
    display: block;
    transition: var(--footer-transition);
    text-shadow: var(--footer-text-shadow);
    line-height: 1.4; /* Reduced from 1.6 */
}

.footer-section a:hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
}

/* ===== FOOTER LINKS ===== */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 6px; /* Reduced from 10px */
}

.footer-links ul li a {
    padding: 3px 0; /* Reduced from 5px */
    display: inline-block;
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
    text-align: center;
    padding-top: 15px; /* Reduced from 20px */
    margin-top: 15px; /* Reduced from 20px */
    border-top: 1px solid var(--footer-border-color);
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
    padding: 0 0 10px 0;
}

/* ===== FIXED BUTTONS ===== */
.fixed-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.back-to-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    transform: translateY(20px);
}

.back-to-top.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.call-now-button {
    display: flex;
    align-items: center;
    background-color: var(--button-color); /* Using the new variable */
    color: var(--footer-text-color);
    padding: 10px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--footer-transition);
    text-shadow: var(--footer-text-shadow);
    min-height: 44px; /* Minimum touch target size */
}

.call-now-button i {
    margin-right: 8px;
}

.call-now-button:hover {
    background-color: var(--button-hover-color); /* Using the new variable */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
    /* Mobile Footer */
    footer {
        padding: 25px 15px 10px; /* Reduced from 30px */
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-section {
        max-width: 100%;
        text-align: center;
        margin-bottom: 20px; /* Reduced from 25px */
    }
    
    .footer-section img {
        margin: 0 auto 10px; /* Reduced from 15px */
    }
    
    .footer-section h3 {
        font-size: 17px; /* Reduced from 18px */
        margin-bottom: 12px; /* Reduced from 15px */
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 14px; /* Reduced from 15px */
    }
    
    /* Mobile Fixed Buttons */
    .fixed-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .call-now-button {
        font-size: 14px;
        padding: 8px 12px 8px 15px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
    }
}