/* ===========================================
   SCIENS FOOTER STYLES
   Minimal, clean layout
   =========================================== */

/* Hide theme's default footer if present */
#section-footer,
.section-footer {
    display: none !important;
}

.sciens-site-footer {
    background: var(--sciens-bg, #faf9f7);
    font-family: var(--sciens-font-main, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

/* Prevent theme animations/transitions on footer structure (not links) */
.sciens-footer-main,
.sciens-footer-bottom,
.sciens-footer-main-inner,
.sciens-footer-bottom-inner,
.sciens-footer-left,
.sciens-footer-addresses {
    transition: none !important;
    animation: none !important;
}

/* Main Footer Section */
.sciens-footer-main {
    background: #f5f3ef;
    padding: 3.2rem 4% 2.4rem;
}

.sciens-footer-main-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.4rem;
}

/* Left side - Logo and Addresses */
.sciens-footer-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Logo */
.sciens-footer-logo {
    display: inline-block;
    text-decoration: none;
}

.sciens-footer-logo-img {
    height: auto;
    max-height: 48px;
    width: auto;
    max-width: 176px;
    display: block;
}

.sciens-footer-logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--sciens-text-dark, #1a1a1a);
    letter-spacing: -0.02em;
}

/* Addresses */
.sciens-footer-addresses {
    display: flex;
    gap: 2.4rem;
}

.sciens-footer-address {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sciens-address-city {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--sciens-text-dark, #1a1a1a);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
}

.sciens-address-line {
    font-size: 0.8rem;
    color: var(--sciens-text-muted, #7a7a7a);
    line-height: 1.5;
}

/* Navigation - Stacked vertically on right */
.sciens-footer-nav-wrap {
    flex-shrink: 0;
}

.sciens-footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    text-align: right;
}

.sciens-footer-nav li {
    margin: 0;
}

.sciens-footer-nav a {
    font-size: 0.85rem;
    color: var(--sciens-text-muted, #7a7a7a);
    text-decoration: none;
    transition: color 0.15s ease;
}

.sciens-footer-nav a:hover {
    color: var(--sciens-text-dark, #1a1a1a);
}

/* Bottom Bar */
.sciens-footer-bottom {
    background: #f5f3ef;
    padding: 1rem 4%;
}

.sciens-footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
}

/* Legal Links - Left aligned */
.sciens-footer-legal {
    justify-self: start;
}

.sciens-footer-legal-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.2rem;
}

.sciens-footer-legal-nav li {
    margin: 0;
}

.sciens-footer-legal-nav a {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--sciens-text-light, #a0a0a0);
    text-decoration: none;
    transition: color 0.15s ease;
}

.sciens-footer-legal-nav a:hover {
    color: var(--sciens-text-dark, #1a1a1a);
}

/* Copyright - True center */
.sciens-footer-copyright {
    justify-self: center;
    text-align: center;
}

.sciens-footer-copyright p {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--sciens-text-light, #a0a0a0);
    margin: 0;
    white-space: nowrap;
}

/* Social Icons - stacked under logo, above addresses */
.sciens-footer-social {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sciens-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--sciens-text-light, #a0a0a0);
    border: 1px solid var(--sciens-border, #e5e2dc);
    border-radius: 50%;
    transition: color 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
}

.sciens-social-icon:hover {
    color: var(--sciens-text-dark, #1a1a1a);
    border-color: var(--sciens-text-dark, #1a1a1a);
}

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

/* Responsive */
@media (max-width: 900px) {
    .sciens-footer-main {
        padding: 2.4rem 4% 2rem;
    }

    .sciens-footer-main-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .sciens-footer-nav {
        text-align: left;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.8rem 1.6rem;
    }

    .sciens-footer-addresses {
        gap: 1.6rem;
    }

    .sciens-footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        gap: 0.8rem;
    }

    .sciens-footer-legal,
    .sciens-footer-copyright {
        justify-self: center;
        text-align: center;
    }

    .sciens-footer-legal-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem 1.2rem;
    }
}

@media (max-width: 600px) {
    .sciens-footer-main {
        padding: 2rem 1.2rem 1.6rem;
    }

    .sciens-footer-bottom {
        padding: 0.8rem 1.2rem;
    }

    .sciens-footer-addresses {
        flex-direction: column;
        gap: 1.2rem;
    }

    .sciens-footer-nav {
        gap: 0.6rem 1.2rem;
    }

    .sciens-footer-logo-img {
        max-height: 40px;
        max-width: 144px;
    }
}
