/**
 * Site footer: rectangle/color-layer blocks, footer columns, social icons, and the persistent floating WhatsApp button.
 */

.derivation-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: auto;
    font-family: var(--vosges-font-body);
    color: #FFFFFF;
    background-color: #0F2C4C;
}

.footer-rect {
    width: 100%;
    box-sizing: border-box;
}

/* Layer 2: Main 5-Column Navigation Grid */
.rect-2 {
    background:
        radial-gradient(ellipse 60% 100% at 12% 0%, rgba(45, 153, 235, 0.16) 0%, rgba(45, 153, 235, 0) 60%),
        var(--grad-ink);
    padding: 3.5rem 1.5rem 3rem 1.5rem;
    color: #FFFFFF;
}

.grid-5-col {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 2.5rem;
}

/* Grid items default to min-width: auto, which let the columns grow past the container
   (5 x 424px inside ~1392px) and get clipped off-screen. Let them shrink to their track. */
.grid-5-col > * {
    min-width: 0;
}

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

@media (max-width: 768px) {
    .grid-5-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.footer-company-logo {
    display: block;
    width: 90%;
    height: auto;
    max-width: 90%;
    box-sizing: border-box;
    object-fit: contain;
    margin: 0 auto 1rem auto;
    background: #FFFFFF;
    padding: 6px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.footer-tagline {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #BCD6ED;
    font-style: italic;
    margin: 0 0 1.2rem 0;
}

.footer-legal-details {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #8AC6F4;
    margin: 0 0 1rem 0;
}

.iso-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #62B2F2;
    background: rgba(98, 178, 242, 0.12);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    border: 1px solid rgba(98, 178, 242, 0.3);
}

.nav-col h4 {
    font-family: var(--vosges-font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 1.2rem 0;
    border-bottom: 2px solid var(--rect-blue-3);
    padding-bottom: 0.4rem;
    display: inline-block;
}

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

.nav-col li {
    margin-bottom: 0.65rem;
    font-size: 0.88rem;
    color: #B0CBE5;
}

.nav-col a {
    color: #B0CBE5;
    text-decoration: none;
    position: relative;
    padding-inline-start: 14px;
    transition: color 0.2s ease, padding-inline-start 0.2s ease;
}

/* Horizontal Dash Bullet indicator expanding on hover */
.nav-col a::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 2px;
    background-color: var(--rect-blue-3);
    border-radius: 1px;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.nav-col a:hover {
    color: #FFFFFF;
    padding-inline-start: 20px;
    text-decoration: underline;
}

.nav-col a:hover::before {
    width: 14px;
    background-color: var(--rect-blue-2);
}

.btn-footer-contact {
    display: inline-block;
    width: 100%;
    text-align: center;
    background-color: var(--rect-blue-3);
    color: #FFFFFF !important;
    font-family: var(--vosges-font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none;
    box-sizing: border-box;
}

.btn-footer-contact:hover {
    background-color: var(--rect-blue-4);
    transform: translateY(-1px);
}

.btn-footer-contact.outline {
    background-color: transparent;
    border: 1px solid var(--rect-blue-3);
    color: var(--rect-blue-2) !important;
}

.btn-footer-contact.outline:hover {
    background-color: rgba(98, 178, 242, 0.12) !important;
    border-color: #62B2F2;
    color: #FFFFFF !important;
}

/* Circle Social Media Icons in Official Brand Colors */
.footer-social-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.footer-social-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important; /* Circle Shape */
    color: #FFFFFF !important;
    text-decoration: none !important;
    padding: 0 !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    position: relative;
}

.footer-social-icon::before {
    display: none !important;
}

/* Instagram — Official Brand Gradient */
.footer-social-icon.social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border: none !important;
}

.footer-social-icon.social-instagram:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 6px 18px rgba(220, 39, 67, 0.45) !important;
    padding: 0 !important;
}

/* Facebook — Official Brand Blue */
.footer-social-icon.social-facebook {
    background: #1877F2 !important;
    border: none !important;
}

.footer-social-icon.social-facebook:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.45) !important;
    padding: 0 !important;
}

/* WhatsApp — Official Brand Green */
.footer-social-icon.social-whatsapp {
    background: #25D366 !important;
    border: none !important;
}

.footer-social-icon.social-whatsapp:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45) !important;
    padding: 0 !important;
}

/* Layer 4: Base Legal Strip */
.rect-4 {
    background-color: #071728;
    padding: 1.2rem 1.5rem;
    color: #8FAAC4;
    /* Lifted from #688AA8 (5.0:1) to 7.6:1 — legal strip was the muddiest text on the page */
    font-size: 0.85rem;
    border-top: 1px solid rgba(138, 198, 244, 0.12);
}

.base-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.base-flex p {
    margin: 0;
}

/* ==========================================================================
   PERSISTENT FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    width: 58px;
    height: 58px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.3s ease;
    animation: whatsappPulse 3s infinite;
}

.whatsapp-float-btn:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #0F2C4C;
    color: #FFFFFF;
    font-family: var(--vosges-font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(15, 44, 76, 0.2);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    transform: translateX(10px);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #0F2C4C;
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .derivation-footer .footer-container {
        flex-direction: column;
        padding: 2rem 1rem;
        text-align: center;
    }

    .btn-footer-contact {
        width: 100%;
        justify-content: center;
    }
}
