/* ============================
   [초기화 및 변수]
============================ */
:root {
    --bg-color: #f4f5f7;
    --text-main: #2c2c2c;
    --text-sub: #555555;
    --primary: #1e2a38;
    --accent: #ff6b6b;
    --kakao: #fee500;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    word-break: keep-all;
}

a { text-decoration: none; color: inherit; }
ul, li { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, p { margin: 0; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================
   1. 헤더 (Mobile First)
============================ */
header {
    background: var(--primary);
    color: var(--white);
    padding: 12px 0;
    position: relative;
    z-index: 100;
}

.nav-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
    color: var(--white);
}

.nav-links { display: none; }

@media (min-width: 768px) {
    header { padding: 15px 0; }
    .nav-links { display: block; }
    .nav-links a {
        color: rgba(255,255,255,0.8);
        font-weight: 500;
        margin-left: 30px;
        font-size: 15px;
        transition: 0.3s;
    }
    .nav-links a:hover { color: var(--accent); opacity: 1; }
}

/* ============================
   2. HERO 섹션
============================ */
.hero {
    background: linear-gradient(135deg, #1e2a38 0%, #2c3e50 100%);
    padding: 40px 20px 50px;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero .container { width: 100%; }

.hero h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
}

.hero-sub {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 25px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
}

.hero-btns a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: 0.2s;
}

.btn-call {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-kakao {
    background: var(--kakao);
    color: #3b1e1e;
    box-shadow: 0 4px 15px rgba(254, 229, 0, 0.4);
}

.hero-notice {
    font-size: 12px;
    margin-top: 15px;
    opacity: 0.6;
}

.hero-image {
    width: 100%;
    max-width: 800px;
    margin: 30px auto 40px;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

@media (min-width: 768px) {
    .hero {
        padding: 80px 0 90px;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }
    .hero h1 { font-size: 38px; margin-bottom: 16px; }
    .hero-sub { font-size: 18px; }
    .hero-btns { flex-direction: row; justify-content: center; gap: 14px; }
    .hero-btns a { width: auto; padding: 0 40px; }
}

/* ============================
   3. 공통 섹션
============================ */
.section {
    width: 90%;
    margin: 30px auto;
}

.section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 800;
    position: relative;
    padding-left: 10px;
}

.section h2::before {
    content: '';
    position: absolute;
    left: 0; top: 4px; bottom: 4px; width: 4px;
    background: var(--accent);
    border-radius: 4px;
}

.section h3 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: var(--primary);
    font-weight: 700;
}

.section p {
    margin-bottom: 12px;
    color: var(--text-sub);
    font-size: 15px;
}

.content-image {
    width: 100%;
    margin: 20px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .section {
        width: 100%;
        max-width: 1100px;
        margin: 60px auto;
    }
    .section h2 { font-size: 26px; margin-bottom: 25px; }
    .section h3 { font-size: 22px; }
}

/* ============================
   4. 카드 그리드
============================ */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.03);
}

.card h3 {
    color: var(--primary);
    font-size: 17px;
    margin-bottom: 6px;
    font-weight: 700;
}

.card p { font-size: 14px; color: var(--text-sub); }

@media (min-width: 768px) {
    .card-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
    .card { padding: 30px; }
    .card h3 { font-size: 20px; }
}

/* ============================
   5. Step (절차)
============================ */
.step-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.step {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #eee;
}

.step span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px; height: 36px;
    background: #fff0f0;
    color: var(--accent);
    border-radius: 50%;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 8px;
}

.step h3 { font-size: 14px; margin-bottom: 2px; color: var(--text-main); }
.step p { font-size: 12px; color: var(--text-sub); }

@media (min-width: 768px) {
    .step-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .step { padding: 24px; }
    .step span { width: 48px; height: 48px; font-size: 18px; }
    .step h3 { font-size: 16px; }
}

/* ============================
   6. FAQ
============================ */
.faq-item {
    background: var(--white);
    padding: 20px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid #e5e8eb;
    border-left: 5px solid var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.faq-item strong,
.faq-item b,
.faq-item h3 {
    display: block;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.faq-item p,
.faq-item div {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
}

/* ============================
   7. 후기
============================ */
.review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid #eee;
    text-align: center;
    box-shadow: var(--shadow);
}

.review-card img {
    width: 50px; height: 50px;
    border-radius: 50%;
    margin-bottom: 8px;
    object-fit: cover;
}

.review-card strong {
    display: block;
    margin-top: 5px;
    font-weight: 700;
    font-size: 14px;
}

@media (min-width: 768px) {
    .review-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* ============================
   8. 참고자료 링크
============================ */
.link-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
}

.link-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: 0.2s ease;
    text-align: left;
}

.link-card:active { transform: scale(0.98); background: #fafafa; }
.link-card:hover { border-color: var(--accent); }

.link-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.link-card h3::after {
    content: '↗';
    font-size: 14px;
    margin-left: auto;
    color: var(--accent);
}

.link-card p {
    font-size: 13px;
    color: var(--text-sub);
    margin: 0;
}

@media (min-width: 768px) {
    .link-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .link-card { padding: 24px; }
}

/* ============================
   9. CTA 섹션
============================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2c3e50 100%);
    padding: 40px 20px;
    margin: 40px auto;
    border-radius: var(--radius);
    text-align: center;
    color: var(--white);
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--white);
}

.cta-section h2::before { display: none; }

.cta-section p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cta-buttons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: 0.2s;
}

.cta-notice {
    font-size: 12px;
    margin-top: 15px;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .cta-section { padding: 60px 40px; }
    .cta-buttons { flex-direction: row; justify-content: center; gap: 14px; }
    .cta-buttons a { width: auto; }
}

/* ============================
   10. 내부 링크 스타일
============================ */
.internal-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.internal-link:hover {
    color: var(--accent);
}

.sub-link {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-sub);
}

/* ============================
   11. 푸터
============================ */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 30px 0 60px;
    text-align: center;
    font-size: 12px;
    margin-top: 40px;
}

.footer-wrap {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links {
    margin-bottom: 25px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    margin: 0 8px;
    text-decoration: underline;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-desc {
    margin-bottom: 25px;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
}

.footer-desc p {
    margin-bottom: 10px;
}

.footer-contact {
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-contact p {
    margin-bottom: 5px;
}

.copy {
    margin-top: 20px;
    opacity: 0.6;
}

@media (min-width: 768px) {
    footer { padding: 40px 0 80px; }
    .footer-links a { margin: 0 12px; }
}
