/* Footer + pre-footer CTA — reference layout */

/* Pre-footer CTA strip */
.pre-footer-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 140px;
}

.pre-footer-left {
    background: linear-gradient(135deg, #0570AE, #0570AE);
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.pre-footer-left h3 {
    color: #fff;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    max-width: 380px;
    line-height: 1.35;
}

.btn-callback {
    background: #0570AE;
    color: #fff;
    border: none;
    padding: .65rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    transition: all .2s;
}

.btn-callback:hover {
    background: #0570AE;
    color: #fff;
    transform: translateY(-2px);
}

.pre-footer-right {
    background: #fff;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.pre-footer-right h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #023B5E;
    margin-bottom: 1rem;
}

.partner-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.partner-badge {
    background: #ffffff;
    border: 1px solid #C3C3C3;
    border-radius: 8px;
    padding: .5rem 1rem;
    font-size: .75rem;
    font-weight: 700;
    color: #767B79;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.partner-badge i { color: #0570AE; font-size: 1.25rem; }

/* Main footer */
.site-footer {
    background: linear-gradient(180deg, #023B5E 0%, #023B5E 100%);
    color: rgba(255, 255, 255, .85);
    padding: 3rem 0 0;
    font-size: .88rem;
}

.site-footer a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    transition: color .15s;
}

.site-footer a:hover { color: #0570AE; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-brand img { max-height: 48px; margin-bottom: 1rem; }

.footer-brand .tagline {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    margin-top: -.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: .85rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 1.25rem;
    max-width: 280px;
}

.footer-mini-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.footer-mini-badge {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    padding: .35rem .6rem;
    font-size: .65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
}

.footer-col h5 {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

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

.footer-col ul li { margin-bottom: .45rem; }

.footer-col ul li a { font-size: .84rem; }

.footer-subsection {
    margin-top: 1.25rem;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.25rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, .5);
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

@media (max-width: 1199px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .pre-footer-cta { grid-template-columns: 1fr; }
    .pre-footer-left { clip-path: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

/* WhatsApp floating chat button */
.wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9991;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    height: 56px;
    padding: 0 18px 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0570AE, #023B5E);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 26px rgba(5, 112, 174, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float i {
    font-size: 1.7rem;
    line-height: 1;
}

.wa-float:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(2, 59, 94, 0.45);
}

.wa-float-label {
    white-space: nowrap;
}

/* Subtle attention pulse */
.wa-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(5, 112, 174, 0.5);
    animation: wa-pulse 2.4s infinite;
    pointer-events: none;
}

@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(5, 112, 174, 0.5); }
    70%  { box-shadow: 0 0 0 16px rgba(5, 112, 174, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 112, 174, 0); }
}

/* Back to top — stacked above WhatsApp button */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 6rem;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #023B5E, #0570AE);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(6, 33, 62, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s;
}

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

.back-to-top:hover {
    background: linear-gradient(135deg, #0570AE, #0570AE);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(11, 92, 171, 0.35);
}

@media (max-width: 767px) {
    .wa-float {
        right: 1rem;
        bottom: 1rem;
        height: 52px;
        width: 52px;
        padding: 0;
        justify-content: center;
    }

    .wa-float .wa-float-label {
        display: none;
    }

    .wa-float i {
        font-size: 1.6rem;
    }

    .back-to-top {
        right: 1.15rem;
        bottom: 4.75rem;
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }
}

/* ══════════════════════════════════════════════
   Lead-capture popup
   Palette: Navy #023B5E · Blue #0570AE · Gray #C3C3C3 · Muted #767B79
   ══════════════════════════════════════════════ */
.lead-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 59, 94, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lead-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

body.lead-popup-lock {
    overflow: hidden;
}

.lead-popup {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(2, 59, 94, 0.35);
    overflow: hidden;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lead-popup-overlay.is-open .lead-popup {
    transform: translateY(0) scale(1);
}

.lead-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}

.lead-popup-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.lead-popup-head {
    background: linear-gradient(135deg, #023B5E, #0570AE);
    color: #ffffff;
    padding: 1.5rem 1.6rem 1.25rem;
}

.lead-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    margin-bottom: 0.7rem;
}

.lead-popup-head h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    color: #ffffff;
}

.lead-popup-head p {
    font-size: 0.86rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.lead-popup-form {
    padding: 1.35rem 1.6rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lead-popup-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.lead-popup-form input,
.lead-popup-form select,
.lead-popup-form textarea {
    width: 100%;
    border: 1px solid #C3C3C3;
    border-radius: 8px;
    padding: 0.62rem 0.8rem;
    font-size: 0.88rem;
    color: #023B5E;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-popup-form input::placeholder,
.lead-popup-form textarea::placeholder {
    color: #767B79;
}

.lead-popup-form input:focus,
.lead-popup-form select:focus,
.lead-popup-form textarea:focus {
    outline: none;
    border-color: #0570AE;
    box-shadow: 0 0 0 3px rgba(5, 112, 174, 0.15);
}

.lead-popup-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #0570AE;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.lead-popup-submit:hover {
    background: #023B5E;
    transform: translateY(-1px);
}

.lead-popup-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.lead-popup-note {
    text-align: center;
    font-size: 0.72rem;
    color: #767B79;
    margin: 0.2rem 0 0;
}

.lead-popup-success {
    display: none;
    padding: 2.5rem 1.6rem 3rem;
    text-align: center;
}

.lead-popup-success.is-visible {
    display: block;
}

.lead-popup-success i {
    font-size: 3rem;
    color: #0570AE;
    margin-bottom: 0.75rem;
}

.lead-popup-success h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #023B5E;
    margin: 0 0 0.4rem;
}

.lead-popup-success p {
    color: #767B79;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 480px) {
    .lead-popup-row {
        grid-template-columns: 1fr;
    }

    .lead-popup-head h3 {
        font-size: 1.2rem;
    }
}
