/* LigLED Solution Detail
   File: assets/css/solution-detail.css
*/

.solution-detail {
    background: #ffffff;
    color: #071a2f;
}

.solution-detail .shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* Hero */
.solution-detail__hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    background-color: #071a2f;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.solution-detail__hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(
        to bottom,
        rgba(7, 26, 47, 0),
        rgba(7, 26, 47, 0.46)
    );
    pointer-events: none;
}

.solution-detail__hero .shell {
    position: relative;
    z-index: 1;
}

.solution-detail__hero-copy {
    max-width: 760px;
    padding: 190px 0 92px;
    color: #ffffff;
}

.solution-detail__hero-copy h1 {
    margin: 10px 0 24px;
    max-width: 760px;
    font-size: clamp(48px, 6vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: #ffffff;
}

.solution-detail__intro {
    max-width: 670px;
    margin: 0;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
}

/* Application Areas */
.solution-detail__applications {
    padding: 44px 0;
    border-bottom: 1px solid #dfe7ef;
    background: #f5f8fb;
}

.solution-detail__application-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.solution-detail__application-list li {
    padding: 12px 18px;
    border: 1px solid #cdd9e5;
    border-radius: 999px;
    background: #ffffff;
    color: #123252;
    font-size: 14px;
    font-weight: 700;
}

/* Main content */
.solution-detail__content {
    padding: 104px 0;
}

.solution-detail__content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
    gap: 84px;
    align-items: start;
}

.solution-detail__story {
    max-width: 760px;
    font-size: 18px;
    line-height: 1.8;
    color: #43566b;
}

.solution-detail__story > :first-child {
    margin-top: 0;
}

.solution-detail__story h2,
.solution-detail__story h3 {
    margin: 48px 0 18px;
    color: #071a2f;
    line-height: 1.15;
}

.solution-detail__story h2 {
    font-size: clamp(32px, 4vw, 48px);
}

.solution-detail__story h3 {
    font-size: 26px;
}

.solution-detail__story img {
    width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 4px;
}

.solution-detail__contact {
    position: sticky;
    top: 110px;
    padding: 40px;
    background: #071a2f;
    color: #ffffff;
}

.solution-detail__contact h2 {
    margin: 12px 0 18px;
    font-size: 34px;
    line-height: 1.12;
    color: #ffffff;
}

.solution-detail__contact p:not(.eyebrow) {
    margin: 0 0 28px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.74);
}

/* Shared headings */
.solution-detail .section-heading {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: flex-end;
    margin-bottom: 46px;
}

.solution-detail .section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.04em;
}

/* Products */
.solution-detail__products {
    padding: 104px 0 120px;
    background: #f5f8fb;
}

.solution-detail__product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.solution-product-card {
    overflow: hidden;
    border: 1px solid #dce5ee;
    background: #ffffff;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.solution-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(7, 26, 47, 0.1);
}

.solution-product-card__image {
    display: flex;
    min-height: 310px;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #edf2f7;
}

.solution-product-card__image img {
    width: 100%;
    height: 250px;
    object-fit: contain;
}

.solution-product-card__body {
    padding: 26px 28px 30px;
}

.solution-product-card__series {
    margin: 0 0 10px;
    color: #587089;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.solution-product-card h3 {
    margin: 0 0 22px;
    font-size: 24px;
    line-height: 1.2;
}

.solution-product-card h3 a {
    color: #071a2f;
    text-decoration: none;
}

/* Projects */
.solution-detail__projects {
    padding: 104px 0 120px;
    background: #071a2f;
    color: #ffffff;
}

.solution-detail__projects .section-heading h2 {
    color: #ffffff;
}

.solution-detail__project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.solution-project-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
}

.solution-project-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #102a45;
}

.solution-project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.solution-project-card:hover .solution-project-card__image img {
    transform: scale(1.035);
}

.solution-project-card__body {
    padding: 28px 30px 32px;
}

.solution-project-card h3 {
    margin: 0 0 14px;
    font-size: 26px;
}

.solution-project-card h3 a {
    color: #ffffff;
    text-decoration: none;
}

.solution-project-card p {
    margin: 0 0 22px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

/* Empty editor content */
.solution-detail__story:empty {
    display: none;
}

.solution-detail__content-grid:has(.solution-detail__story:empty) {
    grid-template-columns: minmax(300px, 460px);
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 980px) {
    .solution-detail__hero {
        min-height: 540px;
    }

    .solution-detail__hero-copy {
        padding: 160px 0 72px;
    }

    .solution-detail__content-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .solution-detail__contact {
        position: static;
    }

    .solution-detail__product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .solution-detail .shell {
        width: min(100% - 32px, 1180px);
    }

    .solution-detail__hero {
        min-height: 500px;
        align-items: flex-end;
        background-position: center;
    }

    .solution-detail__hero-copy {
        padding: 138px 0 58px;
    }

    .solution-detail__hero-copy h1 {
        font-size: clamp(44px, 14vw, 64px);
    }

    .solution-detail__applications {
        padding: 34px 0;
    }

    .solution-detail__content,
    .solution-detail__products,
    .solution-detail__projects {
        padding: 72px 0;
    }

    .solution-detail .section-heading {
        display: block;
        margin-bottom: 34px;
    }

    .solution-detail .section-heading .text-link {
        display: inline-flex;
        margin-top: 20px;
    }

    .solution-detail__product-grid,
    .solution-detail__project-grid {
        grid-template-columns: 1fr;
    }

    .solution-product-card__image {
        min-height: 260px;
    }

    .solution-detail__contact {
        padding: 30px;
    }
}