@import url('https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&display=swap');

/* CSS Variables */
:root {
    --color-primary: #3E1F00; /* Deep Brown */
    --color-gold: #C9962E;
    --color-bg-cream: #FDF8F2;
    --color-white: #FFFFFF;
    --color-text-dark: #3E1F00; /* Use deep brown for dark text too to match the mood */
    --color-text-light: #FDF8F2;
    --color-text-muted: #888888;
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    --font-handwriting: 'Nanum Pen Script', cursive;
    --section-padding: 100px 20px;
    --transition-smooth: 0.8s cubic-bezier(0.25, 1, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-cream);
    overflow-x: hidden;
    padding-bottom: 80px; /* space for floating footer */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography Utilities */
.text-gold { color: var(--color-gold); font-weight: 900; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.pl-4 { padding-left: 2rem; }
.font-handwriting { font-family: var(--font-handwriting); font-size: 3rem; letter-spacing: 1px; color: var(--color-gold); margin-bottom: 10px; display: block; line-height: 1.2; }
.text-mega { font-size: 6rem; font-weight: 900; color: var(--color-gold); line-height: 1.1; letter-spacing: -2px; display: block; margin: 10px 0; text-shadow: 0 5px 20px rgba(0,0,0,0.3); }
.text-huge { font-size: 2.5rem; font-weight: 900; color: var(--color-gold); }

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.content-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Section Themes */
section {
    position: relative;
    padding: var(--section-padding);
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.bg-deep-brown {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.bg-deep-brown .section-title { color: var(--color-gold); }
.bg-deep-brown .section-desc { color: var(--color-text-light); }

.bg-cream {
    background-color: var(--color-bg-cream);
    color: var(--color-text-dark);
}

.bg-cream .section-title { color: var(--color-primary); }

/* Background Overlays */
.bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.bg-overlay::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(62,31,0,0.7) 0%, rgba(62,31,0,0.95) 100%);
}

.parallax {
    background-attachment: fixed;
}

/* Common UI Elements */
.section-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.section-desc {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 500;
    word-break: keep-all;
}

/* Animation Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all var(--transition-smooth);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all var(--transition-smooth);
}
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all var(--transition-smooth);
}
.scale-up {
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-smooth);
}

.fade-wrap.is-visible .reveal-up { opacity: 1; transform: translateY(0); }
.fade-wrap.is-visible .reveal-left { opacity: 1; transform: translateX(0); }
.fade-wrap.is-visible .reveal-right { opacity: 1; transform: translateX(0); }
.fade-wrap.is-visible .scale-up { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* 1. Hero Section */
.sec-hero {
    min-height: 100vh;
    padding-top: 150px;
    text-align: center;
}
.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: -2px;
    color: var(--color-white);
    word-break: keep-all;
}
.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    color: rgba(253, 248, 242, 0.95);
    margin-bottom: 50px;
    line-height: 1.7;
    word-break: keep-all;
}
.cta-button {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-primary);
    font-size: 1.4rem;
    font-weight: 900;
    padding: 22px 50px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(201, 150, 46, 0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
}
.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    background: #deb355;
}

/* 2. Empathy Section */
.empathy-list {
    max-width: 800px;
    margin: 0 auto 40px;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(62,31,0,0.08);
}
.empathy-list li {
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    font-weight: 600;
    line-height: 1.5;
}
.empathy-list li:last-child { margin-bottom: 0; }
.empathy-list .icon {
    color: #e74c3c;
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.4rem;
    margin-top: 2px;
}
.empathy-highlight {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-gold);
    text-align: center;
    margin-top: 30px;
    word-break: keep-all;
}

/* 3. Story Section */
.story-content {
    background: rgba(255,255,255,0.05);
    padding: 50px 40px;
    border-radius: 16px;
    border: 1px solid rgba(201,150,46,0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}
.story-photo {
    width: 100%;
    max-width: 450px;
    margin: 0 auto 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    aspect-ratio: 4/3;
    object-fit: cover;
}
.story-text {
    font-size: 1.3rem;
    line-height: 1.9;
    word-break: keep-all;
}

/* 4. Package Section */
.package-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.package-card {
    background: var(--color-white);
    padding: 35px 30px 35px 85px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(62,31,0,0.06);
    border: 1px solid #eaeaea;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(62,31,0,0.12);
}
.package-card.highlight {
    border: 3px solid var(--color-gold);
    box-shadow: 0 15px 40px rgba(201,150,46,0.2);
}
.package-num {
    position: absolute;
    left: 25px;
    top: 35px;
    width: 45px;
    height: 45px;
    background: var(--color-gold);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.4rem;
}
.package-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--color-primary);
    font-weight: 800;
}
.package-card ul {
    list-style: disc;
    padding-left: 20px;
    color: #444;
    font-size: 1.1rem;
}
.package-card ul li {
    margin-bottom: 10px;
}
.package-card .desc-note {
    display: block;
    font-size: 1rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 700;
}

/* 5. Pricing Section */
.price-table-wrap {
    max-width: 800px;
    margin: 0 auto 40px;
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.price-table {
    width: 100%;
    border-collapse: collapse;
}
.price-table td {
    padding: 30px 20px;
    border-bottom: 1px solid #eee;
    font-size: 1.3rem;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td:first-child { color: #555; width: 55%; word-break: keep-all; font-weight: 600; }
.price-table td:last-child { text-align: right; font-weight: 800; color: var(--color-primary); }
.price-table tr.total td {
    background: var(--color-gold);
    color: var(--color-primary);
    font-size: 1.6rem;
    font-weight: 900;
}
.price-table tr.total td:last-child {
    font-size: 2.5rem;
}

/* 6. Reviews Section */
.review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
.review-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(62,31,0,0.06);
    border: 1px solid #eaeaea;
    transition: transform 0.4s ease;
}
.review-card:hover {
    transform: translateY(-5px);
}
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
}
.stars { color: #f1c40f; font-size: 1.4rem; }
.review-date { color: #999; font-size: 1rem; }
.review-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}
.review-text {
    font-size: 1.15rem;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}
.trust-badge {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
    background: #f0eae1;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
}

/* 7. FAQ */
.faq-list { max-width: 800px; margin: 40px auto 0; }
.faq-item {
    background: var(--color-white);
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(62,31,0,0.04);
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: border-color 0.3s ease;
}
.faq-item:hover { border-color: var(--color-gold); }
.faq-q {
    padding: 25px 30px;
    font-weight: 800;
    font-size: 1.2rem;
    position: relative;
    color: var(--color-primary);
    padding-right: 60px;
    word-break: keep-all;
}
.faq-q::after {
    content: '+';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--color-gold);
    transition: transform 0.4s ease;
}
.faq-item.active .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
    padding: 0 30px;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease;
    color: #444;
    background: #fafafa;
    line-height: 1.7;
    font-size: 1.1rem;
}
.faq-item.active .faq-a {
    padding: 0 30px 25px;
    max-height: 500px;
    opacity: 1;
    margin-top: 10px;
}

/* 8. Contact Form */
.consult-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 50px 40px;
    border-radius: 16px;
    color: var(--color-text-dark);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.input-group { margin-bottom: 25px; text-align: left; }
.input-group label { display: block; margin-bottom: 10px; font-weight: 700; font-size: 1.1rem; }
.input-group input {
    width: 100%; padding: 18px; border: 2px solid #ddd; border-radius: 8px;
    font-family: var(--font-main); font-size: 1.1rem; transition: all 0.3s ease;
    background: #fafafa;
}
.input-group input:focus { outline: none; border-color: var(--color-gold); background: #fff; box-shadow: 0 0 10px rgba(201,150,46,0.1);}
.submit-btn {
    width: 100%; background: var(--color-gold); color: var(--color-primary);
    border: none; padding: 22px; font-size: 1.4rem; font-weight: 900;
    border-radius: 8px; cursor: pointer; transition: all 0.3s ease;
    margin-top: 15px;
}
.submit-btn:hover { background: #deb355; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(201,150,46,0.3); }
.form-notice { text-align: center; font-size: 0.95rem; color: #888; margin-top: 20px; }

/* 9. Floating Footer */
.floating-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-primary);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 100;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}
.float-btn {
    flex: 1;
    max-width: 350px;
    background: var(--color-gold);
    color: var(--color-primary);
    text-align: center;
    padding: 16px 0;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(201,150,46,0.3);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.float-btn:hover { transform: translateY(-5px); }
.float-btn.outline {
    background: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    box-shadow: none;
}

/* Responsive Overrides */
@media (min-width: 1024px) {
    .story-content .flex-row {
        flex-wrap: nowrap;
        text-align: left;
    }
    .story-content .image-area {
        flex: 0 0 45%;
    }
    .story-content .text-area {
        flex: 0 0 50%;
        padding-left: 30px;
    }
    .story-photo {
        margin-bottom: 0;
        height: 100%;
    }
    .package-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .review-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .review-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .floating-footer { padding: 15px 0; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3.2rem; }
    .hero-subtitle { font-size: 1.2rem; margin-bottom: 40px; }
    .text-mega { font-size: 4rem; }
    .text-huge { font-size: 2rem; }
    .section-title { font-size: 2.2rem; }
    .font-handwriting { font-size: 2.2rem; }
    
    .package-card { padding: 30px 25px 30px 75px; }
    .package-num { left: 20px; top: 30px; width: 40px; height: 40px; font-size: 1.2rem; }
    .package-card h3 { font-size: 1.4rem; }
    
    .price-table { display: block; }
    .price-table tbody { display: block; }
    .price-table tr { display: block; border-bottom: 1px solid #eee; padding: 20px 0; }
    .price-table tr:last-child { border-bottom: none; }
    .price-table td { display: block; width: 100% !important; text-align: center !important; padding: 5px 20px !important; border-bottom: none !important; }
    .price-table td:first-child { font-size: 1.1rem; color: #666; margin-bottom: 5px; word-break: keep-all; }
    .price-table td:last-child { font-size: 1.5rem; word-break: keep-all; }
    
    .price-table tr.total td { font-size: 1.3rem; }
    .price-table tr.total td:first-child { font-size: 1.5rem; padding-top: 15px !important; color: var(--color-primary); margin-bottom: 10px; }
    .price-table tr.total td:last-child { font-size: 2rem; }
    
    .consult-form { padding: 40px 25px; }
    .submit-btn { font-size: 1.2rem; padding: 18px; }
    .float-btn { font-size: 1.1rem; padding: 14px 0; }
}
