/*
 Theme Name:    Snoe
 Author:        Mainostoimisto Halo Oy
 Author URI:    https://halo.fi
 Description:   Basic theme template
 Version:       1.6
*/

:root {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    -webkit-tap-highlight-color: transparent;

    font-size: clamp(75%, calc(1vw + 1px), 100%);

    --ff: "Titillium Web", sans-serif;
    --hff: "Roboto Condensed", sans-serif;

    --fs-base: 1rem;
    --fs-m: 1.2rem;
    --fs-l: 1.5rem;
    --fs-xl: 1.8rem;
    --fs-xxl: 2.2rem;
    --fs-xxxl: clamp(3.5rem, 6vw, 4rem);

    --fw-base: 400;
    --fw-bold: 700;

    --lh-base: 1.8em;
    --lh-tight: 1.2em;

    --primary-clr-400: #1A1A1A;
    --secondary-clr-400: #F9FDFE;

    --heading-clr: var(--secondary-clr-400);
    --text-clr: var(--secondary-clr-400);
    --link-clr: var(--primary-clr-400);

    --e-clr: var(--secondary-clr-400);
    --e-clr-focus: var(--secondary-clr-400);
    --e-text-clr: var(--primary-clr-400);
    --e-text-clr-focus: var(--primary-clr-400);

    --horizontal-p: 2rem;

    --b--width-base: 1px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--ff);
    font-size: var(--fs-base);
    font-weight: var(--fw-base);
    line-height: var(--lh-base);
}


/* =========== LAYOUT =========== */

.content-grid {
    --_padding-inline: var(--horizontal-p);
    --_content-max-width: 70rem;
    --_large-max-width: 80rem;

    --_content-width: min(100% - (var(--_padding-inline) * 2), var(--_content-max-width));
    --_large-width: minmax(0, calc((var(--_large-max-width) - var(--_content-max-width)) / 2));
    --_full-width: minmax(var(--_padding-inline), 1fr);

    display: grid;
    grid-template-columns: [full-width-start] var(--_full-width) [large-start] var(--_large-width) [content-start] var(--_content-width) [content-end] var(--_large-width) [large-end] var(--_full-width) [full-width-end];
}

.content-grid > :not(.content-grid__large, .content-grid__full-width) {
    grid-column: content;
}

.content-grid > .content-grid__large {
    grid-column: large;
}

.content-grid > .content-grid__full-width {
    grid-column: full-width;
}

.wp-block-columns {
    margin: 0;
}


/* =========== SPACING =========== */

.mi--auto {
    margin-inline: auto;
}

.mt--s {
    margin-top: 1rem;
}

.mt--m {
    margin-top: 2rem;
}

.mt--l {
    margin-top: 3rem;
}

.mt--xl {
    margin-top: 4rem;
}

.mb--s {
    margin-bottom: 1rem;
}

.mb--m {
    margin-bottom: 2rem;
}

.mb--l {
    margin-bottom: 3rem;
}

.mb--xl {
    margin-bottom: 4rem;
}

.p--s {
    padding: 1rem;
}

.p--m {
    padding: 2rem;
}

.p--l {
    padding: 3rem;
}

.p--xl {
    padding: 4rem;
}

.gap--s {
    gap: 1rem;
}

.gap--m {
    gap: 2rem;
}

.gap--l {
    gap: 3rem;
}

.gap--xl {
    gap: 4rem;
}


/* =========== CONTAINERS =========== */

.bg--white {
    background-color: var(--secondary-clr-400);

    --_heading-clr: var(--primary-clr-400);
    --_text-clr: var(--primary-clr-400);
    --_link-clr: var(--primary-clr-400);

    --_e-clr: var(--primary-clr-400);
    --_e-clr-focus: var(--primary-clr-400);
    --_e-text-clr: var(--secondary-clr-400);
    --_e-text-clr-focus: var(--secondary-clr-400);
}

.editor-styles-wrapper {
    --_heading-clr: var(--primary-clr-400);
    --_text-clr: var(--primary-clr-400);
    --_link-clr: var(--primary-clr-400);

    --_e-clr: var(--primary-clr-400);
    --_e-clr-focus: var(--primary-clr-400);
    --_e-text-clr: var(--secondary-clr-400);
    --_e-text-clr-focus: var(--secondary-clr-400);
}


/* =========== TEXT =========== */

p {
    margin: 0 0 1em;
    color: var(--_text-clr, var(--text-clr));
    line-height: var(--lh-base);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.2em;
    font-family: var(--hff);
    font-weight: var(--fw-bold);
    font-optical-sizing: auto;
    color: var(--_heading-clr, var(--heading-clr));
    line-height: var(--lh-tight);
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

h1, .heading--primary {
    font-size: var(--fs-xxxl);
}

h2, .heading--secondary {
    font-size: var(--fs-xxl);
}

h3, .heading--tertiary {
    font-size: var(--fs-xl);
}

h4, .heading--quaternary {
    font-size: var(--fs-l);
}

h5, .heading--quinary {
    font-size: var(--fs-m);
}

h6, .heading--senary {
    font-size: var(--fs-base);
}

a {
    text-decoration: none;
    color: var(--_text-clr, var(--text-clr));
    margin: 0;
    font-family: var(--ff);
    font-weight: inherit;
    font-style: normal;
}

p a {
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-color: initial;
    text-decoration-thickness: 0.1em;
    text-underline-offset: 0.3em;
    color: var(--_link-clr, var(--link-clr));
}

p a:is(:hover, :focus-visible) {
    color: var(--_link-highlight, var(--link-highlight));
}

.text--large {
    font-family: var(--hff);
    font-size: var(--fs-l);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.text-align--center {
    text-align: center;
}

.text-wrap--nowrap {
    text-wrap: nowrap;
}

.text-hidden {
    clip: rect(0 0 0 0); 
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap; 
    width: 1px;
}


/* =========== MEDIA =========== */

figure {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
}

.separator {
    border-bottom: var(--b--width-base) solid var(--_e-clr, var(--e-clr));
    width: 8rem;
}

.img--max-width--m {
    max-width: 20rem;
}


/* =========== COMPONENTS =========== */

.page-content {
    overflow: hidden;
}

.page-bg {
    position: fixed;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    pointer-events: none;
    z-index: -1000;
}

.page-bg__img,
.page-bg__vid {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero {
    display: grid;
    align-content: end;
    padding: 0 var(--horizontal-p) 4rem;
    min-height: 100vh;
    box-sizing: border-box;
}

.hero__heading {
    width: 100%;
}

.hero__quote {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.8em;
    margin: 2rem 0;
    padding: 0;
    max-width: 55rem;
    font-size: var(--_quote-icon-size);

    --_quote-icon-size: clamp(0.5rem, 2vw, 1rem);
}

.hero__quote__text__wrapper {
    margin-right: 1rem;
}

.hero__quote::before,
.hero__quote__text::after {
    content: '';
    display: inline-block;
    width: 4em;
    height: 3em;
    background-image: url(/wp-content/uploads/2026/04/lainausmerkki.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.hero__quote::before {
    font-size: 1.5em;
}

.hero__quote__text::after {
    margin-top: -1.8em;
    margin-bottom: -1.8em;
    font-size: var(--_quote-icon-size);
}

.carousel {
    position: relative;
    display: grid;
    grid-template-areas: 'stack';
    align-content: stretch;
    grid-area: stack;
    overflow: hidden;
}

.carousel__item {
    width: 100%;
    grid-area: stack;
}

.carousel__item__inner {
    display: grid;
    grid-template-areas: 'stack';
    align-content: stretch;
    grid-area: stack;
    height: 100%;
}

.carousel__img {
    width: 100%;
}

.carousel__item[data-state="open"] .carousel__img {
    animation: carouselCardOpenRight 600ms cubic-bezier(.4,.05,.05,.9) forwards;
}

.carousel__item[data-state="closing"] .carousel__img {
    animation: carouselCardCloseRight 600ms cubic-bezier(.4,.05,.05,.9) forwards;
}

@keyframes carouselCardOpenRight {
    0% { transform: translateX(100%); }
    100% { transform: translateX(0); }
}

@keyframes carouselCardCloseRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.carousel[data-direction="left"] .carousel__item[data-state="open"] .carousel__img {
    animation: carouselCardOpenLeft 600ms cubic-bezier(.4,.05,.05,.9) forwards;
}

.carousel[data-direction="left"] .carousel__item[data-state="closing"] .carousel__img {
    animation: carouselCardCloseLeft 600ms cubic-bezier(.4,.05,.05,.9) forwards;
}

@keyframes carouselCardOpenLeft {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

@keyframes carouselCardCloseLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

.carousel__item[data-state="closed"] {
    display: none;
}

.carousel__btns {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

.carousel__btn {
    display: block;
    padding: 0;
    border: 1px solid transparent;
    background-color: transparent;
    cursor: pointer;
    pointer-events: all;
}

.carousel__btn__icon {
    height: 25%;
}

.carousel__btn--right .carousel__btn__icon {
    transform: rotate(180deg);
}


/* =========== HEADER =========== */

.page-header {
    position: fixed;
    padding: 4rem var(--horizontal-p) 0;
    width: 100%;
    box-sizing: border-box;
    transition-property: transform, opacity;
    transition-duration: 800ms;
    transition-timing-function: cubic-bezier(.05,.55,.15,1);
    z-index: 100;
}

.page-header[data-state="closed"] {
    transform: translateY(-8rem);
    opacity: 0;
}

.page-header__logo {
    width: 100%;
}


/* =========== FOOTER =========== */

.page-footer__inner {
    display: flex;
    align-items: center;
}

.page-footer__logo {
    width: 2.2rem;
}

.page-footer__menu {
    display: flex;
    row-gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.page-footer__menu li {
    padding-right: 0.8rem;
    color: var(--_text-clr, var(--text-clr));
    line-height: var(--lh-tight);
    text-wrap: nowrap;
}

.page-footer__menu li + li {
    padding-left: 0.8rem;
    border-left: 1px solid var(--_e-clr, var(--e-clr));
}


/* =========== ANIMATION =========== */

.animate-in {
    transition-property: transform, opacity;
    transition-duration: 1000ms;
    transition-timing-function: cubic-bezier(.05,.55,.15,1);
    transition-delay: 0ms;
    opacity: 0;

    --_movement-length: 8rem;
}

.animate-in--up {
    transform: translate(0, var(--_movement-length));
}

.animate-in--down {
    transform: translate(0, calc(var(--_movement-length) * -1));
}

.animate-in--left {
    transform: translate(var(--_movement-length), 0);
}

.animate-in--right {
    transform: translate(calc(var(--_movement-length) * -1), 0);
}

.animate-in--animated {
    transform: translate(0);
    opacity: 1;
}


/* =========== MISC =========== */

::selection {
    background-color: var(--primary-clr-400);
    color: var(--secondary-clr-400);
}



/* =========== MEDIA QUERIES =========== */


@media only screen and (min-width: 36rem) {

    /* =========== LAYOUT =========== */

    
    /* =========== SPACING =========== */


    /* =========== CONTAINERS =========== */


    /* =========== TEXT =========== */


    /* =========== MEDIA =========== */


    /* =========== COMPONENTS =========== */


    /* =========== HEADER =========== */

    .page-header__logo {
        width: clamp(24rem, 30vw, 35rem);
    }


    /* =========== FOOTER =========== */


    /* =========== MISC =========== */
}

@media only screen and (min-width: 54rem) {
    :root {
        font-size: max(calc(0.75vw + 1px), 100%);
        --horizontal-p: 4rem;
    }

    /* =========== LAYOUT =========== */

    
    /* =========== SPACING =========== */


    /* =========== CONTAINERS =========== */


    /* =========== TEXT =========== */


    /* =========== MEDIA =========== */


    /* =========== COMPONENTS =========== */


    /* =========== HEADER =========== */


    /* =========== FOOTER =========== */


    /* =========== MISC =========== */
}

@media (prefers-reduced-motion) {
    .animate-in {
        transition-property: opacity;
    }
}