/**
 * Brothers Home Inspection - Clean Footer
 * Simple, maintainable footer with responsive design
 */

/* ===========================
   CSS VARIABLES
   =========================== */
:root {
    --footer-bg: #E8E0BF;
    --footer-text: #2C2C2C;
    --footer-text-light: #4A4A4A;
    --footer-border: #2C2C2C;
    --brand-green: #4E612C;
    --brand-green-dark: #3a4821;
}

/* ===========================
   FOOTER - Full Width Wrapper
   =========================== */
.site-footer {
    font-family: "Poppins", sans-serif;
    color: var(--footer-text);
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
}

/* Main Footer Wrapper - Full width beige background */
.footer-main-wrapper {
    background-color: var(--footer-bg) !important;
    width: 100% !important;
    border-top: 1px solid rgba(78, 97, 44, 0.3) !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Contact Bar Wrapper - Full width beige LIGHT background */
.footer-contact-wrapper {
    background-color: #f5f1e5 !important;
    width: 100% !important;
    border-top: 1px solid rgba(78, 97, 44, 0.3) !important;
    display: block !important;
    box-sizing: border-box !important;
    font-family: "Poppins", sans-serif !important;
}

/* Copyright Wrapper - Full width GREEN background */
.footer-copyright-wrapper {
    background-color: var(--brand-green) !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Container for content - constrained width */
.footer-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* ===========================
   MAIN FOOTER AREA (4 Columns)
   =========================== */
.footer-main {
    display: grid;
    grid-template-columns: 28% 14% 14% 36%;
    gap: 20px;
    padding: 50px 0;
}

/* Push About Us and Services columns closer together */
.footer-col.footer-links {
    padding-left: 40px;
}

/* ===========================
   FOOTER COLUMNS
   =========================== */
.footer-col {
    padding: 15px 0;
}

/* Brand Column (Logo + Description) */
.footer-brand .footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

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

.footer-description {
    font-family: "Poppins", sans-serif !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    color: var(--footer-text) !important;
    margin: 0 !important;
    font-weight: 400 !important;
    text-align: justify !important;
}

/* ===========================
   FOOTER TITLES
   =========================== */
.footer-title {
    font-family: "Poppins", sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--footer-text) !important;
    margin: 0 0 18px 0 !important;
    text-transform: none !important;
    line-height: 1.3 !important;
}

/* ===========================
   FOOTER MENU LINKS
   =========================== */
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu li:last-child {
    margin-bottom: 0;
}

.footer-menu a {
    font-family: "Poppins", sans-serif !important;
    color: var(--footer-text-light) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    transition: color 0.3s ease !important;
}

.footer-menu a:hover {
    color: var(--brand-green);
}

/* ===========================
   NEWSLETTER FORM
   =========================== */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--brand-green);
    border-radius: 6px;
    font-family: "Poppins", sans-serif !important;
    font-size: 13px !important;
    background-color: #f5f1e5;
    color: var(--footer-text);
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--footer-text-light);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--brand-green);
}

.newsletter-form button {
    padding: 10px 20px;
    background-color: var(--brand-green);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: "Poppins", sans-serif !important;
    font-size: 13px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--brand-green-dark);
    transform: translateY(-2px);
}

/* ===========================
   SOCIAL ICONS
   =========================== */
.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--brand-green);
    border-radius: 50%;
    background-color: #f5f1e5;
    color: var(--brand-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.social-icon svg path {
    fill: currentColor;
}

.social-icon i {
    font-size: 18px;
    color: currentColor;
}

.social-icon:hover {
    background-color: var(--brand-green);
    color: #E8E0BF;
    border-color: var(--brand-green);
    transform: scale(0.9);
}

.social-icon:hover i,
.social-icon:hover svg {
    color: #E8E0BF;
}

.social-icon:hover svg path {
    fill: #E8E0BF;
}

/* ===========================
   CONTACT INFO BAR
   =========================== */
.footer-contact-bar {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    padding: 30px 0 !important;
}

.contact-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
}

.contact-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border: 1px solid var(--brand-green) !important;
    border-radius: 50% !important;
    background-color: #f5f1e5 !important;
    color: var(--brand-green) !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
}

.contact-icon svg {
    width: 22px !important;
    height: 22px !important;
    fill: currentColor !important;
}

.contact-icon i {
    font-size: 22px !important;
    color: currentColor !important;
}

.contact-item:hover .contact-icon {
    background-color: var(--brand-green) !important;
    color: #E8E0BF !important;
    transform: scale(0.9) !important;
}

.contact-item:hover .contact-icon i {
    color: #E8E0BF !important;
}

.contact-text,
.footer-contact-bar .contact-text,
.footer-contact-wrapper .contact-text {
    font-family: "Poppins", sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--brand-green) !important;
    letter-spacing: 0 !important;
}

/* ===========================
   COPYRIGHT - Green Background
   =========================== */
.footer-copyright {
    padding: 20px 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.footer-copyright p {
    margin: 0 !important;
}

/* Legal Links (Privacy Policy, Terms & Conditions) */
.footer-legal-links {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.footer-legal-links a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    transition: opacity 0.3s ease !important;
}

.footer-legal-links a:hover {
    opacity: 0.8 !important;
    text-decoration: underline !important;
}

.footer-legal-links .separator {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px !important;
}

.footer-copyright p {
    font-family: "Poppins", sans-serif !important;
    font-size: 13px !important;
    color: #ffffff !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

/* ===========================
   RESPONSIVE - TABLET
   =========================== */
@media screen and (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 30% 14% 14% 36%;
        padding: 40px 0;
        gap: 15px;
    }

    .footer-container {
        padding: 0 20px;
    }

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

/* ===========================
   RESPONSIVE - MOBILE
   =========================== */
@media screen and (max-width: 767px) {
    .footer-main {
        display: grid !important;
        grid-template-columns: auto auto !important;
        gap: 40px !important;
        padding: 30px 0 !important;
        justify-content: center !important;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

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

    .footer-description {
        text-align: center;
        max-width: 400px;
        margin: 0 auto;
    }

    /* About Us y Services lado a lado - centradas y cerca */
    .footer-col.footer-links {
        grid-column: auto !important;
        text-align: left !important;
        padding-left: 0px !important;
        justify-self: center !important;
        width: auto !important;
        max-width: none !important;
        flex: none !important;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-col.footer-links .footer-menu {
        display: block !important;
        text-align: left !important;
    }

    .footer-col.footer-links .footer-menu li {
        margin-bottom: 3px !important;
        text-align: left !important;
        display: block !important;
    }

    .footer-col.footer-links .footer-menu a {
        text-align: left !important;
        display: inline-block !important;
    }

    .footer-col.footer-links .footer-title {
        margin-bottom: 12px !important;
        text-align: left !important;
        color: var(--brand-green) !important;
    }

    .newsletter-form {
        flex-direction: column;
        max-width: 400px;
        margin: 0 auto 25px;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
    }

    .newsletter-form button {
        width: 100%;
    }

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

    .footer-contact-bar {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 25px 15px !important;
    }

    .contact-item {
        flex-direction: row !important;
        justify-content: flex-start !important;
        text-align: left !important;
        gap: 12px !important;
    }

    .contact-icon {
        width: 45px !important;
        height: 45px !important;
    }

    .contact-icon i {
        font-size: 18px !important;
    }

    .contact-text {
        font-size: 13px !important;
    }

    .footer-copyright {
        padding: 15px 0;
    }

    /* Full width fix for mobile */
    .site-footer,
    .footer-main-wrapper,
    .footer-contact-wrapper,
    .footer-copyright-wrapper {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .footer-container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-copyright {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }

    .footer-legal-links {
        justify-content: center !important;
    }
}

/* ===========================
   SMALL MOBILE
   =========================== */
@media screen and (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .footer-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        flex-direction: row !important;
        justify-content: flex-start !important;
        padding-left: 10px !important;
    }

    .contact-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .contact-icon i {
        font-size: 16px !important;
    }

    .contact-text {
        font-size: 12px !important;
    }
}
