/* 
   CUSTOM HERO HEADER CSS - Elite Ingatlaniroda
   Clean Luxury Animation (Static text).
*/

/* 0. FORCE PARENT CONTAINERS TO BE COMPACT */
.s-hn,
.n-l-i,
.slogan-container,
.s-c {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}

/* 1. Main Container */
.custom-hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 50%;
    min-width: 320px;
    margin: 0 auto;

    /* VERTICAL CENTERING ADJUSTMENT */
    margin-top: 35px;
    margin-bottom: 5px;

    text-align: center;

    /* Subtle Entrance Animation */
    animation: fade-in-up 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 2. Logo Image Wrapper */
.custom-logo-wrapper {
    margin-bottom: 0px;
    width: 100%;
    display: flex;
    justify-content: center;

    /* CONTINUOUS FLOATING ANIMATION LOGO ONLY */
    animation: luxury-float 6s ease-in-out infinite;
}

.custom-logo-link {
    display: inline-block;
    width: auto;
    max-width: fit-content;

    /* GLASSMORPHISM - DARK SMOKE GLASS (SCALED DOWN) */
    background: rgba(0, 0, 0, 0.55);
    /* Darker smoke gray */
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border-radius: 4px;
    padding: 1px 2px;
    /* Very compact */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, background, box-shadow;
}

.custom-logo-link:hover {
    background: rgba(0, 0, 0, 0.43);
    backdrop-filter: blur(2.4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* 3. The Logo Image */
.custom-logo-img {
    display: block;
    width: 186px;
    /* Reduced by 31% (original 270px * 0.69) */
    height: auto;
    max-width: 90vw;

    transition: transform 0.3s ease;
    will-change: transform;
}

.custom-logo-img:hover {
    transform: scale(1.15);
    /* Much bigger zoom (15%) */
    cursor: pointer;
    /* FILTER REMOVED TO KEEP COLOR EXACTLY THE SAME */
}

/* 4. Brand Text */
.custom-logo-text-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 5px;

    /* STATIC TEXT (No Float) */
    animation: none;
}

.custom-logo-brand {
    font-family: 'Roboto Slab', 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 700;
    color: #6a523d;
    letter-spacing: 2px;
    text-transform: none;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 25px;
}

.custom-logo-brand::before,
.custom-logo-brand::after {
    content: '';
    display: block;
    width: 55px;
    height: 1px;
    background-color: #6a523d;
    transition: width 0.6s ease;
}

.custom-hero-header:hover .custom-logo-brand::before,
.custom-hero-header:hover .custom-logo-brand::after {
    width: 80px;
    opacity: 0.8;
}

/* 5. Responsive Adjustments */
@media (max-width: 1200px) {
    .custom-logo-img {
        width: 165px;
    }
}

@media (max-width: 768px) {
    .custom-hero-header {
        max-width: 95%;
        margin-bottom: 5px;
    }

    .custom-logo-img {
        width: 100%;
        max-width: 124px;
        /* Reduced by 31% (original 180px * 0.69) */
    }

    .custom-logo-link {
        padding: 20px 30px;
        border-radius: 20px;
    }

    .custom-logo-brand {
        font-size: 22px;
        gap: 15px;
    }

    .custom-logo-brand::before,
    .custom-logo-brand::after {
        width: 30px;
    }
}

/* --- ANIMATION KEYFRAMES --- */

/* Only Float (Lebegés) */
@keyframes luxury-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Entrance (Beúszás) */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}