/* ============================================
   JB Renovations & Landscaping — Footer
   ============================================ */

:root {
    --footer-bg:      #241611;
    --footer-text:    #cbb9ad;
    --footer-heading: #ffffff;
    --footer-muted:   #8a7a70;
    --footer-border:  rgba(255,255,255,0.1);
    --orange:         #d98a3d;
    --orange-dark:    #c67a30;
}

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 70px 50px 0;
}

.site-footer a { text-decoration: none; }

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
}

/* ---------- Brand column ---------- */
.footer-brand-block {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.footer-brand-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.25;
    color: var(--footer-heading);
}

.footer-tagline {
    color: var(--footer-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 22px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--footer-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-heading);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
    background: var(--orange);
    border-color: var(--orange);
}

.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Link columns ---------- */
.footer-col h4 {
    color: var(--footer-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 20px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }

.footer-col ul li { margin-bottom: 14px; }

.footer-col ul a {
    color: var(--footer-text);
    font-size: 0.98rem;
    transition: color 0.2s ease;
}

.footer-col ul a:hover { color: var(--orange); }

/* ---------- Contact column ---------- */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--footer-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: var(--orange);
    fill: none;
}

.footer-contact a { color: var(--footer-text); }
.footer-contact a:hover { color: var(--orange); }

/* ---------- Bottom bar ---------- */
.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--footer-muted);
}

.footer-bottom-links a {
    color: var(--footer-muted);
    margin-left: 6px;
}
.footer-bottom-links a:hover { color: var(--orange); }
.footer-bottom-links .divider { margin: 0 8px; }

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.float-whatsapp,
.scroll-to-top {
    position: fixed;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    text-decoration: none;
    cursor: pointer;
    border: none;
}

/* WhatsApp — bottom-left */
.float-whatsapp {
    bottom: 28px;
    left: 28px;
    width: 60px;
    height: 60px;
    background: var(--orange);
    color: #fff;
}

.float-whatsapp svg { width: 30px; height: 30px; fill: #fff; }

.float-whatsapp .pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--orange);
    opacity: 0.55;
    animation: jb-pulse 2.2s ease-out infinite;
    z-index: -1;
}

@keyframes jb-pulse {
    0%   { transform: scale(1);   opacity: 0.55; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* Scroll to top — bottom-right */
.scroll-to-top {
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    background: transparent;
    border: 1.5px solid var(--orange);
    color: var(--orange);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

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

.scroll-to-top:hover {
    background: var(--orange);
    color: #fff;
}

.scroll-to-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        row-gap: 40px;
    }
    .site-footer { padding: 55px 30px 0; }
}

@media (max-width: 620px) {
    .footer-inner { grid-template-columns: 1fr; }

    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .float-whatsapp { width: 54px; height: 54px; bottom: 20px; left: 20px; }
    .float-whatsapp svg { width: 26px; height: 26px; }
    .scroll-to-top { width: 46px; height: 46px; bottom: 20px; right: 20px; }
}
