/* ==============================
   12) FOOTER (Dark Theme)
   ============================== */

.site-footer {
    position: relative;
    /* Base Dark Theme (Gradient Only) */
    background: radial-gradient(circle at 50% 0%, #1e3a8a 0%, #0f172a 100%);
    color: #fff;
    padding-block: var(--space-10) var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden; /* For pseudo-element containment */
}

/* Structural Grid with Variable Density (Masked) */
/* Structural Grid (Abstract Flow - Visible) */
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("data:image/svg+xml,%3Csvg width='160' height='40' viewBox='0 0 160 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M0 10h160'/%3E%3Cpath d='M0 20h160'/%3E%3Cpath d='M0 30h160'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Ccircle cx='40' cy='20' r='1'/%3E%3Ccircle cx='80' cy='10' r='1'/%3E%3Ccircle cx='120' cy='30' r='1'/%3E%3C/g%3E%3C/svg%3E");

    background-size: 160px 40px;
    background-repeat: repeat;

    /* Fade upward to avoid visual weight */
    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.6) 50%,
        rgba(0,0,0,0) 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.6) 50%,
        rgba(0,0,0,0) 100%
    );

    pointer-events: none;
    z-index: 0;
}

/* Ensure content sits above the pattern */
.site-footer > * {
    position: relative;
    z-index: 1;
}

.site-footer a {
    color: #cbd5e1; /* Slate 300 */
    transition: color .2s ease;
}

/* Restore button transitions */
.site-footer .button {
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-footer a:hover {
    color: var(--brand-accent);
    text-decoration: none;
}

/* Grid layout matching Hero gaps */
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    gap: var(--space-8);
    align-items: start;
    margin-bottom: var(--space-8);
    width: 100%; 
}

.footer__grid .navbar-brand {
    margin-bottom: var(--space-4);
    display: block;
}

.footer__brand img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1); /* Ensure logo is white if it's an SVG that permits */
}

/* Body text */
.footer__text {
    color: #cbd5e1; /* Slate 300 */
    font-size: var(--fs-300);
    max-width: 35ch;
    line-height: 1.6;
}

/* Contact block */
.footer__contact {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: var(--space-4);
}

.contact__row {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #cbd5e1;
    font-size: var(--fs-300);
}

.contact__row i {
    color: var(--brand-accent);
    width: 1rem;
    text-align: center;
}

.contact__row a {
    color: #fff;
    text-decoration: none;
}

/* Social icons */
.footer__social {
    display: flex;
    gap: .75rem;
    list-style: none;
    margin: var(--space-4) 0 0;
    padding: 0;
}

.footer__social a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: none;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer__social a:hover {
    background: #fff;
    border-color: #fff;
    color: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer nav */
.footer__nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10);
}

.footer__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.footer__nav ul>li:first-child {
    color: #fff;
    font-weight: 700;
    font-size: var(--fs-300);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: var(--space-2);
}

.footer__nav a,
.footer__nav button {
    font-size: var(--fs-300);
    background: none;
    border: none;
    padding: 0;
    color: #cbd5e1; /* Changed from Slate 400 to Slate 300 to match address text */
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: color .2s ease;
}

.footer__nav button:hover,
.footer__nav a:hover {
    color: var(--brand-accent);
    text-decoration: none;
}

/* CTA Section */
.footer__cta {
    display: grid;
    gap: var(--space-3);
}

.footer__cta .button--primary,
.footer__cta .button--primary:hover {
    color: #fff !important; 
}

/* Professional Override for "Our Solutions" Button */
.footer__cta .button--secondary {
    background: #fff !important;
    border: 1px solid #fff !important;
    color: var(--brand-primary) !important;
    font-weight: 600;
}

.footer__cta .button--secondary:hover {
    background: var(--brand-accent) !important;
    border-color: var(--brand-accent) !important;
    color: #fff !important;
}

/* Bottom Bar */
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer__legal {
    font-size: var(--fs-300);
    color: #64748b; /* Slate 500 - subtle */
}

/* Responsive */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}