/* MAGYAR MEGJEGYZÉS: Globális változók és modern alapbeállítások */
:root {
    --primary-color: #1a365d;
    --accent-color: #d97706;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --border-color: #cbd5e1;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Roboto, sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; }

/* Fejléc és Menü (Mobilra felkészítve) */
header { background: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); text-decoration: none; }
.logo span { color: var(--accent-color); }

nav ul { display: flex; list-style: none; gap: 1rem; }
nav a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; transition: 0.3s; padding: 0.5rem; }
nav a:hover, nav a.active { color: var(--accent-color); }

/* Konténerek */
.container { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
.hero { background: linear-gradient(rgba(26,54,93,0.85), rgba(26,54,93,0.85)), url('https://images.unsplash.com/photo-1584463673322-a0e28f322309?auto=format&fit=crop&w=1200&q=80'); background-size: cover; background-position: center; color: white; padding: 3rem 1.5rem; text-align: center; border-radius: 8px; margin-bottom: 2rem; }
.hero h1 { font-size: 2.2rem; margin-bottom: 1rem; word-wrap: break-word; }
.hero p { font-size: 1.1rem; max-width: 700px; margin: 0 auto 1.5rem auto; }

/* Dinamikus Mobil Rácsrendszer */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin: 1.5rem 0; }
.card { background: white; padding: 1.25rem; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 4px 6px rgba(0,0,0,0.03); }
.card h3 { color: var(--primary-color); margin-bottom: 0.5rem; }

/* Űrlap Mobileszközökre */
.form-container { background: white; padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border-color); margin-top: 2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem; border: 1px solid var(--border-color); border-radius: 4px; font-size: 1rem; -webkit-appearance: none; }
.btn { display: block; background: var(--accent-color); color: white; padding: 0.9rem 1.5rem; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; text-decoration: none; text-align: center; width: 100%; font-size: 1.1rem; }
.btn:hover { background: #b45309; }

footer { background: var(--primary-color); color: white; text-align: center; padding: 2rem 1rem; margin-top: 3rem; }
footer a { color: #fef08a; text-decoration: none; }

/* HAMBURGER MENÜ ALAPBEÁLLÍTÁSOK ASZTALI NÉZETBEN (REJTVE) */
.menu-checkbox { display: none !important; }
.hamburger-btn { display: none; }

/* =================================================== */
/* MOBIL ÉS TABLET MEDIA QUERIES (RESPONSIVE DESIGN)  */
/* =================================================== */

@media (max-width: 768px) {
    /* ITT VAN A HAMBURGER MENÜ STRUKTÚRA */
    .nav-container { 
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
    }

    /* Hamburger ikon gomb formázása */
    .hamburger-btn { 
        display: block !important; 
        font-size: 2rem; 
        color: var(--primary-color); 
        cursor: pointer; 
        user-select: none; 
        padding: 5px; 
        line-height: 1;
    }

    /* Menü elrejtése alapállapotban */
    header nav { 
        display: none !important; 
        width: 100% !important; 
        position: absolute !important; 
        top: 100% !important; 
        left: 0 !important; 
        background-color: #ffffff !important; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important; 
        z-index: 9999 !important; 
    }

    header nav ul { 
        display: flex !important; 
        flex-direction: column !important; 
        padding: 0 !important; 
        margin: 0 !important; 
        list-style: none !important; 
    }

    header nav ul li { 
        width: 100% !important; 
        border-top: 1px solid var(--border-color) !important; 
    }

    header nav ul li a { 
        display: block !important; 
        padding: 12px 20px !important; 
        color: var(--text-dark) !important; 
        text-decoration: none !important; 
        background: transparent !important; 
        border-radius: 0 !important; 
    }

    /* CSS TRÜKK: Ha a checkbox be van pipálva, megjeleníti a menüt */
    .menu-checkbox:checked ~ nav { 
        display: block !important; 
    }

    /* Ikon cseréje (☰ -> ✕) kattintásra */
    .hamburger-btn::before { content: "☰"; }
    .menu-checkbox:checked ~ .hamburger-btn::before { content: "✕"; }

    /* Betűméretek és térközök mobilra igazítása */
    .hero { padding: 2rem 1rem; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.95rem; }

    .container { padding: 0 0.8rem; margin: 1rem auto; }
    .form-container { padding: 1.2rem; }
    
    /* Gombok és beviteli mezők mobilra formázása */
    .btn { font-size: 1rem; padding: 1rem; }
}

/* MAGYAR MEGJEGYZÉS: Főoldali 2x2-es elrendezés asztali nézetben */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Pontosan 2 oszlop */
    gap: 2rem; /* Szép rés a kártyák között */
    max-width: 900px; /* Középre igazított optimális szélesség */
    margin: 2rem auto;
}

/* Mobilon automatikusan átvált 1 oszlopra */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

/* Hero elrendezés képpel */
.hero-with-image {
    background: var(--primary-color);
    color: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}
.hero-img-box img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid rgba(255,255,255,0.2);
}
@media (max-width: 768px) {
    .hero-with-image { grid-template-columns: 1fr; padding: 2rem 1rem; text-align: center; }
    .hero-img-box img { height: 200px; }
}

.nav-container nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
}
.nav-container nav ul li a {
    white-space: nowrap;
}

/* MAGYAR MEGJEGYZÉS: Galéria Grid Stílusok */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    background-color: #e2e8f0; /* Képbetöltési háttérszín */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* Mobilon egy oszlopban jelenjenek meg */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}