/* Section Service */

.service-page {
    background: var(--tk-bg);
}

.service-hero {
    padding: 3.5rem 0 2.5rem;
    color: #fff;
    background:
        linear-gradient(125deg, rgba(255, 87, 31, 0.22) 0%, transparent 42%),
        linear-gradient(180deg, #111111 0%, #1a1a1a 100%);
    border-bottom: 3px solid var(--tk-gold);
}

.service-hero__inner {
    max-width: 44rem;
}

.service-hero__eyebrow {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tk-gold-light);
}

.service-hero__title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.service-hero__lead {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.service-nav-blocks {
    padding: 2rem 0 4rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    grid-column: span 2;
    min-height: 240px;
    color: #fff;
    background: var(--tk-black);
    overflow: hidden;
}

.service-card:nth-child(4),
.service-card:nth-child(5) {
    grid-column: span 3;
}

.service-card:hover {
    color: #fff;
}

.service-card__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.service-card:hover .service-card__media img {
    transform: scale(1.06);
}

.service-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(17, 17, 17, 0.92) 0%,
        rgba(17, 17, 17, 0.4) 55%,
        rgba(17, 17, 17, 0.2) 100%
    );
    transition: background var(--transition);
}

.service-card:hover .service-card__overlay {
    background: linear-gradient(
        to top,
        rgba(17, 17, 17, 0.96) 0%,
        rgba(17, 17, 17, 0.35) 100%
    );
}

.service-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.5rem;
}

.service-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-card__text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.78);
}

.service-card__arrow {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tk-gold-light);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity var(--transition), transform var(--transition);
}

.service-card:hover .service-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

.service-detail {
    padding: 2.5rem 0 4rem;
}

.service-detail__header {
    max-width: 44rem;
    margin-bottom: 1.5rem;
}

.service-breadcrumb {
    margin-bottom: 1rem;
}

.service-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
}

.service-breadcrumb__item:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--tk-text-muted);
}

.service-breadcrumb__item a {
    font-weight: 600;
    color: var(--tk-gold-light);
}

.service-breadcrumb__item a:hover {
    color: #fff;
}

.service-breadcrumb__item [aria-current='page'] {
    color: var(--tk-text-muted);
}

.service-detail__title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.service-detail__banner {
    width: 100%;
    margin: 0 0 2rem;
    overflow: hidden;
    background: #151515;
    border-block: 1px solid var(--tk-border);
}

.service-detail__banner img {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9;
    max-height: min(42vw, 420px);
    object-fit: cover;
    object-position: center;
}

.service-detail__stack {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.service-intro {
    padding: 1.5rem 1.5rem 1.65rem;
    background: var(--tk-surface);
    border: 1px solid var(--tk-border);
}

.service-intro__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.service-rich {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 1.03125rem;
    line-height: 1.7;
    color: var(--tk-text-muted);
}

.service-rich > *:first-child {
    margin-top: 0;
}

.service-rich > *:last-child {
    margin-bottom: 0;
}

.service-rich p,
.service-rich ul,
.service-rich ol {
    margin: 0;
}

.service-rich p + p,
.service-rich p + ul,
.service-rich ul + p,
.service-rich p + ol,
.service-rich ol + p {
    margin-top: 0.85rem;
}

.service-rich a {
    color: var(--tk-gold-light);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.service-rich ul,
.service-rich ol {
    padding: 0;
    list-style: none;
}

.service-rich li {
    position: relative;
    margin: 0.4rem 0;
    padding-left: 1.15rem;
    line-height: 1.55;
}

.service-rich ul > li::before {
    content: '';
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 0.45rem;
    height: 0.45rem;
    background: var(--tk-gold);
}

.service-rich ol {
    counter-reset: service-ol;
}

.service-rich ol > li {
    counter-increment: service-ol;
}

.service-rich ol > li::before {
    content: counter(service-ol) ".";
    position: absolute;
    left: 0;
    color: var(--tk-gold);
    font-weight: 700;
}

.service-modules {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.service-module {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 280px;
    overflow: hidden;
    background: var(--tk-surface-raised);
    border: 1px solid var(--tk-border);
}

.service-module--with-media {
    grid-template-columns: minmax(16rem, 0.95fr) minmax(0, 1.35fr);
}

.service-module__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.85rem;
    padding: 1.75rem 1.5rem 1.75rem 1.75rem;
    background: linear-gradient(
        90deg,
        var(--tk-surface-raised) 0%,
        var(--tk-surface-raised) 62%,
        rgba(36, 36, 36, 0.88) 82%,
        rgba(36, 36, 36, 0) 100%
    );
}

.service-module--with-media .service-module__content {
    margin-right: -18%;
}

.service-module__title {
    margin: 0;
    padding-bottom: 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.service-module__media {
    position: relative;
    z-index: 1;
    min-height: 280px;
    background: #111;
}

.service-module__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: center;
}

.service-module__media::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--tk-surface-raised) 0%,
        rgba(36, 36, 36, 0.72) 18%,
        rgba(36, 36, 36, 0.28) 42%,
        transparent 68%
    );
}

.service-annex {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.service-annex__item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 4.25rem;
    padding: 0.75rem 1rem;
    color: #fff;
    background: var(--tk-surface);
    border: 1px solid var(--tk-border);
    transition: border-color var(--transition), transform var(--transition);
}

a.service-annex__item:hover {
    color: #fff;
    border-color: rgba(255, 87, 31, 0.65);
    transform: translateY(-1px);
}

.service-annex__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--tk-border);
}

.service-annex__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-annex__icon-fallback {
    width: 0.85rem;
    height: 0.85rem;
    background: var(--tk-gold);
}

.service-annex__label {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .service-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card,
    .service-card:nth-child(4),
    .service-card:nth-child(5) {
        grid-column: span 1;
        min-height: 220px;
    }

    .service-annex {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .service-module--with-media {
        grid-template-columns: 1fr;
    }

    .service-module--with-media .service-module__content {
        margin-right: 0;
        background: var(--tk-surface-raised);
    }

    .service-module__media {
        min-height: 220px;
        order: -1;
    }

    .service-module__media img {
        min-height: 220px;
        aspect-ratio: 16 / 9;
    }

    .service-module__media::before {
        background: linear-gradient(
            180deg,
            transparent 0%,
            rgba(36, 36, 36, 0.35) 45%,
            var(--tk-surface-raised) 100%
        );
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 2.5rem 0 2rem;
    }

    .service-nav-blocks {
        padding: 1.25rem 0 3rem;
    }

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

    .service-detail {
        padding: 2rem 0 3rem;
    }

    .service-detail__banner img {
        aspect-ratio: 16 / 9;
        max-height: none;
    }

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