

:root {
    --container-max: 1400px;
    --pad-x: clamp(15px, 3.2vw, 40px);
    --section-space: 60px;
}

@media screen and (max-width: 1024px) {
    :root { --section-space: 45px; }
}

@media screen and (max-width: 767px) {
    :root { --section-space: 40px; }
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.heritage-banner {
    background-image: url("../photos/heritage-background.JPG");
    position: relative;
    width: 100%;
    height: clamp(180px, 22vw, 320px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.us {
    position: absolute;
    inset: 0;
    background: rgba(8, 41, 78, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 var(--pad-x);
}

.us h1 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(20px, 4vw + 8px, 56px);
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-align: center;
    letter-spacing: -1px;
    padding: 0 20px;
    line-height: 1.15;
}

.heritage-container {
    width: 100%;
    max-width: var(--container-max);
    margin: var(--section-space) auto;
    display: flex;
    align-items: flex-start;
    gap: clamp(20px, 3vw, 48px);
    flex-wrap: wrap;
    box-sizing: border-box;
    padding: 0 var(--pad-x);
}

.heritage-main {
    flex: 1 1 45%;
    min-width: 320px;
    max-width: 100%;
}

.heritage-head {
    margin-bottom: clamp(24px, 4vw, 44px);
}

.heritage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.heritage-meta span {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    background: #FFFAF2;
    color: #082A4D;
    font-size: 14px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 20px;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    line-height: 1.5;
}

.heritage-meta span i {
    margin-top: 2px;
    flex-shrink: 0;
}

.heritage-meta i {
    color: #FEB73E;
}

.heritage-head h2 {
    font-family: "Bricolage Grotesque", sans-serif;
    color: #082A4D;
    font-size: clamp(19px, 1.8vw + 15px, 34px);
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.heritage-head p {
    color: #666;
    line-height: 1.7;
    max-width: 640px;
    margin: 0;
}

.heritage-price {
    color: #072A4E;
    font-size: 20px;
    font-weight: 700;
    margin: clamp(22px, 4vw, 44px) 0 clamp(14px, 2vw, 22px);
}

.heritage-price span {
    color: #999;
    font-size: 18px;
    font-weight: 400;
}

.heritage-btns {
    display: flex;
    gap: 12px;
    max-width: 360px;
}

@media screen and (max-width: 480px) {
    .heritage-btns {
        max-width: 100%;
    }
}

.heritage-btns a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 10px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}

.btn-wa {
    background: #25d366;
    color: #fff;
}

.btn-wa:hover {
    background: #1eb659;
}

.btn-call {
    background: #082A4D;
    color: #fff;
}

.btn-call:hover {
    background: #FEB73E;
    color: #082A4D;
}

.timeline {
    --tl-pad: clamp(32px, 6vw, 52px);
    position: relative;
    padding-left: var(--tl-pad);
}

.timeline::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    transform: translateX(-50%);
    background-image: repeating-linear-gradient(
        to bottom,
        #FEB73E 0 8px,
        transparent 8px 16px
    );
}

.tl-item {
    position: relative;
    padding-bottom: clamp(28px, 4vw, 48px);
}

.tl-item:last-child {
    padding-bottom: 0;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--tl-pad) + 13px);
    top: 4px;
    width: clamp(18px, 2vw, 28px);
    height: clamp(18px, 2vw, 28px);
    border-radius: 50%;
    background: #fff;
    border: 2px solid #FEB73E;
    transform: translateX(-50%);
}

.tl-item .day {
    
    font-size: 18px;
    color: #d3831c;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    display: block;
}

.tl-item h3 {
    font-family: "Bricolage Grotesque", sans-serif;
    color: #082A4D;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.tl-item p {
    color: #666;
    line-height: 1.7;
    max-width: 600px;
    margin: 0;
}

.services {
    flex: 1 1 45%;
    min-width: 320px;
    max-width: 620px;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(12px, 1.6vw, 20px);
    position: sticky;
    top: 100px;
    align-content: start;
    box-sizing: border-box;
}

.services a {
    display: block;
}

.t_card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: zoom-in;
}

.t_card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
}

.t_card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(7, 12, 20, .9);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 999;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: clamp(10px, 1.5vw, 25px);
    right: clamp(10px, 2vw, 35px);
    width: clamp(30px, 4vw, 44px);
    height: clamp(30px, 4vw, 44px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: none;
    font-size: clamp(16px, 2vw, 28px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox__close:hover {
    background: #FEB73E;
    color: #082A4D;
}

@media screen and (max-width: 1024px) {
    .heritage-container {
        flex-direction: column;
        gap: 40px;
    }

    .heritage-main {
        flex-basis: auto;
        min-width: 0;
        width: 100%;
    }

    .services {
        flex-basis: auto;
        min-width: 0;
        max-width: 840px;
        width: 100%;
        margin: 0 auto;
        position: static;
    }
}

@media screen and (max-width: 991px) {
    .services {
        max-width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .heritage-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .timeline {
        --tl-pad: clamp(28px, 8vw, 40px);
    }

    .t_card img {
        aspect-ratio: 16 / 11;
    }
}

@media screen and (max-width: 320px) {
    .heritage-container {
        gap: 18px;
    }

    .heritage-btns {
        gap: 8px;
    }

    .heritage-btns a {
        padding: 9px 5px;
    }
}
.heritage-mobile-slider {
    display: none;
}

@media screen and (max-width: 1024px) {
    .heritage-container {
        display: block;
    }

    .heritage-main {
        width: 100%;
        min-width: 0;
    }

    .heritage-container > .services {
        display: none;
    }

    .heritage-mobile-slider {
        display: block;
        position: relative;
        width: 100%;
        overflow: hidden;
        margin-bottom: 40px;
    }

    .heritage-slider-track {
        display: flex;
        width: 100%;
        transition: transform 0.5s ease-in-out;
        will-change: transform;
    }

    .heritage-slide {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        box-shadow: none;
    }

    .heritage-slide:hover {
        transform: none;
        box-shadow: none;
    }

    .heritage-slide img {
        display: block;
        width: 100%;
        height: clamp(300px, 48vw, 500px);
        aspect-ratio: auto;
        object-fit: cover;
        border-radius: 18px;
    }

    .heritage-slider-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }

    .heritage-slider-dot {
        width: 9px;
        height: 9px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #d6d6d6;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .heritage-slider-dot.active {
        width: 24px;
        border-radius: 10px;
        background: #FEB73E;
    }
}

@media screen and (max-width: 767px) {
    .heritage-mobile-slider {
        margin-bottom: 32px;
    }

    .heritage-slide img {
        height: clamp(220px, 60vw, 380px);
        border-radius: 14px;
    }

    .heritage-slider-dots {
        margin-top: 12px;
    }
}

@media screen and (max-width: 480px) {
    .heritage-mobile-slider {
        margin-bottom: 28px;
    }

    .heritage-slide img {
        height: 230px;
        border-radius: 12px;
    }

    .heritage-slider-dots {
        gap: 6px;
        margin-top: 10px;
    }

    .heritage-slider-dot {
        width: 8px;
        height: 8px;
    }

    .heritage-slider-dot.active {
        width: 22px;
    }
}

@media screen and (max-width: 320px) {
    .heritage-slide img {
        height: 190px;
    }
}