/* Site footer — Reemoon international VI */

.site-footer {
    --sf-brand: #00856f;
    --sf-brand-light: #00a88a;
    --sf-brand-bright: #6ee7c7;
    --sf-bg: #071412;
    --sf-bg-soft: #0c1f1a;
    --sf-text: rgba(255, 255, 255, 0.92);
    --sf-text-muted: rgba(255, 255, 255, 0.62);
    --sf-border: rgba(110, 231, 199, 0.12);
    --sf-max: min(1280px, 100%);
    --sf-gutter: clamp(20px, 4vw, 48px);
    position: relative;
    margin-top: clamp(48px, 6vw, 80px);
    color: var(--sf-text);
    background: linear-gradient(180deg, var(--sf-bg-soft) 0%, var(--sf-bg) 100%);
    overflow: hidden;
}

.site-footer__mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 10% 0%, rgba(0, 133, 111, 0.14), transparent 55%),
        radial-gradient(ellipse 40% 35% at 90% 100%, rgba(0, 168, 138, 0.08), transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: auto, auto, 56px 56px, 56px 56px;
    opacity: 0.7;
}

.site-footer__container {
    width: 100%;
    max-width: var(--sf-max);
    margin: 0 auto;
    padding-left: var(--sf-gutter);
    padding-right: var(--sf-gutter);
    box-sizing: border-box;
}

.site-footer__main {
    position: relative;
    z-index: 1;
    padding: clamp(48px, 6vw, 72px) 0 clamp(40px, 5vw, 56px);
}

.site-footer__grid {
    display: grid;
    gap: clamp(36px, 4vw, 48px);
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
        gap: clamp(32px, 4vw, 56px);
    }
}

.site-footer__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-footer__logo {
    display: inline-block;
    margin-bottom: clamp(16px, 2vw, 20px);
}

.site-footer__logo img {
    display: block;
    width: auto;
    height: clamp(36px, 4vw, 44px);
    object-fit: contain;
}

.site-footer__slogan {
    margin: 0 0 clamp(24px, 3vw, 28px);
    max-width: 360px;
    font-size: clamp(0.9375rem, 1vw, 1rem);
    line-height: 1.75;
    color: var(--sf-text-muted);
}

.site-footer__contact {
    margin: 0 0 clamp(20px, 2.5vw, 24px);
    padding: 0;
    list-style: none;
}

.site-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--sf-text-muted);
}

.site-footer__contact li:last-child {
    margin-bottom: 0;
}

.site-footer__contact-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-top: 1px;
    color: var(--sf-brand-bright);
    background: rgba(0, 133, 111, 0.12);
    border-radius: 8px;
}

.site-footer__contact a {
    color: var(--sf-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__contact a:hover {
    color: var(--sf-brand-bright);
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 clamp(24px, 3vw, 28px);
    padding: 0;
    list-style: none;
}

.site-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--sf-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-footer__social a:hover {
    color: var(--sf-brand-bright);
    border-color: rgba(110, 231, 199, 0.35);
    background: rgba(0, 133, 111, 0.12);
}

.site-footer__heading {
    margin: 0 0 clamp(18px, 2.2vw, 22px);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sf-brand-bright);
}

.site-footer__heading::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--sf-brand), var(--sf-brand-light));
    border-radius: 1px;
}

.site-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links li {
    margin-bottom: 10px;
}

.site-footer__links li:last-child {
    margin-bottom: 0;
}

.site-footer__links a {
    display: inline-block;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--sf-text-muted);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__links a:hover {
    color: #fff;
    transform: translateX(3px);
}

.site-footer__bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--sf-border);
}

.site-footer__bottom-inner {
    padding: clamp(20px, 2.5vw, 24px) 0 clamp(24px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.site-footer__copyright {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.site-footer__copyright a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    margin-left: 0.5em;
}

.site-footer__copyright a:hover {
    color: var(--sf-brand-bright);
}

/* Back to top — button sits outside .site-footer; do not rely on footer-scoped CSS vars */
.site-footer__top.scroll-top {
    --sf-top-brand: #00856f;
    --sf-top-brand-light: #00a88a;
    --sf-top-brand-dark: #006b59;
    position: fixed;
    right: clamp(16px, 3vw, 28px);
    bottom: clamp(16px, 3vw, 28px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    color: #fff;
    background: var(--sf-top-brand);
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    box-shadow:
        0 10px 28px rgba(0, 77, 65, 0.38),
        0 0 0 1px rgba(0, 133, 111, 0.18);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-footer__top.scroll-top svg {
    display: block;
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.5;
}

.site-footer__top.scroll-top.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    bottom: clamp(16px, 3vw, 28px);
    pointer-events: auto;
}

.site-footer__top.scroll-top:hover {
    background: var(--sf-top-brand-light);
    border-color: #fff;
    box-shadow:
        0 14px 32px rgba(0, 77, 65, 0.45),
        0 0 0 1px rgba(0, 168, 138, 0.35);
}

.site-footer__top.scroll-top:focus-visible {
    outline: 3px solid rgba(0, 133, 111, 0.45);
    outline-offset: 3px;
}

/* Full-bleed pages: flush with content */
body:has(.tech-hub) .site-footer,
body:has(.techd) .site-footer,
body:has(.cases-hub) .site-footer,
body:has(.support-hub) .site-footer,
body:has(.solutions-hub) .site-footer,
body:has(.products-index) .site-footer,
body:has(.content-page) .site-footer,
body:has(.contact-page) .site-footer,
body:has(.about-page) .site-footer,
body:has(.global-page) .site-footer,
body:has(.zeren-page) .site-footer,
body:has(.hr-home) .site-footer,
body:has(.hr-jobs-page) .site-footer {
    margin-top: 0;
}

@media (max-width: 767px) {
    .site-footer {
        margin-top: 2rem;
    }

    .site-footer__main {
        padding: 2rem 0 1.5rem;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 1rem;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--sf-border);
    }

    .site-footer__slogan {
        margin-bottom: 1rem;
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .site-footer__contact li {
        margin-bottom: 8px;
        font-size: 0.875rem;
    }

    .site-footer__contact-icon {
        width: 28px;
        height: 28px;
    }

    .site-footer__social {
        margin-bottom: 0;
    }

    .site-footer__heading {
        margin-bottom: 0.75rem;
        font-size: 0.75rem;
    }

    .site-footer__heading::after {
        margin-top: 6px;
    }

    .site-footer__links li {
        margin-bottom: 6px;
    }

    .site-footer__links a {
        font-size: 0.8125rem;
        line-height: 1.4;
    }

    .site-footer__bottom-inner {
        padding: 1rem 0 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__links a:hover {
        transform: none;
    }
}
