/* ==========================================================================
   1. KÖZÖS ALAPBEÁLLÍTÁSOK (Minden képernyőméretre)
   ========================================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* FEJLÉC HÁTTÉR ÉS KONTÉNER */
.site-header {
    width: 100%;
    background-color: #250309;
    background-image: 
        linear-gradient(70deg, rgba(250, 248, 248, 0.85) 0%, rgba(250, 248, 248, 0.95) 22%, rgba(73, 46, 46, 0.85) 25%, rgba(64, 3, 9, 0.95) 100%),
        url('teglafal atlatszo kevesbe.jpg');
    background-size: cover, 600px; 
    background-position: center, top left;
    background-repeat: no-repeat, repeat;
    box-shadow: 0 8px 25px rgba(0,0,0,0.75);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0 20px 0 0;
    height: 90px;
}

/* LOGÓ KILÓGATÁSA */
.header-logo {
    align-self: flex-start;
    position: relative;
    z-index: 1010;
    margin-left: 30px;
}

.header-logo a {
    display: block;
}

.header-logo a img {
    height: 125px;
    width: auto;
    display: block;
    margin-top: 10px;
    border-radius: 50%;
    box-shadow: 0 5px 12px rgba(0,0,0,0.4);
}

/* CANVAS SZEKCIÓK */
#buildingCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
}

/* SZOLGÁLTATÁS BLOKKOK ALAPSZÍNEI ÉS KÉPEI */
.service-section {
    background-color: #fcfbf9; 
    color: #1a0206;
}

.service-section.dark-bg {
    background-color: #250309; 
    color: #ffffff;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); 
    border: 2px solid #7a1524;
    display: block;
}

.service-text h2 {
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.service-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #7a1524;
}

.service-section.dark-bg .service-text h2::after {
    background-color: #ffffff;
}

/* TÖBB KÉPBŐL ÁLLÓ MOZAIK RÁCS */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.mosaic-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #7a1524;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.mosaic-grid img:hover {
    transform: scale(1.03);
    border-color: #d4af37;
}

/* LENTI ANIMÁCIÓ SZEKCIÓ */
.bottom-animation-section {
    position: relative;
    width: 100%;
    height: 520px;
    background-color: #180407;
    overflow: hidden;
    border-top: 3px solid #7a1524;
}

.bottom-animation-section canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.animation-overlay-badge {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: rgba(45, 9, 18, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #f3d08a;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* LÁBLÉC ALAPOK */
.site-footer {
    width: 100%;
    background-color: #1a0206;
    background-image: 
        linear-gradient(to bottom, rgba(37, 3, 9, 0.95), rgba(15, 1, 3, 1)),
        url('teglafal atlatszo kevesbe.jpg');
    background-size: cover, 600px; 
    background-position: center, bottom left;
    background-repeat: no-repeat, repeat;
    color: #ffffff;
    padding: 50px 20px 20px;
    border-top: 3px solid #4a0c16; 
    position: relative;
    z-index: 10;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    padding-bottom: 30px;
}

.footer-block {
    flex: 1;
    min-width: 250px;
}

.footer-block h4 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

.footer-block h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #7a1524;
}

.footer-block p {
    margin: 5px 0;
    font-size: 15px;
    color: #cccccc;
    line-height: 1.6;
}

.footer-block a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-block a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 13px;
    color: #777777;
}


/* ==========================================================================
   2. KIZÁRÓLAG NAGYKÉPERNYŐ / ASZTALI NÉZET (769px felett)
   ========================================================================== */
@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }

    /* Asztali vízszintes menüsor */
    .main-navigation {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .menu {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 30px;
        height: 100%;
        align-items: center;
    }

    .menu-item {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .menu-item > a {
        text-decoration: none;
        color: #ffffff;
        font-size: 19px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        display: block;
        padding: 5px 0;
        transition: color 0.3s ease;
    }

    .menu-item > a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        width: 0;
        height: 3px;
        background-color: #ffffff;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .menu-item > a:hover::after {
        width: 100%;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(37, 3, 9, 0.95); 
        list-style: none;
        padding: 10px 0;
        margin: 0;
        min-width: 200px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.5);
        border-radius: 0 0 4px 4px;
    }

    .menu-item:hover .dropdown-menu {
        display: block;
    }

    .sub-menu-item a {
        color: #ffffff;
        text-decoration: none;
        padding: 10px 20px;
        display: block;
        font-size: 16px;
        transition: background-color 0.3s ease;
    }

    .sub-menu-item a:hover {
        background-color: rgba(90, 16, 29, 0.8);
    }

    /* Asztali Hero szekció */
    .hero-section {
        position: relative;
        width: 100%;
        height: 40vh;
        background-color: #250309;
        overflow: hidden;
    }

    .service-section {
        padding: 60px 20px;
    }

    /* Széles, kényelmes konténer monitoron */
    .service-container {
        max-width: 1150px; 
        margin: 0 auto;
        display: flex;
        align-items: center;
        gap: 60px;
    }

    .service-container.reverse {
        flex-direction: row-reverse;
    }

    /* Szövegoszlop arány és középre igazítás */
    .service-text {
        flex: 1.2;
        text-align: center;
    }

    .service-text h2 {
        font-size: 2.2rem;
        margin-top: 0;
        margin-bottom: 25px;
    }

    .service-text h2::after {
        left: 50%;
        transform: translateX(-50%);
        width: 65px;
    }

    .service-text p {
        font-size: 1.05rem; 
        line-height: 1.65;
        margin-bottom: 18px;
        text-align: center;
    }

    .service-image {
        flex: 1;
    }
}


/* ==========================================================================
   3. KIZÁRÓLAG MOBIL NÉZET (768px és az alatt)
   ========================================================================== */
@media (max-width: 768px) {
    /* Hamburger ikon animációval */
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 6px;
        z-index: 1001;
    }

    .hamburger span {
        width: 30px;
        height: 3px;
        background-color: #ffffff;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .hamburger.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Mobil lenyíló görgethető menü */
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #3b0a13;
        padding: 8px 0;
        gap: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.5);
        height: auto;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        list-style: none;
        margin: 0;
    }

    .menu.mobile-open {
        display: flex;
    }

    .menu-item {
        height: auto; 
        display: block; 
        width: 100%;
    }

    .menu-item > a {
        padding: 8px 16px;
        display: block;
        width: 100%;
        font-size: 16px;
        color: #ffffff;
        text-decoration: none;
    }

    .dropdown-menu {
        position: static;
        background-color: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        padding: 0 0 0 15px;
        display: block;
        margin: 0;
        list-style: none;
    }
    
    .sub-menu-item a {
        padding: 6px 12px;
        font-size: 14px;
        color: #ffffff;
        text-decoration: none;
        display: block;
    }

    /* Mobil szekciók elrendezése (egymás alá tördelve) */
    .hero-section {
        height: 30vh;
        position: relative;
        background-color: #250309;
        overflow: hidden;
    }

    .service-section {
        padding: 35px 20px;
    }

    .service-container, 
    .service-container.reverse {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .service-text h2 {
        font-size: 1.6rem;
        margin-top: 10px;
        margin-bottom: 22px;
        line-height: 1.2;
    }

    .service-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .service-text p {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-top: 0;
        margin-bottom: 14px;
    }
    
    .service-image {
        margin-top: 10px;
        width: 100%;
    }

    /* Mozaik és lenti animáció mobilon */
    .mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .mosaic-grid img {
        height: 110px;
    }

    .bottom-animation-section {
        height: 360px;
    }

    /* Mobil lábléc */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-block h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}