/* Yacht Category CSS file */
/* ------------------------------------------------- */

/* Cover Section */
/* ------------------------------------------------- */

section.cover {
    position: relative;
    width: 100%;
    height: 100lvh;
    padding: var(--space-9) 0;
    box-sizing: border-box;
    overflow: hidden;
}

section.cover > img,
section.cover > video {
    position: absolute;
    left: 0;
    top: -15%;
    width: 100%;
    height: 130%;
    object-fit: cover;
    will-change: transform;
}

section.cover::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 66.69%, rgba(0, 0, 0, 0.70) 93.27%);
    background-blend-mode: multiply, normal;
    content: '';
    z-index: 1;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

section.cover .wrap {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    justify-content: end;
}

section.cover .heading-1 {
    display: none;
}

section.cover .body-small {
    color: var(--neutral-25);
    text-align: center;
}

section.cover .yacht-brand-logo {
    align-self: center;
    max-width: 240px;
    width: auto;
    height: auto;
    filter: invert(1) brightness(9);
}

@media (max-width: 650px) {
    section.cover {
        height: 75lvh;
        max-height: 450px;
    }
}

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

.yacht-cat-intro {
    padding: var(--space-11) 0;
}

.yacht-cat-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
    align-items: center;
}

.yacht-cat-intro-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.yacht-cat-intro-content .heading-3 {
    color: var(--neutral-950);
}

.yacht-cat-intro-content .body-medium {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.yacht-cat-intro-image {
    width: 100%;
    height: 100%;
}

.yacht-cat-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.yacht-cat-gallery-slider.splide {
    position: relative;
    aspect-ratio: 1920 / 1080;
    overflow: hidden;
    background: var(--neutral-950);
}

.yacht-cat-gallery-slider .splide__track {
    height: 100%;
}

.yacht-cat-gallery-slider .splide__list {
    height: 100%;
}

.yacht-cat-gallery-slide {
    position: relative;
    height: 100%;
}

.yacht-cat-gallery-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 51.92%, rgba(0, 0, 0, 0.50) 100%);
    background-blend-mode: multiply, normal;
    z-index: 1;
    pointer-events: none;
}

.yacht-cat-gallery-slide-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.yacht-cat-gallery-slide-image img {
    width: 110%;
    height: 130%;
    object-fit: cover;
    position: absolute;
    top: -15%;
    left: -5%;
    will-change: transform;
}

.yacht-cat-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: var(--space-9);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.yacht-cat-gallery-bars {
    display: flex;
    gap: var(--space-2);
}

.yacht-cat-gallery-bar {
    display: block;
    width: 130px;
    height: 2px;
    background: var(--blue-300);
    cursor: pointer;
    transition: background 0.3s ease;
}

.yacht-cat-gallery-bar.is-active {
    background: var(--neutral-25);
}

.yacht-cat-gallery-counter {
    color: var(--neutral-25);
}

.yacht-cat-gallery-next {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.yacht-cat-gallery-next svg {
    display: block;
}

/* Content Section */
/* ------------------------------------------------- */

.yacht-cat-content {
    padding: var(--space-11) 0 0;
}

.yacht-cat-content .eyebrow {
    margin-bottom: var(--space-5);
}

.yacht-cat-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
}

.yacht-cat-content-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.yacht-cat-content-right {
    display: flex;
    flex-direction: column;
}

.yacht-cat-content .heading-3 {
    color: var(--neutral-950);
}

.yacht-cat-content .body-medium {
    color: var(--neutral-500);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* Image Grid Section */
/* ------------------------------------------------- */

.yacht-cat-image-grid {
    padding: var(--space-11) 0;
}

.yacht-cat-image-grid-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-7);
}

.yacht-cat-image-grid-row {
    display: flex;
    gap: var(--space-7);
}

.yacht-cat-image-grid-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);
}

.yacht-cat-image-grid-item:only-child {
    width: 100%;
}

.yacht-cat-image-grid-row:has(.yacht-cat-image-grid-item:hover) .yacht-cat-image-grid-item {
    width: calc(45% - var(--space-7) / 2);
}

.yacht-cat-image-grid-row:has(.yacht-cat-image-grid-item:hover) .yacht-cat-image-grid-item:hover {
    width: calc(55% - var(--space-7) / 2);
}

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

.yacht-cat-image-grid-item:hover img {
    transform: scale(1.05);
}

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

.yacht-cat-gallery-2-slider.splide {
    position: relative;
    aspect-ratio: 1920 / 1080;
    overflow: hidden;
    background: var(--neutral-950);
}

.yacht-cat-gallery-2-slider .splide__track {
    height: 100%;
}

.yacht-cat-gallery-2-slider .splide__list {
    height: 100%;
}

.yacht-cat-gallery-2-slide {
    position: relative;
    height: 100%;
}

.yacht-cat-gallery-2-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 51.92%, rgba(0, 0, 0, 0.50) 100%);
    background-blend-mode: multiply, normal;
    z-index: 1;
    pointer-events: none;
}

.yacht-cat-gallery-2-slide-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.yacht-cat-gallery-2-slide-image img {
    width: 110%;
    height: 130%;
    object-fit: cover;
    position: absolute;
    top: -15%;
    left: -5%;
    will-change: transform;
}

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

@media (max-width: 800px) {
    .yacht-cat-intro-grid,
    .yacht-cat-content-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .yacht-cat-gallery-bars {
        display: none;
    }

    .yacht-cat-gallery-overlay {
        padding: var(--space-6) var(--space-9);
    }
}
