/* =========================================================
   SP FLOORING SERVICES
   GLOBAL FOOTER + COOKIE CONSENT
   Based on the same footer structure used for HB Group
   ========================================================= */

:root {
    --footer-bg: #050505;
    --footer-bg-soft: #090b09;
    --footer-panel: #101210;
    --footer-panel-hover: #151815;
    --footer-white: #ffffff;
    --footer-text: #c6cbc4;
    --footer-muted: #7f877d;
    --footer-line: rgba(255, 255, 255, 0.09);
    --footer-green: #89d632;
    --footer-green-bright: #9bea42;
    --footer-green-soft: rgba(137, 214, 50, 0.10);
    --footer-green-line: rgba(137, 214, 50, 0.24);
}

/* =========================
   FOOTER
========================= */

.site-footer {
    position: relative;
    overflow: hidden;
    color: var(--footer-text);
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-line);
}

.site-footer::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -280px;
    top: -280px;
    border-radius: 50%;
    background: rgba(137, 214, 50, 0.055);
    filter: blur(8px);
    pointer-events: none;
}

.site-footer a {
    color: inherit;
}

.site-footer__main {
    position: relative;
    z-index: 1;
    padding: 72px 0 58px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.6fr) repeat(3, minmax(155px, 0.75fr));
    gap: clamp(32px, 5vw, 72px);
}

.site-footer__brand {
    max-width: 390px;
}

.site-footer__logo {
    display: inline-flex;
    width: min(255px, 100%);
    margin-bottom: 24px;
}

.site-footer__logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.site-footer__brand>p {
    max-width: 360px;
    margin: 0 0 24px;
    color: #aab0a8;
    font-size: 0.95rem;
    line-height: 1.8;
}

.site-footer__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer__trust span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 11px;
    color: #d7ddd4;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 760;
    letter-spacing: 0.015em;
}

.site-footer__trust span::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--footer-green);
    box-shadow: 0 0 0 4px rgba(137, 214, 50, 0.08);
}


/* =========================
   SOCIAL
========================= */

.site-footer__socials {
    margin-top: 22px;
}

.site-footer__social-link {
    width: fit-content;
    display: inline-grid;
    grid-template-columns: 42px minmax(0, auto) 28px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 10px;
    color: var(--footer-white);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-decoration: none;
    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
    transform: translateY(-2px);
    background: rgba(137, 214, 50, 0.07);
    border-color: var(--footer-green-line);
}

.site-footer__social-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #091104;
    background: var(--footer-green);
    border-radius: 11px;
    box-shadow: 0 0 0 5px rgba(137, 214, 50, 0.06);
}

.site-footer__social-icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.site-footer__social-link>span:nth-child(2) {
    min-width: 0;
}

.site-footer__social-link small,
.site-footer__social-link strong {
    display: block;
}

.site-footer__social-link small {
    margin-bottom: 2px;
    color: var(--footer-muted);
    font-size: 0.67rem;
    font-weight: 720;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.site-footer__social-link strong {
    color: #e9ede7;
    font-size: 0.88rem;
    font-weight: 760;
}

.site-footer__social-arrow {
    color: var(--footer-green);
    font-size: 16px;
    line-height: 1;
    transition: transform .2s ease;
}

.site-footer__social-link:hover .site-footer__social-arrow,
.site-footer__social-link:focus-visible .site-footer__social-arrow {
    transform: translate(2px, -2px);
}

.site-footer__column h3 {
    margin: 4px 0 20px;
    color: var(--footer-white);
    font-size: 0.92rem;
    font-weight: 820;
    letter-spacing: -0.01em;
}

.site-footer__column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__column li+li {
    margin-top: 11px;
}

.site-footer__column li a {
    position: relative;
    display: inline-flex;
    color: #929a90;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.site-footer__column li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -3px;
    height: 1px;
    background: var(--footer-green);
    transition: right .2s ease;
}

.site-footer__column li a:hover,
.site-footer__column li a:focus-visible {
    color: var(--footer-white);
    transform: translateX(2px);
}

.site-footer__column li a:hover::after,
.site-footer__column li a:focus-visible::after {
    right: 0;
}

/* =========================
   CONTACT
========================= */

.site-footer__contact {
    min-width: 0;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
    text-decoration: none;
}

.footer-contact+.footer-contact {
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.footer-contact__icon {
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--footer-green);
    background: var(--footer-green-soft);
    border: 1px solid var(--footer-green-line);
    border-radius: 11px;
}

.footer-contact__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-contact span:last-child {
    min-width: 0;
}

.footer-contact small,
.site-footer__quote small {
    display: block;
    margin-bottom: 1px;
    color: var(--footer-muted);
    font-size: 0.67rem;
    font-weight: 720;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.footer-contact strong,
.site-footer__quote strong {
    display: block;
    overflow: hidden;
    color: #e9ede7;
    font-size: 0.88rem;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-contact:hover strong,
.footer-contact:focus-visible strong {
    color: var(--footer-green-bright);
}

.site-footer__quote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 17px;
    padding: 15px 16px;
    color: var(--footer-white);
    background:
        linear-gradient(135deg, rgba(137, 214, 50, 0.10), rgba(137, 214, 50, 0.035));
    border: 1px solid var(--footer-green-line);
    border-radius: 14px;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.site-footer__quote:hover,
.site-footer__quote:focus-visible {
    background: rgba(137, 214, 50, 0.13);
    border-color: rgba(137, 214, 50, 0.4);
    transform: translateY(-2px);
}

.site-footer__quote-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #091104;
    background: var(--footer-green);
    border-radius: 50%;
    font-weight: 900;
}

/* =========================
   SEO LINK STRIP
========================= */

.site-footer__seo {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--footer-line);
    border-bottom: 1px solid var(--footer-line);
    background: rgba(255, 255, 255, 0.018);
}

.site-footer__seo-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 18px 0;
}

.site-footer__seo-inner>span {
    color: #656c64;
    font-size: 0.71rem;
    font-weight: 820;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.site-footer__seo-inner a {
    color: #8b9389;
    font-size: 0.78rem;
    text-decoration: none;
    transition: color .2s ease;
}

.site-footer__seo-inner a:hover,
.site-footer__seo-inner a:focus-visible {
    color: var(--footer-green-bright);
}

/* =========================
   BOTTOM BAR
========================= */

.site-footer__bottom {
    position: relative;
    z-index: 1;
    background: #030303;
}

.site-footer__bottom-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    min-height: 74px;
    padding: 15px 0;
    color: #676e65;
    font-size: 0.72rem;
}

.site-footer__legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.site-footer__legal a,
.site-footer__credit a {
    color: #838a81;
    text-decoration: none;
    transition: color .2s ease;
}

.site-footer__legal a:hover,
.site-footer__credit a:hover,
.site-footer__legal a:focus-visible,
.site-footer__credit a:focus-visible {
    color: var(--footer-green-bright);
}

.site-footer__credit {
    text-align: right;
}

/* =========================
   COOKIE CONSENT
========================= */

.cookie-consent,
.cookie-settings {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-consent.is-open,
.cookie-settings.is-open {
    display: flex;
}

.cookie-consent__backdrop,
.cookie-settings__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.cookie-consent__panel,
.cookie-settings__panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px;
    color: #d2d6d0;
    background:
        radial-gradient(circle at 100% 0%, rgba(137, 214, 50, 0.10), transparent 16rem),
        #0d0f0d;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.cookie-settings__panel {
    width: min(620px, 100%);
}

.cookie-consent__close,
.cookie-settings__close {
    appearance: none;
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    padding: 0;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    cursor: pointer;
}

.cookie-consent__close span,
.cookie-settings__close span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 15px;
    height: 1.5px;
    background: #d8ddd5;
    border-radius: 10px;
}

.cookie-consent__close span:first-child,
.cookie-settings__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.cookie-consent__close span:last-child,
.cookie-settings__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.cookie-consent__icon {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    margin-bottom: 20px;
    color: var(--footer-green);
    background: var(--footer-green-soft);
    border: 1px solid var(--footer-green-line);
    border-radius: 14px;
}

.cookie-consent__icon svg {
    width: 26px;
    height: 26px;
}

.cookie-consent__eyebrow,
.cookie-settings__header>div>span {
    display: block;
    margin-bottom: 8px;
    color: var(--footer-green);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.cookie-consent__panel h2,
.cookie-settings__panel h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.15rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.cookie-consent__panel>p,
.cookie-settings__intro {
    margin: 16px 0 0;
    color: #9da49a;
    font-size: 0.91rem;
    line-height: 1.7;
}

.cookie-consent__actions,
.cookie-settings__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.cookie-btn {
    appearance: none;
    min-height: 44px;
    padding: 10px 15px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 820;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
    transform: translateY(-1px);
}

.cookie-btn--primary {
    color: #081003;
    background: var(--footer-green);
    border: 1px solid var(--footer-green);
}

.cookie-btn--primary:hover,
.cookie-btn--primary:focus-visible {
    background: var(--footer-green-bright);
    border-color: var(--footer-green-bright);
}

.cookie-btn--secondary {
    color: #e4e8e2;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .10);
}

.cookie-btn--secondary:hover,
.cookie-btn--secondary:focus-visible {
    background: rgba(255, 255, 255, .09);
}

.cookie-btn--text {
    color: #98a195;
    background: transparent;
    border: 1px solid transparent;
}

.cookie-btn--text:hover,
.cookie-btn--text:focus-visible {
    color: #fff;
}

.cookie-consent__links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 21px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.cookie-consent__links a {
    color: #7f877d;
    font-size: 0.73rem;
    text-decoration: none;
}

.cookie-consent__links a:hover,
.cookie-consent__links a:focus-visible {
    color: var(--footer-green-bright);
}

.cookie-consent__links>span {
    width: 3px;
    height: 3px;
    background: #4a5048;
    border-radius: 50%;
}

/* =========================
   COOKIE SETTINGS
========================= */

.cookie-settings__header {
    position: relative;
    padding-right: 54px;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.032);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 16px;
}

.cookie-option__content {
    min-width: 0;
}

.cookie-option__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.cookie-option__title strong {
    color: #f5f7f4;
    font-size: 0.9rem;
}

.cookie-option__required {
    padding: 4px 7px;
    color: var(--footer-green);
    background: var(--footer-green-soft);
    border: 1px solid var(--footer-green-line);
    border-radius: 999px;
    font-size: 0.63rem;
    font-weight: 800;
}

.cookie-option p {
    margin: 7px 0 0;
    color: #8e968b;
    font-size: 0.79rem;
    line-height: 1.55;
}

/* SWITCH */

.cookie-switch {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 27px;
    cursor: pointer;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-switch>span:not(.sr-only) {
    position: absolute;
    inset: 0;
    background: #292d29;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    transition: background .2s ease, border-color .2s ease;
}

.cookie-switch>span:not(.sr-only)::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 19px;
    height: 19px;
    background: #a4aaa1;
    border-radius: 50%;
    transition: transform .2s ease, background .2s ease;
}

.cookie-switch input:checked+span {
    background: rgba(137, 214, 50, 0.20);
    border-color: rgba(137, 214, 50, 0.38);
}

.cookie-switch input:checked+span::after {
    background: var(--footer-green);
    transform: translateX(21px);
}

.cookie-switch--locked {
    cursor: default;
}

.cookie-switch--locked>span {
    background: rgba(137, 214, 50, 0.18);
    border-color: rgba(137, 214, 50, 0.34);
}

.cookie-switch--locked>span::after {
    background: var(--footer-green);
    transform: translateX(21px);
}

.cookie-settings__footnote {
    margin: 17px 0 0;
    color: #737a70;
    font-size: 0.73rem;
    line-height: 1.55;
}

body.cookie-modal-open {
    overflow: hidden;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {
    .site-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .site-footer__contact {
        grid-column: 2 / 4;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 18px;
    }

    .site-footer__contact h3 {
        grid-column: 1 / -1;
    }

    .site-footer__quote {
        grid-column: 1 / -1;
    }

    .site-footer__bottom-inner {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__legal {
        justify-content: flex-end;
    }

    .site-footer__credit {
        grid-column: 1 / -1;
        text-align: left;
    }
}

@media (max-width: 760px) {
    .site-footer__main {
        padding: 56px 0 42px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 38px 28px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
        max-width: 520px;
    }

    .site-footer__contact {
        grid-column: 1 / -1;
    }

    .site-footer__bottom-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 22px 0;
    }

    .site-footer__legal {
        justify-content: flex-start;
    }

    .site-footer__credit {
        text-align: left;
    }
}

@media (max-width: 540px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__social-link {
        width: 100%;
        grid-template-columns: 42px minmax(0, 1fr) 28px;
    }

    .site-footer__brand,
    .site-footer__contact {
        grid-column: auto;
    }

    .site-footer__contact {
        display: block;
    }

    .site-footer__seo-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .cookie-consent,
    .cookie-settings {
        align-items: flex-end;
        padding: 10px;
    }

    .cookie-consent__panel,
    .cookie-settings__panel {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 24px 20px;
        border-radius: 20px;
    }

    .cookie-consent__actions,
    .cookie-settings__actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-option {
        align-items: flex-start;
    }
}