/* --- PREMIUM FOOTER STYLES --- */

/* Base & Layout */
.wg-premium-footer {
    background-color: #040B16;
    color: #A1ABB8;
    font-family: "Mulish", sans-serif;
    padding: 60px 0 0 0;
}

/* Trustpilot Top Pill */
.wg-footer-top-trust {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}


.wg-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 48px 24px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap; /* Ensures columns wrap gracefully if screen is small */
}

/* Flexible Columns */
.wg-footer-col {
    min-width: 200px;
}
.wg-col-brand {
    flex: 1.2;
}
.wg-col-links {
    flex: 1;
}
.wg-col-contact {
    flex: 1.5;
}

@media (max-width: 1024px) and (min-width: 641px) {
    .wg-footer-container {
        row-gap: 48px;
    }
    .wg-col-brand {
        flex: 100%;
    }
    .wg-col-links, .wg-col-contact {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 640px) {
    .wg-footer-container {
        gap: 40px;
    }
    .wg-col-brand, .wg-col-links, .wg-col-contact {
        flex: 100%;
    }
    /* Partner logos were overlapping — the 140px inline max-width on each
       img doesn't fit two side-by-side columns on a phone screen. Stack
       Partners / Authorized Partner instead of keeping them side by side. */
    .wg-partners-box {
        flex-direction: column;
        padding: 16px;
        gap: 20px;
    }
    .wg-partners-col {
        text-align: center;
    }
    .wg-partners-col:first-child {
        padding-right: 0;
        padding-bottom: 16px;
        border-right: none;
        border-bottom: 1px solid rgba(4, 11, 22, 0.1);
    }
    .wg-partners-col img {
        max-width: 90px !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* The compact variant (now living in the narrower Brand column) stays
       small and side-by-side on mobile instead — the stacking above was
       sized for its old, wider Contact-column home and looked oversized here. */
    .wg-partners-box-sm {
        flex-direction: row;
        padding: 8px;
        gap: 8px;
    }
    .wg-partners-box-sm .wg-partners-col {
        text-align: left;
    }
    .wg-partners-box-sm .wg-partners-col:first-child {
        padding-right: 8px;
        padding-bottom: 0;
        border-right: 1px solid rgba(4, 11, 22, 0.1);
        border-bottom: none;
    }
    .wg-partners-box-sm .wg-h5 {
        font-size: 0.58rem;
        margin-bottom: 5px;
    }
    .wg-partners-box-sm .wg-partners-col img {
        max-width: 50px !important;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0 !important;
    }
    .wg-footer-credits-row {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .wg-legal-links {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }
}

/* Typography */
.wg-premium-footer .wg-h4 {
    font-family: "Mulish", sans-serif;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin-bottom: 20px;
    margin-top: 36px;
    position: relative;
    padding-bottom: 12px;
}

.wg-premium-footer .wg-h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #001DAC;
}

.wg-premium-footer .wg-footer-col > .wg-h4:first-child {
    margin-top: 0;
}

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

.wg-premium-footer ul li {
    margin-bottom: 13px;
}

.wg-premium-footer ul li a {
    position: relative;
    display: inline-block;
    color: #C7CFD9;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
    font-size: 0.92rem;
    font-family: "Mulish", sans-serif;
}

.wg-premium-footer ul li a:hover {
    color: #00E5FF;
    transform: translateX(3px);
}

/* Brand Column (Col 1) */
.wg-footer-logo-wrap {
    background-color: #FFFFFF;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.wg-footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.wg-footer-desc strong {
    color: #FFFFFF;
}

/* Social Icons */
.wg-social-heading {
    color: #FFFFFF;
    font-family: "Mulish", sans-serif;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.wg-social-heading::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: #001DAC;
    margin-left: 10px;
}

.wg-social-links {
    display: flex;
    gap: 12px;
}

.wg-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #1C40F2;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.wg-social-links a:hover {
    background-color: #00E5FF;
    color: #040B16;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 229, 255, 0.35);
}

/* Contact & Partners (Col 4) */
/* (Removed blue dividers) */

.wg-contact-info {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.wg-contact-info li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    margin-bottom: 16px !important;
    color: #A1ABB8;
    line-height: 1.4;
}

.wg-contact-info i {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #1C40F2;
    color: #FFFFFF;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.wg-contact-info li:hover i {
    background-color: #00E5FF;
    color: #040B16;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 229, 255, 0.35);
}

/* Partners Box */
.wg-partners-box {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.wg-partners-box .wg-h5 {
    font-family: "Mulish", sans-serif;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 16px 0;
}

.wg-partners-col {
    flex: 1;
}

.wg-partners-col:first-child {
    padding-right: 24px;
    border-right: 1px solid rgba(4, 11, 22, 0.1);
}

.wg-partners-col img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

/* Smaller variant used in the footer's Brand column (narrower than the
   original Contact column it used to live in) — tighter padding & gap so
   the white card and logos stay compact next to the payment gateway icons. */
.wg-partners-box-sm {
    padding: 10px;
    gap: 10px;
    margin-top: 24px;
}
.wg-partners-box-sm .wg-h5 {
    font-size: 0.75rem;
    margin-bottom: 6px;
}
.wg-partners-box-sm .wg-partners-col:first-child {
    padding-right: 10px;
}
.wg-partners-box-sm .wg-partners-col img {
    max-width: 60px !important;
}

/* --- BOTTOM BAR --- */
.wg-footer-bottom {
    background-color: transparent;
    padding: 0 0 40px 0;
    text-align: center;
}

.wg-footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.wg-footer-mission {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #A1ABB8;
    margin-bottom: 32px;
    text-align: left;
    max-width: 100%;
}

.wg-footer-mission p {
    margin-bottom: 12px;
}

.wg-footer-mission p:last-child {
    margin-bottom: 0;
}

.wg-footer-credits-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
    font-size: 0.85rem;
    gap: 15px;
}

.wg-copyright {
    color: #A1ABB8;
    margin: 0;
}

.wg-legal-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wg-legal-links li {
    margin-bottom: 0 !important;
}

.wg-legal-links a {
    color: #A1ABB8;
    text-decoration: none;
    transition: color 0.3s;
}

.wg-legal-links a:hover {
    color: #00E5FF;
}

.wg-separator {
    color: #001DAC; /* Muted blue for separators */
}

.wg-footer-company-box {
    background-color: #FFFFFF;
    color: #111111;
    padding: 20px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.wg-footer-company-box strong {
    font-weight: 800;
}

.wg-footer-bottom-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
}

.wg-footer-bottom-links a {
    color: #A1ABB8;
    text-decoration: none;
    transition: color 0.3s;
}

.wg-footer-bottom-links a:hover {
    color: #00E5FF;
}
.wg-status-live {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #A1ABB8;
}
.wg-status-dot {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #00FD19;
    box-shadow: 0 0 8px rgba(0, 253, 25, 0.7);
    flex-shrink: 0;
}
.wg-status-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #00FD19;
    animation: wg-status-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes wg-status-ping {
    0% { transform: scale(1); opacity: 0.7; }
    80%, 100% { transform: scale(3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .wg-status-dot::after { animation: none; }
}

/* --- FOOTER WATERMARK --- */
.wg-footer-watermark-container {
    width: 100%;
    overflow: hidden;
    background-color: transparent;
    position: relative;
    padding: 40px 0 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fading edges effect like SASTOHOST */
.wg-footer-watermark-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, #040B16 0%, transparent 20%, transparent 80%, #040B16 100%);
    pointer-events: none;
    z-index: 1;
}

.wg-footer-watermark {
    text-align: center;
    font-size: clamp(3.5rem, 10vw, 160px);
    font-weight: 800;
    font-family: "Montserrat", sans-serif;
    color: rgba(37, 99, 235, 0.35);
    text-transform: none;

    margin: 0;
    line-height: 1;
    letter-spacing: 2px;
    user-select: none;
    white-space: nowrap;
    position: relative;
    z-index: 0;

    /* Fade the watermark out toward the bottom, like Nest Nepal */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 15%, transparent 80%);
    mask-image: linear-gradient(to bottom, black 0%, black 15%, transparent 80%);
}

@media (max-width: 1024px) {
    .wg-footer-watermark {
        font-size: 7vw;
        letter-spacing: 8px;
    }
}
@media (max-width: 768px) {
    .wg-footer-watermark {
        font-size: 9vw;
        letter-spacing: 4px;
        white-space: normal; /* allow wrap on very small screens */
        padding: 0 20px;
    }
}

/* Restored Payment Gateways Styles */
.wg-payment-gateways {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 15px;
}
.wg-payment-gateways img {
    height: 20px !important;
    width: 52px !important;
    object-fit: contain !important;
    margin-bottom: 5px !important;
    margin-right: 5px !important;
    background-color: #FFFFFF !important;
    padding: 4px 8px !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
    transition: transform 0.2s ease !important;
    box-sizing: content-box !important;
}
.wg-payment-gateways img:hover {
    transform: translateY(-2px) !important;
}

/* Mobile: 44px tap targets for footer text links; keep tiny heading text legible */
@media (max-width: 640px) {
    .wg-footer-container li a,
    .wg-legal-links a,
    .wg-footer-bottom-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .wg-partners-box-sm .wg-h5 { font-size: 0.75rem; }
}

@media (max-width: 640px) {
    .wg-social-links a { width: 44px; height: 44px; }
}
