/* Our Story CSS file */
/* ------------------------------------------------- */

/* Introduction Section */
/* ------------------------------------------------- */

.our-story-intro {
    padding: var(--space-11) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

section.our-story-intro .wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    text-align: center;
}

.our-story-intro .heading-2 {
    max-width: 1000px;
    color: var(--neutral-950);
    margin: auto;
}

.our-story-intro .body-large {
    max-width: 720px;
    color: var(--neutral-500);
    margin: auto;
}

/* History Section */
/* ------------------------------------------------- */

.our-story-history {
    padding: var(--space-11) 0;
    background: var(--neutral-50);
}

.our-story-history .heading-3 {
    color: var(--neutral-950);
}

/* Text Section */
/* ------------------------------------------------- */

.our-story-text {
    padding: var(--space-11) 0 0;
}

.our-story-text .eyebrow {
    margin-bottom: var(--space-5);
}

.our-story-text-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
}

.our-story-text-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.our-story-text-right {
    display: flex;
    flex-direction: column;
}

.our-story-text .heading-3 {
    color: var(--neutral-950);
}

.our-story-text .body-medium {
    color: var(--neutral-500);
}

/* Gallery Section */
/* ------------------------------------------------- */

.our-story-gallery {
    padding: var(--space-11) 0;
}

.our-story-gallery-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-7);
}

.our-story-gallery-row {
    display: flex;
    gap: var(--space-7);
}

.our-story-gallery-item {
    display: flex;
    flex-direction: column;
    position: relative;
    width: calc(50% - var(--space-7) / 2);
    height: 45vw;
    max-height: 800px;
    overflow: hidden;
    box-sizing: border-box;
    transition: width 0.6s cubic-bezier(0, 0, 0.2, 1);
}

.our-story-gallery-item:only-child {
    width: 100%;
}

.our-story-gallery-row:has(.our-story-gallery-item:hover) .our-story-gallery-item {
    width: calc(45% - var(--space-7) / 2);
}

.our-story-gallery-row:has(.our-story-gallery-item:hover) .our-story-gallery-item:hover {
    width: calc(55% - var(--space-7) / 2);
}

.our-story-gallery-item img {
    position: absolute;
    left: -5%;
    top: -10%;
    width: 110%;
    height: 120%;
    object-fit: cover;
    will-change: transform;
    transition: transform 0.6s ease;
}

.our-story-gallery-item:hover img {
    transform: scale(1.05);
}

/* Text 2 Section */
/* ------------------------------------------------- */

.our-story-text-2 {
    padding: 0 0 var(--space-11) 0;
}

.our-story-text-2 .eyebrow {
    margin-bottom: var(--space-5);
}

.our-story-text-2-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
}

.our-story-text-2-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.our-story-text-2-right {
    display: flex;
    flex-direction: column;
}

.our-story-text-2 .heading-3 {
    color: var(--neutral-950);
}

.our-story-text-2 .body-medium {
    color: var(--neutral-500);
}

/* Future Section */
/* ------------------------------------------------- */

.our-story-future {
    position: relative;
    padding: var(--space-12) 0;
}

.our-story-future-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.our-story-future-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.our-story-future .wrap {
    position: relative;
    z-index: 1;
}

.our-story-future-content {
    background: rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(5px);
    display: flex;
    padding: var(--space-8) var(--space-10);
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    max-width: 1035px;
    margin: auto;
}

.our-story-future-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    text-align: center;
}

.our-story-future-right {
    text-align: center;
}

.our-story-future .eyebrow {
    color: var(--neutral-25);
}

.our-story-future .heading-3 {
    color: var(--neutral-25);
}

.our-story-future .body-medium {
    color: var(--neutral-25);
}

/* History Timeline */
/* ------------------------------------------------- */

.history-timeline {
    margin-top: var(--space-7);
}

.history-slider .splide__track {
    overflow: hidden;
}

.history-slide {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-8);
    align-items: stretch;
}

.history-slide-image {
    overflow: hidden;
    min-height: clamp(320px, 40vw, 560px);
}

.history-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 500px;
}

.history-slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-4);
}

.history-slider .splide__pagination {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    margin-top: var(--space-8);
}

.history-slider .splide__pagination__page {
    width: auto;
    height: auto;
    min-height: 0;
    background: none;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    font-size: var(--font-size-16);
    font-weight: 450;
    color: var(--blue-400);
    transition: color 0.3s ease, font-size 0.3s ease;
}

.history-slider .splide__pagination__page.is-active {
    background: none;
    transform: none;
    color: var(--blue-700);
    font-weight: 500;
}

/* Responsive */
/* ------------------------------------------------- */

@media (max-width: 800px) {
    .our-story-text-wrapper,
    .our-story-text-2-wrapper {
        grid-template-columns: 1fr;
    }

    .history-slide {
        grid-template-columns: 1fr;
    }
}
