/* ============================================================
                        Index
==============================================================

                    # Variables

                # Initial setup & page layout

                    # Reset

                    # Components
                        -> Scroll-up button
                        -> Button
                        -> Block

                    # Helpers / Utility

                    # Header {MOBILE} [header.css]
                        -> # Header {DESKTOP} [header-desktop.css]
                        -> Navigation
                            -> Sub-menu

                    # Main {MOBILE} [main.css]
                        -> # Main {DESKTOP} [main-desktop.css]

                    # Sidebar [sidebar.css]

                    # Footer {MOBILE} [footer.css]
                        -> Footer {DESKTOP} [footer-desktop.css]
                        -> Copyright footer

============================================================ */

@font-face {
    font-family: 'Coolvetica Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Coolvetica Regular'), url('../../fonts/coolvetica-2-webfont/coolvetica_rg.woff') format('woff');
}

@font-face {
    font-family: 'Coolvetica Regular Italic';
    font-style: italic;
    font-weight: normal;
    src: local('Coolvetica Regular Italic'), url('../../fonts/coolvetica-2-webfont/coolvetica_rg_it.woff') format('woff');
}

/* ========================================
                CSS variables
                [START]
========================================= */

:root {

    /* Global properties */
    --page-width: 90%;
    --font-family: 'coolvetica regular', arial, sans-serif;
    --block-zoom-transition-curves: cubic-bezier(0.06, 0.62, 0.22, 0.88);
    --soft-border: 1px solid rgb(0, 0, 0, 8%);
    --scroll-bar-width: var(--space-sm);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 20px;
    --space-xxl: 24px;
    --space-xxxl: 32px;
    --space-4xl: 40px;
    --space-5xl: 48px;
    --space-6xl: 56px;
    --space-7xl: 64px;

    /* Sizing */
    --size-xs: 4px;
    --size-sm: 8px;
    --size-md: 12px;
    --size-lg: 16px;
    --size-xl: 20px;
    --size-xxl: 24px;
    --size-xxxl: 32px;
    --size-4xl: 40px;
    --size-5xl: 48px;
    --size-6xl: 56px;
    --size-7xl: 64px;

    /* Border radius */
    --border-radius-xs: 4px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 32px;
    --border-radius-full: 50%;

    /* Colors */
        /* Primary */
        --color-primary: #297b91;
        --color-primary-darker: #1f677b;
        --color-on-primary: #dee3e6;
        
        /* Secondary */
        --color-secondary: #818181;
        --color-on-secondary: #fff;

        /* Background */
        --color-background: #041f2a;
        --color-on-background: #fff;
        
        /* Surface */
        --color-surface: #082b39;
        --color-on-surface: #dee3e6;
        --color-surface-dim: #072632;
    
    /* Header */
    --header-bg-color: var(--color-surface);
    --header-height: 85.5px;
    --header-mobile-height: 119.64px;
    --header-logo-width: 260px;
    --header-logo-min-width: 174px;
        /* Navigation */
        --header-navigation--bg-color: transparent;
        /* Single navigation item */
        --header-navigation-parent-text-color: var(--color-on-surface);
        --header-navigation-parent-hover-text-color: #fff;
        --header-navigation-child-text-color: var(--header-navigation-parent-text-color);
        --header-navigation-child-hover-text-color: var(--header-navigation-parent-hover-text-color);
        --header-navigation-font-size: 1.125rem;
        --header-navigation-font-weight: 300;
        --header-navigation-current-page-text-color: var(--color-primary);
        --header-navigation-hover-underline-color: var(--color-primary);
        /* Submenu */
        --header-navigation-submenu-bg-color: var(--color-surface);

    /* Footer */
    --footer-bg-color: var(--color-surface);
    --footer-text-color: var(--color-on-surface);
    --footer-font-size: 1rem;
    --footer-copyright-bg-color: var(--footer-bg-color);
    --footer-copyright-text-color: var(--footer-text-color);

    /* Button */
    --button-bg-color: var(--color-primary);
    --button-hover-bg-color: var(--color-primary-darker); 
    --button-text-color: var(--color-on-primary);
    --button-font-size: 1.25rem;
    --button-border-radius: var(--border-radius-sm);

    /* Card */
    --card-bg-color: var(--color-surface);
    --card-hover-bg-color: #fff;
    --card-text-color: var(--color-on-surface);
    --card-border-radius: var(--border-radius-lg);

    /* Scroll-up button */
    --scroll-up-button-bg-color: var(--button-bg-color);
    --scroll-up-button-hover-bg-color: var(--button-hover-bg-color);
    --scroll-up-button-text-color: var(--button-text-color);

    /* Social button */
    --social-button-bg-color: var(--color-primary);
    --social-button-hover-bg-color: var(--color-primary-darker);
    --social-button-icon-color: var(--color-on-primary);
    --social-button-hover-icon-color: var(--color-on-primary);
    --social-button-border: var(--soft-border);
    --social-button-border-radius: var(--border-radius-full);

    /* Notice */
    --notice-bg-color: #d30000;
}

/* ========================================
                CSS variables
                [END]
========================================= */




/* ========================================
            Initial setup & page layout
                [START]
========================================= */

@font-face {
    font-family: poppins;
    font-style: normal;
    src: url('../../fonts/Poppins/Poppins-Regular.ttf');
    font-display: swap; /* Improve font loading */
}

*,
*::after,
*::before { 
    box-sizing: border-box;     
}

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--space-md);
}

html:has(.page__header--sticky) {
    scroll-padding-top: var(--header-mobile-height);
}

@media (min-width: 1200px) {

    html:has(.page__header--sticky) {
        scroll-padding-top: var(--header-height);
    }

}

body {
    min-height: 100vh;
    font-family: var(--font-family);
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 1px;
    color: var(--color-on-background);
    -webkit-font-smoothing: antialiased;
    accent-color: var(--color-primary);
    caret-color: var(--color-primary);
    scrollbar-color: var(--color-primary);
    background-color: var(--color-background);
}

body.page--disabled-scroll {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page__header {
    width: 100%;
    height: auto;
    background-color: var(--header-bg-color);
}

.page__header--sticky {
    position: fixed; 
    z-index: 9999999;
}

.page__main {
    width: 100%;
    min-height: calc(100vh - var(--header-mobile-height));
}

body:has(.page__header--sticky) .page__main {
    padding-top: var(--header-mobile-height);
}

@media (min-width: 1200px) {

    .page__main {
        min-height: calc(100vh - var(--header-height));
    }

    body:has(.page__header--sticky) .page__main {
        padding-top: var(--header-height);
    }

}

.page__footer {
    width: 100%;
    height: auto;
    margin-top: var(--space-7xl);
    border-top: var(--soft-border);
    background-color: var(--footer-bg-color);
}

:focus-visible {
    outline-color: var(--color-primary); 
}

::selection {
    background-color: var(--color-primary); 
}

::marker {
    color: var(--color-primary); 
}

:is(::-webkit-calendar-picker-indicator,
    ::-webkit-clear-button,
    ::-webkit-inner-spin-button, 
    ::-webkit-outer-spin-button) {
    color: var(--color-primary);
}

::-webkit-scrollbar {
    width: var(--scroll-bar-width);
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-primary-darker);
}

/* ========================================
            Initial setup & page layout
                [END]
========================================= */




/* ========================================
                Reset
                [START]
========================================= */

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

a {
    color: inherit;
}

li {
    list-style: none;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input,
textarea,
select,
button {
    font: inherit;
}

/* ========================================
                Reset
                [END]
========================================= */




/* ========================================
                Components
                [START]
========================================= */

input,
textarea {
    /* Sets input font size to a min of 16px */
    /* https://css-tricks.com/16px-or-larger-text-prevents-ios-form-zoom/ */
    font-size: 16px !important;

    padding: var(--space-sm);
    border: var(--soft-border);
    border-radius: var(--border-radius-xs);
    color: var(--color-on-surface);
    background-color: #1a323e;
}

input:hover,
textarea:hover {
    filter: brightness(95%);
}

.button--scroll-up {
    display: none; /* Hides button by default */

    /* Creates circel with slight shadow */
    width: var(--size-7xl);
    height: var(--size-7xl);
    padding: var(--space-xl);
    border: none;
    border-radius: var(--border-radius-full);
    background-color: var(--scroll-up-button-bg-color);
    box-shadow: 5px 5px 20px rgb(0, 0, 0, 40%);

    /* Positions the button in the bottom left corner of the page */
    position: fixed;
    bottom: 100px;
    right: var(--space-lg);
    z-index: 99999;

    font-size: var(--button-font-size);
    text-align: center;
    color: var(--scroll-up-button-text-color);
    cursor: pointer;
}

.button--scroll-up:hover {
    background-color: var(--scroll-up-button-hover-bg-color);
}

/* Button */
.button, 
input[type="submit"] {
    display: block;
    width: fit-content;
    font-size: var(--button-font-size);
    text-align: center;
    text-decoration: none;
    color: var(--button-text-color);
    background-color: var(--button-bg-color);
    border: none;
    border-radius: var(--button-border-radius);
    padding-top: var(--space-md);
    padding-left: var(--space-xxl);
    padding-right: var(--space-xxl);
    padding-bottom: var(--space-md);
    cursor: pointer;
}

.button:hover, 
input[type="submit"]:hover {
    background-color: var(--button-hover-bg-color);
}

/* Card */
.card {
    width: 100%;
    border-radius: var(--card-border-radius);
    color: var(--card-text-color);
    background-color: var(--card-bg-color);
}

.card:hover {
    background-color: var(--card-hover-bg-color);
}

@media (min-width: 1200px) {

    .card {
        width: calc((100% / 4) - (var(--gap-size) / 4));
    }

}

.dialog[open] {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 99999999;
    transform: translate(-50%, -50%);
    max-width: 95%;
    min-height: 400px;
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
    padding-left: 40px; /* Finetuned */
    padding-right: 40px; /* Finetuned */
    border: 1px solid rgb(0, 0, 0, 20%);
    border-radius: var(--border-radius-sm);
    color: var(--color-on-surface);
    background-color: var(--color-surface);
}

.dialog__title {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: currentColor;
}

.dialog__close-button {
    position: fixed;
    top: 0;
    right: 0;
    display: block;
    width: 24px;
    height: 24px;
    margin: 8px;
    padding: 0;
    appearance: none;
    border: none;
    cursor: pointer;
    background-color: transparent;
    background-image: url('../../img/icons/material_symbols/icon-close.svg');
    background-repeat: no-repeat;
    background-size: contain;
}

.dialog__inner {
    display: flex;
    flex-direction: column;
    row-gap: var(--space-xxl);
    margin-top: var(--space-lg);
}

.dialog__form {
    position: relative;
    display: flex;
    flex-direction: column;
    row-gap: var(--space-md);
}

.dialog__form__loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgb(0, 0, 0, 30%);
}

.dialog__form__loading.dialog__form__loading--active {
    display: flex;
}

.dialog__required-star {
    margin-left: var(--space-xs);
    font-weight: 700;
    color: #7d1e1e;
}

.dialog__form__message {
    width: 100%;
    padding-top: var(--space-xs);
    padding-bottom: var(--space-xs);
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
    border: 1px solid rgb(95, 95, 95, 30%);
    border-radius: var(--border-radius-sm);
    background-color: transparent;
}

.dialog__form__message.dialog__form__message--success {
    background-color: #ade0ad;
}

.dialog__form__message.dialog__form__message--error {
    background-color: #edadad;
}

.message--success {
    color: #054e05;
}

.message--error {
    color: #7d1e1e;
}

.dialog__form-field {
    display: flex;
    flex-direction: column;
}

.dialog__form-field__input--error {
    outline: 2px solid #7d1e1e;
}

.dialog__form label {
    font-size: 1.25rem;
    color: currentColor;
}

.dialog__form textarea {
    max-width: 90vh;
    min-width: 100%;
    min-height: 80px;
    max-height: 300px;
}

.dialog__cta-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.dialog__cta-button {
    padding-left: var(--space-4xl);
    padding-right: var(--space-4xl);
    appearance: none;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.25rem;
    cursor: pointer;
    transition: filter .3s ease;
}

.dialog__cta-button.dialog__cta-button--submit {
    color: #c2e9c0;
    background-color: #054e05;
}

.dialog__cta-button.dialog__cta-button--close {
    color: white;
    background-color: #6e0a0a;
}

.dialog__cta-button:hover {
    filter: brightness(80%);
}

.dialog::backdrop {
    background-color: rgb(0, 0, 0, 60%);
}

body:has(dialog[open]) {
    padding-right: var(--scroll-bar-width);
    overflow: hidden;
}

body:has(dialog[open]) .page__header--sticky {
    padding-right: var(--scroll-bar-width);
}

@media (min-width: 1200px) {

    .dialog[open] {
        min-width: 500px;
    }

}

.page__main--sub .page__content {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1200px) {

    .page__main--sub .page__content {
        width: 90%;
    }

}

/* Page hero */
.page-hero {
    position: relative;
    width: 100%;
    height: 300px;
}

.page-hero__img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    mask-composite: intersect;
    mask-image: linear-gradient(180deg, #000 60%, transparent);
}

.page-hero #breadcrumbs {
    position: absolute;
    bottom: 0;
    z-index: 98;
    width: fit-content !important;
    margin-left: 20%;
}

.page-hero > .page__title {
    position: absolute;
    bottom: 0;
    z-index: 98;
    width: fit-content !important;
    margin-left: 5%;
    margin-bottom: var(--space-md);
    font-size: 2rem;
    text-shadow: 1px 1px 4px rgb(0, 0, 0, 40%);
}

.page__title {
    margin-left: 5%;
}

.page-selling {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    row-gap: var(--space-xxl);
}

.page__main--sub .page-selling .page__content {
    width: 100% !important;
}

@media (min-width: 1200px) {

    .page-selling {
        flex-direction: row;
        column-gap: var(--space-5xl);
    }

    .selling_form {
        min-width: 60%;
    }

}

.wp-block-heading {
    margin-top: var(--space-md) !important;
}

.wp-block-list {
    display: flex;
    flex-direction: column;
    row-gap: var(--space-sm);
    padding: 0 !important;
}

/* Social button */
.social-button {
    display: flex;
    width: 50px;
    height: 50px;
    border: var(--social-button-border);
    border-radius: var(--social-button-border-radius);
    text-decoration: none;
    background-color: var(--social-button-bg-color);
}

.social-button:hover {
    background-color: var(--social-button-hover-bg-color); 
}

.social-button i {
    color: var(--social-button-icon-color);
    font-size: 1.875rem;
    line-height: 0;
}
.social-button:hover i {
    color: var(--social-button-hover-icon-color);
}

/* Notice */
.main__notice {
    display: flex;
    height: 90px;
    align-items: center;
    justify-content: center;
    background-color: var(--notice-bg-color);
}

.notice__icon-close {
    position: absolute;
    width: 25px;
    height: 25px;
    top: 25px;
    right: 150px;
    font-size: 1.875rem;
    color: #fff;
    cursor: pointer;
}

.notice__text {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: white;
}

/* 404 */
.fourzerofour__title,
.fourzerofour__subtitle,
.fourzerofour__button {
    text-align: center;
}

.fourzerofour__title {
    font-size: 10rem;
}

.fourzerofour__subtitle {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.75rem;
}

.fourzerofour__button {
    font-size: 2rem;
    font-weight: 600;
}

@media (min-width: 1200px) {

    .fourzerofour__subtitle {
        font-size: 2.25rem;
    }

}

/* YoastSEO breadcrumb */
#breadcrumbs {
    width: 95%;
    margin-left: auto;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
    text-decoration: none;
}

#breadcrumbs span span {
    font-size: .875rem;
}

#breadcrumbs span span:not(.breadcrumb_last) {
    font-weight: 700;
}

#breadcrumbs a {
    text-decoration: none;
}

/* ========================================
                Components
                [END]
========================================= */




/* ========================================
            Helpers / utility
                [START]
========================================= */

.full-width-forced {
    /* Creates full-width banner inside limited width parent */
    /* https://css-tricks.com/full-width-containers-limited-width-parents/#aa-no-calc-needed */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.spacer {
    width: 100%;
    height: 80px;
    background-color: transparent;
}

.excerpt-text {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.phone-number {
    direction: ltr;
}

.loader {
    display: inline-block;
    width: var(--size-7xl);
    height: var(--size-7xl);
    border-radius: 50%;
    border-top: 4px solid var(--color-primary);
    border-right: 4px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.underline::after {
    content: '';
    display: block;
    width: 40%;
    height: 4px;
    background-color: var(--color-primary);
}

.uppercase {
    text-transform: uppercase;
}

.scroll-animation-wrapper {
    overflow: clip; /* overflow: hidden; causes view() animations to break (https://www.bram.us/2024/02/14/scroll-driven-animations-you-want-overflow-clip-not-overflow-hidden/) */
}

.title--small {
    font-size: 1.5rem;
    font-weight: 300;
}

.title--big {
    font-size: 2rem;
    font-weight: 700;
}

.show {
    display: block;
}

.hidden {
    display: none;
}

.clickable {
    cursor: pointer;
}

.zoom-in {
    transition: scale .4s var(--block-zoom-transition-curves);
}

.zoom-in:hover {
    scale: 1.05;
    transition: scale .4s var(--block-zoom-transition-curves);
}

.slide-right {
    transition: transform .4s var(--block-zoom-transition-curves);
}

.slide-right:hover {
    transform: translateX(5px);
    transition: transform .4s var(--block-zoom-transition-curves);
}

/* ========================================
            Helpers / utility
                [END]
========================================= */

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-140px);
    }
    to {
        opacity: 100%;
        transform: translateX(0);
    }
}

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(140px);
    }
    to {
        opacity: 100%;
        transform: translateX(0);
    }
}

@keyframes fade-in-bottom {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 100%;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 100%;
    }
}