/* =========================================================
   SENSTECH FOOTER — GREEN TECH
   Detailed footer layout and responsive styling.
   Load AFTER style.css / footer base patch.
========================================================= */

.senstech-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 3.5rem 0 1rem !important;
    background: var(
        --st-footer-gradient,
        linear-gradient(118deg, #052F25 0%, #064B36 48%, #0F6A4A 100%)
    ) !important;
    color: var(--st-footer-text, #EAF3EE) !important;
}

.senstech-footer,
.senstech-footer * {
    box-sizing: border-box;
}

/* Subtle technology grid; intentionally low contrast */
.senstech-footer::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    background-image:
        linear-gradient(rgba(234, 243, 238, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 243, 238, 0.035) 1px, transparent 1px);
    background-size: 58px 58px;
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.72),
        transparent 92%
    );
    mask-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.72),
        transparent 92%
    );
}

/* Soft ambient light, without hard decorative shapes */
.senstech-footer::after {
    position: absolute;
    z-index: -1;
    top: -180px;
    right: -100px;
    width: min(620px, 70vw);
    height: 380px;
    content: "";
    pointer-events: none;
    background: radial-gradient(
        ellipse,
        rgba(20, 184, 166, 0.13) 0%,
        rgba(20, 184, 166, 0.045) 42%,
        transparent 72%
    );
    filter: blur(18px);
}

.senstech-footer > .container {
    position: relative;
    z-index: 1;
}

.senstech-footer p {
    color: var(--st-footer-text, #EAF3EE) !important;
}

.senstech-footer__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(0, 0.95fr)
        minmax(0, 0.75fr)
        minmax(0, 0.9fr);
    align-items: start;
    gap: clamp(1.5rem, 2.5vw, 2.25rem);
}

/* Brand introduction */
.senstech-footer__intro {
    max-width: 560px;
}

.senstech-footer__intro p {
    margin: 0;
    color: var(--st-footer-text, #EAF3EE) !important;
    font-size: 0.96rem;
    line-height: 1.8;
}

.senstech-footer__intro .senstech-footer__tagline {
    margin-top: 1rem;
    color: var(--st-footer-text-muted, #D0E6DA) !important;
    font-size: 0.88rem;
}

/* Navigation columns */
.senstech-footer__column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    min-width: 0;
}

.senstech-footer__column h3 {
    margin: 0 0 0.45rem;
    color: var(--st-footer-heading, #FFFFFF) !important;
    font-family: var(--st-font-heading, "Plus Jakarta Sans", sans-serif);
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 700;
}

.senstech-footer__column > a {
    color: var(--st-footer-text, #EAF3EE) !important;
    font-size: 0.9rem;
    line-height: 1.65;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 180ms ease;
}

.senstech-footer__column > a:hover {
    color: var(--st-footer-accent, #A3E635) !important;
}

/* Social media */
.senstech-footer__social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 0.15rem;
}

.senstech-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    font-size: 19px;
    line-height: 1;
    text-decoration: none;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.senstech-footer__social-link.is-unconfigured {
    opacity: 0.72;
    cursor: default;
}

.senstech-footer__social-link:not(.is-unconfigured):hover {
    color: #103F30 !important;
    background: var(--st-footer-accent, #A3E635);
    border-color: var(--st-footer-accent, #A3E635);
    transform: translateY(-3px);
}

.senstech-footer__social-link:focus-visible {
    outline: 2px solid var(--st-footer-accent, #A3E635);
    outline-offset: 4px;
}

/* Divider */
.senstech-footer__divider {
    width: 100%;
    height: 1px;
    margin: 2rem 0 1.15rem;
    background: var(--st-footer-divider, rgba(255, 255, 255, 0.22));
}

/* Copyright */
.senstech-footer__copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--st-footer-text, #EAF3EE) !important;
    font-size: 0.8rem;
    line-height: 1.65;
}

.senstech-footer__copyright span {
    color: var(--st-footer-text, #EAF3EE) !important;
}

/* Mascot */
.senstech-footer__mascot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.65rem;
    padding: 0;
    line-height: 0;
}

.senstech-footer__mascot::before {
    position: absolute;
    width: 240px;
    height: 115px;
    content: "";
    pointer-events: none;
    background: radial-gradient(
        ellipse,
        rgba(20, 184, 166, 0.10),
        transparent 72%
    );
}

.senstech-footer__mascot img {
    position: relative;
    z-index: 1;
    display: block;
    width: 200px;
    max-width: 65vw;
    max-height: 180px;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.16));
}

/* Tablet */
@media (max-width: 1199.98px) {
    .senstech-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.25rem 2rem;
    }

    .senstech-footer__intro {
        grid-column: 1 / -1;
        max-width: 720px;
    }

    .senstech-footer__social {
        grid-column: auto;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .senstech-footer {
        padding: 2.5rem 0 0.85rem !important;
    }

    .senstech-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.25rem;
    }

    .senstech-footer__intro {
        grid-column: 1 / -1;
    }

    .senstech-footer__column {
        gap: 0.7rem;
    }

    .senstech-footer__column h3 {
        font-size: 0.95rem;
    }

    .senstech-footer__column > a {
        font-size: 0.85rem;
    }

    .senstech-footer__social {
        grid-column: 1 / -1;
    }

    .senstech-footer__social-links {
        gap: 10px;
    }

    .senstech-footer__social-link {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .senstech-footer__divider {
        margin: 1.5rem 0 1rem;
    }

    .senstech-footer__copyright {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
        font-size: 0.76rem;
    }

    .senstech-footer__mascot {
        margin-top: 0.6rem;
    }

    .senstech-footer__mascot img {
        width: 175px;
        max-height: 145px;
    }

    .senstech-footer__mascot::before {
        width: 200px;
        height: 100px;
    }
}

@media (max-width: 380px) {
    .senstech-footer__grid {
        column-gap: 0.9rem;
    }

    .senstech-footer__social-link {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .senstech-footer a,
    .senstech-footer__social-link {
        transition: none !important;
    }

    .senstech-footer__social-link:not(.is-unconfigured):hover {
        transform: none;
    }
}
