/* =========================================================
   about.css
   Dipakai untuk halaman: about.html
   ========================================================= */

/* =========================================================
   1) PAGE WRAPPER
   ========================================================= */
.about-page {
    padding-top: 1.2rem;
    padding-bottom: 0;
}

/* =========================================================
   2) TOP COLLAGE + ORNAMENT
   ========================================================= */

/* ===== Top Section Wrapper ===== */
.about-top {
    position: relative;
    padding: 2.2rem 0 1.2rem;
}

/* ===== Ornament Left / Right  ===== */
.about-orn {
    position: absolute;
    top: 30px;
    width: 250px;
    height: 500px;
    background-image: url("../image/ornament/ornament.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.about-orn-left {
    left: -20px;
}

.about-orn-right {
    right: -20px;
    transform: scaleX(-1);
}

/* ===== Collage Container ===== */
.about-collage {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    height: clamp(360px, 55vw, 520px);
    margin: 0 auto;
}

/* ===== Semua Gambar Collage ===== */
.col-img {
    position: absolute;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: var(--shadow);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.col-img:hover {
    z-index: 10 !important;
    transform: translate(-50%, -50%) scale(1.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

@keyframes collageFloat {
    0% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-15px);
    }
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
}

/* ===== Posisi Center (X & Y) Untuk Semua Gambar ===== */
.col-1,
.col-2,
.col-3,
.col-4,
.col-5 {
    top: 50%;
    animation: collageFloat 6s ease-in-out infinite;
}

.col-1 {
    animation-delay: 0s;
}
.col-2 {
    animation-delay: -1.2s;
}
.col-3 {
    animation-delay: -2.4s;
}
.col-4 {
    animation-delay: -3.6s;
}
.col-5 {
    animation-delay: -4.8s;
}

/* ===== Tengah ===== */
.col-3 {
    width: 336px;
    height: 493px;
    left: 50%;
    z-index: 2;
}

/* ===== Inner Left / Right ===== */
.col-2 {
    width: 202px;
    height: 382px;
    left: calc(50% - 170px);
    z-index: 1;
}

.col-4 {
    width: 202px;
    height: 382px;
    left: calc(50% + 170px);
    z-index: 1;
}

/* ===== Outer Left / Right ===== */
.col-1 {
    width: 135px;
    height: 252px;
    left: calc(50% - 285px);
    z-index: 0;
}

.col-5 {
    width: 135px;
    height: 252px;
    left: calc(50% + 285px);
    z-index: 0;
}

/* =========================================================
   3) WHY THE OTTOMAN
   ========================================================= */
.about-why {
    padding: 0;
}

.about-title {
    color: var(--primary);
    font-family: "Calistoga", serif;
    font-size: 1.5rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0 0 0.55rem;
}

.about-desc {
    color: var(--primary);
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
    max-width: 560px;
    text-align: justify;
}

.about-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.about-logo-box img {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

/* =========================================================
   4) VALUE ICONS
   ========================================================= */
.about-values {
    margin: 0;
    margin-top: var(--section-space);
}

.value-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 14px;
}

.value-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.value-icon img {
    width: 100%;
    height: 100%;
}

.value-text {
    font-family: inherit;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

/* Background Colors for Icon Wrappers */
.icon-orange {
    background: rgba(220, 114, 53, 0.15);
}

.icon-gold {
    background: rgba(251, 192, 45, 0.15);
}

.icon-brown {
    background: rgba(139, 90, 43, 0.15);
}

/* =========================================================
   5) STORIES / IG
   ========================================================= */
.about-stories {
    margin: 0;
    margin-top: var(--section-space);
}

.story-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.story-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* ===== Play Button ===== */
.story-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: 0.2s ease;
}

/* ===== Hover State ===== */
.story-card:hover .story-play {
    background: var(--primary);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.08);
}

/* =========================================================
   6) STORE PRESENCE
   ========================================================= */
.store-presence {
    padding: 0;
    /* biar konsisten dengan index */
}

.store-sub {
    color: var(--primary);
    font-weight: 700;
}

.store-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.store-img {
    width: 100%;
    height: 380px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blurred background fallback for portrait aspect ratio */
.store-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.85);
    transform: scale(1.15); /* avoid white border on blur */
    z-index: 1;
}

.store-img img {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 2;
    display: block;
}

.store-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.store-address {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.55;
    margin: 0 0 1.25rem;
    font-size: 0.92rem;
    flex-grow: 1;
}

.store-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: auto;
}

/* =========================================================
   6.5) FAQ
   ========================================================= */
.about-faq {
    padding: 0;
}

.faq-wrap {
    max-width: 860px;
}

.ott-accordion .ott-acc-item {
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    background: #fff;
    margin-bottom: 0.9rem;
}

.ott-accordion .accordion-item + .accordion-item {
    border-top: 0;
}

.ott-accordion .ott-acc-btn {
    font-weight: 800;
    color: var(--primary);
    background: #fff;
    padding: 1rem 1.1rem;
    letter-spacing: 0.2px;
}

.ott-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: #fff;
    box-shadow: none;
}

.ott-accordion .ott-acc-body {
    color: var(--primary);
    font-weight: 600;
    line-height: 1.65;
    padding: 0 1.1rem 1.1rem;
}

.ott-accordion .accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}

.ott-accordion .accordion-button::after {
    filter: brightness(0.2);
}

/* =========================================================
   7) GALLERY SLIDER (ANIMATED)
   ========================================================= */
.about-gallery {
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #000;
}

.gallery-slider {
    width: 100%;
    overflow: hidden;
    padding: 0;
}

.gallery-track {
    display: flex;
    width: calc(250px * 14); /* 14 images total */
    animation: slide-gallery 30s linear infinite;
}

.gallery-track img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 0;
}

@keyframes slide-gallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 7)); /* Move half of the images */
    }
}

/* Pause on Hover */
.gallery-slider:hover .gallery-track {
    animation-play-state: paused;
}

/* =========================================================
   8) RESPONSIVE
   ========================================================= */
/* ===== Tablet & Device Bawah (<= 991px) ===== */
@media (max-width: 991px) {
    /* ===== Ornament Hide ===== */
    .about-orn {
        display: none;
    }
}

/* ===== Mobile (<= 575px) ===== */
@media (max-width: 575px) {
    /* ===== Collage Mobile ===== */
    .about-collage {
        max-width: 360px;
        height: 300px;
        overflow: hidden;
    }

    .col-3 {
        width: 165px;
        height: 250px;
        left: 50%;
    }

    .col-2 {
        width: 110px;
        height: 200px;
        left: calc(50% - 115px);
    }

    .col-4 {
        width: 110px;
        height: 200px;
        left: calc(50% + 115px);
    }

    /* ===== Store Image Mobile ===== */
    .store-img {
        height: 250px;
    }

    /* ===== Gallery Mobile ===== */
    .gallery-track img {
        width: 180px;
        height: 180px;
    }

    .gallery-track {
        width: calc(180px * 14);
    }

    @keyframes slide-gallery {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-180px * 7));
        }
    }
}

/* ===== Store Map Section ===== */
.store-map-section {
    margin-top: var(--section-space);
}

.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 6px !important;
}

.leaflet-popup-tip {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-container a.leaflet-popup-close-button {
    top: 8px !important;
    right: 8px !important;
    color: #999 !important;
    font-size: 16px !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: #333 !important;
}

/* HTML Smooth scroll for better user navigation when clicking locate buttons */
html {
    scroll-behavior: smooth;
}
