/* =========================================================
   AluminiumGlass
   assets/css/footer.css
   Production Footer System
   ========================================================= */

/* ---------------------------------------------------------
   Footer Variables
   --------------------------------------------------------- */

:root {
    --footer-bg: #0b1220;
    --footer-bg-secondary: #111827;
    --footer-surface: #172033;
    --footer-border: rgba(255, 255, 255, 0.10);

    --footer-text: #d1d5db;
    --footer-text-muted: #9ca3af;
    --footer-heading: #ffffff;

    --footer-primary: #2563eb;
    --footer-primary-hover: #1d4ed8;

    --footer-link: #cbd5e1;
    --footer-link-hover: #ffffff;

    --footer-max-width: 1280px;
    --footer-radius: 12px;

    --footer-transition: 180ms ease;
}


/* ---------------------------------------------------------
   Main Footer
   --------------------------------------------------------- */

.site-footer {
    position: relative;
    width: 100%;
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto;
    border-top: 1px solid var(--footer-border);
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   Footer Container
   --------------------------------------------------------- */

.footer-container {
    width: min(100% - 32px, var(--footer-max-width));
    margin: 0 auto;
}


/* ---------------------------------------------------------
   Footer Main Area
   --------------------------------------------------------- */

.footer-main {
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns:
        minmax(240px, 1.5fr)
        repeat(3, minmax(160px, 1fr));

    gap: 48px;
}


/* ---------------------------------------------------------
   Footer Brand
   --------------------------------------------------------- */

.footer-brand {
    max-width: 380px;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--footer-heading);
    text-decoration: none;

    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;

    transition:
        color var(--footer-transition),
        opacity var(--footer-transition);
}

.footer-brand-link:hover {
    color: #ffffff;
    opacity: 0.9;
}

.footer-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex: 0 0 auto;
}

.footer-brand-name {
    display: inline-block;
}

.footer-description {
    margin: 18px 0 0;

    color: var(--footer-text-muted);

    font-size: 15px;
    line-height: 1.75;
}


/* ---------------------------------------------------------
   Footer Section
   --------------------------------------------------------- */

.footer-section {
    min-width: 0;
}

.footer-title {
    margin: 0 0 18px;

    color: var(--footer-heading);

    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}


/* ---------------------------------------------------------
   Footer Navigation
   --------------------------------------------------------- */

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-links a {
    display: inline-flex;
    align-items: center;

    color: var(--footer-link);

    font-size: 14px;
    line-height: 1.5;

    text-decoration: none;

    transition:
        color var(--footer-transition),
        transform var(--footer-transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--footer-link-hover);
    transform: translateX(3px);
}

.footer-links a:focus-visible {
    outline: 2px solid var(--footer-primary);
    outline-offset: 4px;
    border-radius: 3px;
}


/* ---------------------------------------------------------
   Footer Contact
   --------------------------------------------------------- */

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin-top: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    color: var(--footer-text-muted);

    font-size: 14px;
    line-height: 1.6;
}

.footer-contact-icon {
    width: 20px;
    min-width: 20px;

    color: var(--footer-primary);

    text-align: center;
}

.footer-contact-item a {
    color: inherit;
    text-decoration: none;

    transition: color var(--footer-transition);
}

.footer-contact-item a:hover {
    color: var(--footer-link-hover);
}


/* ---------------------------------------------------------
   Footer Social
   --------------------------------------------------------- */

.footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;

    margin-top: 24px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: 1px solid var(--footer-border);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.04);

    color: var(--footer-text);

    text-decoration: none;

    transition:
        background var(--footer-transition),
        color var(--footer-transition),
        border-color var(--footer-transition),
        transform var(--footer-transition);
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    background: var(--footer-primary);
    border-color: var(--footer-primary);

    color: #ffffff;

    transform: translateY(-2px);
}

.footer-social-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.footer-social-icon {
    width: 18px;
    height: 18px;
}


/* ---------------------------------------------------------
   Footer CTA
   --------------------------------------------------------- */

.footer-cta {
    margin-top: 24px;
}

.footer-cta-text {
    margin: 0 0 14px;

    color: var(--footer-text-muted);

    font-size: 14px;
    line-height: 1.6;
}

.footer-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 10px 18px;

    border: 1px solid var(--footer-primary);
    border-radius: 8px;

    background: var(--footer-primary);
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
    cursor: pointer;

    transition:
        background var(--footer-transition),
        border-color var(--footer-transition),
        transform var(--footer-transition);
}

.footer-cta-button:hover {
    background: var(--footer-primary-hover);
    border-color: var(--footer-primary-hover);

    transform: translateY(-1px);
}

.footer-cta-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   Footer Newsletter
   --------------------------------------------------------- */

.footer-newsletter {
    margin-top: 24px;
}

.footer-newsletter-title {
    margin: 0 0 8px;

    color: var(--footer-heading);

    font-size: 15px;
    font-weight: 700;
}

.footer-newsletter-description {
    margin: 0 0 14px;

    color: var(--footer-text-muted);

    font-size: 13px;
    line-height: 1.6;
}

.footer-newsletter-form {
    display: flex;
    align-items: stretch;
    gap: 8px;

    width: 100%;
}

.footer-newsletter-input {
    min-width: 0;
    flex: 1;

    height: 44px;
    padding: 0 13px;

    border: 1px solid var(--footer-border);
    border-radius: 8px;

    background: var(--footer-surface);
    color: #ffffff;

    font: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color var(--footer-transition),
        background var(--footer-transition);
}

.footer-newsletter-input::placeholder {
    color: var(--footer-text-muted);
}

.footer-newsletter-input:focus {
    border-color: var(--footer-primary);
    background: #1b2639;
}

.footer-newsletter-button {
    height: 44px;
    padding: 0 16px;

    border: 1px solid var(--footer-primary);
    border-radius: 8px;

    background: var(--footer-primary);
    color: #ffffff;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background var(--footer-transition),
        border-color var(--footer-transition);
}

.footer-newsletter-button:hover {
    background: var(--footer-primary-hover);
    border-color: var(--footer-primary-hover);
}


/* ---------------------------------------------------------
   Footer Divider
   --------------------------------------------------------- */

.footer-divider {
    width: 100%;
    height: 1px;

    background: var(--footer-border);
}


/* ---------------------------------------------------------
   Footer Bottom
   --------------------------------------------------------- */

.footer-bottom {
    background: var(--footer-bg-secondary);
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    min-height: 72px;
}


/* ---------------------------------------------------------
   Copyright
   --------------------------------------------------------- */

.footer-copyright {
    margin: 0;

    color: var(--footer-text-muted);

    font-size: 13px;
    line-height: 1.5;
}

.footer-copyright strong {
    color: var(--footer-text);
    font-weight: 600;
}


/* ---------------------------------------------------------
   Footer Legal Navigation
   --------------------------------------------------------- */

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-legal a {
    color: var(--footer-text-muted);

    font-size: 13px;
    line-height: 1.5;

    text-decoration: none;

    transition: color var(--footer-transition);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: #ffffff;
}

.footer-legal a:focus-visible {
    outline: 2px solid var(--footer-primary);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   Footer Location / Service Area
   --------------------------------------------------------- */

.footer-service-area {
    margin-top: 30px;
    padding-top: 24px;

    border-top: 1px solid var(--footer-border);
}

.footer-service-area-title {
    margin: 0 0 10px;

    color: var(--footer-heading);

    font-size: 14px;
    font-weight: 700;
}

.footer-service-area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-service-area-list a {
    color: var(--footer-text-muted);

    font-size: 13px;
    text-decoration: none;

    transition: color var(--footer-transition);
}

.footer-service-area-list a:hover {
    color: #ffffff;
}


/* ---------------------------------------------------------
   Footer Badge / Trust
   --------------------------------------------------------- */

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;

    margin-top: 22px;
}

.footer-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 32px;
    padding: 6px 10px;

    border: 1px solid var(--footer-border);
    border-radius: 6px;

    background: rgba(255, 255, 255, 0.03);

    color: var(--footer-text-muted);

    font-size: 12px;
}


/* ---------------------------------------------------------
   Mobile Footer Accordion Support
   --------------------------------------------------------- */

.footer-section-toggle {
    display: none;
}

.footer-section-content {
    display: block;
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 1024px) {

    .footer-main {
        padding: 52px 0 40px;
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(220px, 1fr));

        gap: 40px 32px;
    }

    .footer-brand {
        max-width: 100%;
    }

}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .footer-container {
        width: min(100% - 24px, var(--footer-max-width));
    }

    .footer-main {
        padding: 40px 0 30px;
    }

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

    .footer-brand-link {
        font-size: 22px;
    }

    .footer-description {
        font-size: 14px;
    }

    .footer-title {
        margin-bottom: 13px;
    }

    .footer-links {
        gap: 9px;
    }

    .footer-bottom-container {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        padding: 20px 0;

        min-height: auto;
    }

    .footer-legal {
        justify-content: flex-start;
        gap: 12px 18px;
    }

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

    .footer-newsletter-input,
    .footer-newsletter-button {
        width: 100%;
    }

    .footer-social-link {
        width: 38px;
        height: 38px;
    }

}


/* ---------------------------------------------------------
   Small Mobile
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .footer-main {
        padding: 34px 0 26px;
    }

    .footer-grid {
        gap: 26px;
    }

    .footer-brand-link {
        font-size: 20px;
    }

    .footer-brand-logo {
        width: 36px;
        height: 36px;
    }

    .footer-description {
        font-size: 13px;
        line-height: 1.7;
    }

    .footer-contact-item {
        font-size: 13px;
    }

    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
    }

}


/* ---------------------------------------------------------
   Accessibility
   --------------------------------------------------------- */

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

    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}


/* ---------------------------------------------------------
   Print
   --------------------------------------------------------- */

@media print {

    .site-footer {
        background: #ffffff !important;
        color: #000000 !important;
        border-top: 1px solid #000000;
    }

    .footer-description,
    .footer-links a,
    .footer-contact-item,
    .footer-copyright,
    .footer-legal a,
    .footer-service-area-list a {
        color: #000000 !important;
    }

    .footer-social,
    .footer-newsletter,
    .footer-cta,
    .footer-trust {
        display: none !important;
    }

}