/*
Theme Name: MyTheme
Theme URI: https://www.jbweb.hu
Author: JBWeb
Author URI: https://www.jbweb.hu
Description: My Awesome Theme is a responsive WordPress theme
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: mytheme
Tags: responsive
*/

/*---GLOBAL---*/
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --body-bg: #FFFFEF;
    --body-txt: #434F49;
    --hero-bg: #ECF7EC;
    --title-txt: #2A3937;
    --limegreen: #BDEA4A;
    --yellow: #FFBF00;
    --teal: #01796F;
    --radius: 1.5rem;
    --pics-gap: 1.25rem;
}

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

html {
    font-size: 1.25vw;
    /*Ha 24px volt, akkor 24/1920(ez a vwport)*100=1.25*/
}

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

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

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

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

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

main {
    padding-bottom: 3vw;
}

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

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

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

p,
li {
    line-height: 1.5;
}

ul {
    padding-left: 1.25rem;
}

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

ol {
    padding-left: 1.5rem;
}

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

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

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

h1,
h2,
h3 {
    color: var(--title-txt);
    font-weight: 700;
    z-index: 1;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    position: relative;
    margin-bottom: 1rem;
    opacity: 0;
}

h1.visible {
    transform: translateX(-50px);
    animation: float-from-left 0.6s ease-in-out forwards;
    animation-delay: 0.2s;
}

.highlight.visible {
    transform: translateX(-50px);
    animation: float-from-left 0.6s ease-in-out forwards;
    animation-delay: 0.3s;
}

/*#region HERO ANIMATION*/

.home-hero h1 + p.visible {
    opacity: 0;
    transform: translateX(-50px);
    animation: float-from-left 0.6s ease-in-out forwards;
    animation-delay: 0.6s;
}

.home-hero .wp-block-button.visible {
    opacity: 0;
    transform: translateX(-50px);
    animation: float-from-left 0.6s ease-in-out forwards;
    animation-delay: 0.8s;
}

/*#endregion*/

h2 {
    font-size: 2.25rem;
    
    position: relative;
    margin-bottom: 1rem;
}

h3,
.card h2,
.contact-form h2 {
    font-size: 1.5rem;
}

h1 a,
h2 a,
h3 a {
    color: inherit;
}

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

.page-template-page-hero h2 {
    margin-top: 2rem;
}

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

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

h1.has-text-align-center::before,
h1.align-center::before,
h2.has-text-align-center::before,
h2.align-center::before {
    left: 50%;
    top: -0.5rem;
}

.query-cta ul li h2::before,
.card h2::before,
.contact-form h2::before {
    display: none;
}


.button,
.wp-block-button a,
.wp-block-post-excerpt__more-link,
.wpcf7-submit {
    display: inline-block;
    padding: 0.7rem 1.25rem;
    line-height: 1;
    background: var(--yellow);
    color: var(--title-txt);
    font-weight: 700;
    font-family: inherit;
    font-size: inherit;
    border-radius: var(--radius);
    border: 0;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    opacity: 0;
}

.button:hover,
.wp-block-button a:hover,
.wp-block-post-excerpt__more-link:hover,
.wpcf7-submit:hover {
    background: var(--teal);
    color: var(--limegreen);
    transform: translateX(10px);
}

.button.visible,
.wp-block-button.visible a,
.wp-block-post-excerpt__more-link.visible,
.wpcf7-submit.visible {
    transform: translateX(-50px);
    animation: float-from-left 0.5s ease-in-out forwards;
}

blockquote {
    padding: 0.5rem 1rem;
    margin-left: 0;
    margin-right: 0;
    background-color: var(--darker);
    border-left: solid 5px var(--limegreen);
}

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

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

#top-head {
    font-size: 0.7rem;
    background: var(--limegreen);
    color: var(--title-txt);
}

#top-head .content-box,
#head .content-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#top-head ul {
    display: flex;
    gap: 1.5rem;
    list-style-type: none;
    margin: 0.35rem 0;
}

#top-head p {
    margin: 0.25rem 0;
}

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

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

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

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

.highlight {
    color: var(--teal);
    font-weight: 700;
    opacity: 0;
}

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

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

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

.home h2 {
    transform: translateY(50px);
}

.home h2.visible {
    animation: float-from-bottom 0.5s ease-in-out forwards;
}

.home-hero .wp-block-group__inner-container figure {
    margin: 0;
}

.home-hero .wp-block-group__inner-container figure img {
    position: absolute;
    overflow: initial;
    object-position: right bottom;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.home-hero .wp-block-group__inner-container figure img {
    animation: opacity-anim 4s ease-in-out forwards;
}

.home-hero .content-box {
    padding: 0;
}

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

.card figure,
.query-cta ul li figure {
    margin: -1.5rem -1.5rem 0 -1.5rem;
    overflow: hidden;
}

.narrow {
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}

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

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

.portfolio ul li {
    break-inside: avoid;
    position: relative;
}

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

.portfolio ul li div {
    padding: 0;
}

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

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

.portfolio ul li h3::before {
    content: "";
    display: block;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7707457983193278) 19%, rgba(0, 0, 0, 0) 100%);
    border-radius: 0 0 var(--radius) var(--radius);
    width: 100%;
    height: 4rem;
    transition: height 0.3s ease-in-out;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
}

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

.portfolio ul li h3 a:hover {
    color: var(--limegreen);
}

body .team-gallery {
    display: block;
    column-count: 2;
    gap: var(--pics-gap) !important;
}

body .team-gallery .wp-block-image {
    margin-bottom: var(--pics-gap) !important;
    border-radius: var(--radius);
    overflow: hidden;
    opacity: 0;
}

body .team-gallery .wp-block-image.visible {
    animation: opacity-anim 2s ease-in-out forwards;
}
body .team-gallery .wp-block-image:nth-child(1) {
    animation-delay: 1.5s;
}
body .team-gallery .wp-block-image:nth-child(3) {
    animation-delay: 0.5s;
}
body .team-gallery .wp-block-image:nth-child(2) {
    animation-delay: 0.5s;
}
body .team-gallery .wp-block-image:nth-child(4) {
    animation-delay: 1.5s;
}

input[type=text],
input[type=email],
input[type=tel],
select,
textarea {
    width: 100%;
    margin-bottom: 25px;
    background: #fff;
    font-family: inherit;
    font-size: inherit;
    padding: 10px;
    border: solid 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 2px 10px 0px rgba(1, 122, 111, 0.20);
    outline-color: var(--teal);
}

span[data-name=your-file] {
    position: relative;
    opacity: 0;
}

span[data-name=your-file].visible {
    animation: float-from-left 0.6s ease-in-out forwards;
}

span[data-name=your-file]::before {
    content: "Fájl feltöltése";
    position: absolute;
    left: 0;
    top: 10px;
    padding: 0.7rem 1.25rem 0.7rem 1.25rem;
    margin-left: 0;
    transition: margin-left 0.3s ease-in-out;
    line-height: 1;
    background: var(--yellow);
    color: var(--title-txt);
    font-weight: 700;
    font-family: inherit;
    font-size: inherit;
    border-radius: var(--radius);
    border: solid 2px rgba(0, 0, 0, 0);
    transition: 0;
}

span[data-name=your-file]:hover:before {
    margin-left: 0.5rem;
}

span[data-name=your-file]:hover::before {
    background: var(--teal);
    color: var(--limegreen);
}

span[data-name=your-file]>input {
    visibility: hidden;
}

input.wpcf7-submit {
    margin-top: 2rem;
}


footer {
    background: var(--teal);
    color: #FFF;
    border-top: 3px solid var(--limegreen);
    padding: 3rem;
}

footer h3 {
    color: inherit;
}

footer ul {
    list-style-type: disc;
}

footer a {
    color: inherit;
    font-size: 0.8rem;
    line-height: 1.25rem;
    /* 150% */
}

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

#copyright {
    background: var(--teal);
    color: #FFF;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.40);
    font-size: 0.8rem;
    padding: 1rem 0;
}

#copyright p {
    line-height: 1.25rem;
    margin: 0;
}

#copyright a {
    padding: 0 0.2rem;
    color: var(--limegreen);
    transition: all 0.3s ease-in;
}

#copyright a:hover {
    color:var(--teal);
    background-color: var(--limegreen);
}

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

.nav-links span, .nav-links a {
    display: inline-block;
    width: 1.75rem;
    height: 1.75rem;
    line-height: 1.75rem;
    text-align: center;
    background: #FFF;
    border: solid 1px #ddd;
}

.widget a {
    color: var(--teal);
}

.widget a:hover {
    color: var(--yellow);
}

.wp-block-post-featured-image {
    overflow: hidden;
}

.wp-block-post-featured-image img,
.card img {
    transition: transform 0.3s ease-in-out;
}

.wp-block-post-featured-image img:hover,
.card img:hover {
    transform: scale(1.2);
}

/*#region ANIMATIONS */

@keyframes opacity-anim {
    100% {
        opacity: 1;
    }
}

@keyframes float-from-left {
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float-from-bottom {
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*#endregion*/


@media only screen and (max-width: 1281px) {
    .home-hero {
        padding-bottom: 10vw;
    }
    .home-hero .wp-block-group__inner-container figure img {
        object-position: right -15vw bottom -5vw;
    }
    .home-portfolio {
        flex-direction: column;
    }
    .home-portfolio h2::before {
        left: 50%;
    }
    .home-portfolio-first {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #head .content-box {
        flex-wrap: wrap;
    }
    .wp-block-spacer {
        max-height: 3rem!important;
    }
}

@media only screen and (max-width: 1023px) {
    #top-head .content-box {
        flex-direction: column;
    }
    .home-hero {
        padding-bottom: 10vw;
    }
    .home-hero .wp-block-group__inner-container figure img {
        object-position: right 20vw bottom 0vw;
        object-fit: scale-down;
        min-width: 120%;
    }
    h1 {
        font-size: 2.5rem;
    }
    .about-us .wp-block-columns {
        flex-direction: column-reverse!important;
    }
}

@media only screen and (max-width: 782px) {
    .home-hero {
        padding-bottom: 40vw;
    }
    .home-hero .wp-block-group__inner-container figure img {
        object-position: right 45vw bottom 0vw;
        object-fit: scale-down;
        min-width: 150%;
    }
    h1, h2 {
        font-size: 2rem;
    }
    h3,
    .card h2,
    .contact-form 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 {
        display: block;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
    #top-head .content-box:first-child {
        text-align: center;
    }
    #top-head ul {
        text-align: left;
        display: block;
        padding: 0;
    }

    #top-head ul li {
        margin: 0;
        padding: 0;
    }
    #top-head ul li a {
        padding: 0.25rem 0;
    }

    footer {
        padding: 0;
    }
    .portfolio ul {
        column-count: 1;
    }
}