:root {
    --service-navy: #073f6a;
    --service-blue: #0b6caf;
    --service-orange: #ff5a0a;
    --service-ink: #142333;
}

.services-hero {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    background: url('../img/carousel-bg-1.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.services-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 38, 70, .94), rgba(3, 38, 70, .57) 55%, rgba(3, 38, 70, .25));
}

.services-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 32px;
    padding-bottom: 32px;
}

.services-kicker {
    margin-bottom: 12px;
    color: var(--service-orange);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.services-hero .services-kicker {
    color: #ffc19f;
}

.services-hero h1 {
    max-width: 720px;
    margin-bottom: 18px;
    color: #ffffff;
    font-size: clamp(2.6rem, 6vw, 5.3rem);
    font-weight: 700;
    line-height: .96;
    text-transform: uppercase;
}

.services-hero-copy {
    max-width: 550px;
    margin: 0;
    color: #eef5fa;
    font-size: 1.15rem;
    line-height: 1.6;
}

.service-intro {
    max-width: 960px;
    text-align: center;
}

.service-intro h2 {
    margin-bottom: 16px;
    color: var(--service-navy);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    text-transform: uppercase;
}

.service-intro > p:last-child {
    max-width: 780px;
    margin: 0 auto;
    color: #66727d;
    line-height: 1.7;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(7, 63, 106, .14);
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 38px rgba(7, 63, 106, .22);
}

.service-image {
    height: 245px;
    overflow: hidden;
    background: #dce7ee;
}

.service-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card-body {
    position: relative;
    flex: 1;
    padding: 28px 28px 30px;
}

.service-number {
    display: block;
    margin-bottom: 12px;
    color: var(--service-orange);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.service-card h3 {
    margin-bottom: 14px;
    color: var(--service-navy);
    font-size: 1.55rem;
    font-weight: 700;
    text-transform: uppercase;
}

.service-card-title-link {
    color: inherit;
    text-decoration: none;
}

.service-card-title-link:hover {
    color: var(--service-orange);
}

.service-card-title-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.service-card p {
    min-height: 105px;
    margin-bottom: 24px;
    color: #66727d;
    line-height: 1.65;
}

.service-link {
    color: var(--service-navy);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .04em;
}

.service-link i {
    margin-left: 8px;
    color: var(--service-orange);
    transition: margin-left .2s ease;
}

.service-link:hover {
    color: var(--service-orange);
}

.service-link:hover i {
    margin-left: 13px;
}

body.service-focus-active {
    overflow: hidden;
}

.service-focus-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(8, 26, 40, .76);
    animation: service-backdrop-in .2s ease-out;
}

.service-card.service-card-focused {
    position: fixed;
    z-index: 1050;
    top: 50%;
    left: 50%;
    width: min(820px, calc(100vw - 32px));
    max-height: min(86vh, 900px);
    overflow-y: auto;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
    animation: service-card-in .24s ease-out;
}

.service-card-focused .service-image,
.service-card-focused .service-card-featured .service-image {
    height: clamp(180px, 34vh, 320px);
    flex: 0 0 auto;
}

.service-card-focused .service-card-body {
    padding: 30px clamp(22px, 5vw, 48px) 38px;
}

.service-card-focused h3 {
    padding-right: 36px;
}

.service-card-focused p {
    min-height: 0;
}

.service-focus-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: var(--service-navy);
    font-size: 1.1rem;
    cursor: pointer;
}

.service-focus-close:hover,
.service-focus-close:focus-visible {
    background: var(--primary-hover);
}

@keyframes service-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes service-card-in {
    from { opacity: 0; transform: translate(-50%, -48%) scale(.97); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .service-focus-backdrop,
    .service-card.service-card-focused {
        animation: none;
    }
}

.multibrand-section {
    padding: 78px 0 86px;
    background: #f4f6ee;
}

.multibrand-heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.multibrand-heading h2 {
    margin: 0 0 14px;
    color: var(--service-navy);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    text-transform: uppercase;
}

.multibrand-heading > p:last-child {
    margin: 0 auto;
    color: #66727d;
    line-height: 1.7;
}

.multibrand-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.multibrand-card {
    min-height: 190px;
    padding: 18px;
    background: #ffffff;
    border-top: 4px solid var(--primary);
    box-shadow: 0 10px 28px rgba(7, 63, 106, .1);
    text-align: center;
}

.multibrand-logo {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.multibrand-logo img {
    width: 100%;
    max-width: 230px;
    max-height: 130px;
    object-fit: contain;
}

.multibrand-logo img.brand-mitsubishi {
    max-width: 230px;
    max-height: 145px;
    transform: scale(1.25);
}

.service-card-body p strong {
    display: inline-block;
    margin-top: 8px;
    color: var(--service-navy);
    font-size: 1.12rem;
}

.service-rent-banner {
    position: relative;
    background: #d0d0d0;
}

.service-rent-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .12);
}

.service-rent-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-top: 58px;
    padding-bottom: 58px;
}

.service-rent-inner .services-kicker {
    margin-bottom: 10px;
    color: var(--service-navy);
}

.service-rent-inner h2 {
    margin: 0;
    color: var(--service-navy);
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 17px 26px;
    color: var(--service-orange);
    background: #ffffff;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.service-cta:hover {
    color: #ffffff;
    background: var(--service-navy);
}

.service-cta i {
    font-size: 1.25rem;
}

@media (max-width: 991.98px) {
    .services-hero {
        min-height: 380px;
    }

    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-card-featured {
        grid-column: 1 / -1;
    }

    .service-card-featured .service-image {
        height: 280px;
    }

    .multibrand-grid {
        grid-template-columns: 1fr 1fr;
    }

    .multibrand-card:last-child {
        grid-column: auto;
    }
}

@media (max-width: 575.98px) {
    .services-hero {
        min-height: 360px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card-featured {
        grid-column: auto;
    }

    .multibrand-section {
        padding: 58px 0 64px;
    }

    .multibrand-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .multibrand-card:last-child {
        grid-column: auto;
    }

    .service-image,
    .service-card-featured .service-image {
        height: 220px;
    }

    .multibrand-card {
        min-height: 140px;
        padding: 10px;
    }

    .multibrand-logo {
        height: 105px;
    }

    .service-card p {
        min-height: 0;
    }

    .service-rent-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-cta {
        white-space: normal;
    }
}
