/* ============================================
   FOOTER.CSS — Homeland Tree Service
   Background : #1A2CA3 | All text : #ffffff
   FULLY RESPONSIVE - All Breakpoints
   ============================================ */

/* ── Kill any unstyled widget footer ─────── */
.widget-area,
#secondary,
.footer-widgets,
aside.widget-area {
    display: none !important;
}

/* ── Variables ────────────────────────────── */
:root {
    --footer-bg:     #1A2CA3;
    --footer-text:   #ffffff;
    --footer-muted:  rgba(255, 255, 255, 0.65);
    --footer-border: rgba(255, 255, 255, 0.15);
    --footer-font:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Base ─────────────────────────────────── */
.site-footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    font-family: var(--footer-font);
    font-size: 14px;
    line-height: 1.7;
    width: 100%;
    clear: both;
}

/* ── Container ────────────────────────────── */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Main grid ────────────────────────────── */
.footer-main {
    padding: 60px 0 40px;
}

.footer-main .footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px 32px;
    align-items: start;
}

/* ── Headings ─────────────────────────────── */
.footer-heading {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff !important;
    margin: 0 0 18px 0;
    padding: 0;
}

/* ── Description text ─────────────────────── */
.footer-text {
    color:#fff!important;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* ── Link lists ───────────────────────────── */
.footer-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* ── Bottom bar ───────────────────────────── */
.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 20px 0;
    background-color: var(--footer-bg) !important;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 14px;
    color: var(--footer-muted) !important;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    font-size: 14px;
    color: var(--footer-muted) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.footer-brand-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.footer-brand-link:hover {
    color: #FFB300;
    text-decoration: underline;
}

/* ── Footer Map Wrapper ───────────────────── */
.footer-col-map .footer-map-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.footer-col-map .footer-map-wrapper iframe {
    width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
    border: none !important;
    display: block;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   Media visibility only - No code changes
============================================ */

/* LARGE DESKTOP (1200px and above) - Default */

/* DESKTOP (1024px - 1199px) */
@media (max-width: 1199px) {
    .footer-main .footer-container {
        gap: 35px 30px;
    }
    
    .footer-heading {
        font-size: 16px;
    }
    
    .footer-text,
    .footer-links a {
        font-size: 18px;
    }
}

/* ============================================
   TABLET & MOBILE (max-width: 1024px)
   Unified layout so tablet matches mobile
============================================ */
@media (max-width: 1024px) {
    .footer-main {
        padding: 45px 0 30px;
    }

    .footer-main .logo {
        display: flex;
        justify-content: center;
        margin-bottom: 30px;
    }
    
    .footer-main .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-heading {
        font-size: 20px;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-text {
        font-size: 18px;
        text-align: center;
    }
    
    .footer-links a {
        font-size: 16px;
    }
    
    .footer-container {
        padding: 0 18px;
    }
    
    .footer-bottom {
        padding: 16px 0;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* MOBILE MEDIUM (480px and below) */
@media (max-width: 480px) {
    .footer-main {
        padding: 35px 0 25px;
    }
    
    .footer-main .footer-container {
        gap: 25px;
    }
    
    .footer-heading {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .footer-text {
        font-size: 18px;
        line-height: 1.6;
    }
    
    .footer-links a {
        font-size: 16px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-bottom {
        padding: 14px 0;
    }
    
    .footer-copy {
        font-size: 14px;
    }
    
    .footer-bottom-links a {
        font-size: 14px;
    }
    
    .footer-bottom-links {
        gap: 12px;
    }
}

/* MOBILE SMALL (375px and below) */
@media (max-width: 375px) {
    .footer-main {
        padding: 30px 0 20px;
    }
    
    .footer-main .footer-container {
        gap: 22px;
    }
    
    .footer-heading {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .footer-text {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .footer-links a {
        font-size: 16px;
    }
    
    .footer-links li {
        margin-bottom: 6px;
    }
    
    .footer-container {
        padding: 0 12px;
    }
    
    .footer-bottom {
        padding: 12px 0;
    }
    
    .footer-copy {
        font-size: 14px;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .footer-bottom-links a {
        font-size: 14px;
    }
    
    .footer-bottom-inner {
        align-items: center;
        text-align: center;
    }
}

/* EXTRA SMALL (320px and below) */
@media (max-width: 320px) {
    .footer-main {
        padding: 25px 0 18px;
    }
    
    .footer-main .footer-container {
        gap: 20px;
    }
    
    .footer-heading {
        font-size: 20px;
    }
    
    .footer-text {
        font-size: 18px;
    }
    
    .footer-links a {
        font-size: 16px;
    }
    
    .footer-container {
        padding: 0 10px;
    }
    
    .footer-copy {
        font-size: 14px;
    }
}

/* HOVER EFFECTS - Desktop only */
@media (hover: hover) {
    .footer-links a:hover,
    .footer-links a:focus {
        color: #FFB300 !important;
        text-decoration: underline !important;
    }
    
    .footer-bottom-links a:hover {
        color: #FFB300 !important;
    }
    
    .footer-brand-link:hover {
        color: #FFB300;
    }
}

/* TOUCH DEVICES - Remove hover effects */
@media (hover: none) {
    .footer-links a:hover,
    .footer-links a:focus {
        text-decoration: none !important;
    }
}

/* PRINT STYLES */
@media print {
    .site-footer {
        background: #fff !important;
        color: #000 !important;
    }
    
    .footer-links a {
        color: #000 !important;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .footer-links a,
    .footer-brand-link {
        transition: none;
    }
}