.service-details-page {
    background: var(--sand-100);
}

.service-details-page .site-header {
    position: absolute;
    top: 0;
    background: transparent;
}

.service-details-page .site-header.is-scrolled {
    position: absolute;
    background: transparent;
}

.service-details-page .navbar {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.service-details-page .logo-main,
.service-details-page .logo-sub,
.service-details-page .nav-links a,
.service-details-page .detail-phone {
    color: white;
}

.service-details-page .nav-cta {
    color: var(--forest-900);
    background: var(--cream-100);
}

.detail-hero {
    min-height: min(720px, 78vh);
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-image: var(--detail-image);
    background-position: center;
    background-size: cover;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(7, 21, 16, 0.86), rgba(7, 21, 16, 0.22) 75%), linear-gradient(0deg, rgba(7, 21, 16, 0.64), transparent 55%);
}

.detail-hero-content {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 150px 0 92px;
    color: white;
}

.detail-breadcrumb {
    display: inline-flex;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 34px;
}

.detail-hero .eyebrow,
.detail-hero h1,
.detail-hero .detail-intro {
    color: white;
}

.detail-hero h1 {
    max-width: 780px;
    font-size: clamp(48px, 7vw, 92px);
    margin: 14px 0 20px;
}

.detail-intro {
    max-width: 650px;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.55;
}

.detail-body {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(72px, 9vw, 132px) 0;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: clamp(48px, 8vw, 120px);
}

.detail-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 48px;
}

.detail-number {
    color: var(--terracotta);
    font-weight: 700;
    font-size: 15px;
    padding-top: 8px;
}

.detail-gallery h2 {
    font-size: clamp(32px, 4vw, 52px);
}

.detail-space-copy {
    margin-top: 8px;
    color: var(--forest-800);
    font-family: var(--serif);
    font-size: 18px;
}

.detail-items {
    border-top: 1px solid var(--border-med);
}

.detail-items-copy {
    border-top: 1px solid var(--border-med);
    border-bottom: 1px solid var(--border-med);
    padding: 24px 0;
    color: var(--forest-800);
    font-size: 16px;
    line-height: 1.8;
}

.detail-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px 20px;
    padding: 26px 0;
    border-bottom: 1px solid var(--border-med);
}

.detail-item > span {
    color: var(--terracotta);
    font-size: 13px;
    font-weight: 700;
}

.detail-item h3 {
    font-size: 20px;
}

.detail-item p {
    grid-column: 2;
    max-width: 560px;
    font-size: 14px;
}

.detail-note {
    border-left: 3px solid var(--terracotta);
    margin-top: 52px;
    padding: 4px 0 4px 24px;
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.45;
    color: var(--forest-800);
}

.detail-process {
    margin-top: 64px;
    padding-top: 34px;
    border-top: 1px solid var(--border-med);
}

.detail-process h2 {
    font-size: clamp(28px, 3vw, 40px);
    margin: 10px 0 26px;
}

.detail-process ol {
    list-style: none;
    counter-reset: process-step;
    display: grid;
    gap: 0;
}

.detail-process li {
    counter-increment: process-step;
    position: relative;
    padding: 18px 0 18px 52px;
    border-bottom: 1px solid var(--border-med);
    font-size: 15px;
}

.detail-process li::before {
    content: counter(process-step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 18px;
    color: var(--terracotta);
    font-size: 13px;
    font-weight: 700;
}

.detail-aside {
    padding-top: 18px;
}

.detail-image {
    margin: 0;
}

.detail-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.detail-image figcaption {
    padding-top: 12px;
    font-size: 12px;
    color: var(--muted);
}

.detail-cta {
    background: var(--forest-900);
    color: white;
    padding: 32px;
    margin-top: 28px;
}

.detail-cta h2 {
    color: white;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 30px;
    margin: 10px 0 26px;
}

.detail-cta .eyebrow {
    color: var(--terracotta-light);
}

.detail-button,
.service-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.detail-gallery {
    background: var(--cream-200);
    padding: clamp(72px, 9vw, 120px) max(24px, calc((100vw - 1180px) / 2));
}

.detail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 42px;
}

.detail-gallery-grid img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.detail-gallery-grid img:nth-child(2) {
    margin-top: 48px;
}

.detail-gallery-grid img:nth-child(3n) {
    margin-top: 20px;
}

.detail-footer {
    background: var(--forest-950);
    color: rgba(255, 255, 255, 0.72);
    padding: 34px 24px;
}

.detail-footer-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.detail-footer .eyebrow {
    color: var(--terracotta-light);
    margin-bottom: 6px;
}

.detail-boulder {
    position: absolute;
    z-index: 1;
    display: block;
    background: linear-gradient(145deg, #756b5b, #302c26 72%);
    border-radius: 48% 52% 42% 58% / 58% 44% 56% 42%;
    box-shadow: inset -16px -18px 20px rgba(0, 0, 0, 0.28), 0 22px 32px rgba(0, 0, 0, 0.28);
    opacity: 0.92;
}

.boulder-one {
    width: 170px;
    height: 130px;
    right: 7%;
    bottom: -18px;
    transform: rotate(18deg);
}

.boulder-two {
    width: 82px;
    height: 66px;
    right: 19%;
    bottom: 18px;
    transform: rotate(-21deg);
}

@media (max-width: 800px) {
    .service-details-page .nav-links,
    .service-details-page .detail-phone {
        display: none;
    }

    .detail-hero-content,
    .detail-body {
        width: min(100% - 36px, 620px);
    }

    .detail-hero {
        min-height: 650px;
    }

    .detail-hero-content {
        padding-bottom: 58px;
    }

    .detail-body {
        grid-template-columns: 1fr;
        padding-top: 70px;
    }

    .detail-aside {
        padding-top: 0;
    }

    .detail-image img {
        aspect-ratio: 16 / 11;
    }

    .detail-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-gallery-grid img:first-child {
        grid-column: span 2;
    }

    .detail-gallery-grid img {
        height: 220px;
    }

    .detail-gallery-grid img:nth-child(2),
    .detail-gallery-grid img:nth-child(3n) {
        margin-top: 0;
    }

    .detail-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .detail-boulder,
    .detail-gallery-grid img {
        transition: none;
    }
}
