/*
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,400;0,700;1,400;1,700&display=swap');


:root {
    /*--orange: #ffbf00;
    --teal: #01796f;
    --lime: #bdea4a;
    --body-bg: #ffffef;
    --body-txt: #434f49;
    --light-bg: #ecf7ec;
    --title: #2a3937;
    --radius: 1.5rem; */

    --orange: #F8906B;
    --teal: #C9BCDD;
    --lime: #D7FF7B;
    --body-bg: #ffffff;
    --body-txt: #283249;
    --light-bg: #ecf7ec;
    --title: #2a3937;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

html {
    font-size: 1.25vw;
    /* 24px */
}

@media only screen and (max-width: 1281px) {
    html {
        font-size: 20px;
    }
}

@media only screen and (max-width: 1025px) {
    html {
        font-size: 1.4vw;
    }
}

@media only screen and (max-width: 768px) {
    html {
        font-size: 22px;
    }
}

@media only screen and (max-width: 480px) {
    html {
        font-size: 18px;
    }
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--body-bg);
    color: var(--body-txt);
    font-family: 'Red Hat Display', sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--orange);
    text-decoration: none;
}

a:hover {
    color: var(--teal);
}

footer a:hover {
    color: var(--lime);
}

p,
li {
    line-height: 1.5;
}

ul {
    padding-left: 20px;
}

ul li::marker {
    color: var(--lime);
}

ol {
    padding-left: 1.5rem;
}

ol li::marker {
    font-weight: 600;
    font-style: oblique;
}

ol li {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    padding-left: 10px;
}

ol li::before {
    content: '';
    position: absolute;
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--lime);
    left: -1.5rem;
    top: 0;
    z-index: -1;
    border-radius: 50%;
}

h1,
h2,
h3 {
    color: var(--title);
    line-height: 1.2;
}


h1 {
    font-size: 3rem;
    position: relative;
    margin-bottom: 0.5rem;
    z-index: 1;
}

h1:before,
h2:before {
    content: '';
    display: block;
    position: absolute;
    width: 2rem;
    height: 2rem;
    left: -0.75rem;
    top: 0.75rem;
    background: var(--lime);
    border-radius: 50%;
    outline: solid 3px var(--lime);
    outline-offset: 6px;
    z-index: -1;
}

h2 {
    font-size: 2.25rem;
    margin-top: 0;
    position: relative;
    margin-bottom: 0.5rem;
}

h2.has-text-align-center {
    justify-content: center;
    display: flex;
}

h2.has-text-align-center:before {
    position: relative;
    left: 1.25rem;
    top: 0.2rem;
}

h3,
.archive h2 {
    font-size: 1.5rem;
}

h2 a,
h3 a {
    color: inherit;
}

h1 {
    opacity: 0;
    animation: hello 0.6s ease-in-out forwards;
    transform: translateX(-50px);
    animation-delay: 0.6s;
}

.highlight.visible {
    opacity: 0;
    animation: hello 0.6s ease-in-out forwards;
    transform: translateX(-50px);
    animation-delay: 0.9s;
}

.hero h1 + p {
    opacity: 0;
    animation: hello 0.6s ease-in-out forwards;
    transform: translateX(-50px);
    animation-delay: 1.2s;
}


.wp-block-button.visible,
.button.visible,
.wp-block-post-excerpt__more-text.visible {
    opacity: 0;
    animation: hello 0.6s ease-in-out forwards;
    transform: translateX(-50px);
}

.wc-block-cart__submit-button:hover {
    color: #fff !important;
    background-color: var(--teal) !important;
    transition: all 0.5s ease-in-out !important;
}

.home h2.visible {
    opacity: 0;
    animation: helloup 0.6s ease-in-out forwards;
    transform: translateY(50px);
}

.woocommerce mark {
    background: none;
}

@keyframes hello {
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes helloup {
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-template-page-hero h1 {
    margin-top: 0;
}

.wp-block-post-excerpt__excerpt {
    margin-bottom: 1rem;
}

.wp-block-post-excerpt__more-text {
    margin-bottom: 1.5rem;
}

.button,
.wp-block-button a,
.wp-block-post-excerpt__more-link,
input[type="submit"] {
    display: inline-block;
    padding: 1rem 1.25rem;
    color: var(--title);
    background: var(--orange);
    text-transform: uppercase;
    font-weight: bold;
    font-family: inherit;
    font-size: inherit;
    border: none;
    cursor: pointer;
    border-radius: 2rem;
    line-height: 1;
    transition: all 0.5s ease-in-out;
}

button:hover,
.wp-block-button a:hover,
.wp-block-post-excerpt__more-link:hover,
input[type="submit"]:hover {
    color: #fff;
    background-color: var(--teal);
    transform: translateX(10px);
}

blockquote {
    margin: 0 0 1rem 0;
}

.align-center {
    text-align: center;
}

header {
    position: relative;
    z-index: 10;
    background: #fff;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}

#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 {
    color: inherit;
    display: flex;
    gap: 1.5rem;
    margin: 0.35rem 0;
}

#top-head ul li {
    display: flex;
}

#top-head a {
    color: var(--title);
}

#head {
    padding: 0.75rem 0;
}


#logo svg {
    max-width: 10rem;
}

#logo svg path {
    fill: var(--title);
}

#logo:hover svg path {
    fill: var(--lime);
}

.highlight {
    color: var(--teal);
    margin-bottom: 0.3rem;
}

.hero {
    background-color: var(--light-bg);
    overflow: hidden;
    padding: 7vw 0;
}

.home-hero {
    background-image: url(img/heroo.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

.box-style,
blockquote,
.query-cta ul li {
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    box-shadow: 0 2px 10px 0 rgba(1, 122, 111, 0.2);
    padding: 0 1.5rem;
    overflow: hidden;
}

.query-cta ul li h3,
.query-cta ul li h2 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem 0;
}

.wide {
    width: calc(100vw - 18px);
    position: relative;
    left: calc(50% - 9px);
    margin-left: calc(-50vw + 18px);
}

.narrow {
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.lime-bg {
    background: var(--lime);
    padding: 10vw 0;
    color: var(--title);
}

/* nem a képet formázzuk, érdemes a szülőt, ami itt a figure */

.query-cta ul li figure,
.box-style figure {
    margin: 0 -1.5rem;
}

.box-style figure {
    margin-bottom: 0.5rem;
}


.portfolio ul {
    display: block;
    column-count: 3;
}

.portfolio ul li {
    break-inside: avoid;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.portfolio ul li figure {
    border-radius: var(--radius);
    overflow: hidden;
}

.portfolio ul li h3 {
    position: absolute;
    bottom: 0;
    z-index: 1;
    color: #fff;
    padding: 1rem 1rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.2;
    width: 100%;
    pointer-events: none;
    transition: all 0.5s ease-in-out;
}

.portfolio ul li h3:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgb(0, 0, 0);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76) 23%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
    display: block;
    height: 4rem;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}

.portfolio ul li:hover h3 {
    padding: 2rem 1rem 1.5rem 1rem;
}

.portfolio ul li:hover h3:before {
    height: 8rem;
}

.wp-block-buttons > .wp-block-button {
    margin-bottom: 1rem;
}

body .wp-block-column .team {
    display: block;
    column-count: 2;
    gap: 1.25em !important;
}

body .team .wp-block-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.25em !important;
}

footer {
    background: var(--teal);
    border-top: solid 3px var(--lime);
    color: #fff;
    font-size: smaller;
    padding: 5rem 0 3rem 0;
}

input[type="tel"],
input[type="email"],
input[type="text"],
select,
textarea {
    padding: 0.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    box-shadow: 0 1px 8px 0 rgba(1, 110, 111, 0.1);
    margin-bottom: 1rem;
    width: 100%;

}

iframe {
    filter: grayscale(1);
}

iframe:hover {
    filter: none;
}

footer a,
footer h3 {
    color: #fff;
}

footer ul {
    list-style-type: disclosure-closed;
}

#copyright {
    background: var(--teal);
    border-top: solid 1px rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: smaller;
    padding: 0.25rem 0;
    vertical-align: bottom;
}

.nav-links {
    text-align: center;
    margin: 3rem 0;
}

.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;
}

.box-style figure a {
    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.5s 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);
}

@media only screen and (max-width: 1281px) {

    /* home referenciák*/
    .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.2rem;
    }

    #head .content-box {
        flex-wrap: wrap;
    }

    iframe {
        filter: none;
    }
}

@media only screen and (max-width: 1023px) {

    #top-head .content-box {
        display: block;
        text-align: center;
    }
}

@media only screen and (max-width: 768px) {

    .home-hero {
        background-position: bottom -30vw right;
        background-size: 190% auto;
        padding-bottom: 45vw;
    }

    h1,
    h2 {
        font-size: 2rem;
    }

    h3,
    .archive h2 {
        font-size: 1.25rem;
    }

    .query-cta ul {
        display: block;
    }

    .query-cta ul li {
        margin-bottom: 1rem;
    }

    .portfolio ul {
        column-count: 2;
    }
}

@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;
        padding: 0.25rem 0;
    }

    footer .column-4 > div {
        width: 100%;
    }

    .wp-block-spacer {
        max-height: 50px;
    }

    .portfolio ul {
        column-count: 1;
    }
}
