/* ========== HERO – clean CSS ========== */
:root {
    --hero-mobile-card-height: 280px;
} /* mobil kártya fix magasság */

.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-bottom: 4rem;
    height: 100vh;
}

/* videó háttér (desktop) */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: -10;
}

/* közös “glass” kártya stílus */
.glass-card {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(
        193deg,
        rgba(255, 255, 255, 0.58) -12.88%,
        rgba(255, 255, 255, 0.42) 99.92%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-radius: 20px;
}

/* bal kártya (desktop) */
.hero-left-card {
    border-radius: 0 60px 60px 0;
    max-width: 600px;
    color: #083428;
}
.hero-left-card h1 {
    padding-left: 65px;
    font-size: 60px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.1;
}
.hero-left-card p {
    padding-left: 65px;
    padding-top: 30px;
    padding-bottom: 30px;
}

/* jobb kártya (desktop) */
.hero-right-card {
    position: absolute;
    top: 100px;
    right: 70px;
    width: 381px;
    height: 345px;
}

/* desktop finomítások */
@media (max-width: 1450px) {
    .hero-right-card {
        top: 100px;
        right: 50px;
        width: 300px;
        height: 385px;
    }
    .hero-left-card {
        max-width: 500px;
    }
    .hero-left-card h1 {
        padding-left: 35px;
        font-size: clamp(40px, 4vw, 50px);
    }
    .hero-left-card p {
        padding-left: 35px;
    }
}
@media (max-width: 1148px) {
    .hero-right-card {
        top: 105px;
        right: 50px;
        width: 300px;
        height: 385px;
    }
    .hero-left-card {
        max-width: 400px;
    }
    .hero-left-card h1 {
        padding-left: 25px;
        font-size: clamp(26px, 4vw, 35px);
    }
    .hero-left-card p {
        padding-left: 25px;
    }
}

/* mobil alap: slider rejtve */
.hero-mobile {
    display: none;
}

/* 940px alatt: videó ki, BG kép be; desktop kártyák ki; mobil slider be */
@media (max-width: 940px) {
    .hero-video-wrap {
        display: none !important;
    }
    .hero-section {
        min-height: 100svh;
        min-height: 100dvh;
        min-height: 100vh;
        background: url("/img/hero-bg.png") center/cover no-repeat;
        padding-bottom: 0;
    }
    .hero-right-card,
    .hero-left-card {
        display: none !important;
    }

    .hero-mobile {
        display: block;
        bottom: 120px;
        left: 0;
        right: 25px;
    }

    /* mobil kártya (ugyanaz a “glass” look), fix magasságú viewporttal */
    .hero-mobile-card {
        width: 100%;
        max-width: none !important;
        margin-left: 0px; /* könnyen állítható */
        margin-right: 24px; /* “fix MR” */
        color: #082d33;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 60px;
        border-top-right-radius: 60px;
        height: var(--hero-mobile-card-height);
        position: relative;
        padding-bottom: 44px; /* igény szerint 40–56px */
    }
    .hero-mobile-viewport {
        position: relative;
        height: var(--hero-mobile-card-height);
        overflow: hidden;
    }
    .hero-slide {
        position: absolute;
        inset: 0;
    }

    /* tipók mobilon */
    .hero-mobile-title {
        font-family: "Plus Jakarta Sans", system-ui, sans-serif;
        font-size: 24px;
        text-transform: uppercase;
        font-weight: 400;
        line-height: 1.25;
    }
    .hero-mobile-text {
        font-family: "Plus Jakarta Sans", system-ui, sans-serif;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.5;
        margin-top: 0.5rem;
    }

    /* pöttyök */
    .row-circle {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 3px 0;
        margin-top: 0.75rem;
        position: absolute;
        left: 18px; /* igazítsd, ha kell */
        bottom: 12px; /* igazítsd, ha kell */
        margin-top: 0; /* felülírjuk a korábbi margin-top-ot */
        z-index: 2; /* biztosan a tartalom fölött legyen */
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 3px 0;
    }
    .circle {
        border-radius: 50%;
    }
    .circle-white-left {
        width: 15px;
        height: 15px;
        background: #fff;
        padding: 2px;
        border: 2px solid var(--primary);
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .circle1 {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--primary);
    }
    .circle-white-right {
        width: 15px;
        height: 15px;
        background: #fff;
        border: 2px solid var(--primary);
        border-radius: 50%;
    }
}

/* 941px fölött: biztosan desktop mód legyen */
@media (min-width: 941px) {
    .hero-section {
        background: none;
    }
    .hero-mobile {
        display: none;
    }
}

/* apró utilok */
[x-cloak] {
    display: none !important;
}
.vass-title {
    padding-bottom: 15px;
}

/* 3D flip az absolute stackelt slide-okra */
.hero-mobile-card {
    perspective: 1000px;
}

.slide-3d {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
    transform-origin: 50% 50%; /* ha felülről „billenjen”: 50% 0% */
}

/* Alpine egyedi transition osztályok */
.transition-3d {
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.3s ease;
}
.flip-in-start {
    transform: rotateX(-90deg);
    opacity: 0;
}
.flip-in-end {
    transform: rotateX(0deg);
    opacity: 1;
}
.flip-out-start {
    transform: rotateX(0deg);
    opacity: 1;
}
.flip-out-end {
    transform: rotateX(90deg);
    opacity: 0;
}

/* ha valakinek be van kapcsolva a reduced motion, ne pörgessünk */
@media (prefers-reduced-motion: reduce) {
    .transition-3d {
        transition: none;
    }
    .flip-in-start,
    .flip-out-end {
        transform: none;
        opacity: 1;
    }
}

/* 3D flip + fix height váltás */
.hero-mobile-card {
    perspective: 1000px;
    position: relative;
} /* abszolút slide-oknak referencia */

.slide-3d {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
    transform-origin: 50% 50%;
}

/* Alpine custom transition osztályok */
.transition-3d {
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.3s ease;
}
.flip-in-start {
    transform: rotateX(-90deg);
    opacity: 0;
}
.flip-in-end {
    transform: rotateX(0deg);
    opacity: 1;
}
.flip-out-start {
    transform: rotateX(0deg);
    opacity: 1;
}
.flip-out-end {
    transform: rotateX(90deg);
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .transition-3d {
        transition: none;
    }
    .flip-in-start,
    .flip-out-end {
        transform: none;
        opacity: 1;
    }
}
