
/* ==========================================
   HORIZONT BETON – SZOLGÁLTATÁSOK V2
   Önálló szekció
   ========================================== */

/* TELJES SZEKCIÓ */

.hb-services {
    position: relative;
width: min(100% - 40px, 1440px);
margin: 0 auto;
    min-height: 740px;
    padding: 65px 0 75px;
    overflow: hidden;
    background-color: #f8f9f7;
    background-image: url("../images/services-bg.png?v=2");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.hb-services-inner {
    position: relative;
    display: grid;
    grid-template-columns: 34% minmax(0, 66%);
    width: min(100% - 64px, 1440px);
    min-height: 600px;
margin: 0 auto;
    
}


/* BAL OLDALI KÉP – ÚJ FELIRAT */

.hb-services-photo-info {
    position: relative;
    min-width: 0;
    min-height: 600px;
}

.hb-services-photo-text {
    position: absolute;
    top: 40px;
    left: 45px;
    z-index: 2;
}

.hb-services-photo-text h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.5px;
}

.hb-services-photo-text h2 span {
    color: #91ff00;
}

.hb-services-photo-line {
    width: 38px;
    height: 2px;
    margin: 12px 0;
    background: #91ff00;
}

.hb-services-photo-text p {
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 2px;
}

@media (max-width: 600px) {
    .hb-services-photo-text {
        top: 25px;
        left: 20px;
    }

    .hb-services-photo-text h2 {
        font-size: 25px;
    }

    .hb-services-photo-text p {
        font-size: 11px;
    }
}


/* JOBB OLDALI TARTALOM */

.hb-services-main {
    position: relative;
    min-width: 0;
    padding: 40px 0 0 10px;
}

.hb-services-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 125px;
    margin-bottom: 35px;
}

.hb-services-heading {
    max-width: 350px;
    margin-left: 150px;
}

.hb-services-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #747d80;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hb-services-kicker::before {
    content: "";
    display: block;
    width: 25px;
    height: 2px;
    background: #91ff00;
}

.hb-services-heading p {
    max-width: 330px;
    margin: 20px 0 0;
    color: #62686b;
    font-size: 14px;
    line-height: 1.7;
}

.hb-services-count {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.hb-services-count-number {
    color: rgba(17,23,25,0.07);
    font-size: clamp(70px, 9vw, 135px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -7px;
}

.hb-services-count-text {
    padding-left: 13px;
    border-left: 2px solid #91ff00;
    color: #747d80;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.8;
    letter-spacing: 1px;
}

/* NÉGY SZOLGÁLTATÁSKÁRTYA */

.hb-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.hb-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 405px;
    overflow: hidden;
    border: 1px solid rgba(17,23,25,0.05);
    border-radius: 13px;
    background: rgba(255,255,255,0.92);
    color: #111719;
    text-decoration: none;
    box-shadow: 0 12px 35px rgba(0,0,0,0.035);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hb-service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.hb-service-card:focus-visible {
    outline: 3px solid #65c900;
    outline-offset: 3px;
}

/* KÁRTYÁK KÉPHELYEI */

.hb-service-image {
    position: relative;
    width: 100%;
    height: 185px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #dce3dc, #eef1ec);
}

.hb-service-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 40px;
    background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
}

/* KÁRTYÁK SZÖVEGEI */

.hb-service-content {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 19px 15px 58px;
}

.hb-service-number {
    display: block;
    margin-bottom: 18px;
    color: #5e686a;
    font-size: 11px;
    font-weight: 800;
}

.hb-service-number::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    margin-top: 10px;
    background: #91ff00;
}

.hb-service-content h3 {
    margin: 0 0 13px;
    color: #111719;
    font-size: clamp(15px, 1.3vw, 20px);
    font-weight: 850;
    line-height: 1.2;
}

.hb-service-content p {
    margin: 0;
    color: #727a7d;
    font-size: 12px;
    line-height: 1.6;
}

.hb-service-arrow {
    position: absolute;
    bottom: 16px;
    left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #d7ddda;
    border-radius: 50%;
    color: #111719;
    background: #fff;
    font-size: 18px;
    transition: background 0.2s ease;
}

.hb-service-card:hover .hb-service-arrow {
    background: #91ff00;
    border-color: #91ff00;
}

/* KISEBB ASZTALI KIJELZŐ */

@media (max-width: 1250px) {
    .hb-services-inner {
        grid-template-columns: 30% minmax(0, 70%);
        width: min(100% - 40px, 1440px);
    }

    .hb-services-main {
        padding-left: 10px;
    }

    .hb-services-count-number {
        font-size: 75px;
    }

    .hb-services-count-text {
        font-size: 9px;
    }

    .hb-service-content {
        padding-right: 10px;
        padding-left: 10px;
    }
}

/* TABLET */

@media (max-width: 950px) {
    .hb-services {
        padding: 55px 0 75px;
        background-size: cover;
        background-position: 30% center;
    }

    .hb-services-inner {
        display: block;
        width: min(100% - 40px, 720px);
    }

    .hb-services-photo-info {
        min-height: 330px;
    }

    .hb-services-main {
        padding: 35px 0 0;
    }

    .hb-services-top {
        padding: 25px;
        border-radius: 14px;
        background: rgba(255,255,255,0.94);
    }

    .hb-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .hb-service-card {
        min-height: 365px;
    }
}

/* MOBIL */

@media (max-width: 600px) {
    .hb-services {
        padding: 35px 0 60px;
        background-size: auto 100%;
        background-position: 23% center;
    }

    .hb-services-inner {
        width: min(100% - 28px, 420px);
    }

    .hb-services-photo-info {
        min-height: 300px;
    }

    .hb-services-photo-label {
        left: 8px;
        font-size: 10px;
    }

    .hb-services-photo-bottom {
        bottom: 25px;
        left: 8px;
        gap: 12px;
    }

    .hb-services-photo-bottom span {
        font-size: 11px;
    }

    .hb-services-top {
        align-items: flex-start;
        margin-bottom: 20px;
        padding: 20px;
    }

    .hb-services-heading p {
        font-size: 12px;
    }

    .hb-services-count-number {
        font-size: 52px;
        letter-spacing: -4px;
    }

    .hb-services-count-text {
        display: none;
    }

    .hb-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hb-service-card {
        min-height: 340px;
    }

    .hb-service-image {
        height: 120px;
    }

    .hb-service-content {
        padding: 15px 12px 55px;
    }

    .hb-service-content h3 {
        font-size: 15px;
    }

    .hb-service-content p {
        font-size: 11px;
    }

    .hb-service-arrow {
        left: 12px;
    }
}

@media (max-width: 380px) {
    .hb-services-grid {
        grid-template-columns: 1fr;
    }

    .hb-service-image {
        height: 170px;
    }

    .hb-service-card {
        min-height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hb-service-card,
    .hb-service-arrow {
        transition: none;
    }
}
