/*
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;
    --body-bg: #FFFFEF;
    --body-txt: #434F49;
    --light-bg: #ECF7EC;
    --title: #2A3937;
    --lime: #BDEA4A;
    --radius: 1.5rem;
}

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

html {
    font-size: 1.25vw;
}

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

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

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

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

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

.cover-img {
    object-fit: cover;
    height: auto;
}

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

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

p,
li {
    line-height: 1.5;
}

ul {
    padding-left: 20px;
}

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

ol {
    padding-left: 34px;
}

ol li::marker {
    font-weight: bold;
}

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

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

h1,
h2,
h3 {
    font-weight: bold;
    color: var(--titel);
}

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

h1:before,
h2:before {
    content: '';
    display: block;
    width: 2rem;
    height: 2rem;
    position: absolute;
    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;
    padding-bottom: 1rem;
    margin: 0.5rem;
}

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

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

.home h1 {
    margin-top: 0.5rem;
}

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

.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);
    animation-delay: 1.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;
}


.woocommerce mark {
    background: none;
}


.plant-col.visible figure.wp-block-image {
    animation: plantSettle 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

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

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

@keyframes hellosize {
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes plantSettle {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(1);
        /* Kisebbről indul */
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1.5);
    }
}

.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: 12px 20px;
    color: var(--title);
    background: var(--orange);
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    font-family: inherit;
    font-size: inherit;
    line-height: 1;
    border-radius: 2rem;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.button:hover,
.wp-block-button a:hover,
.wp-block-post-excerpt__more-link:hover,
input[type=submit]:hover {
    color: #fff;
    background: var(--teal);
    transform: scale(1.05);
    text-decoration: none !important;
}

blockquote {
    margin: 0 0 1rem 0;
}

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

header {
    position: relative;
    z-index: 10;
    background: #FFF;
    box-shadow: 0 0 10px 0 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 {
    display: flex;
    gap: 1.5rem;
    margin: 0.35rem 0;
}

#top-head li {
    display: flex;
}

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

#head {
    padding: 1rem 0;
}

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

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

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

#top-head .content-box > div:first-child {
    font-style: italic;
}

.highlight {
    color: var(--teal);
    font-weight: bold;
}

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

.home-hero {
    position: relative;
    overflow: hidden !important;
}

.plant-col {
    position: static !important;
    padding: 0 !important;
}

.plant-col figure.wp-block-image {
    position: absolute;
    bottom: 0;
    right: -5%;
    margin: 0 !important;
    line-height: 0;
    z-index: 2;
    width: 45%;
    pointer-events: none;
    opacity: 0;
}

.plant-col figure.wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: bottom right;
    transform: scale(1.9)translateY(9%);
}

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

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

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

.vertical-center {
    align-items: center;
}

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

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

.box-style a {
    color: var(--titel);
}

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

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

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

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

.portfolio ul li h3 {
    position: absolute;
    bottom: 0;
    z-index: 1;
    color: #fff;
    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.7987570028011204) 23%,
            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;
}

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

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

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

input[type=text],
input[type=tel],
input[type=email],
input[type=file],
select,
textarea {
    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 {
    background: var(--teal);
    border-top: 3px solid var(--lime);
    color: #fff;
    font-size: smaller;
    padding: 5rem 0 3rem 0;
}

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

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

#copyright {
    background: var(--teal);
    color: #fff;
    font-size: smaller;
    border-top: 1px solid rgba(255, 255, 255, 0.40);
    overflow: hidden;
}

.navigation.pagination {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 2px 10px 0 rgba(1, 122, 111, 0.20);
}

.nav-links .page-numbers:not(.next):not(.prev) {
    background: none;
    border: none;
    padding: 0;
    margin: 0 0.75rem;
    color: var(--titel);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav-links .page-numbers:not(.next):not(.prev):hover {
    color: var(--lime);
}

.nav-links .page-numbers.current {
    color: var(--teal) !important;
    font-weight: bold;
    background: none;
}

.nav-links .next,
.nav-links .prev {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--titel);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links .next:hover,
.nav-links .prev:hover {
    width: 5rem;
    background: var(--teal);
    color: #fff;
}

.nav-links .next:hover {
    padding-left: 2rem;
}

.nav-links .prev:hover {
    padding-right: 2rem;
}

.col-1-4 .widget .wp-block-group {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 10px 0 rgba(1, 122, 111, 0.20);
    margin: 20px auto;
    border-left: 6px solid var(--teal);
}

.col-1-4 .widget .wp-block-group a {
    color: var(--titel);
}

/* Sidebar lista */
.widget .wp-block-latest-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget .wp-block-latest-posts li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.widget .wp-block-latest-posts li a.wp-block-latest-posts__post-title {
    text-decoration: none !important;
    color: var(--title);
    display: block;
    width: 100%;
}

.widget .wp-block-latest-posts li a.wp-block-latest-posts__post-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.widget .wp-block-latest-posts li::before {
    content: "›";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--lime);
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 6px;
    flex-shrink: 0;
    pointer-events: none;
    line-height: 1;
    padding-bottom: 5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.widget .wp-block-latest-posts li:hover::before {
    background: var(--teal);
    transform: scale(1.15);
    color: #fff;
}

.widget .wp-block-latest-posts li:hover a.wp-block-latest-posts__post-title {
    color: var(--teal);
}

.box-style figure {
    margin-bottom: 1rem;
}
li.product-category.product {
  overflow: hidden;
} 

.wp-block-query .wp-block-post-featured-image a,
.wp-block-post-featured-image a, 
.box-style figure a,
.box-style figure {
    overflow: hidden !important;
    display: block;
}

.wp-block-query .wp-block-post-featured-image img,
.wp-block-post-featured-image img,
.box-style figure img, 
img.wp-post-image {
    transition: transform 0.4s ease-in-out !important;
    display: block;
    width: 100%;
    height: auto;
}

.wp-block-query .wp-block-post-featured-image a:hover img,
.wp-block-post-featured-image a:hover img,
.box-style:hover img, 
.box-style:hover img.wp-post-image {
    transform: scale(1.15) !important;
}

p.wp-block-tag-cloud a {
    display: inline-block;
    font-weight: 400;
    font-size: 1rem;
    text-decoration: none;
    transition:
        font-size 0.2s ease,
        font-weight 0.2s ease;
    color: inherit;
}

p.wp-block-tag-cloud a:hover {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--teal) !important;
}

@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.25rem;
    }

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

    #head-menu {
        width: 100%;
    }

    .wide {
        width: 100vw;
        left: 50%;
    }
}

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

    h1:before,
    h2:before {
        width: 1em;
        height: 1em;
        left: -0.4em;
        top: 0.4em;
        outline-offset: 0.3em;
    }

    .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
        margin-left: 0.8vw;
        margin-right: 0.8vw;
    }
}

@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.25rem 0;
    }

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

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

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