/* =========================================
   1. BETŰTÍPUSOK ÉS ALAPBEÁLLÍTÁSOK
========================================= */

/* Kézírásos és extra betűtípusok */
.font-signature  { font-family: 'Monsieur La Doulaise', cursive !important; }
.font-signature1 { font-family: 'Alex Brush', cursive !important; }
.font-signature2 { font-family: 'Passions Conflict', cursive !important; }
.font-poiret  { font-family: 'Poiret One', sans-serif !important; }
.font-poppins { font-family: 'Poppins', sans-serif !important; }
.font-instrument { font-family: 'Instrument Serif', serif !important; }

/* Global Reset & Túlnyúlás gátló */
html, body {
    margin: 0;
    padding: 0;
    height: auto;
    max-width: 100%;
    overflow-x: hidden;
    background-color: #ffffff;
    font-family: 'Poiret One', sans-serif;
}

/* =========================================
   2. FEJLÉC ÉS ASZTALI MENÜ
========================================= */
.navbar {
    min-height: 120px;
    padding: 0;
    background-color: white !important;
    z-index: 1050;
}

.logo-img {
    height: 70px;
    width: auto;
    transition: height 0.3s ease;
}

@media (min-width: 992px) {
    .logo-img {
        height: 120px;
    }
}

/* Széles, elegáns asztali menüsor */
.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 70px; /* Hatalmas távolság az eleganciáért */
}

.header_felirat {
    text-decoration: none !important;
    color: #1a1a1a;
    font-family: 'Poiret One', sans-serif;
    letter-spacing: 5px; /* Marad a fix betűköz */
    font-size: 1.1rem;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease;
    margin-left: 0 !important;
    display: inline-block; /* Ez nagyon fontos ahhoz, hogy a transform működjön! */
}

.header_felirat:hover {
    color: #888888 !important;
    /* A letter-spacing növelését kivettük, helyette nagyítunk: */
    transform: scale(1.08); 
}

/* =========================================
   3. FŐOLDALI SLIDER (KÉP CSÚSZKA)
========================================= */
.carousel-item img {
    height: calc(100vh - 120px);
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Lágy, 1.5 másodperces áttűnés villogás nélkül */
.carousel-fade .carousel-item {
    transition-duration: 1.5s !important;
}
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    z-index: 2 !important;
    opacity: 1 !important;
}
.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    z-index: 1 !important;
    opacity: 1 !important; 
}

/* =========================================
   4. SZOLGÁLTATÁSOK (KÁRTYÁK ÉS HOVER)
========================================= */
.services-section {
    padding: 100px 0 150px 0;
    background-color: #fff;
}

.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.image-box {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    aspect-ratio: 3 / 4;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.overlay-text {
    color: #fff;
    font-family: 'Poiret One', sans-serif;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 1px solid #fff;
    padding: 15px 30px;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.service-card:hover .image-box img { transform: scale(1.05); }
.service-card:hover .overlay { opacity: 1; }
.service-card:hover .overlay-text { transform: translateY(0); }

.service-title {
    font-family: 'Instrument Serif', serif;
    font-size: 3rem;
    font-style: italic;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 10px;
}

.service-desc {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    color: #666;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* =========================================
   5. MASONRY GALÉRIA
========================================= */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    overflow: hidden;
    cursor: pointer;
}
.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
}
.masonry-item:hover img {
    transform: scale(1.03);
    filter: brightness(0.8);
}

/* =========================================
   6. GOMBOK, CTA ÉS FOOTER
========================================= */
.cta-footer-section {
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 150px 0 40px 0;
}

.cta-title {
    font-size: 5rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.cta-desc {
    color: #666666;
    margin-bottom: 60px;
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Prémium Gombok */
.cta-button, .premium-btn, .lany-cta-btn {
    display: inline-block;
    padding: 18px 50px;
    border: 1px solid #1a1a1a;
    background-color: #ffffff;
    color: #1a1a1a !important;
    text-decoration: none !important;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.4s ease;
    border-radius: 0;
    cursor: pointer;
}
.cta-button:hover, .premium-btn:hover, .lany-cta-btn:hover {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* Footer & Ikonok */
.social-icon {
    font-size: 1.3rem;
    color: #1a1a1a !important;
    transition: all 0.3s ease;
    display: inline-block;
}
.social-icon:hover {
    color: #888888 !important; 
    transform: translateY(-4px); 
}

/* =========================================
   7. ŰRLAPOK (KAPCSOLAT)
========================================= */
.custom-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #cccccc;
    padding: 10px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    transition: border-color 0.4s ease;
    outline: none;
    border-radius: 0;
}
.custom-input:focus {
    border-bottom: 1px solid #1a1a1a;
}
.custom-error {
    display: none;
    color: #c47167;
    font-size: 0.75rem;
    letter-spacing: 1px;
    position: absolute;
    bottom: -20px;
    left: 10px;
}
.custom-input.is-invalid { border-bottom: 1px solid #c47167 !important; }
.custom-input.is-invalid ~ .custom-error { display: block; }

/* =========================================
   8. VISSZA A TETEJÉRE GOMB
========================================= */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    border: 1px solid #eaeaea;
    background-color: #ffffff;
    color: #1a1a1a;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    justify-content: center;
    align-items: center;
}
#scrollToTopBtn.show { display: flex; }
#scrollToTopBtn:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
}

/* --- EGYEDI LENYÍLÓ MENÜ (KAPCSOLAT OLDAL) --- */
.custom-select-wrapper {
    position: relative;
    user-select: none;
}

/* Ez a rész felel azért, hogy ALAPBÓL REJTVE legyen! */
.custom-select-options {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-top: none;
    z-index: 99;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Elegáns árnyék */
}

/* Amikor a JavaScript rákattintáskor hozzáadja a "show" osztályt */
.custom-select-options.show {
    display: block;
}

.custom-select-options li {
    padding: 12px 15px;
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

.custom-select-options li:hover {
    background-color: #f8f9fa; /* Finom világosszürke egerészéskor */
}

.custom-select-options li.selected {
    background-color: #f0f0f0;
    font-weight: 500;
}

/* =========================================
   9. RESZPONZÍV SZABÁLYOK (MOBIL / TABLET)
========================================= */

/* --- TABLET NÉZET (1250px alatt) --- */
@media (max-width: 1250px) {
    /* Menü átváltása Hamburgerre */
    .navbar-expand-lg .navbar-collapse { display: none !important; }
    .navbar-expand-lg .navbar-toggler { display: block !important; }
    .navbar-brand { margin-left: 0 !important; }
    
    /* SLIDER JAVÍTÁS (TABLET) */
    .carousel-item img {
        height: 70vh;
        object-position: center top !important; /* Középre igazít felülről */
    }
    /* ELSŐ KÉP ELTOLÁSA JOBBRA (Hogy az emberek látszódjanak) */
    .carousel-item:first-child img {
        object-position: 95% 40% !important; 
    }
}

/* --- MOBIL NÉZET ÉS "GOLYÓÁLLÓ" MENÜ (991px alatt) --- */
@media (max-width: 991px) {
    /* A Mobil Menü (Offcanvas) Tiszta Sorrendje */
    .offcanvas-body {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 40px 20px !important;
    }
    
    /* Lebegések kényszerített letiltása */
    .offcanvas-body * {
        position: static !important;
        float: none !important;
    }
    
    /* Mobil linkek stílusa */
    .mobile-nav-link {
        display: block !important;
        width: 100%;
        font-family: 'Poiret One', sans-serif;
        font-size: 1.4rem;
        letter-spacing: 4px;
        color: #1a1a1a;
        text-decoration: none;
        text-transform: uppercase;
        margin: 0;
    }
    
    /* Nyelvek stílusa a mobil menüben */
    .mobile-lang-item {
        display: block !important;
        font-family: 'Poppins', sans-serif;
        font-size: 0.9rem;
        color: #888;
        text-decoration: none;
        letter-spacing: 2px;
        text-transform: uppercase;
        padding: 5px 0;
    }
    .mobile-lang-item:hover { color: #1a1a1a; }
    .offcanvas-body .social-icon { font-size: 1.5rem; }

    /* SLIDER JAVÍTÁS (TELEFON) */
    .carousel-item img {
        height: 60vh;
    }
    /* ELSŐ KÉP EXTRA ELTOLÁSA MOBILON */
    .carousel-item:first-child img {
        object-position: 95% top !important; /* Erősen jobbra tolva */
    }

    /* Galéria 2 oszlopra */
    .masonry-grid { column-count: 2; }
}

/* --- KIS KÉPERNYŐS TELEFONOK (576px alatt) --- */
@media (max-width: 576px) {
    /* Galéria 1 oszlopra */
    .masonry-grid { column-count: 1; }
    .cta-title { font-size: 2.5rem !important; }
}