@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

:root {
    --background: #f1f0e8;
    --heroDarkening: 0.6;
    --white: #fff;
    --text: #000;
    --dark-blue: rgba(40, 54, 75, 1);
    /* --dark-blue: #28364b; */
    /* --main: #cca940; */
    /* --main: #cc9d37; */
    /* --main: #9B8E66; */

    --main: #CEBD88;
    /* --main: #a6935b; */
    --main-darker: #85703a;
    --golden-ratio: 1.618;
    --smaller: calc(1 / (1 + var(--golden-ratio)));
    --bigger: calc(var(--golden-ratio) / (1 + var(--golden-ratio)));

    --phi1: calc(1 + var(--golden-ratio));
    --a0: calc(var(--phi1) * (2 * var(--smaller) - 1) / (2 * var(--golden-ratio) - var(--phi1) * var(--phi1)));
    --x0: calc((1 - var(--a0) * var(--phi1)) / 2);

    --wrap-features: 500px;
    --fb-icon-dif: 4px;

    --heroHeight: 80vh;
}


* {
    margin: 0;
    padding: 0;

    font-family: "Atkinson Hyperlegible Next", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.playfair-display-400 {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.atkinson-hyperlegible-next-400 {
    font-family: "Atkinson Hyperlegible Next", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}


*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    background: var(--background);
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-size: clamp(1.125rem, 1.0739rem + 0.2273vw, 1.25rem);
    line-height: 1.5;

    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    list-style-type: none;
}

.wave-icon {
    color: var(--main);
    display: block;
}

.bold {
    font-weight: 700;
}

.xxxl { font-size: clamp(2.7994rem, 2.384rem + 1.8461vw, 3.8147rem); line-height: 1; }
.xxl { font-size: clamp(2.3328rem, 2.0387rem + 1.3072vw, 3.0518rem); line-height: 1; }
.xl { font-size: clamp(1.944rem, 1.7405rem + 0.9044vw, 2.4414rem); line-height: 1.1; }
.l {font-size: clamp(1.62rem, 1.4837rem + 0.6057vw, 1.9531rem); line-height: 1.1;}
.m { font-size: clamp(1.35rem, 1.2631rem + 0.3864vw, 1.5625rem); line-height: 1.3; }
/* --step-0: clamp(1.125rem, 1.0739rem + 0.2273vw, 1.25rem); (used as normal) */
.s { font-size: clamp(0.9375rem, 0.9119rem + 0.1136vw, 1rem); line-height: 1.5;}
.xs { font-size: clamp(0.7813rem, 0.7736rem + 0.0341vw, 0.8rem); line-height: 1.6;}

.divider {
    margin-top: -7px;
    margin-bottom: -7px;
    z-index: 100;
    width: 100%;
    height: 30px;
    background: url(media/global/rope.png) repeat-x 0 50%;
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

img.backgroundImage {
    width: 100%;
    height: 100%;

    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    
    object-fit: cover;
    object-position: center;
}



/* button BEGIN */
.c-button {
    color: var(--dark-blue) !important;
    font-weight: 700;
    /* font-size: 16px; */
    text-decoration: none;
    padding: 0.9em 1.6em;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    z-index: 1;
}

.c-button:focus {
    /* color: var(--main) !important; */
    border-color: var(--main) !important;
}

.c-button--gooey {
    color: var(--dark-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 4px solid var(--dark-blue);
    border-radius: 0;
    position: relative;
    transition: all 700ms ease;
}

.c-button--gooey .c-button__blobs {
    height: 100%;
    filter: url(#goo);
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    bottom: -3px;
    right: -1px;
    z-index: -1;
}

.c-button--gooey .c-button__blobs div {
    background-color: var(--dark-blue);
    width: 34%;
    height: 100%;
    border-radius: 100%;
    position: absolute;
    transform: scale(1.4) translateY(125%) translateZ(0);
    transition: all 700ms ease;
}

.c-button--gooey .c-button__blobs div:nth-child(1) {
    left: -5%;
}

.c-button--gooey .c-button__blobs div:nth-child(2) {
    left: 30%;
    transition-delay: 60ms;
}

.c-button--gooey .c-button__blobs div:nth-child(3) {
    left: 66%;
    transition-delay: 25ms;
}

.c-button--gooey:hover {
    color: var(--white) !important;
}

.c-button--gooey:hover .c-button__blobs div {
    transform: scale(1.4) translateY(0) translateZ(0);
}
/* button END */


/* Header */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    height: calc(var(--heroHeight) * var(--smaller));
}

header > div.logo {
    width: 100%;
    height: calc(100% * var(--bigger));
    display: flex;
    justify-content: center;
    align-items: end;
}

header > div.logo a {
    height: 90%;
    width: auto;
}

header > div.logo img {
    height: 100%;
    width: auto;
}

header > nav {
    width: 100%;
    height: calc(100% * var(--smaller));
    display: flex;
    justify-content: center;
    align-items: center;
}

header > nav > ul {
    /* height: calc(100% * var(--bigger)); */
    height: 70%;
    max-height: 80px;
    width: clamp(750px, 80vw, 1200px);
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
    justify-content: center;
    align-items: center;
    background-color: var(--white);
    box-shadow: 0 4px 0 rgba(255, 255, 255, 0.2);
}

header > nav li a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

a {
    color: var(--text);
    text-decoration:  none;
    transition: color 0.4s ease;
}

header> nav > ul a svg {
    height: 20px;
    width: auto;
}

a.selected {
    color: var(--main);
}

a:hover {
    color: var(--main);
}
/* Header END*/




/* FOOTER BEGIN*/
footer {
    position: relative;
    z-index: 0;
    width: 100%;

    padding-block: clamp(3rem, 8vw, 6rem);
    padding-inline: calc(1.5rem * 2);
    padding-bottom: 0;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    background-color: var(--dark-blue);
}

footer > div.content {
    width: 100%;
    height: 100%;

    max-width: 1200px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: calc(clamp(2rem, 5vw, 4rem) / 2);
}

footer nav.mobileCentering {
    justify-content: flex-start !important;
}

/* footer div.logo {
    display: flex;
    justify-content: center;
    align-items: center;
} */

footer div.logo img {
    width: 100%;
    max-width: 200px;
    height: auto;
}
footer .wave-icon {
    margin-bottom: 1.5rem;
}

footer a,
footer p,
footer h2 {
    color: var(--white);
}


footer nav ul {
    width: 100%;
}

footer ul li svg {
    width: 24px;
    height: 24px;
    margin-right: 1.5rem;
    color: var(--white);
}

footer ul li svg.fb {
    width: calc(24px - var(--fb-icon-dif));
    height: auto;
    margin-left: calc(var(--fb-icon-dif) / 2);
    margin-right: calc(1.5rem + var(--fb-icon-dif) / 2);
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer li {
    list-style-type: none;
    display: flex;
    line-height: 1.7;
    align-items: center;
}

footer > .backgroundImage {
    object-fit: scale-down;
}

footer > .copyright {
    margin-top: clamp(3rem, 8vw, 6rem);
    margin-bottom: .5rem;
}
/* FOOTER END*/



/* Responsiveness */

/* acts together with privalumai and kapitonas sections */
.mobileCenteringEnabled {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    text-align: center !important;
}

/* little fix */
.mobileCenteringEnabled ul {
    text-align: left;
}

.disabled {
    display: none !important;
}



/*  Header -> hamburger menu */
.hamburger {
    display: none;  
    background: none;
    border: none;
}

.hamburger > div {
    width: 35px;
    height: 4px;
    background-color: var(--white);
    margin: 7px 0;
    transition: 0.4s;
}

/* Rotate first bar */
.hamburger.active > div:nth-child(1) {
    transform: translate(0, 11px) rotate(-45deg);
}

/* Fade out the second bar */
.hamburger.active > div:nth-child(2) {
    opacity: 0;
}

/* Rotate last bar */
.hamburger.active > div:nth-child(3) {
    transform: translate(0, -11px) rotate(45deg);
}


@media only screen and (max-width: 800px) {
    header {
        height: calc( var(--heroHeight) * (1 / var(--phi1) / var(--phi1)) );
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;

        padding-inline: 1.5rem;


        /* background-color: var(--dark-blue); */
    }

    header div.logo {
        width: auto;
        height: calc(70%);
        z-index: 99999;
    }

    header > nav {
        visibility: hidden;
        height: 0%;
        width: 100%;
        position: fixed;
        z-index: 999;
        left: 0;
        top: 0;
        background-color: var(--dark-blue);
        /* transition: all 0.4s; */
    }

    header > nav > ul {
        height: 100%;
        width: 100%;
        /* display: flex; */
        flex-direction: column;
        /* gap: clamp(1rem, 3vw, 2.5rem);
        justify-content: center;
        align-items: center; */
        background: none;
        box-shadow: none;

        opacity: 0;
        /* transition: all 0.4s; */
    }

    header > nav li a {
        color: var(--white);
    }

    header > div.logo img {
        height: 100%;
    }

    .hamburger {
        display: inline-block;
    }

    .hamburgerWrapper {
        display: inline-block;
        z-index: 99999;
    }

    footer nav.mobileCentering {
        display: none !important;
    }
}



header > nav.active {
    visibility: visible;
    /* display: flex; */
    height: 100%;
    /* transition: all 0.4s; */
}

header > nav.active > ul {
    opacity: 1;
    /* transition: all 0.4s; */
}


/* xtra small width 'n' height*/
@media only screen and (max-width: 280px) {
    body {
        font-size: clamp(0.9375rem, 0.9119rem + 0.1136vw, 1rem) !important;
    }
}
@media only screen and (max-height: 500px) {
    body {
        font-size: clamp(0.9375rem, 0.9119rem + 0.1136vw, 1rem) !important;
    }

    .xxxl { font-size: clamp(2.3328rem, 2.0387rem + 1.3072vw, 3.0518rem); line-height: 1; }
    .xxl { font-size: clamp(1.944rem, 1.7405rem + 0.9044vw, 2.4414rem); line-height: 1.1; }
}