/*
Theme Name: Lõuna-Eesti
Theme URI: https://codeballers.com
Description: Custom WordPress Theme by CodeBallers
Author: CodeBallers
Author URI: https://codeballers.com
Text Domain: louna-eesti
*/

@font-face {
    font-family: 'Great Vibes';
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/GreatVibes-Regular.woff2') format('woff2');
    font-display: block;
}

body {
    cursor: url('assets/images/christmas-cookies-cursor.png') 0 0, auto !important;
}

a,
.link,
button,
.slider .keen-slider,
[role="button"] {
    cursor: url('assets/images/christmas-cookies-cursor.png') 0 0, auto !important;
}

a:hover,
.link:hover,
button:hover,
[role="button"]:hover {
    cursor: url('assets/images/christmas-cookies-pointer.png') 0 0, pointer !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'Great Vibes', sans-serif;
    letter-spacing: 0.03em;
    color: #01734B;
}

.footer__title {
    font-family: 'Great Vibes', sans-serif;
    font-size: 32px;
}

.card__figure,
.media-content__image {
    border-radius: 16px;
    overflow: hidden;
}

.link,
.button {
    color: #8F1A0F;
}

.button--link {
    padding: 16px 32px !important;
    background-color: #8F1A0F;
    color: #fff;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
}

.button--link:hover {
    background-color: #8e3228;
}

.link {
    background-image: linear-gradient(#8F1A0F, #8F1A0F);

}

.glitter-particle {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8), 0 0 4px rgba(255, 255, 255, 0.6);
    will-change: transform, opacity;
    opacity: 0;
}

h2,
.h2 {
    font-size: 64px;
}

h3,
.h3 {
    font-size: 32px;
}

.section {
    padding-top: 100px;
}

section--slider .section__head+.section__container {
    margin-top: 42px;
}

.header {
    background-color: #8F1A0F;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: -1;
    background: repeating-linear-gradient(45deg,
            #DC143C 0px,
            #DC143C 10px,
            #FFFFFF 10px,
            #FFFFFF 20px);
}

.footer {
    background-color: #01734B;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(45deg,
            #DC143C 0px,
            #DC143C 10px,
            #FFFFFF 10px,
            #FFFFFF 20px);
}

.header__nav .nav__link {
    color: #fff;
}

.header__nav .nav__link:hover {
    color: #C44D43 !important;
    background-size: 0 !important;
}

.header__nav .nav__item--parent .nav__link {
    color: #C44D43 !important;
}

.header__nav .nav__link.link.active {
    color: #C44D43 !important;
    background-size: 0 !important;
}

.header__nav .nav__link.link:focus {
    color: #C44D43 !important;
}

.langmenu__list-link.link {
    color: #fff !important;
    background-size: 0 !important;
}

.langmenu__list-link.link:hover {
    background-size: 0 !important;
}

.langmenu__list-link[aria-current=page] {
    color: #C44D43 !important;
    background-size: 0;
}

.section--slider .slider::before {
    background-color: #01734B;
}

.section--slider .card__text+*,
.cards__grid *+.card__button {
    margin-top: 32px;
}

.section--slider .card__title,
.section--slider .card__text,
.section--slider .card__button {
    color: #fff;
}

.section--video__placeholder {
    background-color: #e0bbbb;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

@media (min-width: 1024px) {
    .content__title {
        font-size: 64px;
    }

    *+.media-content__text {
        margin-top: 24px;
    }

    .section:not(.has-background):not(.has-background-offset)+.section {
        padding-top: 64px;
    }

    .section--slider .section__head+.section__container {
        margin-top: 42px;
    }
}

@media (max-width: 1024px) {

    h2,
    .h2 {
        font-size: 40px;
    }

    h3,
    .h3 {
        font-size: 28px;
    }

    *+.media-content__text {
        margin-top: 24px;
    }

    .section--slider .section__head+.section__container {
        margin-top: 32px;
    }

    .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

@media (max-width: 579px) {

    .section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .section--hero .slider__item-title {
        font-size: 48px;
    }

    h2,
    .h2 {
        font-size: 32px;
    }

    h3,
    .h3 {
        font-size: 24px;
    }
}

.content {
    padding-bottom: 0;
}

.main {
    position: relative;
    overflow: hidden;
}

.snowflake-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.snowflake {
    position: absolute;
    background-image: url('assets/svg/snowflake.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    animation: subtleRotate 8s linear infinite;
}

@keyframes subtleRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(180deg);
    }
}

.snowflake.fade-in {
    animation: fadeIn 2s ease-in forwards, subtleRotate 8s linear infinite;
}

.snowflake.fade-out {
    animation: fadeOut 1s ease-out forwards, subtleRotate 8s linear infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        scale: 1.2;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        scale: 1;
    }

    to {
        opacity: 0;
        scale: 0.9;
    }
}

.jouluvana {
    position: absolute;
    background-image: url('assets/svg/jouluvana.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: -1;
    width: 200px;
    height: 56px;
}

.jouluvana.moving-left-to-right {
    animation: moveLeftToRight 8s linear forwards;
    transform-origin: center center;
}

.jouluvana.moving-right-to-left {
    animation: moveRightToLeft 8s linear forwards;
    transform-origin: center center;
}

.iframe-video {
    position: relative;
    width: 100%;
    height: 100%;
}

.iframe-video__border {
    position: absolute;
    top: -7%;
    left: 0;
    width: 100%;
    height: 100%;
    scale: 1.1;
    pointer-events: none;
    display: none;
}

@keyframes moveLeftToRight {
    from {
        left: -200px;
        bottom: var(--start-bottom, 80px);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    to {
        left: calc(100% + 200px);
        bottom: var(--end-bottom, 15vh);
        opacity: 0;
    }
}

@keyframes moveRightToLeft {
    from {
        right: -200px;
        bottom: var(--start-bottom, 80px);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    to {
        right: calc(100% + 200px);
        bottom: var(--end-bottom, 15vh);
        opacity: 0;
    }
}

#christmas-video .media-content {
    grid-template-columns: 1fr;
}

#christmas-video .title {
    text-align: center;
}

.header__hamburger .header__hamburger-line {
    background-color: #fff;
}

.header__nav {
    background-color: #8F1A0F;
}

@media screen and (max-width: 579px) {
    .section--video {
        padding-top: 70px;
    }

    .section--video__placeholder {
        padding: 20px;
    }

    .section--video__placeholder-text {
        margin-bottom: 16px;
    }
}

/* Cookie Consent Modal Button Styles */
.cm__btn {
    background-color: #8F1A0F !important;
    border-color: #8F1A0F !important;
}

.cm__btn:hover {
    background-color: #8e3228 !important;
    border-color: #8e3228 !important;
}

.cm__btn:focus {
    background-color: #8e3228 !important;
    border-color: #8e3228 !important;
}

.cm__btn--secondary {
    border-color: #8F1A0F !important;
    background-color: transparent !important;
}

.cm__btn--secondary:hover {
    background-color: #8e3228 !important;
    border-color: #8e3228 !important;
    color: #fff !important;
}

.cm__btn--secondary:focus {
    background-color: #8e3228 !important;
    border-color: #8e3228 !important;
}

/* Preferences Modal Button Styles */
.pm__btn {
    background-color: #8F1A0F !important;
    border-color: #8F1A0F !important;
}

.pm__btn:hover {
    background-color: #8e3228 !important;
    border-color: #8e3228 !important;
}

.pm__btn:focus {
    background-color: #8e3228 !important;
    border-color: #8e3228 !important;
}

.pm__btn--secondary {
    border-color: #8F1A0F !important;
    background-color: transparent !important;
}

.pm__btn--secondary:hover {
    background-color: #8e3228 !important;
    border-color: #8e3228 !important;
    color: #fff !important;
}

.pm__btn--secondary:focus {
    background-color: #8e3228 !important;
    border-color: #8e3228 !important;
    color: #fff !important;
}

.pm__badge {
    background: #8F1A0F !important;
}

#cookie-settings-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #8F1A0F;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    padding: 0;
}

#cookie-settings-btn:hover {
    background-color: #8e3228;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#cookie-settings-btn:focus {
    outline: 2px solid #8F1A0F;
    outline-offset: 2px;
}

#cookie-settings-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    #cookie-settings-btn {
        width: 48px;
        height: 48px;
        left: 15px;
        bottom: 15px;
    }

    #cookie-settings-btn svg {
        width: 20px;
        height: 20px;
    }
}