/* ==========================================================================
   DHANVESTTOR — MODERN INK FOOTER
   Matches dhanvesttorwebsite.vercel.app reference design
   ========================================================================== */

.site-footer {
    background-color: var(--color-ink) !important;
    color: var(--color-ivory) !important;
    font-family: var(--font-sans);
    padding-top: 80px;
    padding-bottom: 60px;
    position: relative;
    z-index: 10;
}

.footer-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: 24px;
}

/* ============================================================
   TOP SECTION (BRAND SUMMARY + 4-COL NAVIGATION)
   ============================================================ */
.footer-top-grid {
    display: grid;
    grid-template-columns: 1.25fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Brand Column */
.footer-brand-col {
    display: flex;
    flex-direction: column;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-wordmark {
    height: 18px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-logo-img {
    max-width: 160px;
    width: 100%;
    height: auto;
    display: block;
    margin-left: 0;
    padding-left: 0;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.2;
    color: var(--color-terracotta);
    margin: 0 0 16px 0;
}

.footer-bio {
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(251, 247, 240, 0.72);
    max-width: 42ch;
    margin-bottom: 28px;
}

/* Newsletter */
.footer-newsletter {
    margin-top: 8px;
}

.footer-newsletter .eyebrow {
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    max-width: 420px;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    min-width: 0;
    border-radius: 9999px;
    border: 1px solid rgba(251, 247, 240, 0.2);
    background-color: rgba(251, 247, 240, 0.06);
    color: var(--color-ivory);
    padding: 10px 18px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.newsletter-input::placeholder {
    color: rgba(251, 247, 240, 0.4);
}

.newsletter-input:focus {
    border-color: var(--color-raspberry);
    background-color: rgba(251, 247, 240, 0.1);
}

.newsletter-submit-btn {
    border-radius: 9999px;
    background-color: var(--color-raspberry);
    color: var(--color-ivory);
    border: none;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.newsletter-submit-btn:hover {
    background-color: var(--color-raspberry-deep);
    transform: translateY(-1px);
}

/* 4-Column Nav Grid */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.footer-col-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 18px 0;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-links li a {
    display: inline-block;
    font-size: 14px;
    color: rgba(251, 247, 240, 0.78);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links li a:hover {
    color: var(--color-ivory);
    transform: translateX(2px);
}

/* ============================================================
   MIDDLE SECTION (DETAILS: OFFICE, REGULATORY, LOGINS & SOCIALS)
   ============================================================ */
.footer-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    padding-top: 40px;
    border-top: 1px solid rgba(251, 247, 240, 0.12);
    margin-bottom: 40px;
}

.footer-detail-block {
    font-size: 13.5px;
    color: rgba(251, 247, 240, 0.72);
    line-height: 1.6;
}

.footer-detail-block strong {
    display: block;
    color: var(--color-ivory);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-detail-block p {
    margin: 0 0 6px 0;
}

.footer-detail-block a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-detail-block a:hover {
    color: var(--color-ivory);
    text-decoration: underline;
}

.footer-login-link {
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.footer-social-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
}

.footer-social-strip a {
    font-size: 13.5px;
    color: rgba(251, 247, 240, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-social-strip a:hover {
    color: var(--color-ivory);
}

/* ============================================================
   BOTTOM SECTION (LEGAL DISCLAIMERS & COPYRIGHT)
   ============================================================ */
.footer-bottom-legal {
    padding-top: 28px;
    border-top: 1px solid rgba(251, 247, 240, 0.08);
    font-size: 12px;
    line-height: 1.65;
    color: rgba(251, 247, 240, 0.5);
}

.footer-bottom-legal p {
    margin: 0 0 12px 0;
    max-width: 120ch;
}

.footer-copyright-row {
    margin-top: 20px;
    font-size: 12px;
    color: rgba(251, 247, 240, 0.5);
}

/* ============================================================
   FLOATING WHATSAPP BUTTON (MAINTAINED)
   ============================================================ */
.wa-float-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.wa-float-container:hover {
    transform: scale(1.05);
}

.wa-pop-out-msg {
    background-color: var(--color-white);
    color: var(--color-ink);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-line);
}

.wa-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #25d366;
    color: #ffffff;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.wa-icon-circle svg {
    width: 28px;
    height: 28px;
}

/* ============================================================
   RESPONSIVE FOOTER BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-details-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 580px) {
    .site-footer {
        padding-top: 54px;
        padding-bottom: 40px;
    }

    .footer-tagline {
        font-size: 1.5rem;
    }

    .footer-nav-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-submit-btn {
        width: 100%;
    }

    .wa-pop-out-msg {
        display: none;
    }
}
