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

:root {
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #fef0ef;
    --primary-soft: #fdf6f5;
    --text-dark: #1a1a1a;
    --text-medium: #555;
    --text-light: #777;
    --text-muted: #999;
    --background-light: #fafafa;
    --background-section: #f9f9f9;
    --border-color: #eee;
    --border-strong: #e5e5e5;
    --success-color: #28A745;
    --danger-color: #DC3545;
    --star-color: #f39c12;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: #fff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-strong);
    transition: box-shadow 0.3s;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    padding: 0 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo {
    width: 32px;
    height: 32px;
}

.nav-brand h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-medium);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* ===== Buttons ===== */
.cta-button {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
}

.cta-button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.cta-button.secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid #ddd;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
}

.cta-button.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-cta {
    background: var(--primary-color);
    color: white;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-cta:hover {
    background: var(--primary-dark);
}

/* ===== Hero Section ===== */
.hero {
    padding: 100px 0 90px;
    background: linear-gradient(135deg, var(--primary-soft) 0%, #fff 50%, #f5f7fa 100%);
}

.hero-content {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #111;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-medium);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Benefits Section ===== */
.benefits {
    padding: 100px 0;
    background: var(--background-light);
}

.benefits h2,
.how-it-works h2,
.service-types h2,
.testimonials h2,
.faq h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: #111;
    letter-spacing: -0.5px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.benefit-card {
    background: white;
    border-radius: 16px;
    padding: 36px 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    text-align: left;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(231, 76, 60, 0.13);
}

.benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    background: var(--primary-light);
}

.benefit-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.benefit-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== How It Works Section ===== */
.how-it-works {
    padding: 100px 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--background-section);
    border-radius: 16px;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.step-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Service Types Section ===== */
.service-types {
    padding: 100px 0;
    background: var(--background-light);
}

.service-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-top: -40px;
    margin-bottom: 60px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    position: relative;
    transition: all 0.3s;
}

.service-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.15);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #111;
}

.service-features {
    list-style: none;
    margin-bottom: 1.8rem;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-medium);
    font-size: 0.92rem;
    line-height: 1.6;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-features li:first-child {
    border-top: none;
}

.service-card .cta-button {
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
}

.service-card.featured .cta-button {
    background: var(--primary-color);
    color: white;
}

.service-card .cta-button:hover {
    transform: translateY(-2px);
}

/* ===== Quote Process ===== */
.quote-process {
    margin-top: 70px;
    padding: 50px 40px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.quote-process h3 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 36px;
    color: #111;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    flex: 0 0 170px;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 12px;
}

.process-step p {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.process-arrow {
    font-size: 1.6rem;
    color: #ddd;
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 100px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: var(--background-section);
    padding: 30px 26px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.stars {
    color: var(--star-color);
    margin-bottom: 14px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    color: var(--text-medium);
}

.author strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
}

.author span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== FAQ Section ===== */
.faq {
    padding: 100px 0;
    background: var(--background-light);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 22px 28px;
    background: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
    color: #222;
    font-family: inherit;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: transform 0.3s;
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 0 28px 22px;
    max-height: 400px;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* ===== Final CTA Section ===== */
.final-cta {
    padding: 90px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.final-cta p {
    font-size: 1.1rem;
    margin-bottom: 36px;
    opacity: 0.92;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button.large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

.final-cta .cta-button.primary {
    background: white;
    color: var(--primary-color);
}

.final-cta .cta-button.primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== Footer ===== */
.footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 60px 0 30px;
}

.footer-content {
    text-align: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-brand img {
    width: 32px;
    height: 32px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
}

.footer-section p {
    line-height: 1.7;
    color: #888;
    font-size: 0.9rem;
    max-width: 480px;
    margin: 0 auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2a2a2a;
    color: #777;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 6px;
}

/* ===== Mobile responsive ===== */
.mobile-only { display: none; }

@media (max-width: 968px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .service-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-only { display: inline; }

    .nav-menu { display: none; }

    .navbar .container {
        padding: 0 16px;
    }

    .hero {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .benefits,
    .how-it-works,
    .service-types,
    .testimonials,
    .faq,
    .final-cta {
        padding: 70px 0;
    }

    .benefits h2,
    .how-it-works h2,
    .service-types h2,
    .testimonials h2,
    .faq h2,
    .final-cta h2 {
        font-size: 1.7rem;
        margin-bottom: 40px;
    }

    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .quote-process {
        padding: 32px 20px;
    }

    .process-arrow {
        display: none;
    }

    .service-card.featured {
        transform: none;
    }
}

/* ===== Quote Modal ===== */
.quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: modal-fade-in 0.3s ease;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modal-slide-in 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
}

.step.completed .step-number {
    background: #4CAF50;
    color: white;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    transition: color 0.3s;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 500;
}

.step-line {
    width: 80px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: background 0.3s;
}

.step-line.completed {
    background: #4CAF50;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: modal-fade-in 0.3s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.required {
    color: #e74c3c;
    font-weight: normal;
}

.form-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #666;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.form-group input.error,
.form-group select.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.error-message.show {
    display: block;
}

.next-step-btn {
    width: 100%;
    margin-top: 1rem;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-buttons button {
    flex: 1;
}

.quote-modal .cta-button.secondary {
    background: #f5f5f5;
    color: var(--text-dark);
}

.quote-modal .cta-button.secondary:hover {
    background: #e0e0e0;
}

.floor-row {
    display: flex;
    gap: 1rem;
}

.floor-row select {
    flex: 1;
    min-width: 120px;
}

.floor-row input {
    flex: 2;
}

.floor-row .button-group {
    flex: 1;
    min-width: 120px;
}

.button-group {
    display: flex;
    gap: 0.5rem;
}

.button-group.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.toggle-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-medium);
    transition: all 0.2s;
}

.toggle-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.toggle-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.button-group.error {
    outline: 1px solid #e74c3c;
    outline-offset: 2px;
    border-radius: 6px;
}

.phone-row {
    display: flex;
    gap: 0.5rem;
}

.phone-row input {
    flex: 1;
}

.phone-row .send-code-btn {
    flex-shrink: 0;
    padding: 0 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.estimate-result {
    margin-bottom: 1rem;
}

.estimate-loading,
.estimate-error {
    padding: 2rem;
    text-align: center;
    color: #666;
}

.estimate-error {
    color: #e74c3c;
}

.estimate-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: #fff5f4;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.estimate-total-label {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.estimate-total-value {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.estimate-breakdown {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.estimate-section {
    border-bottom: 1px solid #e8e8e8;
}

.estimate-section:last-child {
    border-bottom: none;
}

.estimate-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.estimate-row.parent {
    background: #fafafa;
    font-weight: 600;
}

.estimate-row.parent span:first-child {
    color: var(--text-dark);
}

.estimate-row.parent span:last-child {
    color: var(--primary-color);
    font-weight: 700;
}

.estimate-row.child {
    padding: 0.5rem 1rem 0.5rem 2rem;
    font-size: 0.875rem;
    border-top: 1px solid #f5f5f5;
}

.estimate-row.child span:first-child {
    color: #888;
}

.estimate-row.child span:last-child {
    color: #555;
    font-weight: 500;
}

.estimate-row.discount span:last-child {
    color: #2e7d32;
    font-weight: 600;
}

.estimate-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
}

.cta-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .step-line {
        width: 40px;
        margin: 0 0.5rem;
    }

    .floor-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .floor-row input,
    .floor-row select {
        width: 100%;
    }

    .form-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-buttons button {
        width: 100%;
    }
}
