/* ============================================================
   Hero3 — hexagonális service grid
   ============================================================ */

/* Section */
.hero3-section {
    position: relative;
    width: 100%;
    height: 52.08vw; /* 1000/1920 — arányos, nem nyújtott */
    min-height: 700px;
    max-height: 1000px;
    overflow: hidden;
}

/* Háttérkép */
.hero3-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Sötét overlay */
.hero3-overlay {
    position: absolute;
    inset: 0;
    background: rgba(19, 27, 33, 0.50);
    z-index: 1;
}

/* ============================================================
   Desktop hex grid (>= 992px)
   ============================================================ */
.hero3-hex-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1920px;
    aspect-ratio: 1920 / 1000;
    max-height: 100%;
    z-index: 2;
}

.hero3-mobile-grid {
    display: none;
}

/* Hex pozíció wrapper — drop-shadow adja a fehér körvonalat, nincs fill */
.hero3-hex-pos {
    position: absolute;
    width: 18.59%;
    aspect-ratio: 1.155;
}

/* Hex kártya — kitölti a hex-pos-t, clip-path-szel vágva */
.hero3-hex-card {
    position: absolute;
    inset: 0;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    transition: background 0.4s ease;
    background: rgba(19, 27, 33, 0.50);

}


/* Hover háttérkép */
.hero3-hex-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.hero3-hex-card:hover .hero3-hex-bg {
    opacity: 1;
}

/* Sötét veil hover-re — szöveg olvashatóság megőrzésére */
.hero3-hex-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(19, 27, 33, 0.35);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.hero3-hex-card:hover::after {
    opacity: 1;
}

/* Tartalom réteg */
.hero3-hex-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18% 16% 14%;
    text-align: center;
    width: 100%;
    height: 100%;
}

.hero3-hex-content-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* Ikon */
.hero3-hex-icon {
    width: clamp(36px, 3.2vw, 60px);
    height: clamp(36px, 3.2vw, 60px);
    object-fit: contain;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

/* Cím */
.hero3-hex-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(12px, 0.985vw, 18.9px);
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
    word-break: break-word;
}

/* CTA link — mindig a hex aljára */
.hero3-hex-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(11px, 0.875vw, 16.8px);
    color: #e26d1e;
    line-height: 1.1;
    white-space: nowrap;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* ============================================================
   Középső logó
   ============================================================ */
.hero3-center-logo {
    position: absolute;
    left: 40.16%;
    top: 36.2%;
    width: 19.9%;
    height: 31.5%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
}

.hero3-center-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ============================================================
   Logó hex — mindig látható háttér (nem csak hover)
   ============================================================ */
.hero3-hex-bg--visible {
    opacity: 1 !important;
}

.hero3-hex-card--logo::after {
    display: none;
}

.hero3-hex-card--logo:hover {
    background: rgba(19, 27, 33, 0.8);
}

/* ============================================================
   Tablet (576px – 1199px): cikk-cakk zigzag
   container ≥ 2 × hex_width → nincs horizontális átfedés
   container = min(620px, 94vw), hex = min(280px, 46vw)
   ============================================================ */
@media (max-width: 1199px) {
    .hero3-section {
        height: auto;
        min-height: unset;
        max-height: unset;
        overflow: hidden;
        padding: 160px 0 80px;
    }

    .hero3-hex-grid {
        display: none;
    }

    .hero3-mobile-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: min(620px, 94vw);
        margin: 0 auto;
        position: relative;
        z-index: 2;
    }

    .hero3-mobile-card-wrap {
        position: relative;
        width: min(280px, 46vw);
        aspect-ratio: 1.155;
        flex-shrink: 0;
        filter: drop-shadow(0 0 1px rgba(255, 255, 255, 1)) drop-shadow(0 0 2.5px rgba(255, 255, 255, 0.5));
    }

    .hero3-mobile-card-wrap.hero3-side-right {
        align-self: flex-end;
    }

    .hero3-mobile-card-wrap.hero3-side-left {
        align-self: flex-start;
    }

    .hero3-mobile-logo-wrap {
        align-self: center !important;
        width: min(300px, 50vw);
    }
}

/* ============================================================
   Mobile (< 576px): 1 középre igazított oszlop
   ============================================================ */
@media (max-width: 575px) {
    .hero3-section {
        padding: 150px 0 60px;
    }

    .hero3-mobile-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .hero3-mobile-card-wrap {
        width: min(280px, 84vw);
        margin-top: 0 !important;
        align-self: center !important;
    }

    .hero3-mobile-logo-wrap {
        width: min(300px, 88vw) !important;
        align-self: center !important;
    }

    .hero3-hex-icon {
        width: 44px;
        height: 44px;
    }
}
