/* style.css - 통합 수정본 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
    -webkit-text-size-adjust: none;
}

body {
    background-color: #FFF9FA;
    color: #4A3B40;
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 페이드 애니메이션 */
.fade-el {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}

.fade-el.visible { opacity: 1; transform: translateY(0); }

.stagger-wrap > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-wrap > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-wrap > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-wrap > *:nth-child(4) { transition-delay: 0.4s; }

/* 1. HEADER */
header { position: fixed; top: 0; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.98); box-shadow: 0 2px 10px rgba(222, 107, 135, 0.1); z-index: 1000; }
.header-wrap { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 22px; font-weight: 700; color: #DE6B87; letter-spacing: -1px; z-index: 1001; }
.logo span { color: #6B2D3C; font-size: 15px; font-weight: 400; margin-left: 5px; }
.nav-container { display: flex; align-items: center; gap: 30px; }
.nav-menu { display: flex; list-style: none; gap: 30px; }
.nav-menu li a { font-size: 15px; font-weight: 500; color: #555; transition: color 0.3s; cursor: pointer; white-space: nowrap; }
.nav-menu li a:hover { color: #DE6B87; }
.header-btn { background-color: #DE6B87; color: #fff; padding: 9px 20px; border-radius: 20px; font-size: 13px; font-weight: 500; border: none; cursor: pointer; transition: background 0.3s; white-space: nowrap; z-index: 1001; }
.header-btn:hover { background-color: #6B2D3C; }
.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 22px; height: 16px; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.menu-toggle span { width: 100%; height: 2px; background-color: #4A3B40; transition: all 0.3s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 2. HERO SECTION */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 75vh;
    padding: 140px 0 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF9FA;
}

/* 히어로 배경 이미지 (글자 뒤 바닥에 깔리도록 설정) */
.hero-bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.15; /* 투명도 조정 (0.15 ~ 0.3 추천) */
    pointer-events: none;
}

.hero-wrap { position: relative; z-index: 2; width: 100%; text-align: center; }
.hero-text { max-width: 800px; margin: 0 auto; }
.hero-tag { display: inline-block; background-color: #DE6B87; color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 13px; font-weight: 500; margin-bottom: 15px; }
.hero-text h1 { font-size: 38px; color: #6B2D3C; line-height: 1.4; margin-bottom: 20px; font-weight: 700; letter-spacing: -1px; }
.hero-text h1 span { color: #DE6B87; }
.hero-text p { font-size: 17px; color: #666; margin-bottom: 35px; word-break: keep-all; }
.hero-btns { display: flex; gap: 15px; justify-content: center; }
.btn-primary, .btn-secondary { padding: 14px 30px; border-radius: 8px; font-size: 15px; font-weight: 500; border: none; cursor: pointer; transition: all 0.3s; text-align: center; display: inline-block; }
.btn-primary { background-color: #DE6B87; color: white; }
.btn-primary:hover { background-color: #6B2D3C; }
.btn-secondary { background-color: white; color: #DE6B87; border: 1px solid #DE6B87; }
.btn-secondary:hover { background-color: #FFF4F6; }

/* 3. MAIN SECTIONS */
section { padding: 90px 0; }
.bg-section { background-color: #FFF2F4; }
.sec-title { text-align: center; margin-bottom: 55px; }
.sec-title h2 { font-size: 30px; color: #6B2D3C; margin-bottom: 12px; letter-spacing: -1px; }
.sec-title p { color: #777; font-size: 16px; }

/* Lineup Grid */
.lineup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.lineup-card { background: #fff; border-radius: 12px; padding: 30px 20px; text-align: center; border: 1px solid #F6ECF0; transition: all 0.3s; display: flex; flex-direction: column; align-items: center; }
.lineup-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(222, 107, 135, 0.08); }
.card-thumb { width: 100%; height: 130px; display: flex; justify-content: center; align-items: center; margin-bottom: 15px; }
.card-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card-img { font-size: 12px; font-weight: bold; color: #DE6B87; background-color: #FFF4F6; padding: 3px 12px; border-radius: 15px; margin-bottom: 12px; }
.card-title { font-size: 17px; font-weight: 700; color: #4A3B40; margin-bottom: 10px; word-break: keep-all; }
.card-desc { font-size: 13px; color: #777; line-height: 1.6; word-break: keep-all; }

/* 비교 테이블 */
.comparison-table-wrap { max-width: 950px; margin: 50px auto 0 auto; background: #fff; padding: 35px; border-radius: 16px; box-shadow: 0 4px 20px rgba(222, 107, 135, 0.05); border: 1px solid #F6ECF0; }
.comparison-table-wrap h3 { font-size: 20px; color: #6B2D3C; margin-bottom: 20px; text-align: center; }
.comp-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; }
.comp-table th, .comp-table td { padding: 14px; border-bottom: 1px solid #F6ECF0; }
.comp-table th { background-color: #FFF4F6; color: #DE6B87; font-weight: 700; }
.comp-table td.highlight { font-weight: bold; color: #DE6B87; }

/* Ingredient Grid */
.ingredient-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.ing-box { background: #fff; padding: 35px 25px; border-radius: 12px; border-top: 4px solid #DE6B87; box-shadow: 0 4px 15px rgba(0,0,0,0.01); }
.ing-badge { display: inline-block; background: #FFF4F6; color: #DE6B87; padding: 2px 10px; font-size: 12px; font-weight: 700; border-radius: 20px; margin-bottom: 15px; }
.ing-box h3 { font-size: 19px; color: #6B2D3C; margin-bottom: 15px; }
.ing-box p { font-size: 14px; color: #666; line-height: 1.7; word-break: keep-all; }

/* 직구 가이드 상세 블록 */
.info-detail-block { max-width: 1000px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 14px; border: 1px solid #F6ECF0; }
.info-detail-block h3 { font-size: 22px; color: #6B2D3C; margin-bottom: 25px; border-left: 4px solid #DE6B87; padding-left: 12px; }
.info-list { list-style: none; }
.info-list li { position: relative; padding-left: 20px; margin-bottom: 20px; font-size: 15px; color: #555; line-height: 1.8; }
.info-list li::before { content: '✔'; position: absolute; left: 0; top: 0; color: #DE6B87; font-weight: bold; }
.info-list li strong { color: #4A3B40; display: inline-block; margin-bottom: 4px; }

/* FAQ */
.faq-wrap { max-width: 850px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid #F6ECF0; border-radius: 8px; margin-bottom: 15px; padding: 20px 24px; }
.faq-q { font-size: 16px; font-weight: 700; color: #DE6B87; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q span { flex: none; transition: transform 0.25s ease; font-size: 13px; }
.faq-item.open .faq-q span { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; margin-top: 0; font-size: 14px; color: #666; border-top: 0px dashed #F6ECF0; padding-top: 0; line-height: 1.7; word-break: keep-all; transition: max-height 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease; }
.faq-item.open .faq-a { max-height: 500px; margin-top: 12px; border-top: 1px dashed #F6ECF0; padding-top: 12px; }

/* FOOTER */
footer { background-color: #4A3B40; color: #E2D7DA; padding: 50px 0 120px 0; font-size: 13px; }
.footer-bottom { text-align: center; color: #948387; line-height: 1.8; }

/* BANNER 데스크톱 기본 레이아웃 */
.horizontal-banner-wrap {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    gap: 16px;
}

.h-banner-left {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 10px;
    background: transparent;
    padding: 0;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

.h-banner-center {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-right: 0;
}

.h-badge {
    background: #DE6B87;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(222, 107, 135, 0.3);
    flex-shrink: 0;
}

.h-title {
    font-size: 18px;
    font-weight: 800;
    color: #2C2225;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.h-highlight {
    color: #DE6B87;
    background: linear-gradient(to top, #FFE0E6 40%, transparent 40%);
}

.h-banner-right {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.h-brand-logo { display: none !important; }

@keyframes btnShake { 0%, 65%, 100% { transform: rotate(0deg); } 68% { transform: rotate(-3deg); } 71% { transform: rotate(3deg); } 74% { transform: rotate(-3deg); } 77% { transform: rotate(3deg); } 80% { transform: rotate(0deg); } }
@keyframes shimmer { 0% { transform: translateX(-150%) skewX(-25deg); } 100% { transform: translateX(200%) skewX(-25deg); } }

.h-banner-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    background: linear-gradient(135deg, #DE6B87 0%, #E85275 100%);
    border: none;
    border-radius: 30px;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(222, 107, 135, 0.4);
    animation: btnShake 3s infinite ease-in-out;
    transition: all 0.25s ease;
}

.h-banner-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-150%) skewX(-25deg);
    animation: shimmer 2s infinite ease-in-out;
}

.h-banner-btn:hover {
    background: linear-gradient(135deg, #E85275 0%, #D44265 100%);
    transform: translateY(-2px) scale(1.02);
}

/* MEDIA QUERIES */
@media (max-width: 991px) {
    .hero-text h1 { font-size: 32px; }
    .lineup-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .ingredient-grid { grid-template-columns: repeat(2, 1fr); }
    .comp-table { font-size: 13px; }
    .comp-table th, .comp-table td { padding: 10px; }
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .header-wrap { height: 60px; }
    .logo { font-size: 19px; }
    .menu-toggle { display: flex; order: 3; }
    .header-btn { order: 2; margin-left: auto; margin-right: 15px; padding: 6px 14px; font-size: 12px; }
    .nav-container { position: fixed; top: -100%; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.98); padding: 80px 20px 40px 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: top 0.4s ease-in-out; z-index: 999; flex-direction: column; gap: 0; }
    .nav-container.active { top: 0; }
    .nav-menu { flex-direction: column; align-items: center; width: 100%; gap: 0; }
    .nav-menu li { width: 100%; text-align: center; border-bottom: 1px solid #FFF0F2; }
    .nav-menu li a { display: block; padding: 16px 0; font-size: 16px; color: #4A3B40; }
    .hero-section { padding: 100px 0 50px 0; min-height: auto; }
    .hero-text h1 { font-size: 24px; margin-bottom: 15px; }
    .hero-text p { font-size: 14px; margin-bottom: 25px; }
    .hero-btns { flex-direction: column; gap: 10px; width: 100%; max-width: 280px; margin: 0 auto; }
    .btn-primary, .btn-secondary { width: 100%; padding: 12px; font-size: 14px; }
    section { padding: 60px 0; }
    .sec-title { margin-bottom: 35px; }
    .sec-title h2 { font-size: 24px; }
    .sec-title p { font-size: 14px; }
    .lineup-grid { grid-template-columns: 1fr; max-width: 350px; margin: 0 auto; }
    .ingredient-grid { grid-template-columns: 1fr; }
    .comparison-table-wrap { padding: 15px; overflow-x: auto; }
    .comp-table { width: 600px; }
    .info-detail-block { padding: 20px; }
    .info-detail-block h3 { font-size: 18px; }
    .info-list li { font-size: 13px; }
    .faq-item { padding: 15px; }
    .faq-q { font-size: 14px; }
    .faq-a { font-size: 13px; }
    
    #bannerContent {
        max-height: none !important;
        padding: 10px 0 12px 0 !important;
    }

    .horizontal-banner-wrap { 
        padding: 6px 12px; 
        gap: 10px; 
        align-items: center; 
        justify-content: space-between;
        max-width: 100%;
    }

    .banner-img { 
        width: 56px; 
        height: 56px; 
        border-radius: 8px;
        flex-shrink: 0;
    }

    .h-banner-center { 
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px; 
        min-width: 0;
        margin-right: 0;
    }

    .h-badge { 
        font-size: 10px; 
        padding: 2px 7px; 
        border-radius: 10px;
        line-height: 1.3;
    }

    .h-title { 
        font-size: 12px; 
        line-height: 1.35; 
        white-space: normal;
        word-break: keep-all;
        overflow: visible; 
        text-overflow: clip;
        max-width: 100%;
        margin-top: 2px !important;
    }

    .h-banner-btn { 
        padding: 9px 12px; 
        font-size: 11px; 
        border-radius: 20px;
        flex-shrink: 0;
    }
}