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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    background: #f8f9fa;
    line-height: 1.6;
    padding-bottom: 90px; /* 하단 고정 폼 공간 */
}

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

/* ===== 헤더 ===== */
.header {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #1B3A5C;
    letter-spacing: -1px;
}

.logo span {
    color: #2E86DE;
}

.logo-sub {
    font-size: 13px;
    color: #868e96;
    margin-top: 2px;
}

/* ===== 메인 배너 ===== */
.hero {
    background: linear-gradient(rgba(27,58,92,0.65), rgba(27,58,92,0.65)), url('/assets/images/main.jpg') center/cover no-repeat;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 28px;
}

.btn-cta {
    display: inline-block;
    background: #FFB800;
    color: #1B3A5C;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-cta:hover {
    background: #FFA500;
}

/* ===== 신뢰 지표 ===== */
.trust-bar {
    background: #fff;
    padding: 28px 0;
    border-bottom: 1px solid #e9ecef;
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 48px;
    text-align: center;
}

.trust-item strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #2E86DE;
}

.trust-item span {
    font-size: 14px;
    color: #868e96;
}

/* ===== 성공사례 ===== */
.cases {
    padding: 56px 0;
}

.section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: #1B3A5C;
    margin-bottom: 8px;
}

.section-desc {
    text-align: center;
    color: #868e96;
    font-size: 15px;
    margin-bottom: 36px;
}

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

.case-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s;
}

.case-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.case-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: #E8F4FD;
    color: #2E86DE;
    margin-bottom: 12px;
}

.case-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1B3A5C;
    margin-bottom: 6px;
}

.case-age {
    font-size: 13px;
    font-weight: 400;
    color: #868e96;
}

.case-situation {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f3f5;
}

.case-numbers {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
}

.case-num {
    flex: 1;
}

.case-num .label {
    display: block;
    font-size: 12px;
    color: #868e96;
    margin-bottom: 4px;
}

.case-num .value {
    font-size: 18px;
    font-weight: 800;
}

.case-num .value.debt {
    color: #E74C3C;
}

.case-num .value.saved {
    color: #27AE60;
}

.case-detail {
    font-size: 13px;
    color: #868e96;
    line-height: 1.7;
}

/* ===== 전문가 섹션 ===== */
.expert {
    padding: 56px 0;
    background: #f1f5f9;
}

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

.expert-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 24px;
    border: 1px solid #e9ecef;
}

.expert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #1B3A5C;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 16px;
}

.expert-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1B3A5C;
    margin-bottom: 10px;
}

.expert-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .expert-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FAQ ===== */
.faq {
    padding: 56px 0;
    background: #fff;
}

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

.faq-item {
    border-bottom: 1px solid #e9ecef;
}

.faq-item:first-child {
    border-top: 1px solid #e9ecef;
}

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

.faq-question:hover {
    color: #2E86DE;
}

.faq-arrow {
    font-size: 22px;
    font-weight: 300;
    color: #adb5bd;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-arrow {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 4px 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.75;
}

/* ===== 카피라이트 ===== */
.footer {
    text-align: center;
    padding: 32px 0;
    color: #adb5bd;
    font-size: 13px;
}

/* ===== 하단 고정 상담 폼 ===== */
.fixed-form {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1B3A5C;
    padding: 14px 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fixed-form input {
    height: 42px;
    border: none;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.input-name {
    width: 100px;
}

.tel-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.input-tel {
    width: 68px;
    text-align: center;
}

.tel-dash {
    color: #fff;
    font-size: 14px;
}

.input-memo {
    flex: 1;
    min-width: 120px;
}

.btn-submit {
    height: 42px;
    padding: 0 24px;
    background: #FFB800;
    color: #1B3A5C;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #FFA500;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-result {
    text-align: center;
    padding: 8px 0 0;
    font-size: 14px;
    font-weight: 600;
}

.form-result.success {
    color: #51cf66;
}

.form-result.error {
    color: #ff6b6b;
}

/* ===== 반응형: 모바일 ===== */
@media (max-width: 768px) {
    body {
        padding-bottom: 160px;
    }

    .hero {
        padding: 44px 0;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-sub {
        font-size: 15px;
    }

    .trust-items {
        gap: 24px;
    }

    .trust-item strong {
        font-size: 22px;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 22px;
    }

    /* 모바일 폼: 2줄 레이아웃 */
    .form-row {
        flex-wrap: wrap;
    }

    .input-name {
        width: calc(35% - 5px);
    }

    .tel-group {
        width: calc(65% - 5px);
    }

    .input-tel {
        width: 0;
        flex: 1;
    }

    .input-memo {
        flex: 1;
        min-width: 0;
    }

    .btn-submit {
        width: auto;
        flex-shrink: 0;
    }
}

@media (max-width: 400px) {
    .trust-items {
        gap: 16px;
    }

    .trust-item strong {
        font-size: 18px;
    }

    .case-card {
        padding: 20px;
    }

    .case-numbers {
        flex-direction: column;
        gap: 8px;
    }
}
