/*
Theme Name: My Awesome Theme
Theme URI: https://www.myawesometheme.com
Author: John Doe
Author URI: https://www.johndoe.com
Description: My Awesome Theme is a responsive, modern, and feature-rich WordPress theme designed for all kinds of websites. It comes with a custom homepage layout, multiple widget areas, and full compatibility with popular plugins.
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: my-awesome-theme
Tags: responsive, modern, custom-background, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');
*,
*::before,
*::after{
    box-sizing: border-box;
}
:root{
    --orange: #FFBF00;
    --teal: #01796F;
    --body-bg: #EFEFEF;
    --body-txt: #434F49;
    --light: #ECF7EC;
    --title: #2A3937;
    --lime: #BDEA4A;
    --border-radius: 1.5rem;
}

/*GLOBÁLIS STÍLUSOK*/
html{
    font-size: 1.25vw;
}
body{
    margin: 0;
    padding: 0;
    font-family: "Red Hat Display", sans-serif;
    background: var(--body-bg);
    color: var(--body-txt);
    overflow-x: hidden;
}
img{
    width: 100%;
    height: auto;
}
.align-center{
    text-align: center;
}
h1{
    font-size: 3rem;
    position: relative;
    margin-bottom: 0.5rem;
    z-index: 1;

}
h1::before,
h2::before{
    content: '';
    display: block;
    width: 2rem;
    height: 2rem;
    background: var(--lime);
    position: absolute;
    left: -0.75rem;
    top:0.75rem;
    border-radius: 50%;
    outline: solid 3px var(--lime);
    outline-offset: 6px;
    z-index: -1;
}

h2{
    font-size: 2.25rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    position: relative;
}
h2.has-text-align-center{
    display: flex;
    justify-content: center;
}
h2.has-text-align-center::before{
    position: relative;
    left: 1rem;
    top: 0.10rem;
}

h3,
.archive h2{
    font-size: 1.5rem;
}

h1,
h2,
h3{
    color: var(--title);
    line-height: 1.2;
}
h2 a,
h3 a{
    color: inherit;
}

a{
    color: var(--orange);
    text-decoration: none;
}
a:hover{
    color: var(--teal);
}

ul{
    padding-left: 20px;
}
ul li::marker{
    color: var(--lime);
}

ol li{
    position: relative;
    padding-left: 1rem;
    padding-bottom: 1rem;
}
ol li::marker{
    font-weight: bold;}

ol li::before{
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    background: var(--lime);
    display: block;
    position: absolute;
    left: -1.5rem;
    top:0;
    z-index: -1;
    border-radius: 50%;
}

.button,
input[type=submit],
.wp-block-button a,
.wp-block-post-excerpt__more-link{
    display: inline-block;
    padding: 0.75rem 1.3rem;
    background: var(--orange);
    color: var(--title);
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    font-family: inherit;
    font-size: inherit;
    line-height: 1;
    border-radius: 2rem;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}
.button:hover,
input[type=submit]:hover,
.wp-block-button a:hover,
.wp-block-post-excerpt__more-link:hover{
    color: #fff;
    background: var(--teal);
    transform: translateX(10px);
}

.box-style figure{
    margin-bottom: 1rem !important;
}

.wp-block-post-excerpt__more-text{
    margin-bottom: 1.5rem;
}
.wp-block-post-excerpt__excerpt{
    margin-bottom: 1rem;
}
.wp-block-query .wp-block-post-featured-image a,
.box-style figure a{
    overflow: hidden;
    display: block;
}
.wp-block-query .wp-block-post-featured-image a img,
.box-style figure a img{
    transition: all 0.3s ease-in-out;
    display: block;
}

.wp-block-query .wp-block-post-featured-image a:hover img,
.box-style figure a:hover img{
    transform: scale(1.2);
}


.highlight{
    color: var(--teal);
}
.hero{
    background: var(--light);
    overflow: hidden;
    padding: 7vw 0;
}
.home-hero{
    background-image: url('img/heroo.png');
    background-size: cover;
    background-position: top center;

}

.wide{
    width: calc(100vw - 18px);
    position: relative;
    left: calc(50% + 9px);
    margin-left: -50vw;
}

.narrow-box{
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}
.vertical-center{
    align-items: center;
}
.nav-links{
    margin: 3rem 0;
    text-align: center;
}
.nav-links span,
.nav-links a{
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    background: #fff;
    border: solid 1px #ddd;
}


/*HEADER*/
header{
    background: #fff;
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.10);
    position: relative;
    z-index: 10;
}
#top-head{
    background: var(--lime);
    color: var(--title);
    font-size: 0.75rem;
}
#top-head .content-box,
#head .content-box{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#top-head ul{
    display: flex;
    gap: 1.5rem;
    margin: 0.35rem 0;
}
#top-head a{
    color: var(--title);
}
#top-head ul li::marker{
    color: transparent;
}
#logo svg{
    max-width: 10rem;
}
#logo svg path{
    fill: var(--title);
}
#head{
    padding: 0.75rem 0;
}

/*IMAGES, CARD*/
.box-style,
.query-cta ul li,
blockquote{
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0, 0.10);
    background: #FFFFFF;
    box-shadow: 0 2px 10px 0 rgba(1, 122, 111, 0.20);
    padding: 0 1.5rem;
    overflow: hidden;
}


/*CARD*/
.query-cta ul li figure,
.box-style figure{
    margin: 0 -1.5rem;
}
.query-cta ul li h3,
.query-cta ul li h2{
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem 0;
}
.box-style-space{
    margin-bottom: 2rem;
}

/*PORTFOLIO*/
.portfolio ul{
    display: block;
    column-count: 3;
}
.portfolio ul li{
    break-inside: avoid;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.25em;
}
.portfolio ul li figure{
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 0;
}
.portfolio ul li h3{
    position: absolute;
    bottom: 0;
    z-index: 1;
    color: #FFFFFF;
    margin: 0;
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.2;
    width: 100%;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
}
.portfolio ul li h3::before{
    content: '';
    display: block;
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 18%, rgba(0,0,0,0) 100%);
    width: 100%;
    height: 4rem;
    position: absolute;
    bottom: 0;
    z-index: -1;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.portfolio ul li:hover h3{
    padding: 2rem 1rem 1.5rem 1rem;
}
.portfolio ul li:hover h3:before{
    height: 8rem;
}

/*AJÁNLATKÉRÉS BOX MAIN PAGE */
.lime-bg{
    background: var(--lime);
    padding: 10vw 0;
    color: var(--title);
}

/*HOME GALLERY*/
body .home-gallery{
    display: block;
    column-count: 2;
    gap: 1.25rem !important;
}

body .home-gallery .wp-block-image{
    margin-bottom: 1.25rem !important;
    border-radius: var(--border-radius);
    overflow: hidden;
}

h2.wp-block-heading::before{
    top: 5px;
}


/*CONTACT FORM*/
input[type=text],
input[type=email],
input[type=tel],
input[type=file],
textarea,
select{
    background: #fff;
    border: 1px solid rgba(0,0,0,0.10);
    box-shadow: 0 2px 10px 0 rgba(1,122,111, 0.20);
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    width: 100%;
}

/*FOOTER*/
    footer{
        background: var(--teal);
        border-top: 3px solid var(--lime);
        color: white;
        padding: 5rem 0 3rem 0;
        font-size: 0.9rem;
    }
    footer a,
    footer h3{
        color: white;
    }

    footer a:hover{
        color: var(--lime);
    }

    .copyright{
        background: var(--teal);
        color: white;
        border-top: 1px solid rgba(255, 255, 255, 0.40);
        overflow: hidden;
        text-align: center;
        font-size: smaller;
    }


/*ALOLDALAK KIALAKÍTÁSA*/
/*KERTI TÓ ÉS SZIKLAKERT - AJÁNLATKÉRÉS BLOCKQUOTE*/

blockquote{
    margin: 0 0 1rem 0;
}

.wp-block-buttons > .wp-block-button{
    margin-bottom: 1rem;
}
.page-template-page-hero h1{
    margin-top: 0;
}

/*ANIMÁLÁS, DINAMIKUS ELEMEK*/
#logo a:hover svg path{
    fill: var(--teal);
}
h1{
    opacity: 0;
    animation: hello 1s ease-in-out forwards;
    transform: translateX(-50px);
    animation-delay: 0.8s;
}
.highlight.visible{
    opacity: 0;
    animation: hello 1s ease-in-out forwards;
    transform: translateX(-50px);
    animation-delay: 0.6s;
}
.hero h1 + p{
    opacity: 0;
    animation: hello 1s ease-in-out forwards;
    transform: translateX(-50px);
    animation-delay: 0.9s;
}
.wp-block-button.visible,
.button.visible,
.wp-block-post-excerpt__more-link.visible,
a.button.visible{
    opacity: 0;
    animation: hello 1s ease-in-out forwards;
    transform: translateX(-50px);
    animation-delay: 0.6s;
}

.home h2.visible{
    opacity: 0;
    animation: helloup 0.6s ease-in-out forwards;
    transform: translateY(50px);
}
h1.visible::before, h2.visible::before{
    opacity: 0;
    animation: hellosize 0.6s ease-in-out forwards;
    transform: scale(0);
    animation-delay: 1s;
}
.home-hero.visible{
    opacity: 0;
    animation: helloleft 1s ease-in-out forwards;
    transform: translateX(150px);
    animation-delay: 0.4s;
}
@keyframes helloleft {
    100%{
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes helloup {
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hello {

    100%{
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hellosize {
    100%{
        opacity: 1;
        transform: scale(1);
    }
}

/*RESZPONZIVITÁS*/
@media only screen and (max-width: 1281px){
    /*HOME PORTFOLIO*/
    html{
        font-size: 18px;
    }
    .home-portfolio,
    .home-portfolio .wp-block-buttons{
        display: block !important;
    }
    .home-portfolio-txt{
        text-align: center;
    }
    .home-portfolio h2{
        justify-content: center;
        display: flex;
    }
    .home-portfolio h2::before{
        position: relative;
        left: 1.25rem;
        top: 0.25rem;
    }
    .wide{
        width: 100vw;
        left: 50%;
    }

}

@media only screen and (max-width: 1023px){
    #top-head .content-box{
        display: block;
    }

}

@media only screen and (max-width: 768px){
    #top-head .content-box{
        text-align: center;
    }

    .home-hero{
        background-position: bottom -20vw right;
        background-size: 190% auto;
        background-repeat: no-repeat;
        padding-bottom: 60vw;
    }
    h1{
        font-size: 2.5rem;
    }
    h2{
        font-size: 2rem;
    }
    h2.wp-block-heading{
        position: relative;
    }

    h2.has-text-align-center::before,
    .home-portfolio h2::before{
        position: absolute;
        left: 12vw;
    }
    h2.wp-block-heading::before{
        left: 0.3vw;
    }

    h1::before{
        top:0;
        left: 1vw;
    }


    .query-cta ul{
        display: block;
    }
    .query-cta ul li{
        margin-bottom: 1rem;
    }
    .portfolio ul{
        column-count: 2;
    }
    h3,
    .archive h2{
        font-size: 1.25rem;
    }

}


@media only screen and (max-width: 730px){
    h2.has-text-align-center::before,
    .home-portfolio h2::before{
        left: 10vw;
    }
}

@media only screen and (max-width: 700px){
    h2.has-text-align-center::before,
    .home-portfolio h2::before{
        left: 8vw;
    }
}

@media only screen and (max-width: 650px){
    h2.has-text-align-center::before,
    .home-portfolio h2::before{
        left: 6vw;
    }
}

@media only screen and (max-width: 630px){
    h2.has-text-align-center::before,
    .home-portfolio h2::before{
        left: 2vw;
    }
}

@media only screen and (max-width: 540px){
    h2.has-text-align-center::before,
    .home-portfolio h2::before{
        left: 18vw;
    }
}

@media only screen and (max-width: 500px){
    h2.has-text-align-center::before,
    .home-portfolio h2::before{
        left: 15vw;
    }
}

@media only screen and (max-width: 450px){
    h2.has-text-align-center::before,
    .home-portfolio h2::before{
        left: 12vw;
    }

    .content-box, .wide .wp-block-group__inner-container{
        padding: 0 20px !important;
    }
}

@media only screen and (max-width: 410px){
    h2.has-text-align-center::before,
    .home-portfolio h2::before{
        left: 9vw;
    }
}
@media only screen and (max-width: 386px){
    h2.has-text-align-center::before,
    .home-portfolio h2::before{
        left: 6vw;
    }
}

@media only screen and (max-width: 480px){
    #top-head .content-box{
        text-align: left;
    }
    #top-head ul{
        display: block;
        margin: 0;
        padding: 0;
    }
    #top-head ul li{
        margin: 0;
        padding: 0.15rem 0;
    }
    h1,
    h2{
        font-size: 2rem;
    }
    footer .column-4 > div{
        width: 100%;
    }
    .wp-block-spacer{
        max-height: 50px;
    }
    .portfolio ul{
        column-count: 1;
    }
    body .home-gallery {
        column-count: 1;
    }
}