/* The page sheet that rides over the pinned hero. Opaque so the
   rounded lip reads against the photo behind it. */
.home-page {
    background: #fffdf8;
}

/* =====================================================
   OUR SOLUTIONS — IMAGE TILE GRID
   ====================================================== */

.solutions {
    padding: var(--section-pad) 24px;
    background: #fffdf8;
}

.si-container {
    max-width: 1240px;
    margin: 0 auto;
}

/* ---- Header ---- */
.si-header {
    margin-bottom: var(--header-gap);
}

.header-text{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.si-badge-wrapper{
    display: flex;
    justify-content: center;
    width: 100%;
}

.si-badge {
    display: table;
    padding: 6px 18px;
    border-radius: 100px;
    background: rgba(254, 111, 1, .09);
    border: 1px solid rgba(254, 111, 1, .2);
    color: var(--orange-dark, #cb5901);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom:14px;

}

.si-title {
    max-width: 620px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.3px;
    color: var(--black, #171714);
}

.si-subtitle {
    max-width: 360px;
    padding-bottom: 6px;
    color: var(--gray, #706b61);
    font-size: 15px;
    line-height: 1.7;
}

/* ---- Grid: three tiles per row ---- */
.si-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    /* Every tile the same height, not just the ones sharing a row — the
       descriptions differ in length and ragged rows read as broken. */
    grid-auto-rows: 1fr;
    gap: 16px;
}

/* Same photo-tile treatment the feature tiles used before:
   full-bleed image, dark scrim, white copy pinned to the bottom. */
.si-item {
    position: relative;
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    min-height: 300px;
    padding: 22px;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 380ms cubic-bezier(.2, .8, .2, 1),
                box-shadow 380ms cubic-bezier(.2, .8, .2, 1);
}

.si-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(23, 23, 20, .16);
}

.si-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transition: transform 900ms cubic-bezier(.2, .8, .2, 1);
}

.si-item:hover .si-photo {
    transform: scale(1.06);
}

.si-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(12, 12, 10, .94) 6%, rgba(12, 12, 10, .78) 46%, rgba(12, 12, 10, .34) 78%, rgba(12, 12, 10, .12) 100%);
    transition: background 380ms ease;
}

.si-item:hover::after {
    background: linear-gradient(to top, rgba(90, 38, 0, .94) 6%, rgba(52, 24, 4, .78) 46%, rgba(20, 14, 8, .34) 78%, rgba(12, 12, 10, .12) 100%);
}

.si-text {
    position: relative;
    z-index: 2;
}

.si-name {
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.4px;
    line-height: 1.2;
    color: #ffffff;
}

.si-note {
    margin-top: 5px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.5;
}

.si-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: var(--orange-light, #ff9445);
    font-size: 13px;
    font-weight: 700;
    transition: gap 260ms ease, color 260ms ease;
}

.si-item:hover .si-link {
    gap: 12px;
    color: #ffffff;
}

.si-link svg,
.si-link i {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ---- Through to the full services page ---- */
.si-cta {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.si-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    background: var(--orange, #fe6f01);
    color: var(--black, #171714);
    font-size: 14px;
    font-weight: 700;
    transition: all 320ms cubic-bezier(.2, .8, .2, 1);
}

.si-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(254, 111, 1, .35);
}

.si-all svg,
.si-all i {
    width: 16px;
    height: 16px;
    transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
}

.si-all:hover svg {
    transform: translateX(3px);
}

/* =====================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1000px) {
    /* .si-header is a plain block now — the split row is .header-text. */
    .header-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .si-subtitle {
        max-width: 100%;
    }
}

@media (max-width: 820px) {
    .si-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .solutions {
        padding: var(--section-pad) 20px;
    }
    .si-grid {
        grid-template-columns: 1fr;
    }
    .si-item {
        min-height: 200px;
    }
}
