/*Theme Name: Varga Márti 
URI: https://www.vargamarti.hu
Author: Némethné Kristály Alexandra 
Author URI: https://www.funpixelstudio.hu
Description: Egy letisztult, érzelmeket közvetítő WordPress-téma kézműves virágkötők számára. A „Varga Márti” téma a természetesség, a női elegancia és az egyediség harmóniáját hozza el – azoknak, akik virággal mesélnek történetet.
Version: 1.0.0 
License: All rights reserved. 
Text Domain: varga-marti 
Tags: responsive,
modern,
custom-background,
custom-header,
custom-menu,
featured-images,
threaded-comments,
translation-ready */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

:root {
    --hovirag: #FBFBFB;
    --nefelejcs: #D2E5E6;
    --body-txt: #211C1C;
    --bazsarozsa: #E89B95;
    --koromvirag: #EDAA18;
    --olajfa: #514F23;
    --radius: 1.5rem;
}

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

html {
    font-size: clamp(14px, 1.25vw, 20px);
}

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

@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: var(--hovirag);
    color: var(--body-txt);
    font-family: 'Lato', sans-serif;
    font-weight: normal;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

p,
li {
    line-height: 1.5;
}

ul {
    padding-left: 20px;
}

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

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(--nefelejcs);
    display: block;
    position: absolute;
    left: -1.5rem;
    top: 0;
    z-index: -1;
    border-radius: 50%;
}

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

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}


h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
    font-size: 2.25rem;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

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

h2 a,
h3 a {
    color: inherit;
}


.container p {
    margin-right: 7vw;
}


.home h1.visible,
.home h2.visible {
    opacity: 0;
    transform: translateX(50px);
    animation: helloright 1.1s ease-in-out forwards;
}


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

.heroimg.visible {
    opacity: 0;
    transform: translateX(-50px);
    animation: helloleft 1.1s ease-in-out forwards;
}

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

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

.flower-row {
    width: 100%;
    position: relative;
    margin-bottom: -40px;
    /* vagy annyi, hogy jól illeszkedjen a footerhez */
    z-index: 3;
    text-align: center;
    background-repeat: repeat-x;
}

.flower-img {
    width: 100%;
    height: auto;
    pointer-events: none;
    display: block;
}


.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background: var(--body-txt);
    color: #fff;
    padding: 20px 40px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 45px;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.scroll-to-top:hover {
    background: #333;
}

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

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

.wp-block-heading-custom {
    color: #fff;
}

.button,
.wp-block-button a,
.wp-block-post-excerpt__more-link,
input[type=submit] {
    display: inline-block;
    padding: 1rem 1.5rem;
    color: #fff;
    background: var(--koromvirag);
    text-transform: uppercase;
    border: none;
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
    font-size: inherit;
    line-height: 1;
    border-radius: 2rem;
    cursor: pointer;
    margin-bottom: 2rem;
}


.button:hover,
.button-404:hover,
.wp-block-button a:hover,
.wp-block-post-excerpt__more-link:hover,
input[type=submit]:hover {
    color: #fff;
    background: var(--bazsarozsa);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.30);
}

.button-404 {
    display: inline-block;
    text-align: center;
    padding: 1rem 1.5rem;
    color: #fff;
    background: var(--koromvirag);
    text-transform: uppercase;
    border: none;
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
    font-size: inherit;
    line-height: 1;
    border-radius: 2rem;
    cursor: pointer;
    margin-bottom: 2rem;
}

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

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

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

#head {
    padding: 0.75rem 0;
}

#logo svg {
    width: 6rem;
    height: auto;
    display: block;
}

.hero {
    background-image: url(header.png);
    overflow: hidden;
}

.box-style {
    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: 0 1.5rem;
    overflow: hidden;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


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

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

.box-style figure {
    margin: 0 -1.5rem;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    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: 0 1.5rem;
    overflow: hidden;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


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

.oszlop {
    display: block;
    align-items: center;
    max-width: 80%;
    max-height: 50%;
    margin: 0 auto;
}

.wp-block-woocommerce-customer-account a {
    display: none !important;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    font-weight: bold;
    font-size: 0.95rem;
}

.post-navigation a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--calm);
}

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

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

input[type=text],
input[type=tel],
input[type=email],
input[type=file],
select,
textarea {
    background: #fff;
    border: 1px solid rgba(255, 102, 153, 0.4);
    box-shadow: 0 2px 8px rgba(255, 102, 153, 0.15);
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;

}

input:focus,
textarea:focus {
    border-color: #FF6699;
    box-shadow: 0 0 0 3px rgba(255, 102, 153, 0.3);
    outline: none;
}

footer {
    background: var(--olajfa);
    color: #fff;
    font-size: smaller;
    padding: 5rem 0 1rem 0;
}

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

footer a {
    padding: 5px 0;
    display: inline-block;
}


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

.footer-social-icons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    margin-left: 3rem;
}

.footer-social-icons a {
    font-size: 40px !important;
    color: #ffffff;
    transition: color 0.3s ease;
    text-decoration: none;
}

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


.nav-links,
.page-numbers {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.nav-links a,
.nav-links span,
.page-numbers a,
.page-numbers span {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 50%;
    background: #fff;
    color: var(--body-txt);
    border: 1px solid #ddd;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.nav-links .current,
.nav-links a:hover,
.page-numbers .current,
.page-numbers a:hover {
    background: var(--bazsarozsa);
    color: #fff;
}

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

.box-style figure a {
    overflow: hidden;
    display: block;
}

.box-style figure a img {
    transition: all 0.3s ease-in-out;
    display: block;
}

.box-style figure a:hover img {
    transform: scale(1.2);
}

.wp-block-cover {
    transition: all 0.3s ease-in-out;
    border-radius: var(--radius);
}

.wp-block-cover:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
}


section.hero {
    background-color: var(--body-bg) !important;
}


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

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

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


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

    #head-menu {
        width: 100%;
    }

    .hero {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
    }

    .hero .oszlop {
        max-width: 100%;
        width: 90%;
        margin-bottom: 2rem;
    }

    .hero img {
        max-width: 90%;
        height: auto;
    }

    .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*=flex-basis] {
        padding-left: 1rem;
    }


}


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

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

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

    .hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: var(--hovirag);
        overflow: hidden;
    }

    body .is-layout-flex {
        display: flex;
        flex-direction: column;
    }

    .oszlop {
        max-height: 50%;
        display: grid;
    }


    .scroll-to-top {
        padding: 10px 20px;
        font-size: 30px;
    }


}


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

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

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

    .scroll-to-top {
        width: 60px;
        height: 60px;
        background: none;
        color: var(--bazsarozsa);
        font-size: 40px;
        font-weight: bold;
        display: none;
        align-items: center;
        justify-content: center;
        line-height: 1;
        padding: 0;
    }

    .scroll-to-top:hover {
        background: none;
    }

}
