/* ═══════════════════════════════════════════════
   SPRUCE UP — footer.css
   Scope: .su-footer and all children
   Font: Poppins (loaded via functions.php)
═══════════════════════════════════════════════ */

/* ══════════════════════════════════
   FOOTER BASE
══════════════════════════════════ */
.su-footer {
    background: #ffffff;
    color: #1C1C1C;
    font-family: 'Poppins', sans-serif;
    position: relative;
    border-top: 1px solid rgba(28,28,28,0.08);
}

/* Yellow top accent line */
.su-footer::before {
    content: '';
    display: block;
    height: 3px;
    background: #F5C800;
}

/* Shared inner container */
.su-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ══════════════════════════════════
   CTA BAND
══════════════════════════════════ */
.su-footer-cta {
    background: #F5C800;
    border-bottom: 1px solid rgba(28,28,28,0.08);
    padding: 40px 0;
}

.su-footer-cta .su-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.su-footer-cta__eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(28,28,28,0.55);
    margin-bottom: 6px;
}

.su-footer-cta__headline {
    font-size: 22px;
    font-weight: 400;
    color: rgba(28,28,28,0.85);
    line-height: 1.3;
    margin: 0;
}

.su-footer-cta__headline strong {
    color: #1C1C1C;
    font-weight: 700;
}

.su-footer-cta__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Ghost button — on yellow CTA band */
.su-footer-btn--ghost {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border: 1px solid rgba(28,28,28,0.25);
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(28,28,28,0.7);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.su-footer-btn--ghost:hover {
    border-color: rgba(28,28,28,0.5);
    color: #1C1C1C;
}

/* CTA button — reuse from header vars */
.su-footer .su-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #F5C800;
    color: #1C1C1C;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.su-footer .su-cta:hover {
    background: #e0b500;
    transform: translateY(-1px);
}

.su-footer .su-cta svg {
    width: 13px;
    height: 13px;
}

/* ══════════════════════════════════
   MAIN GRID
══════════════════════════════════ */
.su-footer__main {
    padding: 60px 0 48px;
}

.su-footer__grid {
    display: grid;
    grid-template-columns: 260px 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* ══════════════════════════════════
   COL 1 — BRAND
══════════════════════════════════ */
.su-footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 18px;
}

.su-footer__logo-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.su-footer__logo-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.su-footer__logo-name {
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #1C1C1C;
    display: block;
    line-height: 1;
}

.su-footer__logo-sub {
    font-size: 7.5px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(28,28,28,0.4);
    display: block;
    margin-top: 3px;
}

.su-footer__tagline {
    font-size: 12.5px;
    line-height: 1.75;
    color: #666666;
    margin-bottom: 22px;
}

/* Social icons — round */
.su-footer__social {
    display: flex;
    gap: 8px;
}

.su-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(28,28,28,0.06);
    border: 1px solid rgba(28,28,28,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.su-social-btn:hover {
    background: rgba(28,28,28,0.1);
    border-color: rgba(28,28,28,0.25);
    color: #1C1C1C;
    transform: translateY(-2px);
}

.su-social-btn--wa { color: #25D366; border-color: rgba(37,211,102,0.3); }
.su-social-btn--wa:hover { background: rgba(37,211,102,0.1); border-color: rgba(37,211,102,0.6); color: #25D366; }
/* Brand colours per platform */
.su-social-btn--li { color: #0A66C2; }
.su-social-btn--li:hover { background: rgba(10,102,194,0.08); border-color: rgba(10,102,194,0.35); color: #0A66C2; }
.su-social-btn--ig { color: #E1306C; }
.su-social-btn--ig:hover { background: rgba(225,48,108,0.08); border-color: rgba(225,48,108,0.35); color: #E1306C; }
.su-social-btn--fb { color: #1877F2; }
.su-social-btn--fb:hover { background: rgba(24,119,242,0.08); border-color: rgba(24,119,242,0.35); color: #1877F2; }
.su-social-btn--yt { color: #FF0000; }
.su-social-btn--yt:hover { background: rgba(255,0,0,0.08); border-color: rgba(255,0,0,0.25); color: #FF0000; }

.su-social-btn svg {
    width: 15px;
    height: 15px;
}

/* ══════════════════════════════════
   LINK COLUMNS
══════════════════════════════════ */
.su-footer__col-title {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #a07800;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(28,28,28,0.1);
}

.su-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.su-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #555555;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.18s ease;
}

.su-footer__links a::before {
    content: '›';
    color: #a07800;
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.su-footer__links a:hover {
    color: #1C1C1C;
    gap: 10px;
}

/* ══════════════════════════════════
   COL 4 — REGION CONTACT
══════════════════════════════════ */

/* Region tabs */
.su-footer__region-tabs { display: none !important;

    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.su-footer__region-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    background: transparent;
    border: 1px solid rgba(28,28,28,0.15);
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.su-footer__region-tab:hover {
    border-color: rgba(28,28,28,0.35);
    color: #1C1C1C;
}

.su-footer__region-tab--active {
    background: #F5C800;
    border-color: #F5C800;
    color: #1C1C1C;
}

/* Circular flags in footer region tabs */
.su-footer__region-tab .su-region__flag-wrap {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    background: transparent;
    flex-shrink: 0;
}

/* Contact info panels */
.su-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.su-footer__contact--hidden {
    display: none;
}

.su-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.su-footer__contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: rgba(245,200,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.su-footer__contact-icon svg {
    width: 13px;
    height: 13px;
}

.su-footer__contact-item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.su-footer__contact-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #999999;
    display: block;
}

.su-footer__contact-item span:not(.su-footer__contact-label),
.su-footer__contact-item a {
    font-size: 12.5px;
    color: #444444;
    text-decoration: none;
    line-height: 1.55;
    transition: color 0.2s ease;
}

.su-footer__contact-item a:hover {
    color: #1C1C1C;
}

/* Newsletter */
.su-footer__newsletter {
    border-top: 1px solid rgba(28,28,28,0.08);
    padding-top: 18px;
}

.su-footer__newsletter-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #999999;
    margin: 0 0 10px;
}

.su-footer__newsletter-wrap {
    display: flex;
    border: 1px solid rgba(28,28,28,0.15);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.su-footer__newsletter-wrap:focus-within {
    border-color: #F5C800;
}

.su-footer__newsletter-wrap input {
    flex: 1;
    background: #f5f5f5;
    border: none;
    padding: 10px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    color: #1C1C1C;
    outline: none;
    min-width: 0;
}

.su-footer__newsletter-wrap input::placeholder {
    color: #aaaaaa;
}

.su-footer__newsletter-wrap button {
    background: #F5C800;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1C1C1C;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.su-footer__newsletter-wrap button:hover {
    background: #e0b500;
}

.su-footer__newsletter-wrap button svg {
    width: 15px;
    height: 15px;
}

/* ══════════════════════════════════
   DIVIDER
══════════════════════════════════ */
.su-footer__divider {
    height: 1px;
    background: rgba(28,28,28,0.08);
    margin: 0 48px;
    max-width: calc(1200px - 96px);
    margin-left: auto;
    margin-right: auto;
}

/* ══════════════════════════════════
   BOTTOM BAR
══════════════════════════════════ */
.su-footer__bottom {
    padding: 20px 0;
}

.su-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.su-footer__bottom-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.su-footer__copyright {
    font-size: 11.5px;
    color: #888888;
}

.su-footer__copyright strong {
    color: #444444;
    font-weight: 600;
}

.su-footer__reg {
    font-size: 10px;
    color: #bbbbbb;
    letter-spacing: 0.02em;
}

.su-footer__legal {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.su-footer__legal a {
    font-size: 11px;
    color: #888888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.su-footer__legal a:hover {
    color: #1C1C1C;
}

.su-footer__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(28,28,28,0.15);
    flex-shrink: 0;
}

.su-footer__made {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    color: #bbbbbb;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1024px) {
    .su-footer__inner {
        padding: 0 32px;
    }

    .su-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }

    .su-footer__col--brand {
        grid-column: 1 / -1;
    }

    .su-footer__divider {
        margin: 0 32px;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .su-footer-cta .su-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .su-footer-cta__headline {
        font-size: 18px;
    }

    .su-footer__inner {
        padding: 0 20px;
    }

    .su-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .su-footer__col--brand {
        grid-column: auto;
    }

    .su-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .su-footer__legal {
        gap: 10px;
    }

    .su-footer__divider {
        margin: 0 20px;
    }

    .su-footer__made {
        display: none;
    }
}

@media (max-width: 480px) {
    .su-footer-cta__actions {
        flex-direction: column;
        width: 100%;
    }

    .su-footer-cta__actions .su-footer-btn--ghost,
    .su-footer-cta__actions .su-cta {
        width: 100%;
        justify-content: center;
    }

    .su-footer__region-tabs {
        flex-wrap: wrap;
    }
}

/* ════════════════════════════════════════════
   V7 FIXES — Footer CTA button bleed fix
════════════════════════════════════════════ */

/* Prevent "Get a Quote" button from bleeding out of container */
.su-footer-cta__actions {
    flex-wrap: nowrap;
    align-items: center;
}
.su-footer-cta__actions .su-cta,
.su-footer-cta__actions .su-footer-btn--ghost {
    white-space: nowrap;
    flex-shrink: 0;
}
/* On small screens stack vertically but keep each button full-width contained */
@media (max-width: 600px) {
    .su-footer-cta .su-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .su-footer-cta__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .su-footer-cta__actions .su-cta,
    .su-footer-cta__actions .su-footer-btn--ghost {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

.su-footer__region-tab { display: none !important; }
