/* =========================================
       Layout & Container
       ========================================= */

.brand-story {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

.brand-story__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.brand-story__row:last-child {
    margin-bottom: 0;
}


/* =========================================
       Typography & Content
       ========================================= */

.brand-story__content {
    padding: 1rem;
}

.brand-story__title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.brand-story__desc {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 0.03em;
    line-height: 2;
}


/* =========================================
       Images & Organic Shapes (Blobs)
       ========================================= */

.brand-story__image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-story__image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.brand-story__image--cat-pic {
    max-width: 420px;
}

.brand-story__image--glass-coffee {
    max-width: 360px;
}

.brand-story__image--room-view {
    max-width: 430px;
}

.brand-story__image:hover {
    transform: scale(1.02);
}


/* 利用 8 值 border-radius 製作有機形狀 */

.brand-story__image--cat {
    background-image: url('https://images.unsplash.com/photo-1513360371669-4adf3dd7dff8?q=80&w=800&auto=format&fit=crop');
    border-radius: 54% 46% 41% 59% / 49% 56% 44% 51%;
}

.brand-story__image--coffee {
    background-image: url('https://images.unsplash.com/photo-1550580587-ece10260e0a5?q=80&w=800&auto=format&fit=crop');
    border-radius: 41% 59% 36% 64% / 63% 34% 66% 37%;
    max-width: 350px;
    /* 咖啡圖稍微小一點，符合視覺比例 */
}

.brand-story__image--interior {
    background-image: url('https://images.unsplash.com/photo-1554118811-1e0d58224f24?q=80&w=800&auto=format&fit=crop');
    border-radius: 59% 41% 65% 35% / 35% 42% 58% 65%;
    background-position: right center;
}


/* 裝飾性草寫英文 */

.brand-story__script {
    position: absolute;
    bottom: -15px;
    left: 10%;
    font-family: var(--font-script);
    font-size: 4rem;
    color: rgba(139, 90, 43, 0.6);
    /* 帶有透視感的棕色 */
    transform: rotate(-5deg);
    pointer-events: none;
    /* 防止遮擋圖片的互動 */
    white-space: nowrap;
}

@media (max-width: 768px) {
    .brand-story {
        padding: 3rem 1.25rem;
    }

    .brand-story__row {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 4rem;
    }

    .brand-story__image-wrapper {
        width: 100%;
    }

    .brand-story__image--cat-pic {
        width: min(92vw, 420px);
    }

    .brand-story__image--glass-coffee {
        width: min(82vw, 340px);
    }

    .brand-story__image--room-view {
        width: min(92vw, 420px);
    }
    
    .brand-story__row--text-right {
        display: flex;
        flex-direction: column-reverse; 
        gap: 20px; 
    }

}

@media (max-width: 480px) {
    .brand-story__row {
        gap: 1.75rem;
        margin-bottom: 3rem;
    }

    .brand-story__image--cat-pic {
        width: min(94vw, 340px);
    }

    .brand-story__image--glass-coffee {
        width: min(86vw, 290px);
    }

    .brand-story__image--room-view {
        width: min(94vw, 340px);
    }
    
}