/* ==========================================================================
   1. GLOBÁLIS BEÁLLÍTÁSOK & ALAPOK
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #e2edd9; /* Világoszöld háttér a kép alapján */
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* ==========================================================================
   2. FEJLÉC (LOGÓ ÉS CÉGNÉV)
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 3px solid #4a6b42;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-section img {
    width: auto;
    height: 150px; 
    object-fit: contain;
}

.company-title h1 {
    font-size: 26px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.company-title p {
    font-style: italic;
    color: #555;
    font-weight: bold;
}

/* ==========================================================================
   3. MODERNEBB, TAGOLTABB NAVIGÁCIÓS MENÜSOR (Javított, stabil verzió)
   ========================================================================== */
nav {
    background-color: #2c4426; /* Alap mélyzöld szín */
    margin-top: 20px;
    position: relative;
    z-index: 1000; 
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08); /* Finom árnyék, hogy elváljon a fehér háttértől */
    padding: 2px 5px; /* Apró belső keret a gombok körül */
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

nav ul li {
    position: relative;
}

/* Elegáns, vékony függőleges elválasztó vonal a menüpontok közé */
nav ul li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%; /* Nem ér végig, így nagyon diszkrét marad */
    width: 1px;
    background-color: rgba(255, 255, 255, 0.15); /* Halvány fehér elválasztó */
    /* KRITIKUS JAVÍTÁS: az egér átlát ezen a vonalon, így nem akad el a lenyíló menü */
    pointer-events: none; 
}

nav ul li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px; /* Szellős elrendezés a könnyebb kattintásért */
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px; /* Olvashatóbb, nyújtottabb betűk */
    border-radius: 4px; /* Finoman lekerekített gomb-hatás kijelöléskor */
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Kijelölési (Hover) effekt */
nav ul li:hover > a {
    background-color: #4a6b42; /* Világosabb fűzöld gomb kiemelés */
    color: #ffffff;
}

/* ==========================================================================
   ALMENÜK (DROPDOWN) FINOMHANGOLÁSA (Határozott, sötétebb kijelöléssel)
   ========================================================================== */
nav ul li ul.dropdown {
    display: none;
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-top: 3px solid #4a6b42;
    border-radius: 0 0 4px 4px;
    padding-top: 5px; 
    padding-bottom: 5px;
}

/* Biztosítjuk, hogy az almenü megjelenjen, ha a szülő LI elem fölé visszük az egeret */
nav ul li:hover ul.dropdown {
    display: block !important;
}

/* Az almenüben természetesen nincs szükség a függőleges elválasztókra */
nav ul li ul.dropdown li::after {
    display: none !important;
}

nav ul li ul.dropdown li a {
    color: #333333 !important;
    padding: 10px 18px !important;
    border-bottom: 1px solid #f5f5f5;
    font-weight: normal !important;
    border-radius: 0 !important; /* Az almenüben marad a klasszikus lista dizájn */
    background-color: transparent !important; /* Alaphelyzetben nincs zöld háttér */
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* JAVÍTÁS: Sötétebb, jól látható zöld háttér és fehér betűk az almenü kijelölésekor */
nav ul li ul.dropdown li a:hover {
    background-color: #4a6b42 !important; /* Erősebb fűzöld háttér */
    color: #ffffff !important;           /* Fehér betűszín a tökéletes kontrasztért */
    font-weight: 600 !important;
}

/* ==========================================================================
   4. FŐOLDAL SPECIFIKUS FOTÓS SZEKCIÓ (KÖZÉPRE IGAZÍTÁS & FIX SLIDER)
   ========================================================================== */
main {
    margin-top: 30px;
}

.slogan {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #222;
    margin-bottom: 30px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center; /* Függőlegesen tökéletesen egy vonalba hozza a két oldalt */
}

/* Új, garantáltan középre zárt konténer a profiloknak a kép mellett */
.management-centered-container {
    display: flex;
    gap: 25px; 
    justify-content: center; /* Vízszintesen is középre rendezi a fotókat */
    align-items: center;
    width: 100%;
}

.profile-card {
    text-align: center;
    width: 130px;
}

.sharp-profile {
    max-width: 120px;
    height: auto; 
    border: 1px solid #999;
    margin-bottom: 10px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.profile-card h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.profile-card p {
    font-size: 12px;
    color: #666;
}

/* Fix méretű képpufferelő doboz az ugrálások ellen */
.slider-fixed-box {
    width: 100%;
    max-width: 450px;
    height: 280px;
    position: relative;
    overflow: hidden;
    border: 1px solid #bbb;
    border-radius: 4px;
    background-color: #ffffff;
}

/* Abszolút pozicionált rétegek a rángatózásmentes kereszt-áttűnéshez */
.slider-layer {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1.5s ease-in-out; /* Lágy, finom egymásba mosódás */
}

.layer-visible { opacity: 1; z-index: 2; }
.layer-hidden { opacity: 0; z-index: 1; }

.lab-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   5. ÁLTALÁNOS SZÖVEGFORMÁZÁS, LISTÁK ÉS DOBOZOK
   ========================================================================== */
.content-text h2 {
    color: #4a6b42;
    border-bottom: 2px solid #e2edd9;
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
    text-transform: uppercase;
}

.content-text p {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 15px;
}

.content-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-text ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

.info-box {
    background-color: #f4f9f1;
    border-left: 4px solid #4a6b42;
    padding: 15px;
    margin-top: 25px;
    margin-bottom: 20px;
}

/* ==========================================================================
   6. ALOLDAL SPECIFIKUS ELRENDEZÉSEK (GRID-EK)
   ========================================================================== */
.industry-grid, .feed-grid, .agro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.grid-header {
    font-weight: bold;
    color: #4a6b42;
    border-bottom: 2px solid #4a6b42;
    padding-bottom: 8px;
}

.grid-question, .grid-left {
    font-weight: 500;
    color: #333;
    padding-top: 10px;
}

.grid-answer, .grid-right {
    color: #555;
    text-align: justify;
    padding-top: 10px;
    font-size: 14.5px;
}

.env-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.section-title {
    grid-column: span 2;
    font-size: 20px;
    font-weight: bold;
    color: #222;
    margin-top: 20px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
}

.service-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
    align-items: start;
}

.service-image-placeholder {
    width: 100%;
    height: 220px;
    background-color: #ddd;
    border: 1px solid #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    border-radius: 4px;
}

.param-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-top: 1px solid #eee;
}

.param-row { display: contents; }

.param-label {
    padding: 15px 10px;
    font-weight: bold;
    color: #4a6b42;
    border-bottom: 1px solid #eee;
}

.param-value {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    font-size: 14.5px;
    text-align: justify;
}

.advisory-box {
    background: #f4f9f1;
    padding: 20px;
    border-left: 4px solid #4a6b42;
    margin-top: 20px;
}

.feed-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.feed-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 4px;
}

.feed-card h3 {
    color: #4a6b42;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid #e2edd9;
    padding-bottom: 5px;
}

.feed-card-placeholder {
    width: 100%;
    height: 180px;
    background-color: #eee;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin-bottom: 15px;
}

.feed-list {
    list-style: square;
    padding-left: 20px;
    font-size: 14px;
}

.feed-list li {
    padding: 4px 0;
    color: #555;
}

.feed-list li b { color: #333; }

.agro-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.agro-img-box { text-align: center; }

.agro-placeholder-box {
    width: 100%;
    height: 240px;
    background-color: #ddd;
    border: 1px solid #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    border-radius: 4px;
}

.test-box {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-left: 4px solid #4a6b42;
}

.test-box h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.test-details {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.water-section {
    background: #fff;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-top: 30px;
}

.param-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    font-size: 14px;
    margin-top: 25px;
}

.column-list {
    list-style: square;
    padding-left: 20px;
}

.column-list li {
    color: #555;
    padding: 3px 0;
}

.water-flex {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    align-items: center;
}

.water-img-placeholder {
    width: 280px;
    height: 160px;
    background-color: #ddd;
    border: 1px solid #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.investment-section { margin-top: 25px; }

.history-box {
    background-color: #f4f9f1;
    border-left: 4px solid #4a6b42;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 4px 4px 0;
}

.history-box h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.investment-text {
    font-size: 15.5px;
    text-align: justify;
    margin-bottom: 20px;
    color: #444;
}

.investment-gallery-title {
    font-weight: bold;
    color: #4a6b42;
    border-bottom: 2px solid #e2edd9;
    padding-bottom: 5px;
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 18px;
}

.investment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.investment-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.investment-placeholder {
    width: 100%;
    height: 260px;
    background-color: #ddd;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: 500;
}

.card-caption {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: #666;
    background-color: #fafafa;
    font-style: italic;
}

.company-intro-section { margin-top: 25px; }

.mission-quote {
    font-style: italic;
    background-color: #f4f9f1;
    border-left: 4px solid #4a6b42;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-size: 15px;
    color: #333;
}

.management-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 25px;
    margin-bottom: 30px;
}

.manager-profile {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.manager-profile h3 {
    color: #4a6b42;
    font-size: 18px;
    border-bottom: 2px solid #e2edd9;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.manager-title {
    font-size: 13px;
    font-weight: bold;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.highlight-badge-box {
    background-color: #fff;
    border: 1px dashed #4a6b42;
    padding: 15px;
    margin: 25px 0;
    border-radius: 4px;
}

.references-section { margin-top: 25px; }

.ref-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    margin-top: 25px;
}

.ref-list-container {
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    padding: 25px 20px;
    border-radius: 4px;
}

.ref-list-container h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2edd9;
    padding-bottom: 5px;
}

.partner-list {
    list-style: none;
    padding: 0;
}

.partner-list li {
    font-weight: bold;
    color: #444;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14.5px;
}

.guarantee-container h3 {
    color: #4a6b42;
    font-size: 20px;
    margin-bottom: 15px;
}

.guarantee-text {
    font-size: 15px;
    text-align: justify;
    line-height: 1.7;
    color: #444;
}

.guarantee-text p { margin-bottom: 15px; }

.badge-box {
    background-color: #f4f9f1;
    border-left: 4px solid #4a6b42;
    padding: 15px 20px;
    margin: 20px 0;
    font-weight: 500;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info h3 {
    color: #4a6b42;
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2edd9;
    padding-bottom: 5px;
}

.address-box {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.8;
}

.person-card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #4a6b42;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.person-card h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.person-card .title {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

.contact-link {
    display: inline-block;
    color: #1a5617;
    text-decoration: none;
    font-weight: 600;
    margin: 3px 0;
}

.contact-link:hover { text-decoration: underline; }

.map-container {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.downloads-section { margin-top: 25px; }

.downloads-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 25px;
}

.download-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    position: relative;
}

.download-card::before {
    content: "PDF";
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
}

.download-card h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
    padding-right: 40px;
}

.download-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.download-btn {
    display: inline-block;
    background-color: #4a6b42;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.download-btn:hover { background-color: #3b5435; }

/* ==========================================================================
   8. LÁBLÉC SZEKCIÓ
   ========================================================================== */
footer {
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px solid #ccc;
    font-size: 12px;
    color: #777;
    display: flex;
    justify-content: space-between;
}

.scroll-up {
    text-decoration: none;
    color: #4a6b42;
    font-weight: bold;
}

/* ==========================================================================
   9. MOBIL ÉS TABLET RESPOND KORREKCIÓK (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 768px) {
    .intro-grid, .industry-grid, .feed-grid, .agro-grid, .env-grid, 
    .service-section, .param-grid, .agro-layout, .ref-layout, 
    .contact-layout, .downloads-grid, .management-flex {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .section-title { grid-column: span 1; }
    
    .feed-container, .water-flex, .management-centered-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .param-columns { grid-template-columns: 1fr; }
    
    .param-label {
        padding-bottom: 5px;
        border-bottom: none;
    }
    
    .map-container { min-height: 300px; }
}

/* ==========================================================================
   LEBEGŐ EU INFOBLOKK KONTÉNER (X gomb a jobb felső ív felett)
   ========================================================================== */
.floating-eu-container {
    position: fixed;
    bottom: 0 !important; 
    right: 0 !important;  
    width: 500px; 
    z-index: 9999; 
    margin: 0;
    padding: 0;
    overflow: visible !important; /* Biztosítja, hogy az X gomb ne legyen levágva */
}

/* A logó kép stílusa */
.floating-eu-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 100% 0 0 0; 
    overflow: hidden; 
    filter: drop-shadow(-3px -3px 8px rgba(0,0,0,0.12)); 
}

/* A külső "X" bezáró gomb stílusa */
.eu-close-btn {
    position: absolute;
    /* JAVÍTÁS: Felfelé toljuk a fehér ív fölé, és a jobb szélre igazítjuk */
    top: -15px;        
    right: 15px; /* Beljebb hozzuk a böngésző szélétől, hogy kényelmesen látszódjon */
    z-index: 10000;
    
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.6); /* Kontrasztos sötét háttér */
    width: 26px;
    height: 26px;
    font-size: 20px;
    font-weight: bold;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    border: none; 
    padding: 0; 
}

/* Hover effekt a bezáró gombhoz */
.eu-close-btn:hover {
    background-color: rgba(231, 76, 60, 0.9); 
}

/* Mobil nézet korrekciója */
@media (max-width: 600px) {
    .floating-eu-container {
        width: 180px;
    }
    .eu-close-btn {
        top: -12px;
        right: 10px; 
        width: 22px;
        height: 22px;
        font-size: 16px;
        line-height: 18px;
    }
}