/*
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');


: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;
    /* 24px */
}


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

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

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

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

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

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

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

p,
li {
    line-height: 1.5rem;
}

ul {
    padding-left: 20px;
}

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

ol {
    padding-left: 1.5rem;
}

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 {
    color: var(--title);
    line-height: 1.2;
}

h1 {
    font-size: 2.75rem;
    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.1rem;
    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.6rem;
}

.post-template-default h1,
h2.has-text-align-center {
    justify-content: center;
    display: flex;
}

.post-template-default h1:before,
h2.has-text-align-center:before {
    position: relative;
    left: 1.25rem;
    top: 0.1rem;
}

.post-template-default h1:before {
    position: absolute;
    left: inherit;
    top: 0.1rem;
}

.post-template-default h1 {
    margin-top: 3rem;
}

h3 {
    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,
.wpcf7-submit.visible {
    opacity: 0;
    animation: hello 0.6s ease-in-out forwards;
    transform: translateX(-50px);
}

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

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

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

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

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

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

.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;
    border: none;
    font-family: inherit;
    font-size: inherit;
    line-height: 1;
    border-radius: 2rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

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


blockquote {
    margin: 0 0 1rem 0;
}

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

#site-header {
    position: relative;
    z-index: 10;
    background: #fff;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.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);
}

#head {
    padding: 0.7rem 0;
}

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

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

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

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

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

.home-hero {
    background-image: url(img/hero.png);
    background-position: -100% center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    animation: slidein 3.5s ease-out forwards;
}

@keyframes slidein {
    from {
        background-position: -100% center;
    }

    to {
        background-position: center center;
        opacity: 1;
    }
}

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

.box-style,
.query-cta ul li {
    position: relative;
    display: flex;
    flex-direction: column;
}

.box-style .button,
.query-cta ul li .wp-block-post-excerpt__more-text {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 1.5rem;
}

.box-style p {
    padding-bottom: 2rem;
}

.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: 8vw 0;
    color: var(--dark);
}

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

.query-cta ul li h3,
.query-cta ul li h2,
.archive h2,
.data-protection h2 {
    margin: 1.5rem 0 1rem 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.25em;
}

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

.portfolio ul li h3 {
    position: absolute;
    pointer-events: none;
    bottom: 0;
    color: #fff;
    margin: 0;
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.2;
    z-index: 1;
    width: 100%;
    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) 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;
}

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

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

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

.page-template-page-hero img,
.post-thumbnail {
    border-radius: var(--radius);
}

input[type='text'],
input[type='tel'],
input[type='email'],
select,
textarea {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    box-shadow: 0px 2px 10px 0px rgba(1, 122, 111, 0.20);
    padding: 0.5rem;
    border-radius: 5px;
    width: 100%;
    font-family: "Red Hat Display", serif;
    font-size: 0.8rem;
    color: var(--body-txt);
}

.newsletter {
    background-color: var(--lime);
    width: 75%;
    margin: 0 auto -5rem auto;
    padding: 2rem 3rem;
    border-radius: var(--radius);
    position: relative;
}

.newsletter form .wpcf7-submit.newsletter-fields {
    padding: 1rem 4rem;
}

.newsletter form p:has(input.newsletter-fields) {
    display: inline-block;
    width: 30%;
    margin: 0 0.5rem;
}

.newsletter form p:has(input.acceptance) {
    margin: 0.5rem 0 0.5rem -0.5rem;
    text-align: center;
}

.wpcf7-spinner {
    display: none !important;
}

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

footer ul,
.post-date {
    font-size: smaller;
}

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

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

.page-template-page-reference footer,
.page-template-default footer {
    margin-top: 30px;
}

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

.nav-links {
    text-align: center;
    margin: 1.5rem 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;
    text-align: center;
    margin: 1.5rem 0;
}

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

.data-protection h2:before {
    display: none;
}

.post-thumbnail {
    margin-top: 1rem;
}

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

.sidebar h3 {
    padding: 0 0.5rem;
}

.sidebar ul li {
    padding: 0.3rem 0.5rem;
    border-bottom: solid 2px var(--light-bg);
}

.wpcf7 input[type="file"] {
    visibility: hidden;
}

span[data-name="your-file"] input {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

span[data-name="your-file"]::before {
    content: "Fájl feltöltése";
    display: inline-block;
    padding: 1rem 1.25rem;
    text-align: center;
    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.2s ease-in-out;
    cursor: pointer;
    margin-top: 1rem;
}

span[data-name="your-file"]:hover::before {
    background: var(--teal);
    color: #fff;
    transform: translateX(10px) !important;
}

/* Ha a felhasználó kiválasztott egy fájlt, módosuljon a szöveg */
span[data-name="your-file"].file-selected::before {
    content: "Fájl kiválasztva!";
    background: var(--teal);
    color: #fff;

}

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

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

    #head-menu {
        width: 100%;
    }

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

    .newsletter form p:has(input.newsletter-fields) {
        width: 45%;
    }

    .newsletter form p:has(input.newsletter-button) {
        width: 100%;
        display: block;
        text-align: center;
        position: relative;
        margin-left: -0.5rem;
    }

}


@media only screen and (max-width: 1023px) {
    #top-head .content-box {
        display: block;
        text-align: center;
    }

    h1 {
        font-size: 2.25rem;
    }

    h3,
    .archive h2,
    .query-cta ul li h2,
    .query-cta ul li h3 {
        font-size: 1.25rem;
    }

    .box-style,
    .query-cta ul li,
    .archive ul li {
        padding: 0 0.9rem;
    }

    .box-style .button,
    .query-cta ul li .wp-block-post-excerpt__more-text {
        margin: 0.9rem;
    }

    .newsletter form p:has(input.newsletter-fields) {
        width: 96%;
    }
}

@media only screen and (max-width: 769px) {
    #top-head .content-box {
        text-align: left;
    }

    #top-head ul {
        display: block;
        margin: 0;
        padding: 0;
    }

    #top-head ul li {
        margin: 0;
        padding: 0.2rem 0;
        line-height: 1.2;
    }

    .home-hero {
        background-position: bottom -30vw right;
        background-size: 190% auto;
        padding-bottom: 45vw;
        animation: slidein-mobile 5s ease-out forwards
    }

    @keyframes slidein-mobile {
        from {
            background-position: bottom -100vw right;
        }

        to {
            background-position: bottom -30vw right;
            opacity: 1;
        }
    }

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

    .query-cta ul {
        display: block;
    }

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

    .portfolio ul {
        column-count: 2;
    }

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

    .newsletter {
        padding: 1.5rem;
    }

    .newsletter form .wpcf7-submit.newsletter-fields {
        padding: 1rem 1.5rem;
    }

    .newsletter form p:has(input.acceptance) {
        text-align: left;
    }

}

@media only screen and (max-width: 480px) {
    .portfolio ul {
        column-count: 1;
    }

    h2.has-text-align-center:before,
    .home-portfolio-txt h2:before {
        position: absolute;
        left: 50%;
        top: 0.1rem;
    }

    h2.has-text-align-center:before {
        margin-left: -8.4rem;
    }

    .home-portfolio-txt h2:before {
        margin-left: -6.8rem;
    }

    .newsletter {
        width: 100%
    }

    .newsletter form p:has(input.newsletter-button) {
        margin-left: 0.4rem;
    }

    .newsletter h2:before {
        visibility: hidden;
    }
}
