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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: #000;
    user-select: text;
    animation: fadeIn 1s ease-in;
}

button, img, iframe {
    user-select: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.user-select-none {
    user-select: none;
}

/* ======= Topbar ======= */
.topbar {
    border-bottom: 2px solid #7da419;
    padding: 10px 0;
}

.topbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo rész */
.logo {
    font-size: 16px;
    color: #7da419;
    line-height: 1.4;
}

.logo-name {
    font-weight: bold;
    color: #597b00;
}

.logo-sub {
    font-size: 14px;
    color: #597b00;
}

/* Elérhetőségek */
.contact-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.contact-item .icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ======= Navigáció ======= */
.main-nav {
    background-color: #7da419;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px;
    border-radius: 20px;
    position: relative;
    position: fixed;
    /* <- FIXÁLT pozíció */
    top: 60px;
    width: 90%;
    max-width: 1400px;
    z-index: 1000;
    /* Legyen a többi tartalom fölött */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* opcionális árnyék */
}

.main-nav.sticky {
    top: 0;
}

.logo-menubar {
    display: none;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 16px 20px;
    font-weight: bold;
    color: white;
    background-color: #7da419;
    transition: background-color 0.2s ease-in-out;
}

.main-nav a:hover {
    background-color: #5c7813;
}

/* ======= Sötét mód gomb pozíció ======= */
.dark-toggle-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin-right: 10px;
    height: 100%;
    background-color: transparent;
}

.dark-toggle-wrapper button {
    background: none;
    border: none;
    cursor: pointer;
}

.dark-toggle-wrapper img {
    width: 32px;
    height: 32px;
}

/* ======= Hamburger ikon ======= */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}

.menu-toggle img {
    width: 32px;
    height: 32px;
}

/* ======= Menü elemek ======= */
.menu-items {
    display: flex;
}

/* ======= Hero szekció ======= */
.hero {
    background-image: url('images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 200px 20px;
    color: white;
    text-align: center;
    border-bottom: 2px solid #7da419;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px 30px;
    border-radius: 24px;
    display: inline-block;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 45px;
}

.hero .highlight {
    color: #b5df51;
    font-weight: bold;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    background-color: #d6e984;
    color: black;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    min-width: 180px;
    text-align: center;
    user-select: none;
}

.btn:hover {
    background-color: #a7b556;
}

.btn-separator {
    font-weight: bold;
    color: white;
}

/* ======= Bemutatkozás szekció ======= */
.cta-panel {
    width: 100%;
    background-color: #7da419;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20%;
    gap: 20px;
    flex-wrap: wrap;
    /* fontos a mobilos váltáshoz */
}

.cta-panel h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    flex: 1;
}

.cta-panel p {
    color: white;
    font-weight: bold;
    margin: 0;
}

.cta-panel .btn {
    background-color: #d6e984;
    color: black;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    padding: 15px 25px;
    min-width: 180px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.cta-panel .btn:hover {
    background-color: #a7b556;
}


/* ======= Szekciók ======= */
.section {
    padding-left: 10%;
    padding-right: 10%;
    padding-top: 15vh;
    padding-bottom: 15vh;
}

.section h2 {
    text-align: center;
    color: #74930A;
    font-size: 30px;
}

.section h3 {
    text-align: center;
    font-size: 16px;
    margin-bottom: 100px;
}

.section p {
    text-align: justify;
    font-size: 18px;
    padding-top: 20px;
}

.image-text::after {
    content: "";
    display: table;
    clear: both;
}

.float-left {
    float: left;
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    margin-right: 50px;
    margin-bottom: 50px;
    border-radius: 25px;
}


/* ======= Jogok ======= */
.law-card-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 egyenlő szélességű oszlop */
    gap: 1rem;
    max-width: 1600px;
    margin: auto;
}

.law-card {
    background-color: #74930A;
    border-radius: 40px;
    padding: 30px;
    margin: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.law-card .icon {
    height: 10vh;
    width: auto;
}

.law-card h3 {
    margin-top: 5px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 3vh;
}

.law-card p {
    text-align: center;
    font-size: 2.5vh;
}

/* ======= Vélemény szekció ======= */
.reviews-section {
    background-color: #f2f6e8;
    text-align: center;
    padding-top: 12vh;
    padding-bottom: 12vh;
}

.review-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
    max-width: 900px;
    margin: 40px auto 20px auto;
    position: relative;
}

.review-slide {
    flex: 1;
    display: none;
    animation: fade 0.5s ease-in-out;
}

.review-slide.active {
    display: block;
}

.review-card {
    background-color: #ffffff;
    border: 2px solid #7da419;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-style: italic;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: scale(1.01);
}

.review-card p {
    font-size: 1rem;
    color: #333;
    margin-top: 0px;
    margin-bottom: 15px;
    padding: 0px 20px;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-top: 50px;
    flex-wrap: wrap;
    gap: 8px;
}

.review-footer .author {
    color: #7da419;
}

.review-footer .date {
    color: #777;
    font-size: 0.9rem;
}

.review-arrow {
    background-color: #b5df51;
    border: none;
    border-radius: 12px;
    font-size: 2rem;
    font-weight: bold;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#prevReview_2 {
    display: none;
}

.review-arrow:hover {
    background-color: #a1c644;
}

.review-btn {
    background-color: #b5df51;
    color: black;
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 10px;
    display: inline-block;
    font-weight: bold;
    margin-top: 80px;
    transition: background-color 0.3s ease;
}

.review-btn:hover {
    background-color: #a1c644;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======= Nyitvatartás szekció ======= */
.opening-box {
    display: grid;
    width: fit-content;
    max-width: 400px;
    background-color: #f7f7f7;
    border: 2px solid #7da419;
    border-radius: 20px;
    padding: 30px;
    margin: 0 auto;
}

/* ======= Kapcsolat szekció ======= */
.contact-grid {
    width: 70%;
    display: grid;
    align-items: top;
    margin-top: 50px;
    margin-left: 15%;
    grid-template-columns: 1fr 1fr;
}

.map-container {
    margin-top: 6vh;
    height: 50vh;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 2px solid #7da419;
}

.contact-box {
    background-color: #f7f7f7;
    border: 2px solid #7da419;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
    margin: 0 auto;
    width: fit-content;
}

.contact-box .contact-item p {
    margin-top: 12px;
}

.contact-box .contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    color: #000;
    text-align: left;
}

.contact-box .icon {
    width: 28px;
    height: 28px;
}

.contact-box a {
    color: #009688;
    font-weight: bold;
    text-decoration: none;
}

/* ======= Galéria ======= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.gallery-img {
    width: 100%;
    height: 250px;
    border-radius: 16px;
    border: 4px solid #7da419;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.03);
}

/* ======= Lábléc ======= */
.site-footer {
    background-color: #7da419;
    color: white;
    text-align: center;
    padding: 20px 10px;
    font-weight: bold;
    font-size: 16px;
}

/* ======= Reszponzív ======= */
@media (max-width: 1112px) {
    .law-card-group {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        /* 1 egyenlő szélességű oszlop */
        gap: 1rem;
    }

    .topbar {
        padding: 0;
        margin: 0;
    }

    .topbar-row {
        display: none;
    }

    .logo-menubar {
        display: block;
        font-size: 16px;
        color: #ffffff;
        line-height: 1.4;
        margin-left: auto;
    }

    .main-nav {
        flex-wrap: nowrap;
        padding: 10px 10px;
        top: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav a {
        text-align: center;
        padding: 10px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .menu-wrapper {
        width: 90%;
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9998;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .menu-items {
        display: none;
        flex-direction: column;
        background-color: #c0d55d;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .menu-items.show {
        display: flex;
    }

    .menu-items ul {
        flex-direction: column;
        width: 100%;
    }

    .menu-items li a {
        display: block;
        padding: 15px;
        font-weight: bold;
        color: white;
    }

    .menu-items li a:hover {
        background-color: #a7b556;
    }

    .cta-panel {
        flex-direction: column;
        text-align: center;
    }

    .cta-panel h3 {
        width: 100%;
        font-size: 1.6rem;
    }

    .cta-panel .btn {
        margin-top: 15px;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
    }

    .float-left {
        width: 90%;
        height: auto;
        max-height: 100%;
        float: none;
        display: block;
        margin: 0 auto 20px auto;
    }

    .section p {
        margin-top: 40px;
    }

    .section h3 {
        margin-bottom: 20px;
    }

    .review-carousel {
        flex-direction: column;
    }

    .review-arrow-container-bottom {
        display: flex;
        gap: 30px;
    }

    .review-card p {
        margin-top: 0px;
    }

    #prevReview_1 {
        display: none;
    }

    #prevReview_2 {
        display: flex;
    }

    .review-btn {
        margin-top: 50px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-top: 60px;
        width: 100%;
        margin-left: 0;
    }

    .contact-box {
        gap: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .opening-box p{
        margin-top: 20px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .map-container iframe {
        width: 100%;
        height: 40vh;
        border-radius: 16px;
        border: 2px solid #7da419;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
    }

    .btn-separator {
        display: block;
        margin: 8px 0;
    }

    .review-btn {
        margin-top: 50px;
    }

    .review-card p {
        padding: 0px;
    }
}

/* ======= Lightbox ======= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px #000;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

/* ======= Animációk ======= */
@keyframes fadeIn {
    from { opacity: 0.5; }
    to { opacity: 1; }
}