/* =========================================================
   GAMEMASTER / SERVICES PAGE
   2 cards per row, text left, image right, image full height
   ========================================================= */

.services-page {
    background: var(--off-white);
    color: var(--black);
}

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border-light);
    border-left: 1px solid var(--border-light);
}

.service-detail {
    min-width: 0;
    padding: 0 !important;
    background: var(--off-white);
    color: var(--black);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    transition: background .3s ease;
}

.service-detail:hover {
    background: #fff;
}

/* This wrapper is the full card. */
.service-detail-inner {
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    align-items: stretch;
    min-height: 700px;
    height: 100%;
}

/* Padding belongs only to the text side. */
.service-detail-content {
    min-width: 0;
    height: 100%;
    padding: 48px 42px 46px;
    display: flex;
    flex-direction: column;
}

.service-detail-number {
    margin: 0;
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.service-detail-content h2 {
    margin: 48px 0 0;
    color: var(--black);
    font-size: clamp(32px, 3vw, 48px);
    line-height: .98;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.service-detail-content > p {
    margin: 22px 0 0;
    color: #666;
    font-size: 14px;
    line-height: 1.75;
}

.service-detail-content > ul {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.service-detail-content > ul li {
    position: relative;
    padding: 11px 0 11px 18px;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.service-detail-content > ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 6px;
    height: 6px;
    background: var(--green-dark);
}

.service-detail-actions {
    margin-top: auto;
    padding-top: 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.service-detail-actions .text-link,
.service-detail-actions .button {
    margin-top: 0;
}

/* Important: image fills the whole right column, top to bottom. */
.service-detail-image {
    position: relative;
    min-width: 0;
    min-height: 100%;
    height: 100%;
    align-self: stretch;
    overflow: hidden;
    background: #111;
    border-left: 1px solid rgba(0,0,0,.10);
}

.service-detail-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform .55s ease, filter .4s ease;
}

.service-detail:hover .service-detail-image img {
    transform: scale(1.035);
    filter: brightness(.93);
}

/* Keep controller card identical to the others. */
.service-detail-controller {
    background: var(--off-white);
    color: var(--black);
}

.service-detail-controller h2 {
    color: var(--black);
}

.service-detail-controller .service-detail-number {
    color: var(--green-dark);
}

.service-detail-controller .text-link {
    color: var(--black);
    border-color: var(--black);
}

@media (max-width: 1150px) {
    .services-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-inner {
        min-height: 620px;
        grid-template-columns: minmax(0, 60%) minmax(280px, 40%);
    }

    .service-detail-content {
        padding: 44px 40px;
    }
}

@media (max-width: 760px) {
    .service-detail-inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .service-detail-content {
        order: 1;
        padding: 34px 26px 38px;
    }

    .service-detail-image {
        order: 2;
        height: 320px;
        min-height: 320px;
        border-left: 0;
        border-top: 1px solid var(--border-light);
    }

    .service-detail-content h2 {
        margin-top: 38px;
        font-size: 34px;
    }

    .service-detail-actions {
        margin-top: 32px;
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .service-detail-content {
        padding: 30px 22px 34px;
    }

    .service-detail-image {
        height: 250px;
        min-height: 250px;
    }

    .service-detail-content h2 {
        font-size: 30px;
    }
}
