/* =========================================
   Home Page Styles
   MainBanner + RawCenterBowl + RedefiningFresh + ProductMove + FollowSocial
   ========================================= */

/* ---- MainBanner ---- */
.banner-container {
    position: relative;
    width: 100%;
    height: 380px;
    max-height: 380px;
    display: flex;
    overflow: hidden;
    padding: 0;
}

.banner-left {
    flex: 512;
    background-color: var(--color-primary);
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.banner-right {
    flex: 760;
    background-color: var(--color-secondary);
    position: relative;
    display: flex;
    justify-content: flex-start;
}

.banner-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-text-container {
    position: absolute;
    top: 50%;
    right: 67px;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 420px;
    color: var(--color-white);
    text-align: left;
}

.banner-title {
    font-size: clamp(28px, 4vw, 43px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #DFDDD1;
    text-transform: none;
    letter-spacing: -0.02em;
}

.banner-bar {
    width: 190px;
    height: 3px;
    background-color: var(--color-secondary);
    margin-bottom: 25px;
}

.banner-description {
    font-size: clamp(18px, 2.5vw, 30px);
    line-height: 1.6;
    color: #DFDDD1;
    word-break: keep-all;
}

.banner-desktop-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.banner-left .banner-desktop-image {
    object-position: right center;
}

.banner-right .banner-desktop-image {
    object-position: left center;
}

@media (max-width: 992px) {
    .banner-container {
        height: auto;
        max-height: none;
        flex-direction: column;
        display: flex;
    }
    .banner-left,
    .banner-right {
        display: flex;
        flex: none;
        width: 100%;
    }
    .banner-left {
        height: 300px;
        justify-content: center;
        align-items: center;
    }
    .banner-right {
        height: 360px;
    }
    .banner-text-container {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        width: 100%;
        padding: 60px 70px;
        text-align: left;
    }
    .banner-title {
        font-size: 35px;
        margin-bottom: 15px;
    }
    .banner-bar {
        width: 100px;
        height: 2px;
        margin: 0 0 20px;
    }
    .banner-description {
        font-size: 20px;
        line-height: 1.6;
        max-width: 100%;
        margin: 0 auto;
    }
    .banner-desktop-image {
        object-fit: cover;
    }
    .banner-left .banner-desktop-image,
    .banner-right .banner-desktop-image {
        object-position: center;
    }
}

@media (min-width: 1921px) {
    .banner-container {
        height: 525px;
    }
}


/* ---- RawCenterBowl ---- */
.raw-sticky-wrapper {
    width: 100%;
}

.raw-benefits {
    background-color: var(--color-white);
    padding: 80px 0;
}

.raw-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.raw-content-wrapper {
    position: relative;
    width: 100%;
}

.raw-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
    align-items: start;
}

.raw-bowl-move {
    display: none;
}
@media (max-width: 1023px) {
    .raw-bowl-move {
        display: flex !important;
        position: absolute; /* Pull bowl to the top */
        top: -120px; /* Overlap the banner */
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 320px;
        z-index: 200; /* Ensure it's on top of everything */
        margin: 0;
    }
}

.raw-bowl-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.raw-bowl-circle {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    border-radius: 50%;
    z-index: 1;
}

.raw-fixed-bowl-container {
    width: 100%;
    position: relative;
}

/* BenefitTop */
#benefit-top-wrapper {
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}


@media (max-width: 1023px) {
    .raw-benefits {
        padding-top: 0; /* Remove top padding to let content control spacing */
        position: relative; /* Anchor for absolute bowl */
        z-index: 100;
    }
    .raw-container {
        display: flex;
        flex-direction: column;
        padding-top: 200px; /* Space for the bowl overlapping from above */
    }
    #benefit-top-wrapper {
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 40px;
        z-index: 50;
    }
    .raw-benefits-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 10px;
        width: 100%;
    }
    .benefit-item {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

.benefit-header {
    text-align: center;
    margin-bottom: 60px;
}

.benefit-header-title {
    font-family: "Montserrat", var(--font-korean);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.benefit-header-desc {
    font-family: "Montserrat", var(--font-korean);
    font-size: 20px;
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* BenefitLeft & BenefitRight */
.benefit-left-section,
.benefit-right-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
}

.benefit-left-section .benefit-item {
    transform: translateX(-50px);
}

.benefit-right-section .benefit-item {
    transform: translateX(50px);
}

.benefit-left-section .benefit-item.animate {
    animation: slideInLeft 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.benefit-right-section .benefit-item.animate {
    animation: slideInRight 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Sequential delays */
.benefit-left-section .benefit-item:nth-child(1).animate { animation-delay: 0.1s; }
.benefit-left-section .benefit-item:nth-child(2).animate { animation-delay: 0.3s; }
.benefit-left-section .benefit-item:nth-child(3).animate { animation-delay: 0.5s; }

.benefit-right-section .benefit-item:nth-child(1).animate { animation-delay: 0.2s; }
.benefit-right-section .benefit-item:nth-child(2).animate { animation-delay: 0.4s; }
.benefit-right-section .benefit-item:nth-child(3).animate { animation-delay: 0.6s; }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.benefit-icon-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefit-icon {
    object-fit: contain;
    width: 100%;
    height: auto;
}

.benefit-text {
    font-family: "Montserrat", var(--font-korean);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    line-height: 1.2;
    word-break: keep-all;
    max-width: 110px;
}

/* Desktop */
@media (min-width: 1024px) {
    .raw-benefits-grid {
        grid-template-columns: 1fr 500px 1fr;
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
        align-items: center;
    }
    .raw-bowl-move {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 500px;
        background-color: transparent;
        position: relative;
    }
    .raw-sticky-wrapper {
        background-color: var(--color-white);
        padding-bottom: 100px;
        position: relative;
        z-index: 10;
        width: 100%;
    }
    .raw-benefits {
        position: sticky;
        top: 80px;
        margin: 0;
        z-index: 10;
        background-color: var(--color-white);
        width: 100%;
    }
    .benefit-left-section,
    .benefit-right-section {
        gap: 60px;
    }
    .benefit-text {
        font-size: 16px;
        max-width: 140px;
    }
    .benefit-header-title {
        font-size: 28px;
    }
}


/* ---- RawCenterBowl ---- */
.raw-sticky-wrapper {
    width: 100%;
}

.raw-benefits {
    background-color: var(--color-white);
    padding: 80px 0;
}

.raw-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.raw-content-wrapper {
    position: relative;
    width: 100%;
}

.raw-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
    align-items: start;
}

.raw-bowl-move {
    display: none;
}

/* Mobile Section Refinement */
@media (max-width: 1023px) {
    .raw-benefits {
        position: relative;
        padding-top: 0;
        z-index: 90;
    }
    .raw-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 180px; /* Increased to push the title down further while keeping the bowl at -430px */
    }
    .raw-bowl-move {
        display: flex !important;
        position: absolute;
        top: -530px; /* Moved up by 100px from its previous -430px position */
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 260px; /* Kept the reduced size */
        z-index: 200;
        margin: 0;
    }
    .raw-bowl-image {
        width: 100%;
        height: auto;
    }
    #benefit-top-wrapper {
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 40px;
        text-align: center;
        width: 100%;
        order: 1; /* Title below bowl */
    }
    .benefit-header-title {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }
    .raw-content-wrapper {
        order: 2; /* Icons below Title */
        width: 100%;
    }
    .raw-benefits-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two rows side-by-side icons */
        gap: 30px 15px;
        width: 100%;
    }
    .benefit-left-section, .benefit-right-section {
        display: contents; /* Let icons participate in the parent grid */
    }
    .benefit-item {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .benefit-text {
        font-size: 13px !important;
        max-width: 120px !important;
    }
}

.raw-bowl-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.raw-bowl-circle {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    border-radius: 50%;
    z-index: 1;
}

.raw-fixed-bowl-container {
    width: 100%;
    position: relative;
}

/* BenefitTop */
#benefit-top-wrapper {
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

.benefit-header {
    text-align: center;
    margin-bottom: 60px;
}

.benefit-header-title {
    font-family: "Montserrat", var(--font-korean);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.benefit-header-desc {
    font-family: "Montserrat", var(--font-korean);
    font-size: 20px;
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* BenefitLeft & BenefitRight */
.benefit-left-section,
.benefit-right-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
}

.benefit-left-section .benefit-item {
    transform: translateX(-50px);
}

.benefit-right-section .benefit-item {
    transform: translateX(50px);
}

.benefit-left-section .benefit-item.animate {
    animation: slideInLeft 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.benefit-right-section .benefit-item.animate {
    animation: slideInRight 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Sequential delays */
.benefit-left-section .benefit-item:nth-child(1).animate { animation-delay: 0.1s; }
.benefit-left-section .benefit-item:nth-child(2).animate { animation-delay: 0.3s; }
.benefit-left-section .benefit-item:nth-child(3).animate { animation-delay: 0.5s; }

.benefit-right-section .benefit-item:nth-child(1).animate { animation-delay: 0.2s; }
.benefit-right-section .benefit-item:nth-child(2).animate { animation-delay: 0.4s; }
.benefit-right-section .benefit-item:nth-child(3).animate { animation-delay: 0.6s; }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.benefit-icon-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefit-icon {
    object-fit: contain;
    width: 100%;
    height: auto;
}

.benefit-text {
    font-family: "Montserrat", var(--font-korean);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    line-height: 1.2;
    word-break: keep-all;
    max-width: 110px;
}

/* Desktop */
@media (min-width: 1024px) {
    .raw-benefits-grid {
        grid-template-columns: 1fr 500px 1fr;
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
        align-items: center;
    }
    .raw-bowl-move {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 500px;
        background-color: transparent;
        position: relative;
    }
    .raw-sticky-wrapper {
        background-color: var(--color-white);
        padding-bottom: 25px; /* 너무 가깝지 않게 간격 약간 확대 (총 0.8cm 수준) */
        position: relative;
        z-index: 10;
        width: 100%;
    }
    .raw-benefits {
        position: sticky;
        top: 80px;
        margin: 0;
        z-index: 10;
        background-color: var(--color-white);
        width: 100%;
    }
    .benefit-left-section,
    .benefit-right-section {
        gap: 60px;
    }
    .benefit-text {
        font-size: 16px;
        max-width: 140px;
    }
    .benefit-header-title {
        font-size: 28px;
    }
}

/* ---- RedefiningFresh ---- */
.redefining-section {
    position: relative;
    width: 100%;
    padding: 25px 0 100px 0; /* 상단 패딩 약간 늘려서 간격 0.8cm로 조정 */
    background-color: var(--color-white);
    overflow: hidden;
}

.redefining-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}

.redefining-text {
    flex: 0.7;
    height: 380px;
    text-align: left;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.redefining-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.redefining-desc {
    font-size: 18px;
    color: var(--color-white);
    line-height: 1.6;
    word-break: keep-all;
}

.redefining-image-container {
    flex: 1;
    height: 380px;
    width: 750px;
    overflow: hidden;
}

.redefining-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .redefining-title { font-size: 25px; }
    .redefining-desc { font-size: 16px; }
}

@media (max-width: 768px) {
    .redefining-section { padding: 30px 0; }
    .redefining-container {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    .redefining-text {
        text-align: center;
        padding: 40px 20px;
        height: auto;
        min-height: 250px;
    }
    .redefining-title { font-size: 32px; }
    .redefining-desc { font-size: 16px; }
    .redefining-image-container {
        max-width: 100%;
        height: 300px;
    }
}


/* ---- ProductMove ---- */
.promov-section {
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
    margin: 0;
    padding: 80px 0;
}

.promov-section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.promov-section-title {
    font-family: 'Montserrat', var(--font-korean);
    font-size: 31px;
    font-weight: 700;
    color: #223327;
    margin-bottom: 15px;
    letter-spacing: 1px; /* 자간을 더 넓게 조정 */
    text-transform: uppercase;
}

.promov-section-subtitle {
    font-size: 18px;
    color: #666666;
    line-height: 1.6;
    word-break: keep-all;
    max-width: 800px;
    margin: 0 auto;
}

.promov-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.promov-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Changed from 3 to 6 for desktop single row */
    width: 100%;
}

.promov-item {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--color-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #ffffff;
    box-sizing: border-box;
}

.promov-base-image {
    width: 70%;
    height: 70%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.promov-item:hover .promov-base-image {
    transform: scale(1.1);
}

.promov-placeholder-circle {
    width: 60%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 3px solid #666666;
    background-color: transparent;
    transition: transform 0.5s ease;
}

.promov-item:hover .promov-placeholder-circle {
    transform: scale(1.1);
}

.promov-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #223327;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.promov-item:hover .promov-overlay {
    opacity: 1;
}

.promov-item-title {
    font-size: 16px;
    font-weight: 700;
    padding: 0px 10px 20px;
    color: #333333;
    text-align: center;
}

.promov-item-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #223327;
    text-align: center;
    margin-top: -15px; /* Adjust to sit closer to the bowl image */
    margin-bottom: 10px;
}

.promov-overlay-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.promov-overlay-desc {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.5;
    word-break: keep-all;
    max-width: 90%;
    font-weight: 400;
}

.promov-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.promov-pill-button {
    background-color: #c7c8a9;
    color: #223327 !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    min-width: 110px;
    white-space: nowrap;
}

.promov-pill-button:hover {
    background-color: #d8d9bd;
    transform: translateY(-2px);
}

@media (max-width: 1500px) { /* Increased from 1200px to trigger 2 rows earlier */
    .promov-grid {
        grid-template-columns: repeat(3, 1fr); /* 2 rows of 3 */
    }
}

@media (max-width: 1024px) {
    .promov-grid {
        grid-template-columns: repeat(2, 1fr); /* 3 rows of 2 for tablet */
    }
}

@media (max-width: 768px) {
    .promov-section { padding: 50px 0 0; }
    .promov-section-header { margin-bottom: 30px; }
    .promov-section-title { font-size: 22px; }
    .promov-section-subtitle { font-size: 15px; }
    .promov-base-image {
        height: 240px;
        order: 1;
    }
    .promov-overlay {
        position: static;
        opacity: 1;
        background-color: var(--color-primary);
        padding: 40px 20px;
        order: 2;
    }
    .promov-item-title {
        font-size: 16px;
        padding: 20px 10px;
    }
    .promov-item:hover .promov-base-image { transform: none; }
    .promov-item {
        width: 100%;
        height: auto;
    }
    .promov-grid {
        grid-template-columns: 1fr;
    }
}


/* ---- FollowSocial ---- */
.social-section {
    width: 100%;
    background-color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.social-top-area {
    margin-bottom: 40px;
}

.social-title {
    font-size: 32px;
    font-weight: 800;
    color: #223327;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.social-image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1300px;
    margin: 0 auto 20px;
    padding: 0 40px;
}

.social-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.social-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.social-bottom-area {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-sns-link {
    width: 60px;
    height: 60px;
    background-color: #223327;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffffff;
}

.social-sns-link:hover {
    background-color: #c7c8a9;
    color: #223327;
}

.social-sns-icon {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

@media (max-width: 1024px) {
    .social-image-grid {
        max-width: 100%;
        padding: 0;
    }
}

@media (max-width: 640px) {
    .social-section { padding: 50px 0; }
    .social-title { font-size: 24px; }
    .social-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 0;
    }
    .social-image-wrapper:nth-child(1),
    .social-image-wrapper:nth-child(4) {
        display: none;
    }
    .social-sns-icon {
        width: 28px;
        height: 28px;
    }
}

