/* ============================================================
                        Index
==============================================================

                    # Variables

            # Initial setup & page layout

                    # Generic
                        -> Scroll-up button
                        -> Generic button
                        -> Block
                        -> Contact block
                        -> Social button

                    # Header {MOBILE} [header.css]
                        -> # Header {DESKTOP} [header-desktop.css]
                        -> Navigation
                            -> Sub-menu

                    # Main (homepage) {MOBILE} [main.css]
                        -> # Main {DESKTOP} [main-desktop.css]

                    # Sidebar [sidebar.css]

                    # Footer {MOBILE} [footer.css]
                        -> Footer {DESKTOP} [footer-desktop.css]
                        -> Copyright footer

============================================================ */




/* Sets CSS variables */
:root {
    --page-bg-color: #fff;
    --theme-color: #ed1c24;
    --theme-color-2: #146481; /*#429fc0*/
    --theme-font-family: poppins, arial, sans-serif;
    --soft-text-color: #373737;
    --soft-bg-color: #ededed;
    --soft-border-color: 1px solid rgb(0, 0, 0, 10%);
    --block-zoom-transition-curves: cubic-bezier(0.06, 0.62, 0.22, 0.88);
    --margin-top-big: 50px;
    --margin-top-small: 25px;
    --margin-bottom-big: 50px;
    --margin-bottom-small: 25px;

    /* Header */
    --header-bg-color: var(--theme-color-2);
    --header-height: 113px;
    --header-mobile-height: 532px;
    --header-sticky-height: 73px;
        /* Navigation */
        --header-navigation-text-color: #fff;
        --header-navigation-hover-text-color: #fff;
        --header-navigation-hover-bg-color: var(--theme-color);
        --header-navigation-text-font-size: 15px;
        --header-navigation-text-font-weight: 300;
        --header-navigation-current-page-text-color: #fff;
        --header-navigation-current-page-bg-color: var(--theme-color);
        --header-navigation-hover-underline-color: var(--theme-color);

    /* Main */
    --main-bg-color: #fff;
    --main-inner-bg-color: #fff;

    /* Footer */
    --footer-bg-color: #f3f3f3;
    --footer-text-color: #373737;
    --footer-text-font-size: 16px;
    --footer-copyright-bg-color: var(--footer-bg-color);

    /* Button */
    --button-bg-color: var(--theme-color);
    --button-hover-bg-color: #df2e34;
    --button-text-color: #fff;
    --button-text-font-size: 16px;
    --button-border-color: rgba(128, 128, 128, 80%);
    --button-border-radius: 7px;

    /* Block */
    --block-bg-color: #f3f3f3;
    --block-hover-bg-color: #fff;
    --block-text-color: #000;
    --block-border-radius: 10px;

    /* Social button */
    --social-button-bg-color: #f3f3f3;
    --social-button-hover-bg-color: #343945;
    --social-button-icon-color: #343945;
    --social-button-hover-icon-color: #f3f3f3;
    --social-button-border-color: rgba(128, 128, 128, 80%);
    --social-button-border-radius: 50%;

    /* Scroll-up button */
    --scroll-up-button-bg-color: var(--button-bg-color);
    --scroll-up-button-hover-bg-color: var(--button-hover-bg-color);
}




/* ========================================
            Initial setup & page layout
                [START]
========================================= */

@font-face {
    font-family: poppins, arial, sans-serif;
    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: calc(var(--header-sticky-height) + 14px);
    overflow-y: scroll;
    overflow-x: hidden;
}

body {
    font-family: var(--theme-font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html,
.page {
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.page--disabled-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.page__header {
    grid-area: header;
    width: 100%;
    height: 100%;
    background-color: var(--header-bg-color);

    /* For 'permanent' sticky header */
    /* position: fixed; 
    z-index: 9999999; */
}

.page__main {
    grid-row: main;
    width: 100%;
    /* min-height: 100%; */
    background-color: var(--main-bg-color);

    /* For 'permanent' sticky header */
    /* padding-top: var(--header-mobile-height); */
}

.l-main__inner {
    width: 95%;
    height: 100%;
    /* min-height: 100%; */
    margin: 0 auto;
    padding-top: 8px;
    background-color: var(--main-inner-bg-color);
}

@media (min-width: 1200px) {
    
    .l-main__inner {
        padding-top: 24px;
    }

}

.page__footer {
    grid-area: footer;
    width: 100%;
    height: 100%;
    max-height: 350px;
    background-color: var(--footer-bg-color);
    border-top: rgb(103, 103, 103);
}
/* ========================================
            Initial setup & page layout
                [END]
========================================= */




/* ========================================
                Generic
                [START]
========================================= */
a {
    color: inherit;
    text-decoration: none;
}

li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

input,
textarea,
select,
button {
    font: inherit;
}

fieldset {
    border: none;
}

input,
textarea,
select {
    /* 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;

    width: 100%;
    padding: 5px;
    border: 1px solid rgba(100, 100, 100, 30%);
    border-radius: 5px;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border: 1px solid rgba(100, 100, 100, 50%);
}

/* Style input=submit like .button */
input[type="submit"] {
    font-size: var(--button-text-font-size);
    text-align: center;
    color: var(--button-text-color);
    background-color: var(--button-bg-color);
    border: none;
    border-radius: var(--button-border-radius);
    padding: 15px;
    cursor: pointer;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-thumb {
    background-color: var(--theme-color);
}

.scroll-up__button {
    display: none; /* Hides button by default */

    /* Creates circel with slight shadow */
    width: 65px;
    height: 65px;
    padding: 20px;
    border: none;
    border-radius: 50%;
    background-color: var(--scroll-up-button-bg-color);
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 40%);

    /* Positions the button in the bottom left corner of the page */
    position: fixed;
    bottom: 100px;
    right: 50px;    
    z-index: 99999;

    font-size: 20px;
    text-align: center;
    color: white;
    cursor: pointer;
}
.scroll-up__button:hover {
    background-color: var(--scroll-up-button-hover-bg-color);
}

.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: 90px;
    background-color: transparent;
}

.title {
    font-size: 22px;
    font-weight: normal;
}

.subtitle {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
}

.center {
    margin: 0 auto;
}

a:has(i.slide-right) > .slide-right {
    transition: margin .4s var(--block-zoom-transition-curves);
}

a:has(i.slide-right):hover > .slide-right {
    margin-left: 6px;

    transition: margin .4s var(--block-zoom-transition-curves);
}

a:has(i.slide-left) > .slide-left {
    transition: margin .4s var(--block-zoom-transition-curves);
}

a:has(i.slide-left):hover > .slide-left {
    margin-right: 6px;

    transition: margin .4s var(--block-zoom-transition-curves);
}

.zoom-in {
    cursor: pointer;
    transition: scale .4s var(--block-zoom-transition-curves);
}

.zoom-in:hover {
    scale: 1.05;

    transition: scale .4s var(--block-zoom-transition-curves);
}

.theme-color-text {
    color: var(--theme-color);
}

/* Button */
.button {
    display: block;
    width: fit-content;
    padding: 8px;
    padding-left: 25px;
    padding-right: 25px;
    font-size: var(--button-text-font-size);
    font-weight: 700;
    text-align: center;
    align-content: center;
    color: var(--button-text-color);
    background-color: var(--button-bg-color);
    border: none;
    border-radius: var(--button-border-radius);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .3);
    cursor: pointer;
}
.button:hover {
    background-color: var(--button-hover-bg-color);
}

.uppercase {
    text-transform: uppercase;
}

.margin-top {
    margin-top: var(--margin-top-small);
}

.margin-top--big {
    margin-top: var(--margin-top-big);
}

.anchor-element {
    padding-top: var(--header-sticky-height);
    margin-top: calc(var(--header-sticky-height) * -1); /* Invert variable to negative number */
}

/* Block */
.l-blocks {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.block {
    display: flex;
    position: relative;
    height: 350px;
    width: 100%;
    justify-content: space-between;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--block-border-radius);
    border-bottom: 1px solid transparent;
}

.block:hover {
    border-bottom: 1px solid var(--theme-color);
}

.block__img {
    width: 100%;
    height: 50%;
    object-fit: contain;
    overflow: hidden;
}

.block__text {
    position: relative;
    display: flex;
    width: 100%;
    height: 50%;
    flex-direction: column;
    background-color: #fff;
    z-index: 10;
    padding-top: 15px;
}

.block__title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.block__subtitle {
    font-size: 13px;
    color: var(--theme-color-2);
}

.block__btn {
    width: 100%;
    margin-top: auto;
}

/* Desktop */
@media (min-width: 1200px) {
    
    .l-blocks {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .block {
        width: calc((100% / 4) - 25px + (25px / 4));
        min-width: 200px;
    }

    .block:hover > .block__img {
        scale: 1.04;
    
        transition: scale .4s var(--block-zoom-transition-curves);
    }
    
    .block__img {
        transition: scale .4s var(--block-zoom-transition-curves);
    }

    /* .block__btn {
        width: fit-content;
    } */

}


/* Social button */
.social-button {
    display: flex;
    width: 50px;
    height: 50px;
    background-color: var(--social-button-bg-color);
    border: 1px solid var(--social-button-border-color); 
    border-radius: var(--social-button-border-radius);
    text-decoration: none;
}
.social-button:hover {
   background-color: var(--social-button-hover-bg-color); 
}

.social-button i {
    color: var(--social-button-icon-color);
    font-size: 30px;
    line-height: 0;
}
.social-button:hover i {
    color: var(--social-button-hover-icon-color);
}

/* Notice */
.main__notice {
    height: 90px;
    background-color: red;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice__icon-close {
    width: 25px;
    height: 25px;
    position: absolute;
    top: 25px;
    right: 150px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.notice__text {
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

/* 404 */
.fourzerofour__title,
.fourzerofour__subtitle,
.fourzerofour__button {
    text-align: center;
}

.fourzerofour__title {
    font-size: 180px;
}

.fourzerofour__subtitle {
    font-size: 40px;
}

.fourzerofour__button {
    font-size: 30px;
    font-weight: 600;
}

.notice {
    position: relative;
    display: flex;
    height: auto;
    padding-top: 15px;
    padding-bottom: 15px;
    background-color: var(--theme-color);
    align-items: center;
    justify-content: center;
}

.notice__icon-close {
    position: absolute;
    width: 25px;
    height: 25px;
    top: 50%;
    transform: translateY(-50%);
    right: 150px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.notice__text {
    text-align: center;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}


@keyframes appear {
    from {
        opacity: 40%;
        transform: translateY(100px);
        scale: .95;
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(-400px);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
}

@keyframes zoom-in {
    from {
        scale: .1;
        opacity: 0;
        transform: translateX(-200px);
    }
}

@keyframes blink {
    0% {transform: scale(.9)  }
	50% { transform: scale(1.1) }
    100% { transform: scale(.9) }
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    80% { transform: rotate(0deg); }
    85% { transform: rotate(5deg); }
    95% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

/* ========================================
                Generic
                [END]
========================================= */