/* ============================================
   CSS VÁLTOZÓK - KÉK-FEHÉR SZÍNVILÁG
   ============================================ */
:root {
    --primary-blue: #4A90E2;
    --light-blue: #7AB8F5;
    --sky-blue: #A8D5FF;
    --pale-blue: #E8F4FF;
    --dark-blue: #2E5F8F;
    --white: #FFFFFF;
    --off-white: #F8FBFF;
    --text-gray: #4A5568;
}

/* ============================================
   ÁLTALÁNOS STÍLUSOK
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.7;
    color: var(--text-gray);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('images/hatterkep.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg,
        rgba(232, 244, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.88) 50%,
        rgba(232, 244, 255, 0.92) 100%);
    z-index: -1;
}

/* ============================================
   FEJLÉC ÉS NAVIGÁCIÓ
   ============================================ */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--light-blue);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    z-index: 1001;
    white-space: nowrap;
}

.site-title:hover { transform: scale(1.05); }

/* Hamburger gomb - csak mobilon */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.menu-toggle:hover { background: rgba(255,255,255,0.15); }

/* Fő navigációs lista */
nav > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
}

/* Minden nav elem */
nav > ul > li {
    position: relative; /* Dropdown pozícionáláshoz */
}

/* Nav linkek */
nav > ul > li > a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1.1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

nav > ul > li > a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

nav > ul > li > a.active {
    background: white;
    color: var(--primary-blue);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Dropdown nyíl ikon */
.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* ============================================
   DROPDOWN MENÜ - ASZTALI
   ============================================ */

/* Dropdown lista - alapból rejtve */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.25);
    border: 1px solid var(--sky-blue);
    min-width: 220px;
    z-index: 2000;
    overflow: hidden;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Dropdown megjelenítése hover-re */
.has-dropdown:hover .dropdown-menu {
    display: block;
}

/* Dropdown nyíl forgatása hover-re */
.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown linkek */
.dropdown-menu li { list-style: none; }

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--dark-blue);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background: var(--pale-blue);
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
    padding-left: 1.8rem;
}

.dropdown-menu li a.active {
    background: var(--pale-blue);
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
    font-weight: 600;
}

/* Elválasztó vonal a dropdown elemek között */
.dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid var(--sky-blue);
}

/* ============================================
   FŐ TARTALOM
   ============================================ */
main { flex: 1; position: relative; z-index: 1; }

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 60vh;
}

/* ============================================
   TIPOGRÁFIA
   ============================================ */
h1 { font-size: 2.8rem; margin-bottom: 1.5rem; color: var(--primary-blue); font-weight: 700; line-height: 1.2; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--dark-blue); font-weight: 600; position: relative; display: inline-block; }
h2::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 60px; height: 4px; background: linear-gradient(90deg, var(--light-blue), var(--primary-blue)); border-radius: 2px; }
h3 { font-size: 1.6rem; margin-bottom: 1rem; color: var(--primary-blue); font-weight: 600; }
p { margin-bottom: 1.2rem; font-size: 1.1rem; line-height: 1.8; }

.content {
    max-width: 900px;
    background: rgba(255,255,255,0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(74,144,226,0.15);
    border: 1px solid rgba(74,144,226,0.1);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   KÉPEK
   ============================================ */
.responsive-img { width: 100%; height: auto; border-radius: 15px; box-shadow: 0 8px 25px rgba(74,144,226,0.2); transition: transform 0.3s ease; }
.responsive-img:hover { transform: translateY(-5px); }
.hero-image { margin-bottom: 2.5rem; overflow: hidden; border-radius: 20px; }
.content-image { margin: 2.5rem 0; text-align: center; }
.image-caption { font-style: italic; color: var(--text-gray); font-size: 0.95rem; margin-top: 0.8rem; }

/* ============================================
   LISTÁK
   ============================================ */
.services-list { margin-left: 0; margin-top: 1.5rem; list-style: none; }
.services-list li { margin-bottom: 1rem; font-size: 1.1rem; padding-left: 2rem; position: relative; }
.services-list li::before { content: '●'; position: absolute; left: 0; color: var(--light-blue); font-size: 1.5rem; line-height: 1.5; }

/* ============================================
   VIDEÓ STÍLUSOK
   ============================================ */

/* Videó konténer - reszponzív, lekerekített */
.video-container {
    margin: 0 0 2.5rem 0;
    text-align: center;
}

/* Maga a videó elem */
.video-container video {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.25);
    border: 3px solid var(--sky-blue);
    background: #000; /* Fekete háttér betöltés közben */
    max-height: 70vh; /* Ne legyen magasabb a képernyőnél */
    object-fit: contain;
}

/* Videó felirat */
.video-container .image-caption {
    margin-top: 0.8rem;
}

/* Vissza gomb a foglalkozás oldalakról */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--pale-blue);
    color: var(--primary-blue);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--sky-blue);
}
.back-button:hover { background: var(--sky-blue); transform: translateX(-3px); }

/* ============================================
   KAPCSOLAT OLDAL
   ============================================ */
.contact-info { background: linear-gradient(135deg, var(--pale-blue) 0%, white 100%); padding: 2.5rem; border-radius: 20px; margin-bottom: 2.5rem; box-shadow: 0 8px 30px rgba(74,144,226,0.15); border-left: 5px solid var(--primary-blue); }
.contact-info p { margin-bottom: 1rem; font-size: 1.15rem; }
.contact-info a { color: var(--primary-blue); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.contact-info a:hover { color: var(--dark-blue); text-decoration: underline; }
.map-container { margin: 3rem 0; }
.google-map { border-radius: 15px; box-shadow: 0 10px 40px rgba(74,144,226,0.2); margin-bottom: 2rem; border: 3px solid var(--sky-blue); }
.route-button-container { text-align: center; margin: 2rem 0; }
.route-button { display: inline-block; background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%); color: white; padding: 1.2rem 2.5rem; text-decoration: none; border-radius: 50px; font-weight: 600; font-size: 1.15rem; transition: all 0.3s ease; box-shadow: 0 8px 25px rgba(74,144,226,0.3); }
.route-button:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 35px rgba(74,144,226,0.4); }

/* ============================================
   LÁBLÉC
   ============================================ */
footer { background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%); color: white; text-align: center; padding: 2.5rem; margin-top: auto; position: relative; z-index: 1; border-top: 3px solid var(--light-blue); }
footer p { margin: 0; font-size: 1rem; }

/* ============================================
   MOBIL RESZPONZIVITÁS - HAMBURGER + DROPDOWN
   ============================================ */
@media (max-width: 900px) {
    .menu-toggle { display: block; }

    /* Fő menü lista - csúszó oldalsáv */
    nav > ul {
        position: fixed;
        top: 0; right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 5rem 1.5rem 2rem;
        gap: 0.3rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 30px rgba(0,0,0,0.3);
        overflow-y: auto;
        z-index: 1000;
    }

    nav > ul.menu-open { right: 0; }

    /* Nav linkek mobilon */
    nav > ul > li > a {
        padding: 1rem 1.2rem;
        border-radius: 10px;
        font-size: 1.1rem;
        width: 100%;
        justify-content: space-between;
    }

    /* MOBIL DROPDOWN - kinyitható */
    .dropdown-menu {
        display: none;
        position: static; /* Nem lebegő, hanem beépített */
        background: rgba(255,255,255,0.1);
        border-radius: 10px;
        box-shadow: none;
        border: none;
        margin-top: 0.3rem;
        margin-left: 1rem;
        animation: none;
    }

    /* Mobilon a dropdown a has-dropdown--open class-szal nyílik */
    .has-dropdown.open .dropdown-menu { display: block; }
    .has-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

    /* Asztali hover dropdown kikapcsolása mobilon */
    .has-dropdown:hover .dropdown-menu { display: none; }
    .has-dropdown.open .dropdown-menu { display: block; }

    /* Dropdown linkek mobilon */
    .dropdown-menu li a {
        color: white;
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
        border-left: 3px solid rgba(255,255,255,0.3);
    }

    .dropdown-menu li a:hover,
    .dropdown-menu li a.active {
        background: rgba(255,255,255,0.15);
        color: white;
        border-left-color: white;
    }

    .dropdown-menu li { border-bottom: 1px solid rgba(255,255,255,0.1); }

    /* Overlay */
    .menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 999; }
    .menu-overlay.active { display: block; }

    /* Tartalom */
    nav { padding: 1rem 1.5rem; }
    .site-title { font-size: 1.2rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }
    .content { padding: 1.5rem 1.2rem; }
    section { padding: 2rem 1rem; }
    .google-map { height: 280px; }
    body { background-attachment: scroll; }
}
