/**
 * Footer Styles
 */

.site-footer {
    background: var(--color-white, #FFF);
    width: 100%;
}

.footer-container {
    display: flex;
    padding: 80px 9px 60px 15px;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    align-self: stretch;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

/* Footer Top Row: Logo + Subscribe Button */
.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo a {
    display: inline-block;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
    height: auto;
}

.footer-logo-text {
    font-family: "Funnel Sans", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text, #000);
    text-decoration: none;
}

.footer-newsletter {
    display: flex;
    align-items: center;
}

/* Footer Menus Row */
.footer-menus-row {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    align-self: stretch;
    width: 100%;
}

.footer-menu-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
}

.footer-menu-title {
    color: var(--color-purple-primary, #7336E3);
    /* Desktop/Body Regular Emphasized */
    font-family: "Funnel Sans", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 25.2px */
    margin: 0;
}

.footer-menu-holder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: var(--color-black-03, #1E1E1E);
    /* Desktop/Date */
    font-family: "Funnel Sans", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 21.6px */
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: var(--color-purple-primary, #7336E3);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    width: 100%;
    border-top: 1px solid #7336E3;
    padding-top: 40px;
}

.footer-bottom-links {
    display: inline-flex;
    align-items: center;
    gap: 59px;
}

.footer-bottom-links span,
.footer-bottom-links a {
    color: var(--color-black-03, #1E1E1E);
    /* Desktop/Body XSmall */
    font-family: "Funnel Sans", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%; /* 16.8px */
    letter-spacing: 0;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--color-purple-primary, #7336E3);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 100px;
    transition: opacity 0.2s ease;
}

.footer-social a:hover {
    opacity: 0.7;
}

.footer-social svg {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

/* LinkedIn - already has purple fill, no background needed */
.footer-social__link--linkedin {
    background: transparent;
}

.footer-social__link--linkedin svg {
    width: 40px;
    height: 40px;
}

/* YouTube - white icon in purple circle */
.footer-social__link--youtube {
    background: var(--color-purple-primary, #7336E3);
}

.footer-social__link--youtube svg {
    width: 20px;
    height: 15px;
}

/* X (formerly Twitter) - same circle style as LinkedIn */
.footer-social__link--x svg {
    width: 35px;
    height: 35px;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-container {
        padding: 60px 15px 40px 15px;
    }
    
    .footer-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .footer-newsletter {
        width: 100%;
    }
    
    .footer-menus-row {
        flex-wrap: wrap;
        gap: 40px;
    }
    
    .footer-menu-column {
        flex: 0 0 calc(50% - 20px);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
}

/* Desktop: Hide mobile-only elements */
.footer-bottom-logo-row {
    display: none;
}

@media (max-width: 768px) {
    /* Container */
    .footer-container {
        width: 430px;
        max-width: 100%;
        padding: 40px 16px 80px 16px;
        gap: 80px;
    }

    /* Hide top logo on mobile */
    .footer-logo {
        display: none;
    }

    /* Subscribe button - full width, white text, 20px */
    .footer-newsletter {
        width: 100%;
    }

    .footer-newsletter .btn {
        width: 100%;
        color: #FFF;
        font-size: 20px;
    }

    /* Menus - 2 per row with 40px gap */
    .footer-menus-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-menu-column {
        flex: unset;
    }

    /* Footer bottom restructure */
    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding-top: 0;
        border-top: none;
    }

    /* Social - centered, full width, space-around (above the line) */
    .footer-social {
        order: 1;
        width: 100%;
        justify-content: space-around;
    }

    /* Purple separator line - full width */
    .footer-bottom::before {
        content: '';
        order: 2;
        width: 100%;
        height: 1px;
        background: #7336E3;
    }

    /* Mobile: Logo + Copyright row */
    .footer-bottom-logo-row {
        order: 3;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        width: 100%;
        gap: 16px;
    }

    .footer-bottom-logo {
        display: flex;
        align-items: center;
    }

    .footer-bottom-logo img {
        max-height: 40px;
        width: auto;
    }

    .footer-bottom-logo-row .footer-copyright {
        font-size: 12px;
    }

    /* Desktop copyright - hide on mobile */
    .footer-copyright--desktop {
        display: none;
    }

    /* PP & TOS - separate row, space-around */
    .footer-bottom-links {
        order: 4;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        gap: 0;
    }

    .footer-bottom-links a {
        font-size: 12px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 87px;
    height: 87px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
}

.scroll-to-top__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: var(--color-white, #FFF);
    stroke-width: 0.627px;
    stroke: var(--color-gray-light, #E4E1F2);
    filter: drop-shadow(0 2.51px 9.412px rgba(39, 43, 43, 0.08));
}

.scroll-to-top__arrow {
    position: relative;
    z-index: 1;
    width: 23px;
    height: 29px;
}

.scroll-to-top__arrow path {
    stroke: #7336E3;
    stroke-width: 1.2549px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 24px;
        right: 24px;
        width: 70px;
        height: 70px;
    }
    
    .scroll-to-top__arrow {
        width: 18px;
        height: 23px;
    }
}

