/*--------------------------------------------------------------
   Home page sections (app/Views/arieltech_frontend/index.php)
   Hero slider styles live in main-slider.css
--------------------------------------------------------------*/

/* ---------- Shared section rhythm ---------- */
.home-page .sidehd1 {
    margin-bottom: 32px;
}

.home-page .fh-section-title h2 {
    font-size: clamp(24px, 2.4vw, 30px);
    line-height: 1.3;
}

/* ---------- Our products carousel ---------- */
.home-page .home-products {
    padding-top: 56px;
}

.home-page .fh-service .service-content > .overlay {
    background-color: rgba(31, 53, 100, 0.8);
}

.home-page .fh-service .service-content p {
    min-height: 0;
}

/* ---------- Feature boxes ---------- */
.ourfeatures2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-page .fh-icon-box-3 {
    min-height: 420px;
    padding: 64px 32px;
}

.home-page .fh-icon-box-3 .overlay {
    background-color: #0e3b6e;
}

.home-page .fh-icon-box-3:nth-child(even) .overlay {
    background-color: #0c325d;
}

.home-page .fh-icon-box-3 p {
    margin: 0;
    line-height: 1.6;
}

.fh-icon-box-3-action {
    position: relative;
    z-index: 9;
    margin-top: 20px;
    text-align: center;
}

/* ---------- About ---------- */
.home-about-figure {
    margin: 0;
}

.home-about-figure img {
    display: block;
    border-radius: 4px;
}

/* ---------- Why industry leaders / Industries we serve ---------- */
.home-page .aboutsec2 .fh-section-title {
    margin-bottom: 36px;
}

.home-page .fh-icon-box-2 {
    margin: 0;
}

/* ---------- Certifications ---------- */
.home-page .fh-partner .list-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-page .fh-partner .partner-item {
    flex: 0 0 calc((100% - 4 * 24px) / 5);
}

.home-page .partener1.graybgf .partner-content {
    padding: 10px;
    background-color: #fff;
}

/* ---------- Call to action strip ---------- */
.stripse1 {
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

.stripse1 .fh-section-title h2 {
    line-height: 1.3;
}

.stripse1 p,
.hdpara {
    max-width: 720px;
    margin: 20px auto 0;
    color: var(--white);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
}

.stripse1-action {
    margin-top: 24px;
    text-align: center;
}

/* ============================ Breakpoints ============================ */

@media (max-width: 1199.98px) {
    .ourfeatures2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page .fh-icon-box-3 {
        min-height: 320px;
        padding: 48px 28px;
    }

    /* Checkerboard in the 2x2 grid */
    .home-page .fh-icon-box-3:nth-child(3) .overlay {
        background-color: #0c325d;
    }

    .home-page .fh-icon-box-3:nth-child(4) .overlay {
        background-color: #0e3b6e;
    }

    .home-page .fh-icon-box-3 h4 {
        font-size: 18px;
    }

    /* Fixed backgrounds are janky / unsupported on touch devices */
    .stripse1 {
        position: relative;
        background-attachment: scroll;
    }

    /* Smaller crops show the bright part of the photo — keep the text readable */
    .stripse1::before {
        content: '';
        position: absolute;
        inset: 0;
        background-color: rgba(10, 25, 60, 0.6);
    }

    .stripse1 > .container {
        position: relative;
    }
}

@media (max-width: 991.98px) {
    .home-page .secpadd {
        padding: 56px 0;
    }

    .home-page .fh-partner .list-item {
        gap: 16px;
    }

    .home-page .fh-partner .partner-item {
        flex-basis: calc((100% - 2 * 16px) / 3);
    }
}

@media (max-width: 767.98px) {
    .home-page .secpadd {
        padding: 44px 0;
    }

    .home-page .home-products {
        padding-top: 40px;
    }

    .home-page .sidehd1 {
        margin-bottom: 24px;
    }

    .home-page .abouttopinfo h2 {
        font-size: 24px !important;
    }

    .stripse1 p,
    .hdpara {
        font-size: 16px;
    }
}

@media (max-width: 575.98px) {
    .ourfeatures2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-page .fh-icon-box-3 {
        min-height: 0;
        padding: 40px 24px;
    }

    .home-page .fh-icon-box-3:nth-child(odd) .overlay {
        background-color: #0e3b6e;
    }

    .home-page .fh-icon-box-3:nth-child(even) .overlay {
        background-color: #0c325d;
    }

    .home-page .fh-partner .list-item {
        gap: 12px;
    }

    .home-page .fh-partner .partner-item {
        flex-basis: calc((100% - 12px) / 2);
    }

    .home-page .partener1.graybgf .partner-content svg,
    .home-page .partener1.graybgf .partner-content img {
        height: 80px;
    }
}
