:root {
    --primary: #2d5a27;
    --primary-dark: #1e3d1a;
    --accent: #8d775f;
    --bg-light: #f4f7f4;
    --white: #ffffff;
    --text: #333333;
}

/* --- ALAP BEÁLLÍTÁSOK --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth; /* Simább görgetés a nyílnak */
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    font-family: 'Poppins', sans-serif; 
    color: var(--text); 
    line-height: 1.6; 
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    width: 100%;
}

.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* Grid javítás asztali nézetben */
.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    align-items: center; 
}

/* --- NAVBAR (Rögzített megoldás) --- */
.navbar { 
    background: var(--white); 
    height: 80px; 
    display: flex; 
    align-items: center; 
    position: fixed; /* Fixen felül marad görgetéskor */
    top: 0; 
    left: 0;
    width: 100%;
    z-index: 2000; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.08); 
    transition: 0.3s;
}

.navbar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 900; 
    font-size: 1.6rem; 
    color: var(--primary); 
    text-decoration: none;
}

.logo img {
    height: 50px; 
    width: auto;
    object-fit: contain;
}

.logo span { color: var(--accent); }

/* --- HAMBURGER MENU --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 2001;
    padding: 5px;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    transition: 0.3s;
    border-radius: 2px;
}

.nav-links { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }
.btn-nav { background: var(--primary); color: white !important; padding: 10px 20px; border-radius: 5px; }

/* --- HERO SECTION (A fix navbar miatt padding-top kell) --- */
.hero { 
    margin-top: 80px;
    height: calc(85vh - 80px); 
    min-height: 500px;
    position: relative; 
    color: white; 
    display: flex; 
    align-items: center; 
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('/assets/img/background.jpg') center/cover no-repeat;
}

.hero-content { max-width: 800px; width: 100%; }

.hero h1 { 
    font-family: 'Montserrat', sans-serif; 
    font-size: clamp(2.2rem, 8vw, 3rem); 
    line-height: 1.1; 
    margin-bottom: 20px; 
}

.hero h1 span { color: #5cb85c; }
.hero p { font-size: clamp(1rem, 4vw, 1.2rem); margin-bottom: 30px; }

/* Gombok */
.btn { 
    display: inline-block; 
    padding: 15px 30px; 
    border-radius: 5px; 
    font-weight: 700; 
    text-decoration: none; 
    transition: 0.3s; 
    cursor: pointer; 
    border: none; 
    text-align: center;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }
.btn-outline { border: 2px solid white; color: white; margin-left: 15px; }

/* --- ABOUT --- */
.about-img { position: relative; width: 100%; }
.about-img img { width: 100%; border-radius: 10px; box-shadow: 15px 15px 0 var(--primary); }
.experience-badge { position: absolute; bottom: -20px; right: 20px; background: var(--accent); color: white; padding: 20px; border-radius: 5px; z-index: 5; }
.about-items { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.about-items .item { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--primary); background: var(--bg-light); padding: 15px; border-radius: 8px; }

/* --- SERVICES --- */
.section-title { font-family: 'Montserrat', sans-serif; font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 40px; color: var(--primary); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card { background: white; padding: 40px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; transition: 0.3s; }
.service-card:hover { transform: translateY(-10px); }
.s-icon { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }

/* --- GALLERY --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.gallery-item { position: relative; height: 250px; overflow: hidden; border-radius: 10px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.g-hover { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(45,90,39,0.8); color: white; display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; font-weight: 700; }
.gallery-item:hover .g-hover { opacity: 1; }

/* --- CONTACT --- */
.c-box { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.c-item { display: flex; align-items: center; gap: 15px; padding: 15px; background: var(--bg-light); border-radius: 10px; }
.c-icon { width: 45px; height: 45px; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.contact-form { background: var(--white); padding: 30px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); width: 100%; }
.contact-form input, .contact-form textarea { width: 100%; 
    padding: 16px; 
    margin-bottom: 20px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    font-family: inherit; 
    font-size: 1.1rem; 
    color: var(--text);
}
.contact-form input::placeholder, 
.contact-form textarea::placeholder {
    color: #757575; 
    opacity: 1;
}
.contact-form .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 8px;
}
.contact-info > p:first-of-type { 
    margin-bottom: 45px; 
}
.contact-info address {
    font-style: normal; /* Ez kényszeríti az egyenes betűstílust */
}

/* --- VISSZA A TETEJÉRE NYÍL --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    z-index: 1500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0; /* Alapértelmezetten rejtve */
    visibility: hidden;
    transition: 0.3s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* --- FOOTER --- */
footer { padding: 40px 0; text-align: center; background-color: #1a1a1a; color: #ffffff; }

/* --- MOBIL RESPONSIVE JAVÍTÁSOK --- */
@media (max-width: 768px) {
    .section { padding: 50px 0; }
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    
    .logo img { height: 40px; }
    .logo { font-size: 1.3rem; }

    .menu-toggle { display: flex; }

    /* Hamburger Aktív Állapot */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Nav Lenyíló */
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: calc(100vh - 80px);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 40px 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active { left: 0; }
    .nav-links li { margin: 15px 0; width: 100%; }
    .nav-links a { font-size: 1.2rem; display: block; }

    /* Hero Gombok Egymás Alá */
    .btn-outline { margin-left: 0; margin-top: 15px; }
    .btn { width: 100%; display: block; }

    /* About szekció mobilon */
    .about-items { grid-template-columns: 1fr; }
    .about-img img { box-shadow: 10px 10px 0 var(--primary); }
    
    .scroll-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }
}

/* --- COOKIE BOX (BAL OLDALRA) --- */
.cookie-box {
    position: fixed;
    bottom: 30px;
    left: -450px; /* Alaphelyzetben rejtve balra */
    width: 320px;
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    z-index: 9999; /* Legmagasabb réteg, hogy mobilon is kattintható legyen */
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid #eee;
}

.cookie-box.show {
    left: 30px;
}

.cookie-content h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

.cookie-content p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.cookie-content a {
    color: var(--accent);
    text-decoration: underline;
}

.btn-cookie {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
    touch-action: manipulation; /* Segít a mobil érintés érzékelésében */
}

.btn-cookie:hover {
    background: var(--primary-dark);
}

/* Mobil nézet */
@media (max-width: 480px) {
    .cookie-box {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    .cookie-box.show {
        left: 20px;
    }
}