/**
 * =========================================================
 * PERTECNICA HOMEPAGE ENGINE
 * OFFERINGS SECTION
 * =========================================================
 *
 * DEPENDENCIES:
 * - tokens.css
 * - framework.css
 *
 * =========================================================
 */


/* =========================================================
   OFFERINGS SECTION
========================================================= */

.phe-offerings {
    position: relative;

    background: var(--phe-bg-white);
}


/* =========================================================
   OFFERINGS GRID
========================================================= */

.phe-offerings__grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: var(--phe-space-2xl);
}


/* =========================================================
   OFFERINGS CARD
========================================================= */

.phe-offerings__card {
    position: relative;

    display: flex;
    flex-direction: column;

    justify-content: flex-start;

    min-height: 100%;

    padding: var(--phe-space-3xl);

    overflow: hidden;

    border: 1px solid
        rgba(15, 23, 42, 0.04);

    border-radius: var(--phe-radius-xl);

    background: var(--phe-bg-white);

    box-shadow: var(--phe-shadow-sm);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


/* =========================================================
   ICON
========================================================= */

.phe-offerings__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    margin-bottom: var(--phe-space-2xl);

    border-radius: var(--phe-radius-xl);

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.12),
            rgba(37, 99, 235, 0.05)
        );

    font-size: 2rem;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4);
}


/* =========================================================
   TITLE
========================================================= */

.phe-offerings__title {
    margin-bottom: var(--phe-space-lg);

    font-size: clamp(
        1.45rem,
        1.2vw,
        1.7rem
    );

    font-weight: var(--phe-font-bold);

    line-height: 1.25;

    letter-spacing: -0.02em;

    color: var(--phe-text-primary);
}


/* =========================================================
   TEXT
========================================================= */

.phe-offerings__text {
    margin: 0;

    font-size: 1rem;

    line-height: 1.8;

    color: var(--phe-text-secondary);
}


/* =========================================================
   CARD HOVER
========================================================= */

.phe-offerings__card:hover {
    transform: translateY(-6px);

    box-shadow: var(--phe-shadow-lg);
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1024px) {

    .phe-offerings__grid {
        gap: var(--phe-space-xl);
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 768px) {

    .phe-offerings__grid {
        grid-template-columns: 1fr;
    }

    .phe-offerings__title {
        font-size: 1.3rem;
    }

    .phe-offerings__text {
        font-size: var(--phe-text-sm);
    }

}