/* Alapvető reset és tipográfia */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Linkek és címsorok */
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004499;
}

h1, h2, h3, h4, h5, h6 {
    color: #222;
    margin-bottom: 15px;
    font-weight: 600;
}

h1 { font-size: 2.5rem; margin-top: 20px;}
h2 { font-size: 2rem; margin-top: 30px; margin-bottom: 20px;}
h3 { font-size: 1.5rem; color: #0066cc;}
p { margin-bottom: 15px; font-size: 1.1rem;}
img { max-width: 100%; height: auto; border-radius: 5px; display: block; }

/* Közös tartály (Container) */
.header-container,
.site-main,
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* ======= TISZTA FEJLÉC ÉS MENÜ ======= */
.site-header {
    border-bottom: 1px solid #eee;
    background: #fff;
    position: relative;
    z-index: 999;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 60px; /* Szabályozott logó méret */
    width: auto;
    min-width: 200px;
}

/* Főmenü */
.main-nav {
    display: block;
}

.menu {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.menu > li {
    position: relative;
}

.menu a {
    color: #333;
    font-weight: bold;
    padding: 12px 20px;
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.95rem;
    border-radius: 6px;
}

.menu a:hover {
    background-color: #f4f7f6;
    color: #0066cc;
}

/* Legördülő menü (Asztali) */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    z-index: 1000;
    border: 1px solid #eee;
}

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

.dropdown li {
    width: 100%;
}

.dropdown a {
    padding: 10px 20px;
    display: block;
    border-radius: 0;
    text-transform: none;
    font-size: 1rem;
    font-weight: 500;
}

.dropdown a:hover {
    background: #f4f7f6;
    padding-left: 25px; /* Kis animáció a hovernél */
}

/* HAMBURGER MENÜ (Pure CSS) */
.menu-toggle-checkbox {
    display: none;
}

.menu-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle-label span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ======= FŐOLDALI ÉS ALOLDALI SZEKCIÓK ======= */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #f4f7f6;
    border-radius: 12px;
    margin-bottom: 50px;
}

.hero-section h1 { color: #004499; }
.hero-section p { max-width: 800px; margin: 0 auto 30px auto; color: #555; }

.services-section, .steps-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.service-card, .step-card {
    flex: 1 1 250px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s ease;
}
.service-card { text-align: center; }

.step-card h3 { display: flex; align-items: center; gap: 10px; }
.step-number {
    background: #0066cc; color: #fff; width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; flex-shrink: 0;
}

.service-card:hover, .step-card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.05); }

.features-section, .guarantee-section {
    background-color: #004499; color: #fff; padding: 50px; border-radius: 12px; margin-bottom: 50px;
}
.features-section h2, .guarantee-section h2 { color: #fff; text-align: center; }
.features-list { list-style: none; max-width: 600px; margin: 0 auto; font-size: 1.15rem; }
.features-list li { margin-bottom: 15px; padding-left: 10px; }
.guarantee-section p { text-align: center; max-width: 800px; margin: 0 auto; }

.cta-section { text-align: center; padding: 40px 20px; border-top: 2px dashed #eee; }

/* GOMBOK */
.elementor-button, button, input[type="submit"] {
    display: inline-block; padding: 12px 25px; background-color: #0066cc; color: #fff;
    border: none; border-radius: 6px; cursor: pointer; font-weight: bold; text-align: center; font-size: 1.1rem;
}
.elementor-button:hover, button:hover, input[type="submit"]:hover { background-color: #004499; }

/* GYIK HARMONIKA */
.faq-section { max-width: 800px; margin: 0 auto 50px auto; }
details.faq-item { background: #f9f9f9; border-radius: 8px; margin-bottom: 15px; border: 1px solid #eee; overflow: hidden; }
details.faq-item summary {
    font-weight: bold; font-size: 1.2rem; padding: 20px; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; background: #fff; color: #004499;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; font-size: 1.5rem; font-weight: bold; color: #0066cc; }
details.faq-item[open] summary::after { content: '−'; }
details.faq-item p { padding: 20px; margin: 0; border-top: 1px solid #eee; background: #f4f7f6; color: #444; }

/* ======= TISZTA LÁBLÉC ======= */
.site-footer {
    background: #f4f7f6;
    padding: 50px 20px;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-logo {
    max-width: 250px;
    margin-bottom: 10px;
}

.footer-credits {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    width: 100%;
    color: #666;
    font-size: 0.9rem;
}

.footer-credits a {
    font-weight: bold;
    color: #004499;
}

/* ======= MOBIL NÉZET ÉS HAMBURGER MENÜ ======= */
@media screen and (max-width: 768px) {
    /* Menü gomb megjelenítése */
    .menu-toggle-label {
        display: flex;
    }

    /* A főmenü elrejtése alapból */
    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 15px 20px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .menu {
        flex-direction: column;
        align-items: stretch;
    }

    .menu a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #f9f9f9;
        font-size: 1.1rem;
    }

    /* Legördülő (Almenü) mobilon mindig látható (kicsit behúzva) */
    .dropdown {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
    }

    .dropdown a {
        padding-left: 40px;
        background: #fafafa;
        font-size: 0.95rem;
        color: #555;
    }

    /* HA BE VAN PIPÁLVA A CHECKBOX -> JELENJEN MEG A MENÜ */
    .menu-toggle-checkbox:checked ~ .main-nav {
        display: block;
    }

    /* Hamburger ikon X-szé alakítása */
    .menu-toggle-checkbox:checked + .menu-toggle-label span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle-checkbox:checked + .menu-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle-checkbox:checked + .menu-toggle-label span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* További mobilos igazítások */
    .hero-section { padding: 40px 15px; }
    .hero-section h1 { font-size: 2rem; }
    .services-section, .steps-section { flex-direction: column; }
    .service-card, .step-card { width: 100%; }
}

/* Extra Info Section (Főoldal turbó) */
.extra-info-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background: #fdfdfd;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.extra-info-section .info-content {
    flex: 1 1 400px;
}

.extra-info-section .info-content h2 {
    color: #004499;
    font-size: 2rem;
    margin-bottom: 20px;
}

.extra-info-section .info-image {
    flex: 1 1 400px;
}

.extra-info-section .info-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
}

/* Lábléc partner link formázás */
.footer-partner-link {
    display: inline-block;
    color: #0066cc;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 5px 15px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #cce0ff;
    transition: all 0.3s ease;
}

.footer-partner-link:hover {
    background: #0066cc;
    color: #fff;
}

@media screen and (max-width: 768px) {
    .extra-info-section {
        padding: 20px;
        flex-direction: column-reverse;
    }
}
