/* ============================================================
    1. ALAPOK
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f9f5;
    color: #333;
    line-height: 1.6;
    font-family: 'Raleway', sans-serif;
    overflow-x: hidden;
}

/* ============================================================
    2. FEJLÉC ÉS NAVIGÁCIÓ (LOGÓ TÖKÉLETESEN KÖZÉPEN)
   ============================================================ */

.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s ease;
}

.header-wrapper.scrolled {
    transform: translateY(-44px);
}

.contact-bar {
    background-color: #2e7d32;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    height: 44px;
}

.contact-info { 
    display: flex; 
    gap: 20px; 
}

.contact-link { 
    color: white; 
    text-decoration: none; 
    transition: 0.3s; 
}

.contact-link:hover { 
    color: #c8e6c9; 
}

.main-nav {
    background-color: white;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: height 0.4s ease;
}

.main-nav.scrolled {
    height: 80px;
}

.nav-spacer {
    height: 164px; 
}

/* ===============================
   🔥 GRIDES NAV CONTAINER
================================ */

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Bal menü */
.nav-left {
    display: flex;
    list-style: none;
    gap: 40px;
    justify-self: start;
}

/* Logó középen */
.nav-logo {
    justify-self: center;
}

/* Jobb menü */
.nav-right {
    display: flex;
    list-style: none;
    gap: 40px;
    justify-self: end;
}

.main-nav a {
    text-decoration: none;
    color: #1f5c2e;
    font-weight: 600;
    font-size: 22px;
    position: relative;
    white-space: nowrap;
}

/* FŐMENÜ ALÁHÚZÁS */
.nav-left > li > a::after, 
.nav-right > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 3px;
    background-color: #2e7d32;
    transition: width 0.25s ease;
}

.nav-left > li > a:hover::after, 
.nav-right > li > a:hover::after { 
    width: 100%; 
}

.nav-logo a::after {
    display: none !important;
}

.nav-logo img {
    height: 100px;
    display: block;
    transition: 0.4s;
}

.main-nav.scrolled .nav-logo img {
    height: 60px;
}


/* ============================================================
    3. DROPDOWN (JAVÍTOTT MÉRET)
   ============================================================ */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    display: none;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 160px;
    width: auto;
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu li a { 
    font-size: 18px; 
    padding: 10px 20px; 
    display: block; 
    transition: 0.3s;
    white-space: nowrap;
}

.dropdown-menu li a::after {
    display: none !important; 
}

.dropdown-menu li a:hover {
    background-color: #f0f7f0;
    color: #2e7d32;
}

/* Almenü alaphelyzete (elrejtve) */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%; /* Pontosan az első legördülő mellé teszi */
    background: white;
    display: none;
    list-style: none;
    padding: 10px 0;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1001;
}

/* Megjelenítés ha a szülő fölé visszük az egeret */
.has-submenu:hover > .submenu {
    display: block;
}

/* Mobil nézet korrekciója (hogy ne lógjon ki a képernyőből) */
@media (max-width: 992px) {
    .submenu {
        position: static; /* Mobilon egymás alá kerüljenek */
        display: none;
        background-color: #e8f5e9; /* Kicsit más árnyalat a mobil megkülönböztetéshez */
        width: 100%;
        box-shadow: none;
        padding-left: 20px;
    }
    
    .has-submenu.active .submenu {
        display: block;
    }
}

/* ============================================================
    4. LÉPCSŐZETES GALÉRIA - GARANTÁLT EGYESÉVEL MOZGÁS
   ============================================================ */
.dahlia-gallery {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 320px;
    margin: 30px auto;
    overflow: hidden;
}

.gallery-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
    pointer-events: none;
    z-index: 1;
}

.gallery-group.active {
    z-index: 5;
    pointer-events: auto;
}

.gallery-group.exit {
    z-index: 2;
}

.photo-card {
    width: calc(20% - 12px);
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    
    /* ALAPHELYZET: Balra kint */
    transform: translateX(-250%); 
    opacity: 0;
    
    /* A mozgás sebessége itt legyen definiálva fixen */
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s;
}

/* Ha nincs rajta se active, se exit, akkor azonnal ugorjon vissza balra (ne látszódjon a suhanás) */
.gallery-group:not(.active):not(.exit) .photo-card {
    transition: none !important;
}

/* BEJÖVETEL */
.gallery-group.active .photo-card {
    transform: translateX(0);
    opacity: 1;
}

/* TÁVOZÁS */
.gallery-group.exit .photo-card {
    transform: translateX(250%);
    opacity: 0;
}

/* LÉPCSŐZETES KÉSLELTETÉS - KÉNYSZERÍTVE */
.gallery-group .photo-card:nth-child(1) { transition-delay: 0.1s !important; }
.gallery-group .photo-card:nth-child(2) { transition-delay: 0.25s !important; }
.gallery-group .photo-card:nth-child(3) { transition-delay: 0.4s !important; }
.gallery-group .photo-card:nth-child(4) { transition-delay: 0.55s !important; }
.gallery-group .photo-card:nth-child(5) { transition-delay: 0.7s !important; }

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* ============================================================
    5. HERO SZEKCIÓ - TELJES TARTALOMMAL, JAVÍTVA
   ============================================================ */
.hero {
    /* Mobilon és gépen is engedjük, hogy a magasság a szöveghez igazodjon */
    min-height: auto; 
    background-color: #f5f9f5;
    background-image: 
        linear-gradient(to right, 
            rgba(245, 249, 245, 0.95) 0%, 
            rgba(245, 249, 245, 0.8) 50%, 
            rgba(245, 249, 245, 0) 100%), 
        url('../images/virag2.jpg');
    background-size: cover;
    background-position: center right;
    display: flex;
    flex-direction: column; /* Egymás alá kerüljenek az elemek */
    align-items: flex-start;
    padding: 80px 20px;
}

.hero-extra-box.intro-box {
    position: relative; /* NINCS absolute, így nem csúszik rá a térképre */
    left: 80px; /* Gépen marad az eredeti eltolás */
    width: 650px;
    max-width: 90%;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 2;
}

/* Bekezdések formázása - hogy ne legyen zsúfolt a sok szöveg */
.hero-extra-box.intro-box p {
    font-size: 17px;
    color: #1b4d26;
    line-height: 1.8;
    margin-bottom: 25px; /* Távolság a bekezdések között */
    text-align: justify;
}

/* Aláírás */
.hero-signature {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #1f5c2e;
    margin-top: 30px;
    border-top: 1px solid rgba(31, 92, 46, 0.3);
    padding-top: 20px;
    text-align: center;
}

/* --- MOBIL NÉZET (Itt volt a hiba a képeden) --- */
@media (max-width: 992px) {
    .hero {
        padding: 40px 15px;
        background-image: linear-gradient(rgba(245, 249, 245, 0.9), rgba(245, 249, 245, 0.9)), url('../images/virag2.jpg');
        background-position: center;
    }

    .hero-extra-box.intro-box {
        position: relative !important; /* Kiszabadítjuk a rögzített pozícióból */
        left: 0 !important; /* Középre húzzuk mobilon */
        top: 0 !important; /* Töröljük a rácsúszást okozó eltolást */
        width: 100%;
        padding: 30px 20px;
        background-color: white; /* Mobilon jobb a tiszta fehér háttér a sok szöveghez */
        box-shadow: none;
    }

    .hero-extra-box.intro-box p {
        font-size: 16px;
        line-height: 1.6;
        text-align: left; /* Mobilon olvashatóbb a balra zárt */
        margin-bottom: 15px;
    }
    
    .hero-signature {
        font-size: 22px;
    }
}

/* Térkép elhelyezkedése */
.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    margin-top: 0; /* A .hero már eltolja magától */
    display: block;
}

/* ============================================================
    6. OLDALAK ÉS FOOTER
   ============================================================ */
.page { display: none; }
.page.active { display: block; }

.map-container {
    width: 100%;
    height: 450px;
    margin-top: 50px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer {
    background-color: #2e7d32;
    color: white;
    padding: 60px 20px 30px;
    margin-top: 0;
}
/* ============================================================
    7. MOBIL MENÜ - VÉGLEGES JAVÍTÁS
   ============================================================ */
@media (max-width: 992px) {
    .header-wrapper {
        position: fixed;
        transform: none !important;
    }

    .contact-bar {
        flex-direction: column;
        height: auto;
        padding: 12px 10px;
        text-align: center;
        gap: 8px;
    }

    .contact-info {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    /* Hamburger */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 2000;
        padding: 10px;
        grid-column: 3;
        justify-self: end;
    }

    .hamburger span {
        width: 35px;
        height: 4px;
        background-color: #2e7d32 !important;
        border-radius: 2px;
        transition: 0.3s;
    }

    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        padding: 0 15px;
    }

    .nav-logo {
        justify-self: center;
        grid-column: 2;
    }
    
    .nav-logo img { 
        height: 70px; 
    }

    /* MOBIL MENÜ */
    .nav-left, 
    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: white;
        padding: 100px 20px 40px;
        transition: right 0.4s ease;
        z-index: 1500;
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        overflow-y: auto;
        display: block;
    }

    .nav-left.mobile-active, 
    .nav-right.mobile-active {
        right: 0;
    }

    /* Fő menüpontok */
    .nav-left > li,
    .nav-right > li {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }

    .nav-left > li > a,
    .nav-right > li > a {
        display: block;
        padding: 15px 20px;
        color: #1f5c2e;
        font-size: 18px;
        font-weight: 600;
        text-decoration: none;
        border-bottom: 1px solid #eee;
        background: white;
    }

    /* DROPDOWN MENÜK - FONTOS RÉSZ */
    .nav-left .dropdown-menu,
    .nav-left .submenu {
        display: block !important;
        position: relative !important;
        background: #f5f5f5 !important;
        width: 100% !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-left .submenu {
        background: #e8f5e8 !important;
        padding-left: 20px !important;
    }

    .nav-left .dropdown-menu li,
    .nav-left .submenu li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-left .dropdown-menu a,
    .nav-left .submenu a {
        display: block !important;
        padding: 12px 30px !important;
        color: #1f5c2e !important;
        font-size: 16px !important;
        text-decoration: none !important;
        border-bottom: 1px solid #ddd !important;
        background: transparent !important;
    }

    .nav-left .submenu a {
        padding-left: 50px !important;
    }

    /* Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1400;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    body.menu-open {
        overflow: hidden;
    }

    .dahlia-gallery { 
        height: 680px; 
    }
    
    .gallery-group { 
        flex-wrap: wrap; 
        gap: 10px; 
    }
    
    .photo-card { 
        width: calc(50% - 10px); 
        height: 160px; 
    }
}

/* ============================================================
    8. WELCOME SZÖVEG FORMÁZÁSA (minden nézetre)
   ============================================================ */
.welcome-text {
    text-align: center;
    padding: 40px 20px 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: #2e7d32;
    margin-bottom: 10px;
    font-weight: 700;
}

.welcome-text p {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    color: #444;
    font-weight: 400;
}

/* MOBIL DRAWER MENÜ */

.hamburger{
display:none;
}

.mobile-menu{
display:none;
}

@media (max-width:992px){

.hamburger{
display:flex;
flex-direction:column;
gap:6px;
cursor:pointer;
z-index:3000;
}

.hamburger span{
width:30px;
height:3px;
background:#1f5c2e;
}

/* DESKTOP MENÜK ELTÜNTETÉSE */

.nav-left,
.nav-right{
display:none;
}

/* MOBIL MENÜ */

.mobile-menu{
display:block;
position:fixed;
top:0;
right:-100%;
width:80%;
max-width:340px;
height:100vh;
background:white;
z-index:2000;
transition:0.35s;
padding:100px 25px 40px;
overflow-y:auto;
box-shadow:-5px 0 30px rgba(0,0,0,0.15);
}

.mobile-menu.active{
right:0;
}

.mobile-menu ul{
list-style:none;
}

.mobile-menu li{
border-bottom:1px solid #eee;
}

.mobile-menu a{
display:block;
padding:14px 0;
font-size:18px;
font-weight:600;
color:#1f5c2e;
text-decoration:none;
}

}

/* ============================================================

    TERMÉK RÁCS (GRID) ELRENDEZÉS

   ============================================================ */

.product-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr); /* 3 egyenlő oszlop */

    gap: 30px; /* Távolság a kártyák között */

    padding: 40px 20px;

    max-width: 1200px;

    margin: 0 auto;

}



.product-card {

    background: #fff;

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0,0,0,0.05);

    transition: transform 0.3s ease;

    border: 1px solid #eee;

}



.product-card:hover {

    transform: translateY(-5px); /* Kicsit megemelkedik ha ráviszed az egeret */

}



.product-image {

    width: 100%;

    height: 250px; /* Fix magasság a képeknek */

    overflow: hidden;

}



.product-image img {

    width: 100%;

    height: 100%;

    object-fit: cover; /* Kitölti a helyet torzítás nélkül */

}



.product-info {

    padding: 20px;

    text-align: center;

}



.product-info h3 {

    font-family: 'Playfair Display', serif;

    color: #1f5c2e;

    font-size: 20px;

    margin-bottom: 8px;

}



.product-info p {

    font-size: 14px;

    color: #666;

    line-height: 1.4;

}



/* MOBIL NÉZET: 1 vagy 2 oszlop */

@media (max-width: 992px) {

    .product-grid {

        grid-template-columns: repeat(2, 1fr); /* Táblagépen 2 oszlop */

    }

}



@media (max-width: 600px) {

    .product-grid {

        grid-template-columns: 1fr; /* Mobilon 1 oszlop */

        gap: 20px;

    }

    .product-image {

        height: 200px;

    }

}



/* ============================================================

    ÖRÖKZÖLDEK SPECIFIKUS LEÍRÁS STÍLUS - JAVÍTOTT

   ============================================================ */

.category-intro {

    padding: 60px 20px;

    background-color: #f5f9f5;

    text-align: center;

}



.intro-content {

    max-width: 900px;

    margin: 0 auto;

}



.intro-content h2 {

    font-family: 'Playfair Display', serif;

    font-size: 48px;

    color: #2e7d32;

    margin-bottom: 30px;

    font-weight: 700;

}



.intro-text-box {

    background-color: rgba(255, 255, 255, 0.5);

    padding: 40px;

    border-radius: 4px;

    border-left: 5px solid #2e7d32;

    box-shadow: 0 10px 30px rgba(0,0,0,0.05);

}



.intro-text-box p {

    font-family: 'Raleway', sans-serif;

    font-size: 19px;

    color: #333; /* Ez marad sötétszürke az olvashatóság miatt, mint az eredeti kódban */

    line-height: 1.8;

    margin-bottom: 20px;

    text-align: justify;

}



.intro-text-box p:last-child {

    margin-bottom: 0;

}



/* Mobil nézet optimalizálás */

@media (max-width: 768px) {

    .intro-content h2 { font-size: 32px; }

    .intro-text-box { padding: 25px; }

    .intro-text-box p { font-size: 16px; }

}



/* Footer általános és mobil finomítások */

.footer {

    background-color: #2d5a27; /* Elegánsabb mélyzöld */

    color: #ffffff;

    padding: 40px 20px 20px 20px;

    font-family: 'Raleway', sans-serif;

    text-align: center;

}



.footer-container {

    display: flex;

    flex-direction: column;

    gap: 35px; /* Megfelelő távolság a szekciók között */

    max-width: 500px;

    margin: 0 auto;

}



.footer-section h3 {

    font-family: 'Playfair Display', serif;

    font-size: 1.4rem;

    margin-bottom: 15px;

    color: #ffffff;

    border-bottom: 1px solid rgba(255,255,255,0.2);

    padding-bottom: 10px;

    display: inline-block;

    min-width: 150px;

}



/* --- FOOTER ALAPSTÍLUS (Mobil és általános) --- */

.footer {

    background-color: #2d5a27; /* Sötétzöld háttér */

    color: #ffffff;

    padding: 60px 20px 20px 20px;

    font-family: 'Raleway', sans-serif;

    text-align: center; /* Mobilon maradjon középen */

}



.footer-container {

    max-width: 1200px;

    margin: 0 auto;

    display: flex;

    flex-direction: column; /* Mobilon egymás alatt */

    gap: 40px;

}



.footer-section h3 {

    font-family: 'Playfair Display', serif;

    font-size: 1.5rem;

    margin-bottom: 20px;

    color: #ffffff;

    position: relative;

    padding-bottom: 10px;

    border-bottom: 1px solid rgba(255,255,255,0.2);

}



.footer-section p, .footer-section a {

    color: #f1f1f1 !important; /* Világos szöveg a jó olvashatóságért */

    text-decoration: none;

    line-height: 1.8;

    margin: 5px 0;

    transition: color 0.3s;

}



.footer-section a:hover {

    color: #a8e09a !important;

}



.footer-section ul {

    list-style: none;

    padding: 0;

}



/* Közösségi ikonok */

.social-links {

    margin-top: 15px;

    display: flex;

    justify-content: center;

    gap: 15px;

}



.social-links a {

    font-size: 1.4rem;

    background: rgba(255,255,255,0.1);

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

}



/* --- ASZTALI NÉZET (768px felett) --- */

@media (min-width: 768px) {

    .footer {

        text-align: left; /* Gépen balra zárt szöveg */

    }



    .footer-container {

        flex-direction: row; /* Itt váltunk: egymás mellé kerülnek az oszlopok */

        justify-content: space-between;

        align-items: flex-start;

    }



    .footer-section {

        flex: 1; /* Egyenlő szélességű oszlopok */

    }



    .social-links {

        justify-content: flex-start; /* Ikonok balra */

    }



    .footer-section h3::after {

        content: '';

        position: absolute;

        left: 0;

        bottom: -1px;

        width: 50px;

        height: 2px;

        background-color: #a8e09a;

    }

}



/* Alsó sáv */

.footer-bottom {

    margin-top: 50px;

    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,0.1);

    text-align: center;

    font-size: 0.9rem;

    color: #bdc3c7;

}

/* --- MOBIL MENÜ ALAPOK --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Alapból rejtve */
    width: 80%;
    max-width: 340px;
    height: 100vh;
    background: white;
    z-index: 3000;
    padding: 80px 25px 40px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
    overflow-y: auto;
}

.mobile-menu.active { right: 0; }

/* Hamburger (X) animáció a menün belül */
.mobile-menu .hamburger {
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu .hamburger span {
    width: 30px;
    height: 3px;
    background: #1f5c2e;
    transition: 0.3s;
}

/* X állás */
.mobile-menu .hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu .hamburger.open span:nth-child(2) { opacity: 0; }
.mobile-menu .hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- HIERARCHIA ÉS LENYÍLÓK --- */
.mobile-submenu, .inner-submenu {
    display: none; /* Alapból csukva */
    list-style: none;
    background: #f8faf8;
    padding-left: 15px;
}

/* Aktív állapotban jelenjen meg */
.mobile-dropdown.active > .mobile-submenu,
.has-inner-submenu.active > .inner-submenu {
    display: block;
}

.mobile-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #1f5c2e;
    text-decoration: none;
    font-weight: 600;
}

/* Kis ikon forgatása nyitáskor */
.active > a i { transform: rotate(180deg); }

@media (max-width: 992px) {
    /* Megnöveljük a távolságot mobilon, hogy ne lógjon alá a szöveg */
    .nav-spacer {
        height: 220px !important; 
    }

    /* Opcionális: kicsit lejjebb toljuk az üdvözlő szöveget, hogy szellősebb legyen */
    .welcome-text {
        padding-top: 20px;
    }
}
.header-wrapper.scrolled {
    /* ide jön a zsugorítás, pl. padding csökkentés */
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}