a
{
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}

.button
{
    color: var(--color-text-1);
    background-color: var(--color-text-3);
    text-decoration: none;
    user-select: none;
    display: inline-block;
    padding: 10px;
    transition: 0.3s;

    font-size: var(--p3);
    letter-spacing: var(--p3-letter-spacing);
    line-height: var(--p3-line-height);

    will-change: box-shadow, transform;

    &:hover
    {
        box-shadow: 0px 0px 15px 2px rgba(0, 0, 0, 0.5);
    }

    &:active
    {
        transform: scale(0.95);
        transition-duration: 0.07s;
    }
}

.link
{
    cursor: pointer;
    transition: 0.3s;
    will-change: text-shadow, transform;
    user-select: none;
    text-decoration: none;

    &:hover
    {
        text-shadow: 40px 0px 2px rgba(0, 0, 0, 0.5);
    }

    &:active
    {
        transform: scale(0.95);
        transition-duration: 0.07s;
    }
}
header
{
    position: fixed;
    width: 100%;
    height: 77px;
    z-index: 100;
    box-sizing: border-box;
    background-color: var(--color-bg-1);
}

header .link
{
    color: var(--color-text-2);
    font-size: var(--h2);
}

header .header-main-content
{
    display: flex;
    justify-content: space-between;
    padding: 16px;
}

header h1
{
    font-weight: 300;
    font-size: 1.6rem;
}

.header-links
{
    display: none;
}

#burger-button
{
    display: none;
}

.js-enabled #burger-button
{
    display: inline-block;
    background-image: url("../assets/img/hamburger-menu/hamburger-normal.png");

    background-position-x: center, center, center;
    background-position-y: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: initial;

    height: 40px;
    width: 40px;
    padding: 0;

    background-color: transparent;
    border: none;
}

.js-enabled #burger-button.active
{
    background-image: url("../assets/img/hamburger-menu/hamburger-expand.png");
}
main
{
    display: flex;
    flex-direction: column;
    justify-content: stretch;

    justify-self: stretch;
    align-self: stretch;

    flex: 1 0 auto;
}
footer
{
    background-color: var(--color-bg-2);
    color: var(--color-text-1);
    padding: 20px 20px 0px 20px;

    display: flex;
    flex-direction: column;
    gap: 150px;
}

footer h2
{
    font-weight: 300;
    font-size: 1.6rem;
    text-align: center;
}

.footer-head
{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 150px;
}

.footer-head-items
{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;

    font-size: var(--p1);
    letter-spacing: var(--p1-letter-spacing);
    line-height: var(--p1-line-height);
}

.footer-head-links
{
    display: flex;
    flex-direction: column;
    gap: 2px;
}

footer .link
{
    color: var(--color-text-1);

    &:hover
    {
        text-shadow: 40px 0px 2px rgba(255, 255, 255, 0.5);
    }
}

.footer-head-contact-info
{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-head-direct-contact-block
{
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-bottom
{
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 0px;

    font-size: var(--p1);
    letter-spacing: var(--p1-letter-spacing);
    line-height: var(--p1-line-height);
}

.footer-bottom-socials
{
    display: flex;
    gap: 11.98px;
}

address
{
    font-style: normal;
}
#burger-menu
{
    visibility: hidden;
    transition: 0.3s ease-out;
    width: 100%;

    flex-direction: column;

    background-color: var(--color-bg-1);

    padding: 16px;
    box-sizing: border-box;

    overflow: hidden;

    clip-path: inset(0 0 100% 0);
}

#burger-menu.active
{
    visibility: visible;

    clip-path: inset(0 0 0 0);
}

#burger-menu div
{

    padding: 12px 0px;
}

#burger-menu div a
{
    display: flex;
    justify-self: stretch;
}

.burger-first-link
{
    border-top: 1px solid var(--color-text-2);
}

.burger-second-link
{
    border-top: 1px solid var(--color-text-2);
    border-bottom: 1px solid var(--color-text-2);
}

.burger-third-link
{
    border-bottom: 1px solid var(--color-text-2);
}
:root
{
    --color-bg-1: white;
    --color-bg-2: #1D231C;
    --color-text-1: white;
    --color-text-2: black;
    --color-text-3: #273026;
    --color-accent-1: #4E6D0B;
    --color-accent-2: #D2FD9C;

    /* font style */

    --p1: 0.875rem;
    --p2: 1rem;
    --p3: 0.875rem;

    --h1: 1.5rem;
    --h2: 1rem;
    --h3: 1rem;

    --caption: 0.75rem;

    --p1-letter-spacing: -2%;
    --p2-letter-spacing: -2%;
    --p3-letter-spacing: -1%;

    --h1-letter-spacing: -2%;
    --h2-letter-spacing: -2%;
    --h3-letter-spacing: -3%;

    --caption-letter-spacing: -3%;

    --p1-line-height: 130%;
    --p2-line-height: 110%;
    --p3-line-height: 100%;

    --h1-line-height: 109%;
    --h2-line-height: 110%;
    --h3-line-height: 100%;

    --caption-line-height: 110%;

    /* 87,5% * 16px (default browser font size) = 14px */
    --fs-mobile: 0.875rem;
    --fs-tablet: 0.875rem;
    --fs-pc: 1rem;

    --fs-mobile-small: 0.875rem;
    --fs-mobile-medium: 1.1428rem;
    --fs-mobile-large: 1.5rem;

    --fs-tablet-small: 1rem;
    --fs-tablet-medium: 1.2857rem;
    --fs-tablet-large: 1.1714rem;

    --fs-pc-small: 0.875rem;
    --fs-pc-medium: 1.1428rem;
    --fs-pc-large: 1.5rem;
}

@font-face
{
    font-family: "Geist";
    src: local("Geist"), url("../assets/fonts/Geist-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

::selection
{
    background-color: var(--color-accent-1);
    color: white;
}

*
{
    -webkit-tap-highlight-color: transparent;
    margin: 0px;
}

html
{
    font-family: "Geist";
    font-size: 1rem;
}

body
{
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    min-height: 100vh;

    gap: 112px;
}

.hidden
{
    transition: 0.8s ease-out;
    transform: translateY(5%);
    opacity: 0;

    will-change: opacity, transform;
}

.hidden.show
{
    transform: translateY(0%);
    opacity: 1;
}
@media (min-width: 800px)
{
    :root
    {
        --p1: 0.875rem;
        --p2: 1.125rem;

        --h1: 2rem;
        --h2: 1.125rem;
    }

    header
    {
        height: 140px;
    }

    header nav
    {
        display: flex;
        justify-content: stretch;
        align-items: stretch;
    }

    header #burger-menu
    {
        display: none;
    }

    .header-links
    {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: space-around;
        gap: 8px;
    }

    .js-enabled #burger-button
    {
        display: none;
    }

    header #burger-menu.active
    {
        display: none;
        visibility: hidden;
        opacity: 0;
    }

    body main
    {
        gap: 100px;
    }

    footer
    {
        gap: 241px;
        padding: 40px 40px 0px 40px;
    }

    footer .footer-head-items
    {
        flex-direction: row;
        justify-content: space-between;
    }

    footer .footer-bottom
    {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1280px)
{
    :root
    {
        --p1: 1rem;
        --p2: 1.5rem;

        --h1: 2rem;
        --h2: 1.5rem;
    }

    header
    {
        height: 158px;
    }

    footer .footer-head
    {
        flex-direction: row;
        justify-content: space-between;
    }

    footer .footer-head-items
    {
        gap: 332px;
    }
}

@media (min-width: 1600px)
{
    html
    {
        font-size: 1.2rem;
    }

    main #patio-outdoors
    {
        margin-top: 344px;
    }

    header
    {
        height: auto;
    }

    header .header-main-content
    {
        padding: 16px clamp(100px, 10vw, 700px);
    }
}

@media (min-width: 2560px)
{
    main
    {
        padding: 0 clamp(100px, 10vw, 700px);
    }
}
@media (min-width: 800px)
{
    /* patio-outdoors */

    main #patio-outdoors .article-image
    {
        background-image: url("../assets/img/patio-outdoors/patio-outdoors-medium.png");
    }

    /* gardens */

    main #gardens
    {
        justify-self: center;
        align-self: center;
        width: 400px;
    }

    main #gardens .article-image
    {
        background-image: url("../assets/img/gardens-in-bloom/gardens-medium.png");
        height: 409px;
    }

    main #gardens .article-info-block
    {
        width: 218px;
        height: 192px;
    }

    /* water-and-stone */

    main #water-and-stone
    {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    main #water-and-stone-first-section .article-image
    {
        background-image: url("../assets/img/water-and-stone/water-and-stone-medium.png");
        width: 400px;
    }

    /* conifiers */

    main #conifiers .article-image
    {
        background-image: url("../assets/img/conifiers/conifiers-medium.png");
        height: 409px;
    }

    main #conifiers .article-info-block
    {
        width: 218px;
        height: 192px;
    }

    /* stone-and-foliage-harmony */

    main #stone-and-foliage-harmony .article-image
    {
        background-image: url("../assets/img/stone-and-foliage-harmony/stone-and-foliage-harmony-medium.png");
        height: 409px;
        width: 409px;
    }

    main #stone-and-foliage-harmony .article-info-block
    {
        width: 218px;
        height: 192px;
    }
}

@media (min-width: 1280px)
{
    body main
    {
        gap: 0;
    }

    /* patio-outdoors */

    main #patio-outdoors .article-image
    {
        background-image: url("../assets/img/patio-outdoors/patio-outdoors-large.png");
    }

    /* gardens */

    main #gardens
    {
        justify-self: center;
        align-self: center;
        width: 640px;
        padding: 136px 0;
    }

    main #gardens .article-image
    {
        background-image: url("../assets/img/gardens-in-bloom/gardens-large.png");
        height: 662px;
    }

    main #gardens .article-info-block
    {
        width: 320px;
        height: 250px;
    }

    /* water-and-stone */

    main #water-and-stone
    {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
        padding-bottom: 144px;
    }

    main #water-and-stone-first-section .article-image
    {
        background-image: url("../assets/img/water-and-stone/water-and-stone-large.png");
        width: 662px;
    }

    /* conifiers */

    main #conifiers .article-image
    {
        background-image: url("../assets/img/conifiers/conifiers-large.png");
        height: 662px;
    }

    main #conifiers .article-info-block
    {
        width: 320px;
        height: 250px;
    }

    /* stone-and-foliage-harmony */

    main #stone-and-foliage-harmony
    {
        padding: 112px 0;
    }

    main #stone-and-foliage-harmony .article-image
    {
        background-image: url("../assets/img/stone-and-foliage-harmony/stone-and-foliage-harmony-large.png");
        height: 409px;
        width: 409px;
    }

    main #stone-and-foliage-harmony .article-gallery-info-block
    {
        width: 45%;
    }
}
main
{
    gap: 136px;
}

.article-info-block
{
    background-color: var(--color-bg-2);
    color: var(--color-text-1);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    box-sizing: border-box;
}

.article-info-block p
{
    font-size: var(--p1);
    letter-spacing: var(--p1-letter-spacing);
    line-height: var(--p1-line-height);
}

.article-image
{
    background-repeat: no-repeat;
    background-size: cover;
}

.article-with-gallery-block
{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-gallery-info-block
{
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.article-gallery-info-block p
{
    margin-left: 1px;
    font-size: var(--p2);
    letter-spacing: var(--p2-letter-spacing);
    line-height: var(--p2-line-height);
}

a.article-info-block
{
    transition: 0.3s;
    will-change: background-color, transform;

    &:hover
    {
        background-color: var(--color-accent-1);
    }

    &:active
    {
        transform: scale(98%);
    }
}

/* patio-outdoors */

#patio-outdoors
{
    margin-top: 144px;
}

#patio-outdoors .article-title-block
{
    padding: 33px 10px 16px 10px;
}

#patio-outdoors .article-title
{
    font-size: var(--p1);
    letter-spacing: var(--p1-letter-spacing);
    line-height: var(--p1-line-height);
    font-weight: 300;
}

#patio-outdoors .article-image
{
    background-image: url("../assets/img/patio-outdoors/patio-outdoors-small.png");
    height: 800px;
    display: flex;
}

#patio-outdoors .article-info-block
{
    width: 320px;
    height: 250px;
    align-self: flex-end;
}

/* gardens */

#gardens .article-image
{
    background-image: url("../assets/img/gardens-in-bloom/gardens-small.png");
    height: 375px;
}

#gardens .article-info-block
{
    width: 100%;
    height: 100px;
}

/* water-and-stone */

#water-and-stone
{
    display: flex;
    flex-direction: column;
    gap: 136px;
}

#water-and-stone-first-section .article-image
{
    background-image: url("../assets/img/water-and-stone/water-and-stone-small.png");
    height: 662px;
}

#water-and-stone-first-section .article-info-block
{
    width: 320px;
    height: 250px;
}

#water-and-stone-second-section .article-image
{
    background-image: url("../assets/img/water-and-stone/gardens.png");
    width: 325px;
    height: 331px;
    justify-self: flex-end;
}

#water-and-stone-second-section .article-info-block
{
    width: 325px;
    height: 125px;
}

/* conifiers */

#conifiers .article-image
{
    background-image: url("../assets/img/conifiers/conifiers-small.png");
    height: 375px;
}

#conifiers .article-info-block
{
    height: 100px;
}

/* stone-and-foliage-harmony */

#stone-and-foliage-harmony .article-image
{
    background-image: url("../assets/img/stone-and-foliage-harmony/stone-and-foliage-harmony-small.png");
    height: 375px;
}

#stone-and-foliage-harmony .article-info-block
{
    height: 100px;
}
