/* ==========================================================================
   HOMEPAGE CSS - SOFFALUX
   ========================================================================== */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.home-hero {
    padding-top: 80px;
    padding-bottom: 0;
    text-align: center;
}

.home-hero-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 48px;
}

.home-hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 32px;
    line-height: 40px;
    color: #333333;
    text-align: center;
    margin: 0;
}

.home-hero-title span {
    font-weight: 500;
    color: var(--soffalux-primary);
}

.home-hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   MITRA (SWIPER AUTO-SCROLL)
   ========================================================================== */
.home-mitra {
    padding-top: 48px;
    padding-bottom: 48px;
    overflow: hidden;
}

.home-mitra-swiper {
    overflow: visible;
}

.home-mitra-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-mitra-img {
    width: 200px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.home-mitra-img:hover {
    filter: grayscale(0%);
}

/* ==========================================================================
   WE CARRY YOUR TRUST
   ========================================================================== */
.home-trust {
    text-align: center;
}

.home-trust-desc {
    max-width: 1100px;
    margin: 0 auto 24px auto;
}

/* ==========================================================================
   DRY CONTAINER SHIPPING SECTION
   ========================================================================== */
.home-dry-container-section {
    background: linear-gradient(180deg, #F2F4F7 0%, #EAECF0 100%);
    overflow: hidden;
    padding-top: 40px;
}

.home-dry-container-split {
    display: flex;
    align-items: center;
}

.home-dry-container-text-wrapper {
    flex: 0 0 50%;
    padding: 0 var(--soffalux-gutter-desktop);
    box-sizing: border-box;
}

.home-dry-container-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-dry-container-image {
    flex: 0 0 50%;
}

.home-dry-container-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   REEFER CONTAINER SHIPPING SECTION
   ========================================================================== */
.home-reefer-container-section {
    background: linear-gradient(180deg, #CFCFCF 0%, #F3F3F3 100%);
    overflow: hidden;
    padding-top: 40px;
    padding-bottom: 40px;
}

.home-reefer-container-split {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

.home-reefer-container-text-wrapper {
    flex: 0 0 50%;
    padding: 0 var(--soffalux-gutter-desktop);
    box-sizing: border-box;
}

.home-reefer-container-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-reefer-container-image {
    flex: 0 0 50%;
}

.home-reefer-container-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   RESPONSIVE FOR DRY/REEFER SECTIONS
   ========================================================================== */
@media (max-width: 991px) {
    .home-dry-container-split,
    .home-reefer-container-split {
        flex-direction: column;
    }

    .home-dry-container-text-wrapper,
    .home-reefer-container-text-wrapper {
        flex: 0 0 100%;
        width: 100%;
        padding: 0 var(--soffalux-gutter-tablet);
        margin-bottom: 24px;
    }

    .home-dry-container-image,
    .home-reefer-container-image {
        flex: 0 0 100%;
        width: 100%;
    }

    .home-dry-container-img,
    .home-reefer-container-img {
        height: 350px;
    }

    .home-dry-container-section,
    .home-reefer-container-section {
        padding-top: 24px;
        padding-bottom: 24px;
    }
}

@media (max-width: 767px) {
    .home-dry-container-text-wrapper,
    .home-reefer-container-text-wrapper {
        padding: 0 var(--soffalux-gutter-mobile);
    }

    .home-dry-container-img,
    .home-reefer-container-img {
        height: 250px;
    }
}

/* ==========================================================================
   KEUNGGULAN KAMI
   ========================================================================== */
.home-keunggulan {
    background-color: var(--Gray-200, #F9FAFB);
}

.home-keunggulan-header {
    text-align: center;
    margin-bottom: 40px;
}

.home-keunggulan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 60px;
}

@media (max-width: 767px) {
    .home-keunggulan-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   FASILITAS KAMI
   ========================================================================== */
.home-fasilitas {
    background-color: var(--Gray-200, #F9FAFB);
}

@media (max-width: 767px) {
    .home-fasilitas .soffalux-split-content {
        text-align: center;
        padding: 0 !important;
    }

    .home-fasilitas .soffalux-check-list {
        margin-top: 24px;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .home-keunggulan, .home-fasilitas, .home-galeri, .home-news {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .home-cta-content {
        padding-top: 40px !important;
        padding-bottom: 24px !important;
    }
}

/* ==========================================================================
   GALERI
   ========================================================================== */
.home-galeri {
    background-color: var(--Gray-200, #F9FAFB);
}

.home-galeri-header {
    text-align: center;
    margin-bottom: 40px;
}

.home-galeri-swiper-wrapper {
    position: relative;
    overflow: hidden;
}

.home-galeri-swiper {
    overflow: visible;
}

.home-galeri-slide {
    transition: opacity 0.4s ease;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-galeri-slide.swiper-slide-active {
    opacity: 1;
}

.home-galeri-slide-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swiper-slide-active .home-galeri-slide-img {
    height: 375px;
}

.home-galeri-slide-img:hover {
    transform: scale(1.02);
}

.home-galeri-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.home-galeri-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--soffalux-primary);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.home-galeri-btn:hover {
    background-color: var(--soffalux-primary);
    transform: scale(1.05);
}

.home-galeri-btn:hover img {
    filter: brightness(0) invert(1);
}

.home-galeri-btn img {
    width: 24px;
    height: 24px;
    transition: filter 0.3s ease;
}

.home-galeri-btn.prev img {
    transform: rotate(180deg);
}

/* Modal */
.galeri-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.galeri-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.galeri-modal-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.galeri-modal-overlay.active .galeri-modal-img {
    transform: scale(1);
}

.galeri-modal-close {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 40px;
    height: 40px;
    font-size: 28px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   BERITA (NEWS ON HOMEPAGE)
   ========================================================================== */
.home-news {
    background-color: var(--Gray-200, #F9FAFB);
}

.home-news-header {
    text-align: center;
    margin-bottom: 40px;
}

.home-news-footer {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.home-cta {
    background: var(--Gray-300, #F2F4F7);
    text-align: center;
}

.home-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 80px;
    padding-bottom: 48px;
}

.home-cta-img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .home-hero-img {
        height: 350px;
    }

    .home-cta-img {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .home-hero-title {
        font-size: 26px;
        line-height: 36px;
    }

    .home-hero-img {
        height: 220px;
    }

    .home-galeri-slide-img {
        height: 220px;
    }

    .swiper-slide-active .home-galeri-slide-img {
        height: 260px;
    }

    .home-cta-img {
        height: 160px;
    }

    .home-mitra-img {
        width: 140px;
        height: 60px;
    }
}