/**
 * =========================================================
 * PERTECNICA HOMEPAGE ENGINE
 * WHY PERTECNICA SECTION
 * =========================================================
 *
 * DEPENDENCIES:
 * - tokens.css
 * - framework.css
 *
 * =========================================================
 */


/* =========================================================
   SECTION
========================================================= */

.phe-why-pertecnica {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #ffffff 100%
        );
}


/* =========================================================
   GRID
========================================================= */

.phe-why-pertecnica__grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: var(--phe-space-2xl);
}


/* =========================================================
   CARD
========================================================= */

.phe-why-pertecnica__card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 100%;

    overflow: hidden;

    background:
        rgba(255, 255, 255, 0.92);

    backdrop-filter: blur(10px);

    border:
        1px solid rgba(15, 23, 42, 0.05);
}


/* =========================================================
   ICON
========================================================= */

.phe-why-pertecnica__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;

    margin-bottom: var(--phe-space-2xl);

    border-radius: var(--phe-radius-lg);

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.10),
            rgba(37, 99, 235, 0.03)
        );

    font-size: 1.8rem;
}


/* =========================================================
   TITLE
========================================================= */

.phe-why-pertecnica__title {
    margin-bottom: var(--phe-space-lg);

    font-size: 1.4rem;
    font-weight: var(--phe-font-bold);

    line-height: var(--phe-line-snug);

    color: var(--phe-text-primary);
}


/* =========================================================
   TEXT
========================================================= */

.phe-why-pertecnica__text {
    margin: 0;

    font-size: var(--phe-text-md);

    line-height: var(--phe-line-relaxed);

    color: var(--phe-text-secondary);
}


/* =========================================================
   CARD HOVER
========================================================= */

.phe-why-pertecnica__card:hover {
    transform: translateY(-4px);

    box-shadow: var(--phe-shadow-lg);
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1024px) {

    .phe-why-pertecnica__grid {
        gap: var(--phe-space-xl);
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 768px) {

    .phe-why-pertecnica__grid {
        grid-template-columns: 1fr;
    }

    .phe-why-pertecnica__title {
        font-size: 1.28rem;
    }

    .phe-why-pertecnica__text {
        font-size: var(--phe-text-sm);
    }

}