/* =========================================================
   MegVolt Tech Website
   Version: 0.2 — Modular Rebuild

   File:
   /assets/css/home/trust.css

   Purpose:
   - Homepage trust/value strip
   - Four key differentiators
   - Compact responsive layout

   Dependencies:
   - /assets/css/main.css
   - /modules/home/trust.php
   ========================================================= */


/* =========================================================
   1. SECTION
   ========================================================= */

.home-trust {
    position: relative;

    width: 100%;

    background:
        linear-gradient(
            180deg,
            #0d0d0d 0%,
            #111111 100%
        );

    border-top:
        1px solid rgba(255, 255, 255, 0.06);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);
}


/* =========================================================
   2. GRID
   ========================================================= */

.home-trust__grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    min-height: 150px;
}


/* =========================================================
   3. ITEM
   ========================================================= */

.home-trust__item {
    position: relative;

    display: flex;
    align-items: flex-start;

    gap: var(--space-4);

    padding:
        clamp(2rem, 3vw, 2.6rem)
        clamp(1.5rem, 2.5vw, 2.4rem);
}


/* vertical separators */

.home-trust__item:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 24%;
    right: 0;

    width: 1px;
    height: 52%;

    background:
        rgba(255, 255, 255, 0.09);
}


/* =========================================================
   4. ICON
   ========================================================= */

.home-trust__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    color: var(--color-red);

    background:
        rgba(215, 25, 32, 0.08);

    border:
        1px solid rgba(215, 25, 32, 0.22);

    border-radius: var(--radius-md);
}

.home-trust__icon svg {
    width: 23px;
    height: 23px;
}


/* =========================================================
   5. CONTENT
   ========================================================= */

.home-trust__content {
    min-width: 0;
}


/* =========================================================
   6. TITLE
   ========================================================= */

.home-trust__title {
    margin-bottom: 0.45rem;

    color: var(--color-white);

    font-size: 0.93rem;
    font-weight: 750;

    line-height: 1.35;

    letter-spacing: -0.01em;
}


/* =========================================================
   7. DESCRIPTION
   ========================================================= */

.home-trust__text {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.56);

    font-size: 0.8rem;

    line-height: 1.6;
}


/* =========================================================
   8. LARGE / MID DESKTOP
   ========================================================= */

@media (max-width: 1200px) {

    .home-trust__item {
        gap: var(--space-3);

        padding-inline: 1.35rem;
    }

    .home-trust__icon {
        width: 44px;
        height: 44px;
    }

    .home-trust__title {
        font-size: 0.88rem;
    }

    .home-trust__text {
        font-size: 0.76rem;
    }

}


/* =========================================================
   9. TABLET
   ========================================================= */

@media (max-width: 900px) {

    .home-trust__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .home-trust__item {
        min-height: 140px;

        padding:
            2rem
            1.5rem;
    }

    .home-trust__item::after {
        display: none;
    }

    .home-trust__item:nth-child(odd) {
        border-right:
            1px solid rgba(255, 255, 255, 0.08);
    }

    .home-trust__item:nth-child(-n + 2) {
        border-bottom:
            1px solid rgba(255, 255, 255, 0.08);
    }

}


/* =========================================================
   10. MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .home-trust__grid {
        grid-template-columns: 1fr;
    }

    .home-trust__item {
        min-height: auto;

        padding:
            1.65rem
            0;
    }

    .home-trust__item:nth-child(odd) {
        border-right: 0;
    }

    .home-trust__item:nth-child(-n + 2) {
        border-bottom:
            1px solid rgba(255, 255, 255, 0.08);
    }

    .home-trust__item:not(:last-child) {
        border-bottom:
            1px solid rgba(255, 255, 255, 0.08);
    }

    .home-trust__icon {
        width: 46px;
        height: 46px;
    }

    .home-trust__title {
        font-size: 0.92rem;
    }

    .home-trust__text {
        font-size: 0.8rem;
    }

}