/* --- ALAPOK --- */
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, li { margin: 0; padding: 0; font-family: 'Montserrat', sans-serif; box-sizing: border-box; }
ul, li { list-style: none !important; }
body { background-color: #f8fbfc; color: #2c3e50; overflow-x: hidden; line-height: 1.6; }

/* --- HEADER ÉS INTERAKTÍV MENÜ --- */
.main-header { background: linear-gradient(135deg, #005f73 0%, #0a9396 50%, #94d2bd 100%); color: white; padding: 20px 0 10px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.header-top-row { display: flex; justify-content: center; margin-bottom: 15px; }
.header-logo img { height: 160px; width: auto; filter: brightness(0) invert(1); }

.header-nav { display: flex; justify-content: center; padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.header-nav ul { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }

.header-nav a { 
    color: white; 
    text-decoration: none; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
    letter-spacing: 1px; 
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    position: relative;
    padding: 5px 0;
}

/* Aláhúzás animáció */
.header-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #94d2bd;
    transition: 0.3s ease;
}

.header-nav a:hover { 
    color: #94d2bd; 
    transform: translateY(-3px); /* Finom emelkedés */
}

.header-nav a:hover::after {
    width: 100%; /* Beúszó aláhúzás */
}

/* Hamburger ikon alaphelyzete (Desktopon rejtve) */
.menu-toggle { display: none; }

/* --- HERO --- */
.hero { background: linear-gradient(135deg, rgba(0, 26, 36, 0.92) 0%, rgba(0, 75, 92, 0.85) 100%), url('img/epuletek/cosmo.jpg') center/cover no-repeat; color: white; text-align: center; padding: 140px 20px; border-bottom: 4px solid #0a9396; }
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 25px; line-height: 1.2; }
.hero .highlight { color: #94d2bd; }
.hero-badge { display: inline-block; background-color: rgba(148, 210, 189, 0.15); color: #94d2bd; padding: 8px 20px; border-radius: 30px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; border: 1px solid rgba(148, 210, 189, 0.3); }
.hero p { font-size: 1.2rem; max-width: 750px; margin: 0 auto 50px; opacity: 0.9; }

/* GOMBOK - EGYFORMA TÜRKIZ */
.hero-buttons { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; }
.btn-hero { 
    background-color: #0a9396; color: white; padding: 16px 40px; border-radius: 35px; 
    text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 0.9rem;
    border: 2px solid #0a9396; transition: 0.3s; min-width: 220px; text-align: center;
}
.btn-hero:hover { background-color: #005f73; border-color: #005f73; transform: translateY(-3px); }

/* --- SZOLGÁLTATÁSOK - 2X2 GRID --- */
.services { padding: 100px 20px; background-color: #001a24; text-align: center; }
.services h2 { color: white; margin-bottom: 50px; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 1000px; margin: 0 auto; }
.service-card { background-color: #002b3d; padding: 40px; border-radius: 15px; text-align: left; position: relative; border-top: 5px solid #0a9396; transition: 0.4s; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.service-card:hover { transform: translateY(-10px); background-color: #003a52; }
.service-icon { font-size: 3rem; color: #94d2bd; margin-bottom: 25px; }
.service-num { font-size: 4rem; font-weight: 900; color: rgba(255, 255, 255, 0.02); position: absolute; top: 10px; right: 20px; }
.service-card h3 { color: white; margin-bottom: 15px; font-weight: 700; }
.service-card p { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }

/* --- REFERENCIÁK GRID ÉS HOVER --- */
.references { padding: 100px 20px; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.gallery-item { background: white; border-radius: 10px; overflow: hidden; position: relative; transition: 0.3s; box-shadow: 0 10px 25px rgba(0,0,0,0.1); cursor: pointer; }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; display: block; }
.gallery-item h3 { padding: 20px; color: #005f73; font-weight: 700; }
.hover-overlay { position: absolute; top: 0; left: 0; right: 0; height: 240px; background: rgba(0, 95, 115, 0.8); color: white; display: flex; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; }
.gallery-item:hover .hover-overlay { opacity: 1; }

/* --- ÁRAJÁNLAT (PRÉMIUM ELRENDEZÉS) --- */
.quote-section { padding: 100px 20px; background: #005f73; }
.quote-container { display: flex; max-width: 1100px; margin: 0 auto; background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.quote-info { flex: 1; background: #001a24; color: white; padding: 50px; text-align: left; }
.quote-info h2 { color: #94d2bd; margin-bottom: 25px; font-size: 2rem; font-weight: 800; }
.quote-features li { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; font-weight: 600; }
.quote-features i { color: #94d2bd; }
.quote-form-box { flex: 1.5; padding: 50px; }
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea { width: 100%; padding: 14px; border: 2px solid #eef2f5; border-radius: 8px; font-family: inherit; }
.btn-submit { width: 100%; background: #005f73; color: white; border: none; padding: 18px; font-weight: 700; border-radius: 8px; cursor: pointer; font-size: 1.1rem; }

/* --- AAA SZEKCIÓ --- */
.aaa-section-dark { padding: 100px 20px; background-color: #001a24; text-align: center; }
.aaa-container { max-width: 900px; margin: 0 auto; border: 1px solid rgba(212, 175, 55, 0.4); padding: 60px 80px; border-radius: 20px; background: rgba(255, 255, 255, 0.02); }
.aaa-badge-text { color: #d4af37; font-weight: 800; letter-spacing: 5px; margin-bottom: 15px; }
.aaa-section-dark h2 { color: white; margin-bottom: 20px; font-size: 2.2rem; font-weight: 800; }
.aaa-section-dark p { color: rgba(255, 255, 255, 0.8); line-height: 1.9; font-size: 1.15rem; }

/* --- FOOTER (OSZLOPOS) --- */
.main-footer { background-color: #001a24; color: rgba(255, 255, 255, 0.7); padding: 80px 20px 40px; border-top: 4px solid #0a9396; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 50px; max-width: 1200px; margin: 0 auto; text-align: left; }
.footer-col { flex: 1; min-width: 280px; }
.footer-logo { height: 110px; filter: brightness(0) invert(1); margin-bottom: 25px; }
.footer-col h3 { color: white; margin-bottom: 25px; text-transform: uppercase; border-bottom: 2px solid #0a9396; display: inline-block; padding-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-col a:hover { color: #94d2bd; }
.footer-bottom { text-align: center; margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.makkai-credit span { color: #94d2bd; font-weight: 700; }

/* --- MODALOK --- */
.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); backdrop-filter: blur(10px); justify-content: center; align-items: center; }
.modal.show { display: flex; }
.modal-content { background: white; width: 90%; max-width: 950px; max-height: 90vh; border-radius: 24px; overflow-y: auto; position: relative; }
.modal-header-area { padding: 40px 50px 20px; border-bottom: 1px solid #f0f0f0; }
#modalTitle { color: #005f73; font-size: 2.2rem; font-weight: 800; }
.modal-tags span { background: #e0f2f1; color: #005f73; padding: 8px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; margin-right: 10px; display: inline-block; }
.modal-body-area { padding: 40px 50px 60px; }
#modalDesc { color: #444; line-height: 1.9; font-size: 1.15rem; border-left: 6px solid #0a9396; padding-left: 30px; margin-bottom: 50px; }
.modal-gallery img { width: 100%; height: 400px; object-fit: cover; border-radius: 16px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* --- EGYEDI CSÚSZKA A MODALOKHOZ --- */
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.modal-content::-webkit-scrollbar-thumb { background: #0a9396; border-radius: 10px; }
.modal-content { scrollbar-width: thin; scrollbar-color: #0a9396 #f1f1f1; }

.privacy-modal-new { max-width: 750px; }
.privacy-header { padding: 30px 60px; background: #f8fbfc; border-bottom: 2px solid #eef2f5; display: flex; align-items: center; gap: 20px; }
.privacy-header h2 { color: #005f73; font-size: 1.8rem; margin: 0; font-weight: 800; }
.privacy-body { padding: 40px 70px 60px 70px; text-align: left; line-height: 1.8; color: #444; }

.close-btn { position: absolute; top: 20px; right: 30px; font-size: 45px; color: #333; cursor: pointer; z-index: 100; }
#backToTop { position: fixed; bottom: 30px; right: 30px; background: #0a9396; color: white; border: none; padding: 18px; border-radius: 50%; cursor: pointer; display: none; z-index: 100; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

/* --- MOBIL NÉZET ÉS HAMBURGER JAVÍTÁS (iPhone 16 kompatibilis) --- */
@media (max-width: 768px) {
    /* Fejléc elrendezése: Logó balra, Gomb jobbra egy sorban */
    .main-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 20px !important;
        height: auto !important;
    }

    .header-top-row { margin: 0 !important; }
    
    .header-logo img {
        height: 50px !important; /* Kisebb logó mobilon */
        width: auto !important;
    }

    .header-nav {
        border-top: none !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .menu-toggle {
        display: block !important;
        font-size: 26px !important;
        color: white !important;
        cursor: pointer;
        z-index: 1001;
    }

    /* Lenyíló menü lista */
    .header-nav ul {
        display: none !important;
        flex-direction: column !important;
        width: 100vw !important;
        background: #005f73 !important;
        position: fixed !important;
        top: 70px !important; /* Pontosan a header alá */
        left: 0 !important;
        z-index: 999;
        padding: 10px 0 !important;
        margin: 0 !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    }

    .header-nav ul.active { display: flex !important; }

    .header-nav ul li { width: 100%; text-align: center; }
    .header-nav ul li a {
        display: block !important;
        padding: 18px 0 !important;
        font-size: 1.1rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* Egyéb mobil fixek */
    .services-grid { grid-template-columns: 1fr; }
    .quote-container { flex-direction: column; }
}

/* --- A PIPA MEGJELENÍTÉSE --- */
.gdpr-row {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: flex-start !important;
    gap: 15px !important;
    margin: 25px 0 !important;
}

#check-privacy-final, 
#check-privacy-v10,
input[type="checkbox"] { 
    display: block !important; 
    visibility: visible !important; 
    opacity: 1 !important; 
    width: 25px !important; 
    height: 25px !important; 
    min-width: 25px !important;
    cursor: pointer !important;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    accent-color: #0a9396 !important;
}

/* --- BRAVE PAJZS ELLENI JAVÍTÁS --- */
.f-confirm-row {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: flex-start !important;
    gap: 15px !important;
    margin-top: 25px !important;
    width: 100% !important;
}

#accept-f-final {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    cursor: pointer !important;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
}

.f-confirm-row label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
}