/* =========================================================
   DETAIL SERVICE 4
   NIKI SEKAWAN PONDASI
   STRAUSS PILE
   ========================================================= */


/* =========================================================
   DETAIL HERO
   ========================================================= */

.detail-hero {
    position: relative;

    min-height: 480px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.911),
            rgba(0, 0, 0, 0.466),
            rgba(0, 0, 0, 0.397)
        ),
        url("BORE-PILE-MINI-CRANE.01.jpg") center/cover no-repeat;

    overflow: hidden;
}


.detail-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.507),
            rgba(0, 0, 0, 0),
            transparent
        );
}


.detail-hero-content {
    position: relative;

    z-index: 2;

    padding-top: 80px;
    padding-bottom: 70px;
}


.detail-hero h1 {
    max-width: 800px;

    margin: 0;

    color: var(--white);

    font-size: clamp(38px, 5vw, 68px);

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -2px;
}


.detail-hero h1 strong {
    color: var(--yellow);
}


.detail-hero p {
    max-width: 700px;

    margin: 25px 0 0;

    color: rgba(255, 255, 255, .85);

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.detail-breadcrumb {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 30px;

    color: rgba(255, 255, 255, .65);

    font-size: 14px;
}


.detail-breadcrumb a {
    color: var(--white);

    text-decoration: none;

    transition: var(--transition);
}


.detail-breadcrumb a:hover {
    color: var(--yellow);
}


.detail-breadcrumb i {
    color: var(--yellow);

    font-size: 11px;
}


.detail-breadcrumb span {
    color: rgba(255, 255, 255, .6);
}


/* =========================================================
   DETAIL ABOUT
   ========================================================= */

.detail-about {
    padding: 100px 0;

    background: var(--white);
}


.detail-about-grid {
    display: grid;

    grid-template-columns: .9fr 1.1fr;

    align-items: center;

    gap: 80px;
}


/* =========================================================
   DETAIL IMAGE
   ========================================================= */

.detail-image {
    position: relative;

    width: 78%;

    max-width: 500px;

    margin: 0 auto;

    padding: 15px;

    isolation: isolate;
}


.detail-image::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: calc(100% - 15px);
    height: calc(100% - 15px);

    border: 2px solid var(--yellow);

    border-radius: var(--radius-lg);

    z-index: -1;
}


/* =========================================================
   GALLERY
   ========================================================= */

.detail-gallery {
    position: relative;

    width: 100%;
}


/* =========================================================
   MAIN MEDIA
   ========================================================= */

.gallery-main {
    position: relative;

    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    border-radius: var(--radius-lg);

    background: #f3f3f3;

    box-shadow: var(--shadow);
}


/* =========================================================
   FOTO UTAMA
   ========================================================= */

.gallery-main img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    object-position: center;

    border-radius: var(--radius-lg);

    background: #f3f3f3;

    cursor: zoom-in;
}


/* =========================================================
   VIDEO UTAMA
   ========================================================= */

.gallery-main video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    object-position: center;

    border-radius: var(--radius-lg);

    background: #111;

    cursor: default;
}


/* =========================================================
   ZOOM BUTTON
   ========================================================= */

.gallery-zoom {
    position: absolute;

    right: 15px;
    bottom: 15px;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background: rgba(18, 60, 42, .9);

    color: var(--white);

    font-size: 15px;

    cursor: pointer;

    transition: var(--transition);

    z-index: 5;
}


.gallery-zoom:hover {
    background: var(--yellow);

    color: var(--green-dark);

    transform: scale(1.08);
}


/* =========================================================
   THUMBNAILS
   ========================================================= */

.gallery-thumbnails {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 14px;

    padding: 3px 2px 8px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;

    scrollbar-width: thin;
}


.gallery-thumbnails::-webkit-scrollbar {
    height: 5px;
}


.gallery-thumbnails::-webkit-scrollbar-track {
    background: #eeeeee;

    border-radius: 20px;
}


.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--green);

    border-radius: 20px;
}


/* =========================================================
   THUMBNAIL BUTTON
   ========================================================= */

.thumbnail {
    position: relative;

    flex: 0 0 78px;

    width: 78px;
    height: 60px;

    padding: 0;

    border: 2px solid transparent;

    border-radius: var(--radius-sm);

    overflow: hidden;

    background: #eeeeee;

    cursor: pointer;

    transition: var(--transition);
}


.thumbnail:hover {
    transform: translateY(-2px);
}


.thumbnail.active {
    border-color: var(--yellow);

    box-shadow:
        0 0 0 2px rgba(244, 197, 66, .15);
}


/* =========================================================
   THUMBNAIL MEDIA
   ========================================================= */

.thumbnail img,
.thumbnail video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;
}


/* =========================================================
   VIDEO ICON
   ========================================================= */

.video-icon {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(18, 60, 42, .9);

    color: var(--white);

    font-size: 11px;

    pointer-events: none;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.image-lightbox {
    position: fixed;

    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, .94);

    z-index: 99999;
}


.image-lightbox.active {
    display: flex;
}


/* =========================================================
   FOTO LIGHTBOX
   ========================================================= */

.image-lightbox img {
    display: block;

    width: auto;
    height: auto;

    max-width: 95vw;
    max-height: 90vh;

    object-fit: contain;

    border-radius: 12px;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, .55);

    cursor: zoom-out;
}


/* =========================================================
   LIGHTBOX CLOSE
   ========================================================= */

.lightbox-close {
    position: fixed;

    top: 20px;
    right: 25px;

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, .12);

    color: var(--white);

    font-size: 22px;

    cursor: pointer;

    z-index: 100000;

    transition: .25s ease;
}


.lightbox-close:hover {
    background: var(--yellow);

    color: var(--green-dark);

    transform: rotate(90deg);
}


/* =========================================================
   BODY SAAT LIGHTBOX AKTIF
   ========================================================= */

body.lightbox-open {
    overflow: hidden;
}


/* =========================================================
   DETAIL CONTENT
   ========================================================= */

.detail-content {
    max-width: 700px;
}


.detail-label {
    display: inline-block;

    margin-bottom: 15px;

    color: var(--green);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 2px;
}


.detail-content h2 {
    margin: 0 0 25px;

    color: var(--green-dark);

    font-size: clamp(30px, 4vw, 48px);

    line-height: 1.1;

    letter-spacing: -1px;
}


.detail-content h2 strong {
    color: var(--yellow);
}


.detail-content p {
    margin: 0 0 18px;

    color: var(--text);

    font-size: 16px;

    line-height: 1.85;
}


.detail-content p strong {
    color: var(--green-dark);
}


/* =========================================================
   DETAIL BUTTON
   ========================================================= */

.detail-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 15px;

    padding: 14px 24px;

    border-radius: 8px;

    background: var(--green-dark);

    color: var(--white);

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition: var(--transition);
}


.detail-button i {
    transition: var(--transition);
}


.detail-button:hover {
    background: var(--yellow);

    color: var(--green-dark);

    transform: translateY(-2px);
}


.detail-button:hover i {
    transform: translateX(4px);
}


/* =========================================================
   DETAIL USAGE
   ========================================================= */

.detail-usage {
    padding: 90px 0;

    background: var(--bg);
}


.detail-usage-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}


.usage-title h2 {
    margin: 0 0 20px;

    color: var(--green-dark);

    font-size: clamp(30px, 4vw, 46px);

    line-height: 1.1;
}


.usage-title h2 strong {
    color: var(--yellow);
}


.usage-title p {
    max-width: 600px;

    margin: 0;

    color: var(--text);

    line-height: 1.8;
}


/* =========================================================
   USAGE LIST
   ========================================================= */

.usage-list {
    display: flex;

    flex-direction: column;

    gap: 15px;
}


.usage-item {
    display: flex;

    align-items: center;

    gap: 18px;

    padding: 20px;

    border-radius: var(--radius);

    background: var(--white);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}


.usage-item:hover {
    transform: translateX(5px);

    border-color: var(--yellow);
}


.usage-item i {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(244, 197, 66, .15);

    color: var(--green);

    font-size: 19px;
}


.usage-item span {
    color: var(--green-dark);

    font-size: 15px;

    font-weight: 600;

    line-height: 1.5;
}


/* =========================================================
   DETAIL SPECIFICATION
   ========================================================= */

.detail-spec {
    padding: 100px 0;

    background: var(--white);
}


.detail-spec-heading {
    text-align: center;

    max-width: 700px;

    margin: 0 auto 50px;
}


.detail-spec-heading h2 {
    margin: 0;

    color: var(--green-dark);

    font-size: clamp(30px, 4vw, 46px);

    line-height: 1.1;
}


.detail-spec-heading h2 strong {
    color: var(--yellow);
}


/* =========================================================
   SPEC TABLE
   ========================================================= */

.spec-table {
    max-width: 900px;

    margin: 0 auto;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    overflow: hidden;

    box-shadow: var(--shadow-sm);
}


.spec-row {
    display: grid;

    grid-template-columns: 1fr 1.5fr;

    border-bottom: 1px solid var(--border);
}


.spec-row:last-child {
    border-bottom: none;
}


.spec-row span,
.spec-row strong {
    padding: 18px 22px;

    font-size: 15px;
}


.spec-row span {
    background: var(--bg);

    color: var(--text);

    font-weight: 600;
}


.spec-row strong {
    background: var(--white);

    color: var(--green-dark);

    font-weight: 700;
}


/* =========================================================
   DETAIL CTA
   ========================================================= */

.detail-cta {
    padding: 90px 0;

    background:
        linear-gradient(
            135deg,
            var(--black),
            var(--black)
        );
}


.detail-cta-content {
    max-width: 850px;

    margin: 0 auto;

    text-align: center;
}


.detail-cta-content > span {
    display: inline-block;

    margin-bottom: 15px;

    color: var(--yellow);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 2px;
}


.detail-cta-content h2 {
    margin: 0 0 20px;

    color: var(--white);

    font-size: clamp(30px, 4vw, 48px);

    line-height: 1.15;
}


.detail-cta-content h2 strong {
    color: var(--yellow);
}


.detail-cta-content p {
    max-width: 700px;

    margin: 0 auto;

    color: rgba(255, 255, 255, .8);

    font-size: 16px;

    line-height: 1.8;
}


.detail-cta-content .detail-button {
    margin-top: 30px;

    background: var(--yellow);

    color: var(--green-dark);
}


.detail-cta-content .detail-button:hover {
    background: var(--white);

    color: var(--green-dark);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: #000000;

    color: rgba(255, 255, 255, .8);
}


.footer a {
    color: rgba(255, 255, 255, .8);

    text-decoration: none;

    transition: var(--transition);
}


.footer a:hover {
    color: var(--yellow);
}


/* =========================================================
   WHATSAPP
   ========================================================= */

.whatsapp {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 56px;
    height: 56px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #25d366;

    color: #ffffff;

    font-size: 26px;

    text-decoration: none;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .2);

    z-index: 999;

    transition: .3s ease;
}


.whatsapp:hover {
    transform: scale(1.1);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .detail-about-grid {
        grid-template-columns: 1fr;

        gap: 55px;
    }


    .detail-image {
        width: 100%;

        max-width: 600px;

        margin: 0 auto;
    }


    .detail-content {
        max-width: 100%;
    }


    .detail-usage-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

}


/* =========================================================
   TABLET SMALL
   ========================================================= */

@media (max-width: 768px) {

    .detail-hero {
        min-height: 420px;
    }


    .detail-hero-content {
        padding-top: 60px;

        padding-bottom: 55px;
    }


    .detail-hero h1 {
        letter-spacing: -1px;
    }


    .detail-hero p {
        font-size: 15px;
    }


    .detail-about,
    .detail-spec {
        padding: 70px 0;
    }


    .detail-usage {
        padding: 70px 0;
    }


    .detail-cta {
        padding: 70px 0;
    }


    .detail-image {
        width: 90%;

        max-width: 520px;

        padding: 12px;
    }


    .gallery-main {
        aspect-ratio: 4 / 3;
    }


    .thumbnail {
        flex-basis: 72px;

        width: 72px;

        height: 56px;
    }


    .spec-row {
        grid-template-columns: 1fr;
    }


    .spec-row span {
        padding-bottom: 8px;
    }


    .spec-row strong {
        padding-top: 8px;
    }


    /* =====================================================
       LIGHTBOX TABLET
       ===================================================== */

    .image-lightbox {
        padding: 20px;
    }


    .image-lightbox img {
        max-width: 94vw;

        max-height: 88vh;

        border-radius: 10px;
    }


    .lightbox-close {
        top: 15px;

        right: 15px;

        width: 42px;

        height: 42px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .detail-hero {
        min-height: 390px;
    }


    .detail-hero-content {
        padding-top: 45px;

        padding-bottom: 45px;
    }


    .detail-hero h1 {
        font-size: 36px;
    }


    .detail-hero p {
        margin-top: 18px;

        font-size: 14px;

        line-height: 1.7;
    }


    .detail-breadcrumb {
        margin-top: 22px;

        font-size: 12px;
    }


    .detail-about,
    .detail-spec {
        padding: 55px 0;
    }


    .detail-usage,
    .detail-cta {
        padding: 55px 0;
    }


    .detail-image {
        width: 100%;

        max-width: 100%;

        padding: 10px;
    }


    .detail-image::before {
        width: calc(100% - 10px);

        height: calc(100% - 10px);
    }


    /* =====================================================
       GALLERY MOBILE
       ===================================================== */

    .gallery-main {
        aspect-ratio: 4 / 3;

        border-radius: 12px;

        background: #f3f3f3;
    }


    .gallery-main img,
    .gallery-main video {
        border-radius: 12px;

        object-fit: contain;
    }


    .gallery-zoom {
        right: 10px;

        bottom: 10px;

        width: 38px;

        height: 38px;

        font-size: 13px;
    }


    .gallery-thumbnails {
        gap: 8px;

        margin-top: 10px;
    }


    .thumbnail {
        flex: 0 0 68px;

        width: 68px;

        height: 52px;

        border-radius: 7px;
    }


    .video-icon {
        width: 26px;

        height: 26px;

        font-size: 9px;
    }


    /* =====================================================
       LIGHTBOX MOBILE
       ===================================================== */

    .image-lightbox {
        padding: 15px;
    }


    .image-lightbox img {
        max-width: 96vw;

        max-height: 86vh;

        border-radius: 8px;
    }


    .lightbox-close {
        top: 12px;

        right: 12px;

        width: 40px;

        height: 40px;

        font-size: 18px;
    }


    /* =====================================================
       CONTENT MOBILE
       ===================================================== */

    .detail-content h2 {
        font-size: 32px;
    }


    .detail-content p {
        font-size: 14px;

        line-height: 1.75;
    }


    .detail-button {
        width: 100%;

        padding: 13px 20px;
    }


    .usage-title h2 {
        font-size: 32px;
    }


    .usage-title p {
        font-size: 14px;
    }


    .usage-item {
        padding: 15px;

        gap: 13px;
    }


    .usage-item i {
        flex: 0 0 42px;

        width: 42px;

        height: 42px;

        font-size: 16px;
    }


    .usage-item span {
        font-size: 13px;
    }


    .detail-spec-heading h2 {
        font-size: 32px;
    }


    .spec-row span,
    .spec-row strong {
        padding: 14px 16px;

        font-size: 13px;
    }


    .detail-cta-content h2 {
        font-size: 32px;
    }


    .detail-cta-content p {
        font-size: 14px;
    }


    .whatsapp {
        right: 18px;

        bottom: 18px;

        width: 52px;

        height: 52px;

        font-size: 23px;
    }

}


/* =========================================================
   MOBILE VERY SMALL
   ========================================================= */

@media (max-width: 360px) {

    .detail-hero h1 {
        font-size: 31px;
    }


    .detail-image {
        padding: 8px;
    }


    .gallery-main {
        aspect-ratio: 4 / 3;
    }


    .thumbnail {
        flex-basis: 62px;

        width: 62px;

        height: 48px;
    }


    .detail-content h2,
    .usage-title h2,
    .detail-spec-heading h2,
    .detail-cta-content h2 {

        font-size: 28px;

    }


    .image-lightbox {
        padding: 10px;
    }


    .image-lightbox img {
        max-width: 97vw;

        max-height: 84vh;
    }

}