:root {
    --primary: #544c9d;
    --secondary: #32b8b9;
    --dark: #222;
    --text-gray: #555;
    --white: #fff;
    --gradient: linear-gradient(135deg, #544c9d 0%, #32b8b9 100%);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); line-height: 1.6; overflow-x: hidden; background-color: #f8f9fa; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* NAVBAR */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.05); padding: 12px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 40px; }

/* DESKTOP MENU */
.nav-menu { display: flex; gap: 25px; align-items: center; }
.nav-item { position: relative; }
.nav-link { font-weight: 600; color: #333; font-size: 0.95rem; cursor: pointer; padding: 10px 0; display: block; }
.nav-link:hover { color: var(--primary); }

.dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    width: 200px; background: #fff; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); opacity: 0; visibility: hidden;
    transition: 0.3s; padding: 10px 0; border: 1px solid #eee;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; top: 120%; }
.dropdown li a { display: block; padding: 10px 20px; font-size: 0.9rem; color: #555; }
.dropdown li a:hover { background: #f5f5f5; color: var(--primary); }

.nav-cta-btn { background: var(--gradient); color: #fff; padding: 10px 25px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; box-shadow: 0 4px 15px rgba(84, 76, 157, 0.3); white-space: nowrap; }
.nav-cta-btn:hover { transform: translateY(-2px); }

/* HAMBURGER & X ANIMATION */
.menu-toggle { display: none; cursor: pointer; z-index: 1100; }
.bar { display: block; width: 24px; height: 2px; background: #333; margin: 5px auto; transition: 0.3s; }

/* X 모양 변환 (JS에서 active 클래스 추가 시 작동) */
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO SECTION */
.hero { position: relative; height: 90vh; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.3), rgba(0,0,0,0.1)); z-index: 0; }

.hero-content { position: relative; z-index: 1; color: #fff; text-align: center; max-width: 800px; padding: 0 20px; }
.hero-badge { display: inline-block; padding: 8px 20px; background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.4); border-radius: 30px; margin-bottom: 20px; font-size: 0.9rem; font-weight: 600; }
.hero-content h1 { font-family: var(--font-heading); font-size: 3.8rem; font-weight: 700; line-height: 1.2; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.hero-content p { font-size: 1.2rem; opacity: 0.95; margin-bottom: 40px; font-weight: 300; }

.hero-btns { display: flex; justify-content: center; gap: 15px; }
.btn-primary { padding: 15px 40px; background: var(--secondary); color: #fff; border-radius: 50px; font-weight: 700; font-size: 1rem; }
.btn-glass { padding: 15px 40px; background: rgba(255,255,255,0.2); border: 1px solid #fff; color: #fff; border-radius: 50px; font-weight: 700; font-size: 1rem; backdrop-filter: blur(5px); }

/* SECTIONS */
.section { padding: 100px 0; }
.section-gray { background-color: #f8f9fa; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; font-weight: 700; }
.section-title p { color: #666; font-size: 1.1rem; }

/* Grid */
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.glass-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; text-align: center; border: 1px solid #eee; display: flex; flex-direction: column; }
.glass-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(84, 76, 157, 0.15); border-color: var(--secondary); }
.card-img { height: 180px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.glass-card:hover .card-img img { transform: scale(1.1); }
.card-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.card-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; color: #333; }
.card-info p { font-size: 0.85rem; color: #888; }

/* Features */
.feature-box { display: flex; align-items: center; gap: 50px; margin-bottom: 60px; }
.feature-box.reverse { flex-direction: row-reverse; }
.feature-img { flex: 1; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.feature-txt { flex: 1; }
.feature-txt h3 { font-size: 2rem; color: var(--primary); margin-bottom: 20px; font-family: var(--font-heading); }
.feature-list li { margin-bottom: 12px; font-size: 1.1rem; display: flex; align-items: center; }
.feature-list i { color: var(--secondary); margin-right: 12px; font-size: 1.2rem; }

/* Process */
.process-wrapper { position: relative; margin-top: 40px; }
.process-line { position: absolute; top: 40px; left: 0; width: 100%; height: 2px; background: #ddd; z-index: 0; }
.process-steps { display: flex; justify-content: space-between; position: relative; z-index: 1; gap: 15px; }
.p-step { flex: 1; text-align: center; }
.p-card { background: var(--white); padding: 30px 20px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: 0.3s; border: 1px solid rgba(0,0,0,0.03); height: 100%; }
.p-icon { width: 60px; height: 60px; background: #f0f0f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); margin: 0 auto 20px; }
.p-card h4 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; }
.p-card p { font-size: 0.9rem; color: #666; line-height: 1.4; }

/* Form */
.consult-section { background: url('https://images.unsplash.com/photo-1516549655169-df83a0774514?q=80&w=2070&auto=format&fit=crop') center/cover fixed; padding: 100px 0; position: relative; }
.consult-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(255,255,255,0.9); backdrop-filter: blur(5px); }
.consult-content { position: relative; z-index: 1; display: flex; gap: 50px; align-items: flex-start; }
.consult-left { flex: 1; padding-top: 20px; }
.consult-left h2 { font-size: 2.8rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; font-family: var(--font-heading); line-height: 1.2; }
.contact-row { display: flex; align-items: center; margin-bottom: 15px; font-size: 1.1rem; }
.contact-row i { font-size: 1.5rem; margin-right: 15px; width: 30px; text-align: center; }

.glass-form { flex: 1.2; background: #fff; padding: 40px; border-radius: 25px; box-shadow: 0 30px 60px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.05); width: 100%; }
.form-group { margin-bottom: 20px; width: 100%; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; color: #333; }
.form-input { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 10px; font-size: 1rem; background: #fdfdfd; box-sizing: border-box; }
.form-row { display: flex; gap: 20px; }
.form-col { flex: 1; }

.submit-btn { width: 100%; padding: 16px; background: linear-gradient(135deg, #544c9d, #32b8b9) !important; color: #fff !important; font-weight: 700; border: none; border-radius: 10px; font-size: 1.1rem; cursor: pointer; box-shadow: 0 10px 20px rgba(84, 76, 157, 0.3); transition: 0.3s; text-align: center; -webkit-appearance: none; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.faq-item { background: var(--white); padding: 25px; border-radius: 12px; border: 1px solid #eee; cursor: pointer; transition: 0.3s; height: fit-content; }
.faq-question { font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; color: #333; }
.faq-answer { display: none; color: #666; margin-top: 15px; padding-top: 15px; border-top: 1px solid #f5f5f5; font-size: 0.95rem; }

/* Footer */
footer { background: #222; color: #aaa; padding: 60px 0 30px; text-align: center; }
.footer-logo { height: 40px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-links { margin-bottom: 30px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.footer-copy { border-top: 1px solid #333; padding-top: 30px; font-size: 0.85rem; line-height: 1.6; }

/* Floating Buttons */
.floating-btns { position: fixed; bottom: 30px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 15px; align-items: center; }
.float-btn { width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: 0.3s; cursor: pointer; }
.quick-btn { background: var(--secondary); } 
.top-btn { background: var(--primary); opacity: 0; visibility: hidden; }
.top-btn.show { opacity: 1; visibility: visible; }

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    /* 메뉴 오픈 시 스타일 */
    .nav-menu { 
        position: fixed; top: 60px; left: 0; width: 100%; height: 100vh;
        background: #fff; flex-direction: column; align-items: flex-start;
        padding: 20px; gap: 0;
        transform: translateX(100%); transition: 0.3s; 
        display: flex; overflow-y: auto; box-sizing: border-box;
    }
    .nav-menu.active { transform: translateX(0); }
    
    .nav-item { width: 100%; border-bottom: 1px solid #f1f1f1; }
    .nav-item:last-child { border-bottom: none !important; margin-top: 20px; }
    .nav-link { padding: 18px 0; width: 100%; display: flex; justify-content: space-between; align-items: center; }
    .dropdown { position: static; width: 100%; transform: none; box-shadow: none; border: none; background: #f9f9f9; display: none; opacity: 1; visibility: visible; padding: 0; }
    .nav-item.open .dropdown { display: block; }
    .dropdown li a { padding: 12px 20px; }
    .nav-link::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.8rem; color: #ccc; transition: 0.3s; position: static; }
    .nav-item.open .nav-link::after { transform: rotate(180deg); }
    .nav-cta-btn { margin: 0; width: 100%; text-align: center; display: block; }

    .hero-btns { flex-direction: column; width: 100%; }
    .btn-primary, .btn-glass { width: 100%; }

    .section { padding: 60px 0; }
    .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .feature-box, .feature-box.reverse { flex-direction: column; padding: 30px 20px; text-align: left; }
    .process-steps { flex-direction: column; gap: 20px; }
    .process-line { display: none; }

    .consult-content { flex-direction: column; gap: 40px; width: 100%; }
    .consult-left { text-align: center; }
    .glass-form { padding: 25px 20px; width: 100%; box-sizing: border-box; }
    .form-row { flex-direction: column; gap: 0; }
    
    .footer-links { flex-direction: column; gap: 15px; }
    .faq-grid { grid-template-columns: 1fr; }
    .floating-btns { bottom: 20px; right: 20px; }
}


@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 0;
        transform: translateX(100%);
        transition: 0.3s;
        display: flex;
        overflow-y: auto;
        box-sizing: border-box;
        z-index: 1001;
    }

    .nav-menu.active {
        transform: translateX(0);
    }
}


@media (max-width: 768px) {
    body { font-size: 15px; }

    .hero-content h1 { font-size: 2.05rem !important; }
    .hero-content p  { font-size: 0.98rem !important; }

    .section-title h2 { font-size: 1.7rem !important; }
    .section-title p  { font-size: 1rem !important; }

    .nav-link { font-size: 1.05rem; }
    .dropdown li a { font-size: 0.98rem; }
}





/* ✅ 페이지별 CSS (필요한 것만 유지) */

.sub-hero {
    position: relative;
    height: 78vh;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
}

.hero-bg-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}
.hero-bg-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.7);
}

.hero-txt { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; }
.hero-txt h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    text-shadow: 0 6px 18px rgba(0,0,0,0.35);
    opacity: 0; animation: fadeUp 1s forwards 0.2s;
}
.hero-txt p {
    font-size: 1.2rem;
    opacity: 0; animation: fadeUp 1s forwards 0.5s;
    margin-bottom: 34px; font-weight: 300;
}

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

/* Intro */
.intro-sec { padding: 90px 0; background: #fff; }
.intro-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.intro-title h2 { font-size: 2.7rem; font-weight: 700; color: #222; line-height: 1.2; margin-bottom: 25px; }
.highlight { color: var(--primary); position: relative; display: inline-block; }
.highlight::after {
    content: ''; position: absolute; bottom: 6px; left: 0; width: 100%; height: 9px;
    background: rgba(84, 76, 157, 0.14); z-index: -1;
}

.intro-desc p { font-size: 1.05rem; color: #555; margin-bottom: 18px; line-height: 1.75; }
.stat-row { display: flex; gap: 34px; margin-top: 35px; }
.stat-item h4 { font-size: 2rem; font-weight: 800; color: var(--secondary); margin-bottom: 4px; }
.stat-item span { font-size: 0.85rem; color: #888; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }

/* Methods */
.methods-sec { background: #f9faff; padding: 90px 0; }
.method-card {
    background: #fff;
    border-radius: 20px;
    padding: 38px;
    margin-bottom: 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center;
    border: 1px solid #eee;
    transition: 0.25s;
}
.method-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(84, 76, 157, 0.09); border-color: var(--secondary); }

.m-content .tag {
    display: inline-block; background: #eefdfd; color: var(--secondary);
    padding: 6px 14px; border-radius: 20px; font-size: 0.85rem;
    margin-bottom: 14px; font-weight: 800;
}
.m-content h3 { font-size: 1.7rem; margin-bottom: 14px; color: #222; font-weight: 800; }
.m-list li { margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; font-size: 1.03rem; color: #555; line-height: 1.5; }
.m-list i { color: var(--primary); margin-top: 4px; }
.m-img { border-radius: 15px; overflow: hidden; height: 290px; }
.m-img img { width: 100%; height: 100%; object-fit: cover; }

/* Compare */
.compare-sec { padding: 90px 0; background: #fff; }
.compare-box {
    max-width: 1000px; margin: 0 auto;
    background: #fff; border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid #eee; overflow: hidden;
}
.c-table { width: 100%; border-collapse: collapse; }
.c-table th {
    text-align: left; padding: 22px;
    background: #f8f9fa;
    font-size: 1.05rem; color: #222; border-bottom: 2px solid #ddd;
}
.c-table td { padding: 18px 22px; border-bottom: 1px solid #eee; font-size: 0.98rem; color: #555; vertical-align: middle; }
.price-tag { font-weight: 800; color: var(--primary); font-size: 1.05rem; }

/* Recovery */
.recovery-sec { padding: 90px 0; background: #f9faff; }
.step-list { display: flex; justify-content: space-between; margin-top: 45px; position: relative; gap: 18px; }
.step-list::before {
    content: ''; position: absolute; top: 27px; left: 50px; right: 50px;
    height: 2px; background: #e0e0e0; z-index: 0;
}
.r-step { position: relative; z-index: 1; text-align: center; flex: 1; background: transparent; }
.r-circle {
    width: 54px; height: 54px; background: #fff;
    border: 2px solid var(--secondary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-weight: 800; color: var(--secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-size: 0.95rem;
}
.r-step h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; color:#222; }
.r-step p { font-size: 0.92rem; color: #666; line-height: 1.45; }

/* CTA */
.cta-sec { background: var(--gradient); padding: 75px 0; text-align: center; color: #fff; }
.cta-sec h2 { font-size: 2.35rem; margin-bottom: 12px; font-weight: 800; }
.cta-sec p { font-size: 1.15rem; margin-bottom: 26px; opacity: 0.92; }

/* Mobile */
@media (max-width: 768px) {
    .sub-hero { height: 70vh; min-height: 520px; }
    .hero-txt h1 { font-size: 2.2rem; }
    .hero-txt p { font-size: 1rem; }

    .intro-sec { padding: 60px 0; }
    .intro-grid { grid-template-columns: 1fr; gap: 34px; }
    .intro-title h2 { font-size: 1.85rem; }
    .stat-row { gap: 16px; justify-content: space-between; }
    .stat-item h4 { font-size: 1.45rem; }

    .methods-sec { padding: 60px 0; }
    .method-card { grid-template-columns: 1fr; padding: 22px; }
    .m-img { height: 200px; order: -1; margin-bottom: 16px; }
    .m-content h3 { font-size: 1.45rem; }

    .compare-sec { padding: 60px 0; }
    .compare-box { box-shadow: none; border: none; background: transparent; }
    .c-table { min-width: 620px; }

    /* ✅ 모바일 Recovery 찐빠 완전 해결 */
    .step-list {
        flex-direction: column;
        padding-left: 10px;
        gap: 28px;
    }
    .step-list::before {
        left: 28px;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
    }
    .r-step {
        display: flex;
        gap: 16px;
        text-align: left;
        align-items: flex-start;
    }
    .r-circle {
        margin: 0;
        flex-shrink: 0;
        background: #fff;
        z-index: 2;
    }
}