/* =========================================================
   JNK SERVICE PAGE
   Keep this file separate from the existing global stylesheet.
========================================================= */

:root {
    --jnk-blue: #173f91;
    --jnk-blue-dark: #0b2455;
    --jnk-blue-light: #2e55b5;
    --jnk-text: #142033;
    --jnk-muted: #687387;
    --jnk-light: #f4f6fa;
    --jnk-border: #e2e6ee;
    --jnk-white: #ffffff;
}

* {
    box-sizing: border-box;
}

.jnk-service-page {
    color: var(--jnk-text);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.service-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.service-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--jnk-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.service-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(7, 26, 63, .96), rgba(17, 57, 132, .72)),
        url("assets/img/service/service-banner.jpg") center/cover no-repeat;
}

.service-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    top: 50px;
    margin-bottom: 55px;
    font-size: 14px;
    color: rgba(255,255,255,.65);
}
.service-breadcrumb a {
    color: rgba(255, 255, 255, .7);
    transition: .3s ease;
}


.service-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 20, 48, .75), transparent);
}

.service-hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 100px 0;
    color: #fff;
}

.service-hero .service-eyebrow {
    color: #b9d1ff;
}

.service-hero h1 {
    margin: 0 0 24px;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.03;
    font-weight: 800;
    color: #fff;
}

.service-hero h1 span,
.service-intro h2 span,
.section-heading h2 span,
.service-projects h2 span,
.service-cta h2 span {
    color: #7aa4ff;
}

.service-hero p {
    max-width: 620px;
    margin: 0 0 34px;
    color: rgba(255,255,255,.82);
    font-size: 17px;
    line-height: 1.75;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 2px;
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 800;
    transition: .25s ease;
}

.service-btn span {
    font-size: 18px;
    transition: transform .25s ease;
}

.service-btn:hover span {
    transform: translateX(4px);
}

.service-btn--primary {
    background: var(--jnk-blue);
    color: #fff;
}

.service-btn--primary:hover {
    background: var(--jnk-blue-dark);
    color: #fff;
}

.service-btn--outline {
    margin-left: 10px;
    border-color: rgba(255,255,255,.5);
    color: #fff;
}

.service-btn--outline:hover {
    background: #fff;
    color: var(--jnk-blue);
}

.service-btn--light {
    background: #fff;
    color: var(--jnk-blue);
}

.service-intro {
    padding: 105px 0 80px;
}

.service-intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.service-intro h2,
.section-heading h2,
.service-projects h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 800;
}

.service-intro__grid p {
    margin: 0 0 18px;
    color: var(--jnk-muted);
    line-height: 1.8;
    font-size: 16px;
}

.service-list {
    padding: 80px 0 115px;
    background: var(--jnk-light);
}

.section-heading {
    max-width: 650px;
    margin-bottom: 50px;
}

.section-heading p {
    margin: 18px 0 0;
    color: var(--jnk-muted);
    line-height: 1.7;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-card {
    background: #fff;
    border: 1px solid var(--jnk-border);
    transition: .3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(15, 35, 75, .10);
}

.service-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
}

.service-card__image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.service-card:last-child .service-card__image {
    height: 100%;
    min-height: 300px;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.04);
}

.service-card__number {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 9px 12px;
    background: rgba(9, 31, 72, .9);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.service-card__content {
    padding: 32px;
}

.service-card__label {
    color: var(--jnk-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.service-card h3 {
    margin: 10px 0 14px;
    color: var(--jnk-blue-dark);
    font-size: 27px;
    font-weight: 800;
}

.service-card p {
    min-height: 58px;
    margin: 0 0 24px;
    color: var(--jnk-muted);
    line-height: 1.65;
}

.service-card__link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--jnk-blue);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.service-card__link span {
    margin-left: 8px;
    font-size: 18px;
    transition: .25s ease;
}

.service-card__link:hover span {
    margin-left: 13px;
}

.service-projects {
    padding: 100px 0;
}

.service-projects__heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    margin-bottom: 45px;
}

.service-projects__heading p {
    margin: 0;
    color: var(--jnk-muted);
    line-height: 1.8;
}

.project-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--jnk-border);
    border-bottom: 1px solid var(--jnk-border);
}

.project-strip__item {
    position: relative;
    padding: 28px 30px;
    border-right: 1px solid var(--jnk-border);
}

.project-strip__item:last-child {
    border-right: 0;
}

.project-strip__item span {
    display: block;
    margin-bottom: 15px;
    color: #9aa5b7;
    font-size: 12px;
    font-weight: 800;
}

.project-strip__item strong {
    display: block;
    color: var(--jnk-blue-dark);
    font-size: 15px;
}

.project-strip__item small {
    display: block;
    margin-top: 7px;
    color: var(--jnk-muted);
}

.service-cta {
    padding: 80px 0;
    background: var(--jnk-blue-dark);
}

.service-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.service-cta .service-eyebrow {
    color: #9dbdff;
}

.service-cta h2 {
    max-width: 700px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.08;
}

.service-cta p {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
}


/* =========================================================
   MODAL
========================================================= */

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    padding: 35px 20px;
    align-items: center;
    justify-content: center;
}

.service-modal.is-open {
    display: flex;
}

.service-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 13, 31, .82);
    backdrop-filter: blur(5px);
}

.service-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(1050px, 100%);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 30px 100px rgba(0,0,0,.3);
    animation: serviceModalIn .25s ease;
}

@keyframes serviceModalIn {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-modal__close {
    position: absolute;
    z-index: 5;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.service-modal__hero {
    position: relative;
    height: 330px;
    overflow: hidden;
}

.service-modal__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-modal__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,22,54,.92), rgba(12,49,116,.35));
}

.service-modal__title {
    position: absolute;
    left: 50px;
    right: 50px;
    bottom: 45px;
    color: #fff;
}

.service-modal__title > span {
    display: inline-block;
    margin-right: 12px;
    color: #a9c6ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.service-modal__title h2 {
    margin: 10px 0 0;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
}

.service-modal__body {
    padding: 45px 50px 50px;
}

.modal-section {
    padding: 0 0 35px;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--jnk-border);
}

.modal-section__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--jnk-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.modal-section h3 {
    margin: 0 0 15px;
    color: var(--jnk-blue-dark);
    font-size: 27px;
}

.modal-section > p {
    max-width: 850px;
    margin: 0;
    color: var(--jnk-muted);
    line-height: 1.8;
}

.modal-scope {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 25px;
}

.modal-scope__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    color: var(--jnk-text);
    border-bottom: 1px solid #edf0f5;
    font-size: 14px;
}

.modal-scope__item::before {
    content: "✓";
    color: var(--jnk-blue);
    font-weight: 800;
}

.modal-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.modal-project {
    overflow: hidden;
    border: 1px solid var(--jnk-border);
    background: #fff;
}

.modal-project__image {
    height: 150px;
    overflow: hidden;
}

.modal-project__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-project__content {
    padding: 15px;
}

.modal-project__content strong {
    display: block;
    color: var(--jnk-blue-dark);
    font-size: 12px;
}

.modal-project__content span {
    display: block;
    margin-top: 5px;
    color: var(--jnk-muted);
    font-size: 11px;
}

.modal-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 25px;
    background: var(--jnk-light);
}

.modal-contact strong,
.modal-contact span {
    display: block;
}

.modal-contact strong {
    margin-bottom: 6px;
    color: var(--jnk-blue-dark);
}

.modal-contact span {
    color: var(--jnk-muted);
    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {
    .service-intro__grid,
    .service-projects__heading {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-card:last-child {
        display: block;
    }

    .service-card:last-child .service-card__image {
        min-height: 280px;
    }

    .service-cta__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .service-container {
        width: min(100% - 30px, 1180px);
    }

    .service-hero {
        min-height: 520px;
    }

    .service-hero__content {
        padding: 80px 0;
    }

    .service-btn--outline {
        margin: 12px 0 0;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .service-card:last-child {
        grid-column: auto;
    }

    .project-strip,
    .modal-scope,
    .modal-projects {
        grid-template-columns: 1fr;
    }

    .project-strip__item {
        border-right: 0;
        border-bottom: 1px solid var(--jnk-border);
    }

    .project-strip__item:last-child {
        border-bottom: 0;
    }

    .service-modal {
        padding: 10px;
    }

    .service-modal__dialog {
        max-height: calc(100vh - 20px);
    }

    .service-modal__hero {
        height: 260px;
    }

    .service-modal__title {
        left: 25px;
        right: 25px;
        bottom: 28px;
    }

    .service-modal__body {
        padding: 30px 25px;
    }

    .modal-contact {
        align-items: flex-start;
        flex-direction: column;
    }
}

body.modal-open {
    overflow: hidden;
}
