/* ==========================================================================
   ALUMINIUMGLASS.CO.IN — PUBLIC MARKETPLACE
   Component: Footer
   File:
   /home/jqkmqvml/public_html/assets/css/components/footer.css

   PURPOSE
   -------
   Production-ready footer component styling.

   LIVE-DATA RULE
   --------------
   This stylesheet contains presentation only.
   It does NOT create, hardcode, or simulate:
   - businesses
   - vendors
   - products
   - services
   - categories
   - locations
   - offers
   - reviews
   - marketplace statistics
   - user/vendor data

   All dynamic footer content must come from the real backend/API/database.
   ========================================================================== */


/* ==========================================================================
   1. FOOTER ROOT
   ========================================================================== */

.site-footer,
.footer,
[data-component="footer"] {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(
        --footer-bg,
        var(--color-surface-dark, #111827)
    );
    color: var(
        --footer-text,
        var(--color-text-inverse, #f8fafc)
    );
    border-top: 1px solid var(
        --footer-border,
        rgba(255, 255, 255, 0.10)
    );
    position: relative;
    isolation: isolate;
}

.site-footer *,
.footer *,
[data-component="footer"] * {
    box-sizing: border-box;
}


/* ==========================================================================
   2. FOOTER INNER CONTAINER
   ========================================================================== */

.site-footer__inner,
.footer__inner {
    width: min(
        100% - 2rem,
        var(--container-max-width, 1280px)
    );

    margin-inline: auto;
}


/* ==========================================================================
   3. MAIN FOOTER AREA
   ========================================================================== */

.site-footer__main,
.footer__main {
    width: 100%;
    padding-block: var(
        --footer-main-padding-block,
        3.5rem
    );
}

.site-footer__content,
.footer__content {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.4fr)
        repeat(3, minmax(160px, 1fr));

    gap: var(
        --footer-column-gap,
        2.5rem
    );

    align-items: start;
}


/* ==========================================================================
   4. FOOTER BRAND / ABOUT
   ========================================================================== */

.site-footer__brand,
.footer__brand {
    min-width: 0;
}

.site-footer__brand-link,
.footer__brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;

    color: inherit;
    text-decoration: none;

    min-width: 0;
    max-width: 100%;
}

.site-footer__logo,
.footer__logo {
    display: block;

    width: auto;
    height: auto;

    max-width: var(
        --footer-logo-max-width,
        220px
    );

    max-height: var(
        --footer-logo-max-height,
        64px
    );

    object-fit: contain;
}

.site-footer__brand-title,
.footer__brand-title {
    margin: 0;

    color: var(
        --footer-heading,
        #ffffff
    );

    font-size: var(
        --footer-brand-title-size,
        1.125rem
    );

    font-weight: 700;
    line-height: 1.3;
}

.site-footer__description,
.footer__description {
    max-width: 42rem;

    margin: 1rem 0 0;

    color: var(
        --footer-muted,
        rgba(248, 250, 252, 0.72)
    );

    font-size: var(
        --footer-description-size,
        0.9375rem
    );

    line-height: 1.7;
}


/* ==========================================================================
   5. FOOTER COLUMN
   ========================================================================== */

.site-footer__column,
.footer__column {
    min-width: 0;
}

.site-footer__column-title,
.footer__column-title {
    margin: 0 0 1rem;

    color: var(
        --footer-heading,
        #ffffff
    );

    font-size: var(
        --footer-heading-size,
        0.9375rem
    );

    font-weight: 700;
    line-height: 1.4;
}

.site-footer__column-description,
.footer__column-description {
    margin: 0 0 0.875rem;

    color: var(
        --footer-muted,
        rgba(248, 250, 252, 0.70)
    );

    font-size: 0.875rem;
    line-height: 1.6;
}


/* ==========================================================================
   6. FOOTER NAVIGATION LIST
   ========================================================================== */

.site-footer__links,
.footer__links {
    list-style: none;

    display: flex;
    flex-direction: column;

    gap: 0.625rem;

    margin: 0;
    padding: 0;
}

.site-footer__links li,
.footer__links li {
    min-width: 0;
}

.site-footer__links a,
.footer__links a {
    display: inline-flex;
    align-items: center;

    max-width: 100%;

    color: var(
        --footer-link,
        rgba(248, 250, 252, 0.78)
    );

    font-size: 0.875rem;
    line-height: 1.5;

    text-decoration: none;

    transition:
        color 160ms ease,
        opacity 160ms ease,
        transform 160ms ease;
}

.site-footer__links a:hover,
.footer__links a:hover {
    color: var(
        --footer-link-hover,
        #ffffff
    );

    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.site-footer__links a:focus-visible,
.footer__links a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 0.25rem;
}


/* ==========================================================================
   7. FOOTER CTA AREA
   ========================================================================== */

.site-footer__cta,
.footer__cta {
    display: flex;
    flex-wrap: wrap;

    gap: 0.75rem;

    margin-top: 1.25rem;
}

.site-footer__cta a,
.footer__cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: var(
        --footer-cta-height,
        2.5rem
    );

    padding-inline: 1rem;

    border: 1px solid var(
        --footer-cta-border,
        rgba(255, 255, 255, 0.20)
    );

    border-radius: var(
        --footer-cta-radius,
        0.5rem
    );

    background: var(
        --footer-cta-bg,
        rgba(255, 255, 255, 0.06)
    );

    color: var(
        --footer-cta-text,
        #ffffff
    );

    font-size: 0.875rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.site-footer__cta a:hover,
.footer__cta a:hover {
    background: var(
        --footer-cta-hover-bg,
        rgba(255, 255, 255, 0.12)
    );

    border-color: var(
        --footer-cta-hover-border,
        rgba(255, 255, 255, 0.35)
    );

    color: var(
        --footer-cta-hover-text,
        #ffffff
    );
}

.site-footer__cta a:active,
.footer__cta a:active {
    transform: translateY(1px);
}

.site-footer__cta a:focus-visible,
.footer__cta a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}


/* ==========================================================================
   8. FOOTER CONTACT / META INFORMATION
   ========================================================================== */

.site-footer__meta,
.footer__meta {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;

    margin-top: 1rem;
}

.site-footer__meta-item,
.footer__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;

    min-width: 0;

    color: var(
        --footer-muted,
        rgba(248, 250, 252, 0.72)
    );

    font-size: 0.875rem;
    line-height: 1.5;
}

.site-footer__meta-icon,
.footer__meta-icon {
    flex: 0 0 auto;

    width: 1.125rem;
    height: 1.125rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-footer__meta-content,
.footer__meta-content {
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-footer__meta a,
.footer__meta a {
    color: inherit;
    text-decoration: none;
}

.site-footer__meta a:hover,
.footer__meta a:hover {
    color: var(
        --footer-link-hover,
        #ffffff
    );

    text-decoration: underline;
}


/* ==========================================================================
   9. SOCIAL LINKS
   ========================================================================== */

.site-footer__social,
.footer__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 0.625rem;

    margin-top: 1.25rem;
}

.site-footer__social-link,
.footer__social-link {
    width: 2.5rem;
    height: 2.5rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(
        --footer-social-border,
        rgba(255, 255, 255, 0.14)
    );

    border-radius: 50%;

    background: var(
        --footer-social-bg,
        rgba(255, 255, 255, 0.05)
    );

    color: var(
        --footer-social-text,
        rgba(255, 255, 255, 0.86)
    );

    text-decoration: none;

    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.site-footer__social-link:hover,
.footer__social-link:hover {
    background: var(
        --footer-social-hover-bg,
        rgba(255, 255, 255, 0.12)
    );

    border-color: var(
        --footer-social-hover-border,
        rgba(255, 255, 255, 0.30)
    );

    color: #ffffff;

    transform: translateY(-1px);
}

.site-footer__social-link:focus-visible,
.footer__social-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}


/* ==========================================================================
   10. FOOTER DIVIDER
   ========================================================================== */

.site-footer__divider,
.footer__divider {
    width: 100%;
    height: 1px;

    margin: 0;

    border: 0;

    background: var(
        --footer-divider,
        rgba(255, 255, 255, 0.10)
    );
}


/* ==========================================================================
   11. FOOTER BOTTOM BAR
   ========================================================================== */

.site-footer__bottom,
.footer__bottom {
    width: 100%;

    padding-block: var(
        --footer-bottom-padding-block,
        1.25rem
    );
}

.site-footer__bottom-inner,
.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    min-width: 0;
}

.site-footer__copyright,
.footer__copyright {
    min-width: 0;

    margin: 0;

    color: var(
        --footer-muted,
        rgba(248, 250, 252, 0.65)
    );

    font-size: 0.8125rem;
    line-height: 1.5;
}

.site-footer__legal,
.footer__legal {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: flex-end;

    gap: 0.75rem 1rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.site-footer__legal a,
.footer__legal a {
    color: var(
        --footer-muted,
        rgba(248, 250, 252, 0.70)
    );

    font-size: 0.8125rem;
    line-height: 1.5;

    text-decoration: none;
}

.site-footer__legal a:hover,
.footer__legal a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.site-footer__legal a:focus-visible,
.footer__legal a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}


/* ==========================================================================
   12. LIVE DATA STATES
   ========================================================================== */

/*
   JavaScript/API may set data-state or aria-busy.
   These rules only represent loading state.
   They never generate fake content.
*/

.site-footer[data-state="loading"],
.footer[data-state="loading"],
[data-component="footer"][data-state="loading"] {
    min-height: var(
        --footer-loading-min-height,
        12rem
    );
}

.site-footer[aria-busy="true"],
.footer[aria-busy="true"],
[data-component="footer"][aria-busy="true"] {
    cursor: progress;
}

.site-footer [data-loading="true"],
.footer [data-loading="true"] {
    opacity: 0.65;
}

.site-footer [data-state="error"],
.footer [data-state="error"] {
    color: var(
        --footer-error,
        #fecaca
    );
}

.site-footer [data-state="empty"],
.footer [data-state="empty"] {
    color: var(
        --footer-muted,
        rgba(248, 250, 252, 0.65)
    );
}


/* ==========================================================================
   13. BUTTON / INTERACTIVE SAFETY
   ========================================================================== */

.site-footer button,
.footer button {
    font: inherit;
}

.site-footer button:focus-visible,
.footer button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.site-footer button:disabled,
.footer button:disabled,
.site-footer a[aria-disabled="true"],
.footer a[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
}


/* ==========================================================================
   14. FOOTER MEDIA
   ========================================================================== */

.site-footer img,
.footer img {
    max-width: 100%;
    height: auto;
}

.site-footer svg,
.footer svg {
    display: block;

    max-width: 100%;
    height: auto;

    fill: currentColor;
}


/* ==========================================================================
   15. TABLET
   ========================================================================== */

@media (max-width: 1023px) {

    .site-footer__content,
    .footer__content {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 2rem;
    }

    .site-footer__brand,
    .footer__brand {
        grid-column: 1 / -1;
    }

    .site-footer__bottom-inner,
    .footer__bottom-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__legal,
    .footer__legal {
        justify-content: flex-start;
    }
}


/* ==========================================================================
   16. MOBILE
   ========================================================================== */

@media (max-width: 767px) {

    .site-footer__inner,
    .footer__inner {
        width: min(
            100% - 1.25rem,
            var(--container-max-width, 1280px)
        );
    }

    .site-footer__main,
    .footer__main {
        padding-block: 2.5rem;
    }

    .site-footer__content,
    .footer__content {
        grid-template-columns: 1fr;

        gap: 2rem;
    }

    .site-footer__brand,
    .footer__brand {
        grid-column: auto;
    }

    .site-footer__column-title,
    .footer__column-title {
        margin-bottom: 0.75rem;
    }

    .site-footer__links,
    .footer__links {
        gap: 0.55rem;
    }

    .site-footer__bottom,
    .footer__bottom {
        padding-block: 1rem;
    }

    .site-footer__bottom-inner,
    .footer__bottom-inner {
        gap: 0.875rem;
    }

    .site-footer__legal,
    .footer__legal {
        width: 100%;
        gap: 0.625rem 0.875rem;
    }

    .site-footer__cta,
    .footer__cta {
        width: 100%;
    }

    .site-footer__cta a,
    .footer__cta a {
        flex: 1 1 auto;
    }
}


/* ==========================================================================
   17. VERY SMALL DEVICES
   ========================================================================== */

@media (max-width: 399px) {

    .site-footer__main,
    .footer__main {
        padding-block: 2rem;
    }

    .site-footer__social-link,
    .footer__social-link {
        width: 2.25rem;
        height: 2.25rem;
    }

    .site-footer__cta,
    .footer__cta {
        flex-direction: column;
    }

    .site-footer__cta a,
    .footer__cta a {
        width: 100%;
    }
}


/* ==========================================================================
   18. RTL SUPPORT
   ========================================================================== */

[dir="rtl"] .site-footer__bottom-inner,
[dir="rtl"] .footer__bottom-inner {
    direction: rtl;
}

[dir="rtl"] .site-footer__legal,
[dir="rtl"] .footer__legal {
    justify-content: flex-start;
}

[dir="rtl"] .site-footer__meta-item,
[dir="rtl"] .footer__meta-item {
    direction: rtl;
}


/* ==========================================================================
   19. HIGH CONTRAST / FORCED COLORS
   ========================================================================== */

@media (forced-colors: active) {

    .site-footer,
    .footer,
    [data-component="footer"] {
        border-top: 1px solid CanvasText;
        background: Canvas;
        color: CanvasText;
    }

    .site-footer a,
    .footer a {
        color: LinkText;
    }

    .site-footer__social-link,
    .footer__social-link,
    .site-footer__cta a,
    .footer__cta a {
        border: 1px solid ButtonText;
        background: ButtonFace;
        color: ButtonText;
    }

    .site-footer__divider,
    .footer__divider {
        background: CanvasText;
    }
}


/* ==========================================================================
   20. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .site-footer *,
    .footer *,
    [data-component="footer"] * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ==========================================================================
   21. PRINT
   ========================================================================== */

@media print {

    .site-footer,
    .footer,
    [data-component="footer"] {
        position: static;

        background: transparent;
        color: #000000;

        border-top: 1px solid #000000;

        box-shadow: none;
    }

    .site-footer a,
    .footer a {
        color: #000000;
        text-decoration: underline;
    }

    .site-footer__social,
    .footer__social {
        display: none;
    }

    .site-footer__cta,
    .footer__cta {
        display: none;
    }
}


/* ==========================================================================
   END OF FOOTER.CSS
   ========================================================================== */