/**
 * Module: lp_challenges_grid
 */

/* ============================================
   CHALLENGES GRID
   ============================================ */

.t1-challenges {
    padding: 5rem max(1.5rem, calc(50vw - var(--max-width) / 2 + 1.5rem));
    background: var(--pearl);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Header spans full width and centers */
.t1-challenges__header {
    grid-column: 1 / -1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem;
}

/* Cards - use relative positioning for pseudo-element hover */
.t1-challenges__card {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Hover shadow rendered via pseudo-element opacity */
.t1-challenges__card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.t1-challenges__card:hover::before {
    opacity: 1;
}

.t1-challenges__icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.t1-challenges__title {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.t1-challenges__text {
    font-size: 0.9375rem;
    color: var(--charcoal);
    line-height: 1.6;
    margin: 0;
}

/* CTA Button */
.t1-challenges__cta {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--jade);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.t1-challenges__cta:hover {
    background: var(--jade-dark);
    transform: translateY(-2px);
}

/* Tablet: 2 columns */
@media (min-width: 600px) {
    .t1-challenges {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Desktop: 3 columns */
@media (min-width: 900px) {
    .t1-challenges {
        grid-template-columns: repeat(3, 1fr);
    }

    .t1-challenges__header {
        margin-bottom: 2rem;
    }
}

/* ========================================
   LIGHT THEME OVERRIDE
   ======================================== */

.t1-challenges--light {
    background: white;
}

.t1-challenges--light .t1-challenges__card {
    background: var(--pearl);
    border: 1px solid rgba(26, 29, 33, 0.08);
}

.t1-challenges--light .t1-challenges__title {
    color: var(--ink);
}

.t1-challenges--light .t1-challenges__text {
    color: var(--charcoal);
}