/**
 * Foreva Workspace — footer (Shree Buildcon pattern)
 */

/* ——— Ambient layers ——— */
.fw-footer {
    position: relative;
}

.fw-footer__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.fw-footer__glow {
    position: absolute;
    inset: -8% -4%;
    background:
        radial-gradient(ellipse 44% 40% at 92% 14%, rgba(201, 162, 75, 0.14), transparent 58%),
        radial-gradient(ellipse 38% 42% at 6% 88%, rgba(74, 42, 82, 0.42), transparent 62%);
}

.fw-footer__grain {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.fw-footer__hairline {
    z-index: 1;
}

/* ——— Wordmark ——— */
.footer-wordmark-text {
    margin: 0;
    font-family: var(--font-wide, Montserrat), Inter, sans-serif;
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.96);
    pointer-events: none;
    user-select: none;
}

.footer-wordmark-line {
    display: block;
}

.footer-wordmark-line--sub {
    color: rgba(201, 162, 75, 0.95);
}

#footer .footer-wordmark {
    max-width: min(100%, 52rem);
}

/* ——— Nav links ——— */
.footer-nav-item .footer-link {
    padding-bottom: 3px;
}

.footer-nav-item .footer-link::after {
    bottom: 0;
    transform-origin: left center;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-nav-item .footer-link:hover::after,
.footer-nav-item .footer-link:focus-visible::after {
    transform: scaleX(1);
}

/* Top bar scroll nav — desktop only (mobile uses footer-nav-bottom) */
.footer-top-bar > .footer-nav-scroll.footer-nav-top {
    display: none;
}

@media (min-width: 1024px) {
    .footer-top-bar > .footer-nav-scroll.footer-nav-top {
        display: flex;
    }

    .footer-top-bar {
        align-items: flex-end;
    }

    .footer-nav-top .footer-nav-item .footer-link {
        padding-bottom: 0;
    }

    .footer-nav-top .footer-nav-item .footer-link::after {
        bottom: -2px;
    }

    .footer-nav-mobile-links {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .footer-top-bar {
        justify-content: flex-end;
        border-bottom: none;
        padding-bottom: 0.75rem;
    }
}

/* ——— Mobile bottom nav (left-aligned, above disclaimer) ——— */
.footer-nav-bottom {
    width: 100%;
    margin: 0;
    padding: 0.5rem 0 0.15rem;
    text-align: left;
    border-top: none;
}

.footer-nav-bottom .footer-nav-mobile-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    width: 100%;
    margin: 0;
    padding: 0;
}

.footer-nav-bottom .footer-nav-inline {
    text-align: left;
    width: 100%;
    margin: 0;
    line-height: 1.45;
}

/* ——— Mobile inline nav ——— */
.footer-nav-inline {
    margin: 0;
    font-size: clamp(0.52rem, 2.45vw, 0.65rem);
    line-height: 1.55;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.footer-nav-inline .footer-link {
    display: inline;
    padding-bottom: 0;
}

.footer-nav-inline .footer-link::after {
    display: none;
}

.footer-nav-sep {
    color: rgba(201, 162, 75, 0.65);
    font-weight: 400;
    user-select: none;
}

.footer-nav-after-wordmark {
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer-nav-mobile-links {
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer-nav-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
}

@media (max-width: 1023px) {
    .footer-brand-col {
        align-items: center;
        text-align: center;
    }

    #footer .footer-wordmark-text {
        font-size: clamp(2.5rem, 11vw, 4.5rem);
        text-align: center;
    }

    #footer .footer-wordmark {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1024px) {
    #footer .footer-wordmark-text {
        font-size: clamp(3rem, 7.5vw, 6.5rem);
    }

    .footer-nav-after-wordmark {
        margin-top: 2rem;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

@media (min-width: 1280px) {
    #footer .footer-wordmark-text {
        font-size: clamp(3.5rem, 6.5vw, 7.5rem);
    }
}

/* ——— Project credits ——— */
.footer-credit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
}

.footer-credit-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

.footer-credit-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.3s ease;
}

.footer-credit-brand:hover {
    color: #C9A24B;
}

.footer-credit-logo {
    display: block;
    height: 2rem;
    width: auto;
    max-width: min(10rem, 42vw);
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.footer-credit-name {
    font-family: Montserrat, Inter, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-credit-brand--text-only .footer-credit-name,
.footer-credit-brand:has(.footer-credit-logo[style*="display: none"]) .footer-credit-name {
    display: inline;
}

.footer-credits-block {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

@media (max-width: 1023px) {
    .footer-credits-block {
        align-items: center;
        text-align: center;
        margin-top: 0.5rem;
    }

    .footer-credit-row {
        justify-content: center;
    }

    .footer-credit-logo {
        object-position: center;
    }
}

/* ——— Social: label + icons in one row ——— */
.footer-social-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.15rem;
}

.footer-article--social .footer-article__label--inline {
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

#footer .footer-social-icons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem;
}

#footer .footer-social-icon-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(201, 162, 75, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: #C9A24B;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

#footer .footer-social-icon-btn svg {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
    flex-shrink: 0;
}

#footer .footer-social-icon-btn:hover {
    transform: translateY(-2px);
    background: rgba(201, 162, 75, 0.14);
    border-color: rgba(201, 162, 75, 0.65);
    color: #ffffff;
}

@media (max-width: 1023px) {
    .footer-social-row {
        gap: 0.75rem 1rem;
    }

    #footer .footer-social-icons {
        gap: 0.55rem;
    }
}

@media (max-width: 380px) {
    .footer-social-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    #footer .footer-social-icons {
        flex-wrap: nowrap;
    }
}

/* ——— Back to top ——— */
#footer #footer-back-to-top {
    min-height: 44px;
    min-width: 44px;
}

/* ——— Disclaimer ——— */
#footer-inner {
    display: flex;
    flex-direction: column;
}

.footer-bottom-zone {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (max-width: 1023px) {
    .footer-bottom-zone {
        margin-top: auto;
        padding-top: 0;
        border-top: none;
    }

    #footer .footer-disclaimer {
        padding-top: 0.65rem;
        padding-bottom: 0.35rem;
    }

    #footer .footer-nav-bottom {
        margin: 0;
        padding: 0.45rem 0 0.08rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (min-width: 1024px) {
    .footer-bottom-zone {
        margin-top: 2rem;
    }

    .footer-bottom-zone .footer-nav-bottom {
        display: none;
    }
}

#footer .footer-disclaimer {
    margin-top: 0;
    text-align: left;
}

#footer .footer-disclaimer p {
    margin: 0;
    text-align: left;
}

/* ——— Info stack spacing ——— */
@media (max-width: 1023px) {
    #footer .footer-info-stack {
        gap: 2rem;
    }

    #footer .footer-main {
        gap: 2.5rem;
    }
}
