/* ============================================
   OUR STORY PAGE STYLES
   ============================================ */

/* Hero - Shorter height */
.hero-page--short {
    min-height: 60vh;
}

.heritage {
    padding: 5rem 0;
}

.heritage__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
}

.heritage__left {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.heritage__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.heritage__image img, .heritage__image picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.heritage__image--main {
    max-width: 31rem;
}

.heritage__text-bottom {
    color: #D8C49B;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.75rem;
    max-width: 31rem;
}

.heritage__right {
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

.heritage__right-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.heritage__title {
    color: #FFF;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 2.75rem;   
    letter-spacing: -0.05rem;
}

.heritage__text {
    color: #D8C49B;
    font-size: 1.125rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.75rem;
}

.heritage__image--secondary {
    max-width: 500px;
}

.story-continues {
    padding: 3.5rem 0 0 0;
}

.story-continues__header {
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.story-continues__title {
    color: #FFF;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 2.75rem;   
    letter-spacing: -0.05rem;
}

.story-continues__text {
    color: var(--secondary-500, #D8C49B);
    font-size: 1.125rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.75rem;
    max-width: 76.5rem;
}
    
.story-continues__video {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 43.75rem;
    overflow: hidden;
}

.story-continues__video picture {
    display: block;
    width: 100%;
    height: 100%;
}

.story-continues__video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-continues__video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 45, 24, 0.5);
    pointer-events: none;
}

.story-continues__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 11.3125rem;
    height: 11.3125rem;
    background: url("../../images/play-default-desktop.webp") center center / contain no-repeat;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.story-continues__play:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background-image: url("../../images/play-hover-desktop.webp");
}



.trusted {
    padding: 6.38rem 0;
}

.trusted__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.trusted__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 35.6875rem;
}

.trusted__content-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trusted__title {
    color: #FFF;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 2.75rem;   
    letter-spacing: -0.05rem;
}

.trusted__text {
    color: var(--secondary-500, #D8C49B);
    font-size: 1.125rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.75rem;
    margin: 0;
}

.trusted__text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.trusted__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.trusted__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.values {
    padding: 3.5rem 0;
}

.values__title {
    color: #FFF;
    text-align: center;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 2.75rem;   
    letter-spacing: -0.05rem;
}

.values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 3.5rem;
}

.values__card {
    display: flex;
    flex-direction: column;
}

.values__card:nth-child(1) {
    margin-top: 4rem;
}

.values__card:nth-child(2) {
    margin-top: 0;
}

.values__card:nth-child(3) {
    margin-top: 4rem;
}

.values__card-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.values__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.values__card-title {
    color: #FFF;
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    line-height: 2.5rem;   
    letter-spacing: -0.04rem;
    margin-bottom: 1rem;
}

.values__card-text {
    color: var(--secondary-500, #D8C49B);
    font-size: 1.125rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.75rem;
}

.cta-section {
    background-color: rgba(216, 196, 155, 1);
    padding: 7.75rem 0;
}

.cta-section__wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-section__title {
    color: var(--primary-800, #0D2D18);
    text-align: center;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 2.5rem;   
    letter-spacing: -0.04rem;
    margin-bottom: 1rem;
}

.cta-section__text {
    color: var(--primary-800, #0D2D18);
    text-align: center;
    font-size: 1.125rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.75rem;
    max-width: 63rem;
    margin: 0 auto 2rem auto;
}

.cta-section__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   Video Modal
   ============================================ */

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 26, 31, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.video-modal__close {
    position: absolute;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 1px solid var(--color-border-muted);
    background: #F7F2E5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.video-modal__close:hover {
    background: #eee1c8;
}

.video-modal__close:active {
    background: #d8c49b;
}

.video-modal__content {
    width: 90%;
    max-width: 1200px;
}

.video-modal__wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-modal__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .heritage__container {
        gap: var(--spacing-3xl);
    }

    .trusted__container {
        gap: var(--spacing-3xl);
    }

    .values__grid {
        gap: var(--spacing-lg);
    }

    .story-continues__play {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .hero-page--short {
        min-height: 25rem;
    }

    .heritage {
        padding: 2.75rem 0;
    }

    .heritage__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .heritage__left {
        order: 2;
    }

    .heritage__right {
        order: 1;
    }

    .heritage__right {
        gap: 2rem;
    }

    .heritage__title {
        color: #FFF;
        font-size: 2rem;
        font-weight: 700;
        line-height: 2.5rem; 
        letter-spacing: -0.04rem;
    }

    .heritage__text {
        color: #D8C49B;
        font-size: 1.125rem;
        font-weight: var(--font-weight-regular);
        line-height: 1.75rem; 
    }

    .heritage__left {
        gap: 2rem;
        flex-direction: column-reverse;
    }

    .heritage__image--main {
        max-width: none;
        height: 22.125rem;
    }

    .heritage__text-bottom {
        max-width: none;
    }

    .story-continues {
        padding: 2rem 0;
    }

    .story-continues__header {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2.75rem;
    }

    .story-continues__title {
        color: #FFF;
        font-size: 2rem;
        font-weight: var(--font-weight-bold);
        line-height: 2.5rem;   
        letter-spacing: -0.04rem;
    }

    .story-continues__text {
        color: var(--secondary-500, #D8C49B);
        font-size: 1.125rem;
        font-weight: var(--font-weight-regular);
        line-height: 1.75rem;
    }

    .story-continues__video {
        height: 22.125rem;
    }

    .story-continues__play {
        width: 5.875rem;
        height: 5.875rem;
        background-image: url("../../images/play-default-mobile.webp");
    }

    .trusted {
        padding: 2rem 0 2.5rem 0;
    }

    .trusted__container {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }

    .trusted__title {
        color: #FFF;
        font-size: 2rem;
        font-weight: var(--font-weight-bold);
        line-height: 2.5rem;   
        letter-spacing: -0.04rem;
    }

    .trusted__text {
        color: var(--secondary-500, #D8C49B);
        font-size: 1.125rem;
        font-weight: var(--font-weight-regular);
        line-height: 1.75rem;
    }

    .values {
        padding: 3.5rem 0;
    }

    .values__grid {
        grid-template-columns: 1fr;
        gap: 2.75rem;
        padding-top: 2.75rem;
    }

    .values__card-image {
        height: 22.125rem;
    }

    .values__card-title {
        color: #FFF;
        font-size: 1.75rem;
        font-weight: var(--font-weight-bold);
        line-height: 2.25rem;   
        letter-spacing: -0.035rem;
    }

    .values__card-text {
        color: var(--secondary-500, #D8C49B);
        font-size: 1.125rem;
        font-weight: var(--font-weight-regular);
        line-height: 1.75rem;
    }

    .values__card:nth-child(1),
    .values__card:nth-child(2),
    .values__card:nth-child(3) {
        margin-top: 0;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .cta-section__title {
        font-size: 2rem;
        font-weight: var(--font-weight-bold);
        line-height: 2.5rem;   
        letter-spacing: -0.04rem;
    }
    
    .cta-section__buttons {
        flex-direction: column;
    }

    .cta-section__buttons .btn {
        width: 100%;
        max-width: 100%;
        text-align: center;
        white-space: normal;
        line-height: 1.5;
    }

    .video-modal__close {
        top: var(--spacing-lg);
        right: var(--spacing-lg);
        width: 2.5rem;
        height: 2.5rem;
    }

    .video-modal__content {
        width: 95%;
    }
}
