/* ============================================================
   FOOTER REWORK — Replace the original footer block in style.css
   Find the comment "FOOTER" in style.css and replace everything
   from ".site-footer {" down to the closing "}" of that block
   with all the CSS below.
   ============================================================ */

/* ------------------------------------------------------------
   SITE FOOTER — outer shell
   ------------------------------------------------------------ */
.site-footer {
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
    padding-top: var(--space-3xl);
}

/* Subtle grid overlay — matches hero/cta-banner aesthetic */
.site-footer__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Four-column inner layout */
.site-footer__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ------------------------------------------------------------
   FOOTER COLUMNS — shared
   ------------------------------------------------------------ */
.footer-col__heading {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin: 0 0 var(--space-md);
}

/* Second heading within the same column (Solutions + Company) */
.footer-col__heading--spaced {
    margin-top: var(--space-xl);
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    line-height: 1.6;
}

.footer-nav li a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

/* ------------------------------------------------------------
   COL 1 — Brand
   ------------------------------------------------------------ */
.footer-col--brand {
    padding-right: var(--space-lg);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
    text-decoration: none;
}

.footer-logo:hover { color: var(--color-accent); }

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin: 0 0 var(--space-lg);
    max-width: 260px;
}

/* Email link */
.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: var(--space-lg);
    transition: var(--transition);
    text-decoration: none;
}

.footer-email:hover {
    color: var(--color-accent);
}

.footer-email svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.footer-email:hover svg { opacity: 1; }

/* Social icons row */
.footer-socials {
    display: flex;
    gap: var(--space-sm);
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    text-decoration: none;
}

.footer-social:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Per-brand hover tints (optional — remove if you prefer the gold hover for all) */
.footer-social--linkedin:hover  { background: #0077b5; border-color: #0077b5; color: white; }
.footer-social--instagram:hover { background: #e1306c; border-color: #e1306c; color: white; }
.footer-social--facebook:hover  { background: #1877f2; border-color: #1877f2; color: white; }

/* ------------------------------------------------------------
   COL 4 — Get Started
   ------------------------------------------------------------ */
.footer-col__text {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    margin: 0 0 var(--space-lg);
}

.footer-cta-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-audit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
    text-decoration: none;
}

.footer-audit-link:hover {
    color: var(--color-accent);
    gap: 10px;
}

/* ------------------------------------------------------------
   FOOTER BOTTOM BAR
   ------------------------------------------------------------ */
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    gap: var(--space-lg);
}

.footer-bottom__copy {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.3);
}

.footer-bottom__links {
    display: flex;
    gap: var(--space-lg);
}

.footer-bottom__links a {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.3);
    transition: var(--transition);
    text-decoration: none;
}

.footer-bottom__links a:hover { color: rgba(255,255,255,0.65); }

/* ============================================================
   WHATSAPP FLOATING BUTTON
   Fixed bottom-right — visible on every page
   ============================================================ */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;

    /* Tooltip + icon share the same flex row, tooltip hidden by default */
}

/* The green circle button */
.wa-float__icon {
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;

    /* Pulse ring animation */
    position: relative;
}

.wa-float__icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,0.4);
    animation: waPulse 2.4s ease-out infinite;
}

@keyframes waPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

.wa-float:hover .wa-float__icon {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

/* Tooltip — slides in from right on hover */
.wa-float__tooltip {
    background: var(--color-primary);
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    order: -1; /* tooltip sits LEFT of the icon */

    /* Hidden by default */
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-float:hover .wa-float__tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   FOOTER RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer-col--brand {
        grid-column: 1 / -1; /* brand spans full width on tablet */
        padding-right: 0;
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: var(--space-2xl);
        align-items: start;
    }

    .footer-tagline { max-width: none; }
}

@media (max-width: 768px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer-col--brand {
        grid-template-columns: 1fr;
    }

    .footer-bottom__inner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
}

@media (max-width: 540px) {
    .site-footer__inner { grid-template-columns: 1fr; }

    .wa-float {
        bottom: 20px;
        right: 20px;
    }

    .wa-float__icon {
        width: 50px;
        height: 50px;
    }

    /* Hide tooltip on small screens — space is tight */
    .wa-float__tooltip { display: none; }
}