/* ==========================================================================
   WI.NE 71 — footer refinement
   Loaded after usn-global.min.css. Scoped to <footer> only; overrides the
   theme footer for a cleaner, higher-contrast, more considered layout and
   hosts the integrations.at logo credit.
   Palette anchors: brand green #4cb8a6 (c1) / #1c7a63 (deep) on near-black.
   ========================================================================== */

/* --- Surface ------------------------------------------------------------- */
footer {
    position: relative;
    color: rgba(255, 255, 255, .72);
    background-color: #121212;
    background-image: linear-gradient(180deg, #171717 0%, #0f0f0f 100%);
    padding: 72px 0 0;
    opacity: 1;
}

/* Thin brand accent rule across the top of the footer */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #1c7a63 0%, #4cb8a6 55%, #1c7a63 100%);
}

/* --- Section headings ---------------------------------------------------- */
footer .heading {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin: 0 0 18px;
}

/* --- Quick links --------------------------------------------------------- */
footer .quick-links ul {
    margin: 0;
}

footer .quick-links ul li {
    padding: 0;
    margin: 0;
    display: block;
}

footer .quick-links ul li a {
    display: inline-block;
    position: relative;
    padding: 7px 0 7px 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, .74);
    transition: color .2s ease, transform .2s ease;
}

/* Restyle the theme's ::after marker into a leading brand tick */
footer .quick-links ul li a::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 1px;
    margin-top: 0;
    background-color: #4cb8a6;
    transform: translateY(-50%);
    transition: width .2s ease, background-color .2s ease;
}

footer .quick-links ul li a:hover,
footer .quick-links ul li a:focus {
    color: #fff;
    transform: translateX(2px);
}

footer .quick-links ul li a:hover::after,
footer .quick-links ul li a:focus::after {
    width: 10px;
    background-color: #6fd0c0;
}

/* --- Site search --------------------------------------------------------- */
footer .site-search {
    margin: 6px 0 22px;
    max-width: 320px;
}

footer .site-search .form-control {
    height: 44px;
    min-height: 44px;
    padding: 0 44px 0 14px;
    color: #fff;
    background-color: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

footer .site-search .form-control::placeholder {
    color: rgba(255, 255, 255, .4);
}

footer .site-search .form-control:focus {
    background-color: rgba(255, 255, 255, .09);
    border-color: #4cb8a6;
    box-shadow: 0 0 0 3px rgba(76, 184, 166, .22);
    outline: none;
}

footer .site-search button.btn {
    width: 44px;
    height: 44px;
    padding-top: 11px;
    color: #4cb8a6;
    transition: color .2s ease;
}

footer .site-search button.btn:hover,
footer .site-search button.btn:focus {
    color: #6fd0c0;
}

/* --- Company details ----------------------------------------------------- */
footer .company-details address {
    margin-bottom: 8px;
}

footer .company-details p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .72);
    margin: 0 0 4px;
}

footer .company-details a {
    color: rgba(255, 255, 255, .82);
    transition: color .2s ease;
}

footer .company-details a:hover,
footer .company-details a:focus {
    color: #6fd0c0;
}

/* --- Bottom bar ---------------------------------------------------------- */
footer nav.footer {
    margin-top: 56px;
    padding: 22px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

footer nav.footer > ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

footer nav.footer > ul > li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    float: none;
}

footer nav.footer > ul > li.copyright div {
    color: rgba(255, 255, 255, .5);
    letter-spacing: .02em;
}

footer nav.footer > ul > li a {
    color: rgba(255, 255, 255, .72);
    transition: color .2s ease;
}

footer nav.footer > ul > li a:hover,
footer nav.footer > ul > li a:focus {
    color: #fff;
}

/* --- integrations.at logo credit ----------------------------------------- */
footer nav.footer > ul > li.site-credit {
    margin-left: auto;
    float: none;
    clear: none;
    padding: 0;
}

/* High specificity to beat the theme's `nav.footer ul li a { display }` rule */
footer nav.footer ul li.site-credit a.int-credit {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    transition: transform .2s ease;
}

footer .int-credit__tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #c3ccda; /* fallback for no background-clip */
    background: linear-gradient(90deg, #eef3fb 0%, #a7b2c3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer .int-credit__spark {
    flex: none;
    filter: drop-shadow(0 0 5px rgba(59, 155, 255, .55));
}

footer .int-credit img {
    display: block;
    height: 30px;
    width: auto;
    opacity: .95;
    transition: opacity .2s ease;
}

footer .int-credit:hover,
footer .int-credit:focus {
    transform: translateY(-1px);
}

footer .int-credit:hover img,
footer .int-credit:focus img {
    opacity: 1;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 767px) {
    footer {
        padding-top: 48px;
        text-align: center;
    }

    footer .site-search {
        margin-left: auto;
        margin-right: auto;
    }

    footer .quick-links ul li a {
        padding-left: 0;
    }

    footer .quick-links ul li a::after {
        display: none;
    }

    footer nav.footer > ul {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    footer nav.footer > ul > li.site-credit {
        margin-left: 0;
    }
}

/* --- Motion preference --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    footer .quick-links ul li a,
    footer .quick-links ul li a::after,
    footer .int-credit,
    footer .site-search .form-control,
    footer .company-details a,
    footer nav.footer > ul > li a {
        transition: none;
    }
}
