@import url('https://api.fontshare.com/v2/css?f[]=satoshi@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Figtree&display=swap');


@layer reset, theme, page;

@layer reset {

    * {
        box-sizing: border-box;
    }

    html {
        font-family: var(--font-regular);
        font-size: 100%;
    }

    body {
        color: var(--black);
        background-color: var(--white);
        box-sizing: border-box;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1rem;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: var(--font-heading);
        margin: 0;
    }

    ul {
        list-style-type: none;
        margin: 0;
    }

    img {
        display: block;
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
    }


}

@layer theme {
    :root {
        --black: #000;
        --white: #fff;
        --primary: #FEF1DD;
        --secondary: #18251B;
        --orange-dark: #D47A4A;
        --orange-light: #F8BF87;
        --green-light: #87F8B8;
        --green-dark: #4AD488;
        --blue-light: #87EDF8;
        --blue-dark: #4AD4D4;

        --font-heading: 'Satoshi', sans-serif;
        --font-regular: 'Figtree', sans-serif;
    }
}

@layer page {

    .grafier__logo {
        background-color: var(--white);
        border-radius: 2.5px;
        height: 36px;
        width: 118px;
    }

    .navigation {
        position: sticky;
        top: 0;
        z-index: 1000;
        
    }

    .navbar {
        background-color: var(--secondary);
        display: flex;
        flex-direction: row;
        height: 76px;
        padding: 0 1rem;
        justify-content: space-between;
        align-items: center;
        position: relative;
        box-shadow: 0px 8px 8px rgba(0, 0, 0, 0.25);
    }

    .navbar__logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .navbar__top {
        display: flex;
        gap: 0.5rem;
    }

    .footer__link {
        text-decoration: none;
        color: var(--white);
    }

    .footer {
        background-color: #18251B;
        display: flex;
        flex-direction: column;
        margin-top: 2.25rem;
    }

    .footer__link--socials {
        display: flex;
        justify-content: flex-start;
    }

    .footer__copyright {
        display: flex;
        gap: 0.5rem;
        color: var(--white);
        justify-content: flex-end;
        align-items: center;
    }

    .footer__bottom {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.25rem 1rem;
    }

    .footer__bar {
        display: flex;
        justify-content: space-between;
        margin: 1rem;
    }

    .bar--left,
    .bar--right {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .bar--right {
        text-align: right;
    }
    .bar--left {
        text-align: left;
    }

    .footer__image {
        width: 100%;
        object-fit: cover;
        height: 240px;
    }

    .footer__decoration {
        position: relative;
    }

    .footer__svg {
        position: absolute;
        left: 50%;
        transform: translate(-50%, -50%);
        top: 50%;
        width: 50%;
        height: 50%;
    }

    .hamburger-menu {
        width: 3rem;
        height: 40px;
        z-index: 1;
        position: relative;
        cursor: pointer;
    }

    .hamburger-menu__line {
        position: absolute;
        width: 3rem;
        height: 0.25rem;
        background-color: var(--white);
        border-radius: 2px;
    }

    .hamburger-menu.open span {
        transition: top 0.25s ease-in 0s,
            bottom 0.25s ease-in 0s,
            transform 0.25s ease-in 0.25s,
            opacity 0.25s ease-in 0.25s
    }

    .hamburger-menu span {
        transition: top 0.25s ease-in 0.25s,
            bottom 0.25s ease-in 0.25s,
            transform 0.25s ease-in 0s,
            opacity 0.25s ease-in 0s
    }

    .hamburger-menu span:nth-child(1) {
        top: 0px;
        transform: rotate(0deg);
    }

    .hamburger-menu span:nth-child(2) {
        top: 18px;
        opacity: 1;
    }

    .hamburger-menu span:nth-child(3) {
        bottom: 0px;
        transform: rotate(0deg);
    }

    .hamburger-menu.open span:nth-child(1) {
        top: 18px;
        transform: rotate(45deg);
    }

    .hamburger-menu.open span:nth-child(2) {
        transform: translateX(50px);
        opacity: 0;
    }

    .hamburger-menu.open span:nth-child(3) {
        bottom: 18px;
        transform: rotate(-45deg);
    }



    @keyframes topLine {
        50% {
            top: 18px;
            transform: rotate(0deg);
        }

        100% {
            top: 18px;
            transform: rotate(45deg);
        }
    }

    @keyframes middleLine {
        50% {
            transform: translateX(0px);
            opacity: 100;
        }

        100% {
            transform: translateX(50px);
            opacity: 0;
        }
    }

    @keyframes bottomLine {
        50% {
            bottom: 18px;
            transform: rotate(0deg);
        }

        100% {
            bottom: 18px;
            transform: rotate(-45deg);
        }
    }

    .hamburger-menu--active {
        border-top: 2px dashed var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        background-color: var(--secondary);
        position: fixed;
        width: 100%;
        z-index: -1;
        top: -100%;
        transition: top 0.5s linear;
        gap: 0.5rem;
        list-style-type: none;
        margin: 0;
    }


    .hamburger-menu--active.open {
        top: calc(3rem + 1.5rem + 4px);
        /* nejdriv velikost navigace, potom aby slo videt cely menu a nakonec kompenzace carky (nemám tušení jak lépe to udělat)*/
    }

    .hamburger-menu__item {
        padding: 0.8rem;
        color: var(--white);
        text-decoration: none;
        width: 100%;
        text-align: center;
        font-size: 1.5rem;
    }

    .hamburger-menu__item:hover {
        color: var(--green-dark);
    }


    .line {
        min-height: 4px;
        width: 100%;
        background-color: var(--secondary);
        border-radius: 5px;
    }

    @media (min-width: 1024px) {
        
    }
}