/* =========================================================
   SHARED TYPOGRAPHY / UTILITIES
   hero.css + landing.css 공통으로 쓰이는 스타일
   동시적용: hero, landing
========================================================= */

.atr1 {
    font-family: "SangBleuEmpire";
}

.mf0,
.mf1,
.mf2,
.mf3 {
    font-weight: 500;
}

.mf0 {
    font-size: 15px;
    color: #bcb4af;
}

.mf1 {
    font-size: 2em;
    margin: 1rem 0 .5rem;
}

.mf2 {
    font-size: 1.5em;
    margin: 1em auto .8em;
}

.mf8 {
    font-size: 15px;
}

.text-center {
    text-align: center;
}

.mb50 {
    margin-bottom: 50px;
}

.mt20 {
    margin-top: 20px;
}


/* =========================================================
   HERO ONLY
   hero 마크업에만 적용
========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.hero {
    position: relative;
    width: 100%;
    display: flex;
    overflow: hidden;
    height: 80vh;
    max-height: 660px;
    min-height: 450px;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    overflow: hidden;
}

#nc-bg {
    background: url(https://heavenheaven.co.kr/wp-content/uploads/hero-m.jpg);
    background: url(https://heavenheaven.co.kr/wp-content/uploads/hero-m.webp);
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 2;
    text-align: center;
    white-space: nowrap;
    padding: 120px 20px 50px;
    background: linear-gradient(180deg, transparent, rgb(237 233 227 / 38%));
}

/* 동시적용: hero 내부 텍스트 애니메이션 */
.hero-content .caption-round,
.hero-content .mf8,
.hero-content .mf1 {
    opacity: 0;
    animation: fadeUp 1s forwards;
}

.hero-content .caption-round {
    animation-delay: 0.1s;
}

.hero-content > div.mf8 {
    animation-delay: 0.4s;
}

.hero-content .mf1 {
    animation-delay: 0.7s;
    margin: 10px auto;
}

.hero-content .atr1 {
    line-height: 1.1;
    font-size: 2em;
    font-weight: 400;
    font-style: normal;
    white-space: nowrap;
}

.caption-round {
    background: #fff;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 20px;
    width: 100px;
}


/* =========================================================
   LANDING ONLY
   landing 마크업에만 적용
========================================================= */

.section-container {
    padding: 80px 45px;
    position: relative;
}

.section-container .mf1 {
    line-height: 1.4;
    margin: 2rem auto;
}

.section-container .mf2 {
    font-size: 24px;
    line-height: 1.4;
}

.section-container .mf2 h2 {
    font-size: 24px;
}

.section-container .text-center {
    margin: 0 auto;
    padding: 30px;
    max-width: 610px;
    width: 100%;
}

.section-container.b0 {
    padding-top: 30px;
}

.section-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    flex-direction: row;
}

.section-image {
    display: flex;
    justify-content: center;
}

.section-image img,
.section-image video {
    width: 100%;
    max-width: 560px;
}

.section-lp {
    text-align: center;
    padding: 120px 30px 60px;
}

.section-lp .mf1 {
    font-size: 40px;
    line-height: 1.4;
    margin: .8em 0;
}

.section-text {
    margin: 0 0 0 72px;
    max-height: 100%;
    max-width: 380px;
}

.section-top {
    margin-top: 50px;
}

.rv .section-content {
    flex-direction: row-reverse;
}

.rv .section-text {
    margin: 0 72px 0 0;
}

.comparison-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 60px;
}

.comparison-box .atr1 {
    font-size: 19px;
    margin-bottom: 10px;
}

.cf-col {
    background: #f7f7f7;
    padding: 0 12px;
    text-align: center;
    vertical-align: top;
    width: 50%;
}

thead .cf-col {
    border-radius: 12px 12px 0 0;
    vertical-align: bottom;
    padding-top: 30px;
}

.cf-feature {
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.cf-feature:last-child {
    margin-bottom: 0;
}

.cf-header {
    margin-bottom: 16px;
}

.cf-ls .cf-col {
    border-radius: 0 0 12px 12px;
}

.cf-ls .cf-feature {
    border-bottom: 0;
}

.cf-table {
    width: 100%;
    max-width: 700px;
    border-collapse: separate;
    border-spacing: 20px 0;
    font-size: 0.9rem;
    table-layout: fixed;
}

.cf-table th,
.cf-table td {
    border-bottom: 0;
}

.cf-table th:first-child,
.cf-table td:first-child {
    width: 45%;
}

.cf-table th:last-child,
.cf-table td:last-child {
    width: 55%;
    background: #f5f9fa;
}

.cf-title-left {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 8px;
}

.cf-title-right {
    font-family: "SangBleuEmpire";
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.cf-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 560px;
}

.cl-bedding-finder {
    background-color: #f9f9f9;
    padding: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    max-width: 790px;
}

.cl-bedding-finder .cl-icon {
    flex: 0.5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    stroke-width: 1.5px;
    padding-right: 0;
    margin: 0;
}

.cl-bedding-finder h3 {
    font-size: 30px;
    margin: 0 0 12px;
}

.cl-bedding-finder-text {
    flex: 2;
    text-align: left;
    padding-right: 0;
}

.cl-button {
    display: inline-block;
    padding: 10px 30px;
    background-color: #ffffffb8;
    color: inherit;
    border: 1px solid #ccc;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    font-size: 1rem;
}

.cl-button:hover {
    background-color: #fff;
}

.cl-container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cl-icon {
    width: 60px;
    height: 60px;
    stroke-width: 1.5px;
    margin: 40px auto;
}

.cl-section-box {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cl-section-box .mf8 {
    padding: 0 15px;
}

.cl-section-text {
    flex: 1.5;
    min-width: 300px;
    padding: 20px;
    text-align: center;
    margin-bottom: 60px;
}

.cl-svg {
    width: 80px;
    height: auto;
}

.info-item {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 2em;
}

.icon-area {
    width: 60px;
    height: 60px;
    margin: 6px 2em 0 0;
}

.text-area {
    font-weight: 500;
    font-size: .9em;
}

.bestseller-container {
    max-width: 1080px;
    margin: 50px auto 120px;
}

.overlay-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

#sp3 {
    position: relative;
}

#sp4 {
    border-radius: 0;
    position: relative;
}

#sp5 {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    width: 180px;
    height: 180px;
    top: 51%;
    z-index: 1;
    background: url(https://heavenheaven.co.kr/wp-content/uploads/main3_1.gif);
    background: url(https://heavenheaven.co.kr/wp-content/uploads/main3_1.webp);
    background-size: cover;
    border-radius: 100%;
    border: 10px solid rgba(0, 0, 0, 0.45);
}

#sp6 {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    background:
        linear-gradient(
            to left bottom,
            transparent calc(50% - 5px),
            #0000008a calc(50% - 5px),
            #0000008a calc(50% + 5px),
            transparent calc(50% + 5px)
        ),
        transparent;
}


/* =========================================================
   RESPONSIVE - SHARED / INDIVIDUAL
========================================================= */

@media (max-width: 991px) {
    /* hero only */
    .hero {
        height: 50vh;
        min-height: 450px;
        max-height: 560px;
    }

    .hero-content .atr1 {
        font-size: 1.3em;
    }

    /* landing only */
    .section-container {
        padding: 60px 30px;
    }

    .section-content,
    .rv .section-content {
        flex-direction: column;
    }

    .section-image {
        width: 100%;
        margin-bottom: 50px;
    }

    .section-lp {
        padding: 90px 30px 30px;
    }

    .section-text,
    .rv .section-text {
        width: 100%;
        max-width: 560px;
        margin: 0;
        padding: 0 30px;
    }

    .section-top {
        padding-top: 90px;
    }
}

@media (max-width: 768px) {
    /* landing only */
    .mf0,
    .mf8 {
        font-size: 14px;
    }

    .section-container {
        padding: 60px 45px;
    }

    .section-container .mf2 {
        font-size: 24px;
    }

    .section-lp .mf1 {
        font-size: 24px;
        margin: .8em auto;
    }

    .cl-bedding-finder {
        align-items: flex-start;
    }

    .cl-bedding-finder h3 {
        font-size: 24px;
    }

    .cl-button {
        font-size: 1em;
    }

    .cf-table {
        border-spacing: 12px 0;
    }
}

@media (max-width: 560px) {
    /* landing only */
    .section-container {
        padding: 60px 0;
    }

    .section-text {
        padding: 0 30px;
        max-width: 100%;
    }

    .cl-bedding-finder {
        border-radius: 0;
    }
}

@media (max-width: 520px) {
    /* landing only */
    .cf-feature {
        font-size: 13px;
    }

    .comparison-box .atr1 {
        font-size: 16px;
    }
}

@media (max-width: 468px) {
    /* landing only */
    .cl-bedding-finder {
        padding: 50px 12px;
        flex-direction: column-reverse;
        align-items: center;
    }

    .cl-bedding-finder-text {
        width: 100%;
        text-align: center;
    }
}

@media (max-height: 640px) {
    /* hero only */
    .hero {
        height: 80vh;
    }
}
