:root {
    --primary-color: #6a7458; /* Muted olive green */
    --primary-dark: #525a43;
    --secondary-color: #d8bea5; /* Sand beige */
    --bg-color: #fcfbf9; /* Warm off-white */
    --bg-alt: #f4f1ea;
    --text-main: #3d3935; /* Charcoal brown */
    --text-muted: #726b64;
    --white: #ffffff;
    --accent: #b47847; /* Warm earthy orange/brown */
    --kakao: #FEE500;
    --naver: #03C75A;
    
    --font-heading: 'Noto Serif KR', serif;
    --font-body: 'Gowun Dodum', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px; /* For sticky navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.text-muted { color: var(--text-muted); }
.d-block { display: block; width: 100%; }

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

.section { padding: 100px 0; }

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 1rem 0;
}

/* Scroll Animation Base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(252, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-leaf { font-size: 1.2rem; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-3px); }

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}
.btn-secondary:hover { background-color: rgba(255,255,255,0.1); }

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--secondary-color);
}
.btn-outline:hover { background-color: var(--secondary-color); color: var(--white); }

.btn-naver { background-color: var(--naver); color: white; }
.btn-kakao { background-color: var(--kakao); color: #3A2929; }
.btn-phone { background-color: var(--text-main); color: white; }

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 70px);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(40,35,30,0.8), rgba(40,35,30,0.5));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.h-feature {
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 1rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Flex Container */
.flex-container, .flex-container-alt {
    display: flex;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .flex-container, .flex-container-alt { flex-direction: column; }
    .hero-cta { flex-direction: column; width: 100%; padding:0 10%;}
    .nav-links { display: none; } /* Simplified for demo */
}

/* Card & Box System */
.card {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    flex: 1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.5);
}

/* About Section */
.about-section { background: var(--white); }
.about-text h2 { font-size: 2.2rem; }
.about-text .lead { font-size: 1.2rem; font-weight: 500; color: var(--primary-color); margin-bottom: 1rem; }
.about-image { flex: 1; position: relative; }
.about-image img { width: 100%; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); position: relative; z-index: 2; }
.image-deco { position: absolute; top: -15px; right: -15px; width: 100%; height: 100%; border: 2px solid var(--secondary-color); border-radius: 16px; z-index: 1; }

.check-list { list-style: none; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: 0.8rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

/* Moxa Section */
.moxa-section { background: var(--bg-alt); }
.badge { display: inline-block; padding: 6px 16px; background-color: rgba(106, 116, 88, 0.1); color: var(--primary-color); border-radius: 20px; font-size: 0.9rem; margin-bottom: 1rem; }
.section-header h2 { font-size: 2.5rem; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.feature-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid transparent;
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--secondary-color); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.f-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* Program Flow Section */
.program-section { background: var(--white); overflow: hidden; }
.program-steps { flex: 1.2; }
.program-steps h2 { font-size: 2rem; line-height: 1.4; }
.program-steps h2 strong { color: var(--accent); }

.flow-steps { position: relative; margin-top: 2rem; }
.flow-steps::before { content: ''; position: absolute; left: 19px; top: 10px; bottom: 30px; width: 2px; background: var(--secondary-color); opacity: 0.5; }
.step { position: relative; padding-left: 4.5rem; margin-bottom: 2rem; }
.step-dot { position: absolute; left: 0; top: 0; width: 40px; height: 40px; background: var(--bg-color); border: 2px solid var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--primary-color); z-index: 2; transition: var(--transition); }
.step:hover .step-dot { background: var(--primary-color); color: var(--white); box-shadow: 0 0 15px rgba(106, 116, 88, 0.3); transform: scale(1.1); }
.step h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* Analyzer Box */
.analyzer-box { flex: 0.8; }
.round-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--white); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.upload-area { border: 2px dashed var(--secondary-color); border-radius: 12px; padding: 2rem; background: rgba(255,255,255,0.5); cursor: pointer; transition: var(--transition); }
.upload-area:hover { background: var(--white); border-color: var(--primary-color); }
.upload-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }

/* Reviews */
.reviews-section { background: var(--bg-alt); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.review-card { background: var(--white); padding: 2.5rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: left; }
.stars { color: #f5b301; margin-bottom: 1rem; font-size: 1.2rem; }
.review-text { font-size: 1.05rem; font-style: italic; margin-bottom: 1.5rem; }
.author { font-weight: 600; color: var(--primary-color); font-size: 0.95rem; }

/* Footer CTA & Location */
.reservation-box h2, .location-box h2 { font-size: 1.8rem; }
.price-row { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.price { font-size: 1.2rem; color: var(--accent); font-weight: bold; }
.alert-box { background: rgba(180, 120, 71, 0.1); border-left: 4px solid var(--accent); padding: 1rem; border-radius: 0 8px 8px 0; }
.map-placeholder { width: 100%; height: 250px; background: #e9e5e0; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-weight: bold; }

/* Footer Element */
.footer { background: var(--text-main); color: rgba(255,255,255,0.7); padding: 40px 0; }
.footer h3 { color: var(--white); }

/* Modal CSS Snippet */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000; align-items: center; justify-content: center; }
.modal:target { display: flex; }
.modal-content { background: var(--white); padding: 3rem; border-radius: 16px; width: 90%; max-width: 500px; position: relative; }
.close { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; text-decoration: none; color: var(--text-main); }
.quiz-q { margin-bottom: 1rem; font-weight: 500; font-size: 1.05rem; }

/* Bridge Banner Section (Healing & Soft) */
.bridge-banner-section { position: relative; padding: 180px 0; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; margin-top: 60px; margin-bottom: 20px; }
.bridge-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center right; background-attachment: fixed; z-index: -2; }
.bridge-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(252, 251, 249, 0.95) 0%, rgba(252, 251, 249, 0.6) 45%, rgba(252, 251, 249, 0) 100%); z-index: -1; }
.bridge-content { position: relative; z-index: 1; max-width: 600px; padding-left: 5%; }
.bridge-icon { font-size: 2.2rem; margin-bottom: 20px; opacity: 0.9; color: var(--primary-color); }
.bridge-title { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.5; color: var(--primary-dark); font-weight: 500; letter-spacing: -0.5px; text-shadow: none; }
.bridge-subtitle { font-size: 1.25rem; font-weight: 400; color: var(--text-muted); letter-spacing: 1px; opacity: 0.9; }
