/* * -----------------------------
 * Footer
 * ----------------------------- */
/* Fix for footer corners - add matching rounded top corners */
.stack-section__footer {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

/* Footer wrapper positioning fix to prevent ScrollTrigger jump */
.footer-wrapper {
    position: relative;
    transform: translateZ(0);

    /* Force hardware acceleration */
    will-change: transform;

    /* Optimize for transform changes */
}

.footer-section-padding {
    padding-top: 8rem;
    padding-bottom: 5.5rem;
}

.footer-lajna {
    border-top: 0.5px solid var(--linegrey);
}

.footer-section-padding {
    padding-top: 8rem;
    padding-bottom: 5.5rem;
}

.footer-nav1_wrap {
    grid-area: 1 / 1 / 2 / 3;
}

.footer-nav2_wrap {
    grid-area: 1 / 3 / 2 / 5;
}

.footer-nav3_wrap {
    grid-area: 1 / 5 / 2 / 7;
}

.footer-nav4_wrap {
    grid-area: 1 / 3 / 2 / 5;
}

.footer-section__logo-wrap {
    grid-area: 1 / 1 / 2 / 4;
}

.footer-scroll-up_wrap {
    grid-area: 1 / 11 / 2 / 13;
    display: flex;
    justify-content: end;
    justify-self: end;
}

.scroll-up__button {
    text-decoration: none;

    /* display: flex;
    width: 3rem;
    height: 3rem;
    color: var(--grey);
    text-decoration: none;

    
    background-color: var(--dark);
    border-radius: 50%;


    align-items: center;
    justify-content: center; */
}

.footer-logo1__wrap {
    grid-area: 1 / 1 / 2 / 6;
    display: flex;
    flex-direction: row;
    column-gap: 2rem;
}

.footer-logo2__wrap {
    grid-area: 1 / 3 / 2 / 5;
}

.footer-logo3__wrap {
    grid-area: 1 / 5 / 2 / 7;
}

.foot-img-contain {
    height: auto;
    object-fit: contain;
}

.footer-social__wrap {
    grid-area: 1 / 9 / 2 / 11;
    align-self: end;
}

.footer-social__flex {
    display: flex;
    column-gap: 1rem;

    /* align-items: flex-end */
}

.footer-copyright__wrap {
    grid-area: 1 / 11 / 2 / 13;
    align-self: end;
}

.footer-copyright {
    text-align: right;

    /* text-transform: uppercase */
}

.honka-logo_footer {
    width: 5.7rem;
}

.miller-logo_footer {
    width: 5rem;
}

/* FOOTER HOVER LINKS */
.hover-link {
    padding-top: 10px;
    padding-bottom: 5px;
    overflow: hidden;
    z-index: 13;
    background-position-y: -0%;
    background-image: linear-gradient(
      180deg,
      transparent 50%,
      transparent 50%
    ) !important;
    transition: all 0.6s cubic-bezier(0.86, 0, 0.07, 1);
    background-size: 0%;
    background-size: auto 190%;
    padding: 6px;
    color: var(--dark);

    /* Default text color */
    text-decoration: none;

    /* Remove default underline */
}

.hover-link:hover {
    padding: 6px;
    background-position-y: 100%;
    color: var(--dark);

    /* Text color on hover */
    background-image: linear-gradient(
      180deg,
      transparent 50%,
      var(--accent) 50%
    ) !important;
    transition: all 0.6s cubic-bezier(0.86, 0, 0.07, 1);
}

/* WE ARE OPEN LED */
.weareopn-led {
    font-size: 1.6rem;
    top: 0.2rem;
}

.open-led::after,
.open-led-second::after {
    content: "";
    display: inline-block;
    width: 0.675rem;
    height: 0.675rem;
    background-color: var(--accent);
    border-radius: 50%;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.footer-nav5_wrap {
    grid-area: 1 / 7 / 2 / 9;
}

.footer-nav6_wrap {
    grid-area: 1 / 9 / 2 / 11;
}

.footer-nav7_wrap {
    grid-area: 1 / 12 / 2 / 13;
}

.footer-social-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-language_wrap {
    grid-area: 1 / 1 / 2 / 3;
    position: relative;

    /* top: 0.2rem */
}

.footer-logo-log-home {
    width: 9rem;
    position: relative;
    top: -0.1rem;
}

.footer-terms_wrap {
    grid-area: 1 / 5 / 2 / 11;
}

.footer-terms_flex {
    display: flex;
    flex-direction: row;
    column-gap: 2rem;

    /* gap: 2rem */
}

.footer-flex-push {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 10rem;
}

.footer-push-main {
    flex: 1;
}

/* * -----------------------------
 * Footer underline link
 * ----------------------------- */
.slide-underline-link {
    position: relative;
    text-decoration: none;
    outline: none;
    color: var(--dark);
    transition: color 0.3s;
}

.slide-underline-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-image: linear-gradient(var(--dark) 0 0);
    background-size: 200% 100%;

    /* Make background wider to allow for the sliding effect */
    background-position: right bottom;

    /* Start position on the right */
    background-repeat: no-repeat;
    transition: width 0.3s, background-position 0.3s ease-out;

    /* Add transition for background-position */
}

.slide-underline-link:hover::before {
    width: 100%;
    background-position: left bottom;

    /* On hover, move background to the left */
}

.slide-underline-link:focus-visible {
    box-shadow: 0 0.5rem 0 var(--dark);
}

.slide-underline-link:active {
    color: var(--accent);
}

.slide-underline-link:active::before {
    background-image: linear-gradient(var(--accent) 0 0);
}

.arrow-rotate {
    transform: rotate(90deg);
}

.footer-nav-flex {
    flex-direction: column;
}

.language-wrap {
    display: flex;
    align-items: center;
}
