/* ========================================
   Fraser Valley Cleaning Solutions
   Footer Styles - Clean & Professional
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-acc-color: #5C4B10;
    --text-acc-color: #EABE0D;
    --bg-primary-color: #f0eee6;
    --text-color: #ffffff;
    --bg-dark: #3d3209;
    --border-color: rgba(234, 190, 13, 0.3);
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* ========================================
   Footer Main Styles
   ======================================== */

.footer {
     background: linear-gradient(180deg,
            #7e6815 0%,
            var(--bg--acc-color) 100%);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(234, 190, 13, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(234, 190, 13, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 0;
    position: relative;
    z-index: 1;
}

/* ========================================
   Footer Top Section
   ======================================== */

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

/* Company Info */
.footer-company {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo img {
    max-width: 280px;
    height: auto;
    margin-bottom: 15px;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 0.85;
}

.company-tagline {
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--text-acc-color);
    margin-bottom: 10px;
    line-height: 1.5;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact_item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.contact_item i {
    width: 20px;
    color: var(--text-acc-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.contact_item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacitem a:hover {
    color: var(--text-acc-color);
}

/* Services & Links Sections */
.footer-services,
.footer-links-section {
    display: flex;
    flex-direction: column;
}

.footer-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.services-list,
.quick-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.services-list a,
.quick-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    transition: all 0.3s ease;
}

.services-list a i {
    font-size: 0.75rem;
    color: var(--text-acc-color);
    width: 16px;
}

.services-list a:hover,
.quick-links a:hover {
    color: var(--text-acc-color);
    padding-left: 8px;
}

/* ========================================
   Footer Bottom Section
   ======================================== */

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px 40px;
    margin: 0 -40px;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    background: rgba(234, 190, 13, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--text-acc-color);
    color: var(--bg-acc-color);
    border-color: var(--text-acc-color);
    transform: translateY(-3px);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(234, 190, 13, 0.1);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
}

.badge i {
    color: var(--text-acc-color);
    font-size: 0.9rem;
}

/* Legal Links */
.legal-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--text-acc-color);
}

.legal-links span {
    color: var(--border-color);
}

/* ========================================
   Back to Top Button
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--text-acc-color);
    border: none;
    border-radius: 50%;
    color: var(--bg-acc-color);
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(234, 190, 13, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(234, 190, 13, 0.5);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 40px 25px 0;
    }

    .footer-bottom {
        padding: 25px 25px;
        margin: 0 -25px;
    }

    .footer-bottom-links {
        flex-direction: column;
        width: 100%;
    }

    .trust-badges {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .legal-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 30px 20px 0;
    }

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

    .footer-section-title {
        font-size: 1.1rem;
    }

    .company-tagline {
        font-size: 0.95rem;
    }

    .contact_item {
        font-size: 0.85rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.1rem;
    }

    .footer-bottom {
        padding: 20px 20px;
        margin: 0 -20px;
    }
}