/* =============================================
   대구개인회생.org - Main Stylesheet
   법무사 김재현 사무소
   ============================================= */

/* ---- CSS 변수 ---- */
:root {
    --primary: #1E3A5F;
    --primary-light: #2C5282;
    --secondary: #0084FF;
    --secondary-light: #3BA0FF;
    --accent: #00B09B;
    --accent2: #00BE88;
    --warning: #FF6B35;
    --bg: #F8FAFF;
    --bg2: #EEF4FF;
    --white: #FFFFFF;
    --text: #1A1A2E;
    --text-sub: #5A6070;
    --text-light: #9AA3B2;
    --border: #DDE4EF;
    --shadow: 0 4px 24px rgba(30,58,95,0.10);
    --shadow-lg: 0 8px 40px rgba(30,58,95,0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --font: 'Noto Sans KR', sans-serif;
    --transition: 0.25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ---- 공통 레이아웃 ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }
.section-bg { background: var(--bg); }
.section-bg2 { background: var(--bg2); }
.section-dark { background: var(--primary); color: var(--white); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-label { display: inline-block; background: var(--bg2); color: var(--secondary); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; padding: 6px 16px; border-radius: var(--radius-full); margin-bottom: 16px; border: 1px solid rgba(0,132,255,0.2); }
.section-title { font-size: 36px; font-weight: 900; color: var(--primary); line-height: 1.3; margin-bottom: 16px; }
.section-title span { color: var(--secondary); }
.section-desc { font-size: 17px; color: var(--text-sub); max-width: 580px; margin: 0 auto; }

/* ---- 버튼 ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: var(--radius-full); font-size: 16px; font-weight: 700; transition: var(--transition); white-space: nowrap; }
.btn-primary { background: var(--secondary); color: var(--white); }
.btn-primary:hover { background: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--accent2); color: var(--white); }
.btn-secondary:hover { background: #009970; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--bg); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-lg { padding: 18px 44px; font-size: 18px; }
.btn-sm { padding: 10px 22px; font-size: 14px; }

/* ---- HEADER ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid transparent; transition: var(--transition); }
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 20px rgba(30,58,95,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.header-logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 20px; }
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { font-size: 17px; font-weight: 900; color: var(--primary); line-height: 1.2; }
.logo-text small { font-size: 11px; color: var(--text-sub); }

.header-nav ul { display: flex; gap: 4px; }
.header-nav a { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; color: var(--text); transition: var(--transition); }
.header-nav a:hover, .header-nav a.active { color: var(--secondary); background: var(--bg2); }
.header-nav .nav-cta { background: var(--secondary); color: var(--white); padding: 8px 20px; border-radius: var(--radius-full); }
.header-nav .nav-cta:hover { background: var(--primary); color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: flex; align-items: center; gap: 6px; background: var(--bg2); color: var(--secondary); padding: 8px 16px; border-radius: var(--radius-full); font-size: 14px; font-weight: 700; transition: var(--transition); }
.header-phone:hover { background: var(--secondary); color: var(--white); }
.hamburger { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--transition); }

/* ---- 모바일 네비 ---- */
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1100; }
.mobile-overlay.active { display: block; }
.mobile-nav { position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background: var(--white); z-index: 1200; transition: right 0.3s ease; display: flex; flex-direction: column; padding: 0; overflow-y: auto; }
.mobile-nav.open { right: 0; }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.mobile-close { font-size: 22px; color: var(--text-sub); }
.mobile-nav-menu { flex: 1; padding: 16px 0; }
.mobile-nav-menu li a { display: flex; align-items: center; gap: 12px; padding: 16px 24px; font-size: 16px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--bg); transition: var(--transition); }
.mobile-nav-menu li a:hover { background: var(--bg); color: var(--secondary); }
.mobile-cta { background: var(--secondary) !important; color: var(--white) !important; margin: 12px 24px; border-radius: var(--radius) !important; padding: 16px 24px !important; border-bottom: none !important; }
.mobile-nav-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.mobile-phone-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--bg2); color: var(--secondary); padding: 14px; border-radius: var(--radius); font-size: 18px; font-weight: 700; }
.mobile-hours { text-align: center; font-size: 13px; color: var(--text-light); margin-top: 8px; }

/* ---- HERO 섹션 ---- */
.hero { padding-top: 72px; min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, #EEF4FF 0%, #F8FAFF 50%, #E8F5FF 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,132,255,0.08) 0%, transparent 70%); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -100px; left: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,176,155,0.07) 0%, transparent 70%); border-radius: 50%; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; padding: 60px 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,132,255,0.1); color: var(--secondary); padding: 8px 20px; border-radius: var(--radius-full); font-size: 14px; font-weight: 700; margin-bottom: 24px; border: 1px solid rgba(0,132,255,0.2); }
.hero-title { font-size: 50px; font-weight: 900; color: var(--primary); line-height: 1.2; margin-bottom: 20px; }
.hero-title span { color: var(--secondary); display: block; }
.hero-title em { color: var(--accent2); font-style: normal; }
.hero-desc { font-size: 18px; color: var(--text-sub); margin-bottom: 36px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 28px; font-weight: 900; color: var(--primary); }
.hero-stat span { font-size: 13px; color: var(--text-sub); }
.hero-stat-divider { width: 1px; background: var(--border); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card { background: var(--white); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; max-width: 420px; width: 100%; }
.hero-card-img { width: 100%; height: 340px; object-fit: cover; object-position: top; }
.hero-card-info { padding: 24px; }
.hero-card-name { font-size: 20px; font-weight: 900; color: var(--primary); }
.hero-card-title { font-size: 14px; color: var(--secondary); font-weight: 600; margin-bottom: 12px; }
.hero-card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tag { background: var(--bg2); color: var(--secondary); padding: 4px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; }

/* 뱃지 (히어로 카드 위) */
.hero-badge-float { position: absolute; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; }
.hero-badge-float.left { left: -30px; top: 60px; }
.hero-badge-float.right { right: -20px; bottom: 80px; }
.hero-badge-float .badge-icon { font-size: 22px; margin-bottom: 4px; }
.hero-badge-float strong { display: block; font-size: 18px; font-weight: 900; color: var(--primary); }
.hero-badge-float span { font-size: 11px; color: var(--text-sub); }

/* ---- 신뢰 배지 섹션 ---- */
.trust-bar { background: var(--primary); padding: 24px 0; }
.trust-bar-inner { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 12px; color: var(--white); }
.trust-item i { font-size: 20px; color: rgba(255,255,255,0.7); }
.trust-item strong { font-size: 16px; font-weight: 700; }
.trust-item span { font-size: 13px; color: rgba(255,255,255,0.65); }
.trust-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.2); }

/* ---- 서비스 특징 ---- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { background: var(--white); border-radius: var(--radius); padding: 36px 28px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0,132,255,0.2); }
.feature-icon { width: 72px; height: 72px; background: linear-gradient(135deg, var(--bg2), #DCE8FF); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 30px; color: var(--secondary); }
.feature-card h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.feature-card p { font-size: 15px; color: var(--text-sub); line-height: 1.8; }
.feature-num { display: inline-block; background: var(--secondary); color: var(--white); font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: var(--radius-full); margin-bottom: 16px; }

/* ---- 개인회생 절차 ---- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 36px; left: calc(12.5% + 16px); right: calc(12.5% + 16px); height: 2px; background: linear-gradient(to right, var(--secondary), var(--accent2)); z-index: 0; }
.step-item { text-align: center; padding: 0 12px; position: relative; z-index: 1; }
.step-num { width: 72px; height: 72px; background: linear-gradient(135deg, var(--secondary), var(--primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 22px; font-weight: 900; color: var(--white); border: 4px solid var(--white); box-shadow: var(--shadow); }
.step-title { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text-sub); line-height: 1.6; }

/* ---- 상담 예약 폼 ---- */
.contact-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.contact-info { color: var(--white); }
.contact-info h2 { font-size: 36px; font-weight: 900; line-height: 1.3; margin-bottom: 20px; }
.contact-info p { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: 36px; line-height: 1.8; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-list-item { display: flex; align-items: center; gap: 14px; }
.contact-list-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--white); flex-shrink: 0; }
.contact-list-text strong { display: block; font-size: 15px; color: var(--white); }
.contact-list-text span { font-size: 14px; color: rgba(255,255,255,0.7); }

.contact-form-wrap { background: var(--white); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-lg); }
.form-title { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid var(--bg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 14px; font-weight: 600; color: var(--primary); }
.form-label .req { color: var(--warning); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; font-family: var(--font); color: var(--text); background: var(--white); transition: var(--transition); outline: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(0,132,255,0.1); }
.form-input.error, .form-select.error { border-color: #E53E3E; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-error { font-size: 12px; color: #E53E3E; margin-top: 4px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--secondary); cursor: pointer; }
.form-checkbox span { font-size: 13px; color: var(--text-sub); line-height: 1.6; }
.form-checkbox a { color: var(--secondary); text-decoration: underline; }
.form-submit { width: 100%; padding: 18px; background: linear-gradient(135deg, var(--secondary), var(--primary)); color: var(--white); font-size: 18px; font-weight: 700; border-radius: var(--radius-full); transition: var(--transition); margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,132,255,0.35); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---- 성공사례 슬라이드 ---- */
.cases-slider { overflow: hidden; }
.cases-track { display: flex; gap: 24px; transition: transform 0.5s ease; }
.case-card { min-width: 340px; background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); flex-shrink: 0; }
.case-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.case-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--bg2), #DCE8FF); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--secondary); overflow: hidden; }
.case-avatar img { width: 100%; height: 100%; object-fit: cover; }
.case-meta strong { display: block; font-size: 16px; font-weight: 700; color: var(--primary); }
.case-meta span { font-size: 13px; color: var(--text-sub); }
.case-stars { color: #F6B819; font-size: 14px; margin-bottom: 8px; }
.case-result { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; }
.case-before { text-align: center; flex: 1; }
.case-before span, .case-after span { font-size: 11px; color: var(--text-light); }
.case-before strong { display: block; font-size: 17px; font-weight: 800; color: var(--text); }
.case-arrow { font-size: 20px; color: var(--secondary); }
.case-after { text-align: center; flex: 1; }
.case-after strong { display: block; font-size: 17px; font-weight: 800; color: var(--accent2); }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.case-tag { background: var(--bg2); color: var(--secondary); padding: 4px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600; }
.case-text { font-size: 14px; color: var(--text-sub); line-height: 1.8; }

.cases-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; }
.cases-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--border); color: var(--primary); font-size: 16px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.cases-btn:hover { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.cases-dots { display: flex; gap: 8px; }
.cases-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: var(--transition); cursor: pointer; }
.cases-dot.active { width: 24px; border-radius: 4px; background: var(--secondary); }

/* ---- FAQ ---- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.faq-item.open { border-color: rgba(0,132,255,0.3); box-shadow: 0 4px 16px rgba(0,132,255,0.08); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; cursor: pointer; gap: 16px; }
.faq-q-text { display: flex; align-items: center; gap: 14px; }
.faq-q-icon { width: 34px; height: 34px; background: var(--bg2); color: var(--secondary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; flex-shrink: 0; }
.faq-question h3 { font-size: 16px; font-weight: 600; color: var(--text); }
.faq-arrow { color: var(--text-light); font-size: 14px; transition: transform var(--transition); }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--secondary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 28px 24px 76px; font-size: 15px; color: var(--text-sub); line-height: 1.9; }

/* ---- 비교 테이블 ---- */
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.compare-table th, .compare-table td { padding: 16px 24px; text-align: center; border-bottom: 1px solid var(--border); }
.compare-table th { background: var(--primary); color: var(--white); font-size: 15px; font-weight: 700; }
.compare-table th:first-child { background: var(--primary-light); }
.compare-table td:first-child { background: var(--bg); font-weight: 600; text-align: left; color: var(--primary); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg2); }
.compare-table tr:hover td:first-child { background: var(--bg); }
.compare-good { color: var(--accent2); font-weight: 700; }
.compare-bad { color: #E53E3E; }
.compare-mid { color: var(--warning); }

/* ---- 변호사 소개 ---- */
.lawyer-section { background: var(--bg); }
.lawyer-inner { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: center; }
.lawyer-photo-wrap { position: relative; }
.lawyer-photo { width: 100%; border-radius: 24px; object-fit: cover; object-position: top; aspect-ratio: 3/4; box-shadow: var(--shadow-lg); }
.lawyer-cert-badge { position: absolute; bottom: -20px; right: 0; background: var(--white); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); text-align: center; }
.lawyer-cert-badge strong { display: block; font-size: 15px; font-weight: 800; color: var(--primary); }
.lawyer-cert-badge span { font-size: 12px; color: var(--text-sub); }
.lawyer-info h2 { font-size: 38px; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.lawyer-info h2 em { color: var(--secondary); font-style: normal; }
.lawyer-reg { display: inline-flex; align-items: center; gap: 8px; background: var(--bg2); color: var(--secondary); padding: 6px 16px; border-radius: var(--radius-full); font-size: 13px; font-weight: 700; margin-bottom: 20px; }
.lawyer-desc { font-size: 17px; color: var(--text-sub); line-height: 1.9; margin-bottom: 32px; }
.lawyer-careers { display: flex; flex-direction: column; gap: 12px; }
.lawyer-career { display: flex; gap: 16px; }
.career-year { min-width: 60px; font-size: 14px; font-weight: 700; color: var(--secondary); }
.career-text { font-size: 15px; color: var(--text); }

/* ---- 사무실 갤러리 ---- */
.office-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; border-radius: var(--radius); overflow: hidden; }
.office-gallery img { width: 100%; height: 100%; object-fit: cover; }
.office-gallery .main-img { grid-row: 1 / 3; height: 360px; }
.office-gallery .sub-img { height: 174px; }

/* ---- CTA 배너 ---- */
.cta-banner { background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%); padding: 64px 0; }
.cta-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-banner-text h2 { font-size: 32px; font-weight: 900; color: var(--white); margin-bottom: 12px; }
.cta-banner-text p { font-size: 17px; color: rgba(255,255,255,0.8); }
.cta-banner-btns { display: flex; gap: 16px; flex-shrink: 0; }

/* ---- FOOTER ---- */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.85); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 18px; font-weight: 900; margin-bottom: 16px; }
.footer-logo i { font-size: 22px; color: var(--secondary); }
.footer-brand p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; background: rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 16px; transition: var(--transition); }
.footer-social a:hover { background: var(--secondary); color: var(--white); }
.footer-menu h3, .footer-contact h3, .footer-map h3 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-menu ul li { margin-bottom: 10px; }
.footer-menu ul a { font-size: 14px; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-menu ul a:hover { color: var(--white); padding-left: 4px; }
.footer-contact ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 12px; }
.footer-contact i { color: var(--secondary); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-contact a:hover { color: var(--white); }
.footer-map-placeholder { background: rgba(255,255,255,0.07); border-radius: var(--radius-sm); padding: 24px; text-align: center; }
.footer-map-placeholder i { font-size: 32px; color: var(--secondary); margin-bottom: 10px; }
.footer-map-placeholder p { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 12px; }
.btn-map { display: inline-block; background: var(--secondary); color: var(--white); padding: 8px 20px; border-radius: var(--radius-full); font-size: 13px; font-weight: 700; }

.footer-bottom { padding: 24px 0; text-align: center; }
.footer-legal p { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 6px; line-height: 1.7; }
.footer-policy { display: flex; justify-content: center; gap: 16px; margin: 12px 0; }
.footer-policy a { font-size: 13px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-policy a:hover { color: var(--white); }
.footer-policy span { color: rgba(255,255,255,0.3); }
.footer-copyright { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 8px; }

/* ---- 플로팅 버튼 (데스크탑용 유지) ---- */
.floating-btns { display: none; }

/* ---- 모바일 하단 고정 바 ---- */
.mobile-bottom-bar { display: none; }

/* ---- 모바일 법무사 프로필 (히어로 내) ---- */
.hero-mobile-profile { display: none; }

.scroll-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; background: rgba(30,58,95,0.7); color: var(--white); border-radius: 50%; display: none; align-items: center; justify-content: center; z-index: 901; font-size: 16px; transition: var(--transition); }
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--primary); }
@media (max-width: 768px) {
    .scroll-top { bottom: 76px; right: 14px; width: 38px; height: 38px; font-size: 14px; }
}

/* ---- 페이지 히어로 (서브페이지) ---- */
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); padding: 120px 0 64px; color: var(--white); text-align: center; }
.page-hero h1 { font-size: 42px; font-weight: 900; margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,0.8); }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
.breadcrumb a, .breadcrumb span { font-size: 14px; color: rgba(255,255,255,0.65); }
.breadcrumb i { font-size: 11px; color: rgba(255,255,255,0.4); }

/* ---- 관리자 ---- */
.admin-wrap { min-height: 100vh; display: flex; }
.admin-sidebar { width: 240px; background: var(--primary); color: var(--white); flex-shrink: 0; }
.admin-content { flex: 1; background: var(--bg); padding: 32px; }
.admin-nav-item { display: flex; align-items: center; gap: 12px; padding: 14px 24px; color: rgba(255,255,255,0.75); font-size: 15px; transition: var(--transition); }
.admin-nav-item:hover, .admin-nav-item.active { background: rgba(255,255,255,0.1); color: var(--white); }
.admin-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 8px rgba(30,58,95,0.06); margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--primary); color: var(--white); padding: 12px 16px; text-align: left; font-size: 14px; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-table tr:hover td { background: var(--bg); }

/* ---- 알림 메시지 ---- */
.alert { padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #F0FFF4; color: #2F855A; border: 1px solid #C6F6D5; }
.alert-error { background: #FFF5F5; color: #C53030; border: 1px solid #FED7D7; }
.alert-info { background: #EBF8FF; color: #2B6CB0; border: 1px solid #BEE3F8; }

/* ---- 배지/태그 ---- */
.badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; }
.badge-blue { background: var(--bg2); color: var(--secondary); }
.badge-green { background: #F0FFF4; color: #2F855A; }
.badge-red { background: #FFF5F5; color: #C53030; }
.badge-yellow { background: #FFFAF0; color: #C05621; }

/* ============================================
   반응형 (Responsive)
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    .contact-inner { grid-template-columns: 1fr; }
    .contact-info { text-align: center; }
    .lawyer-inner { grid-template-columns: 1fr; }
    .lawyer-photo-wrap { max-width: 320px; margin: 0 auto; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-banner-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    /* ── 기본 섹션 ── */
    .section { padding: 52px 0; }
    .section-title { font-size: 26px; line-height: 1.35; }
    .section-desc { font-size: 15px; }
    .section-header { margin-bottom: 36px; }

    /* ── 헤더 ── */
    .header-nav { display: none; }
    .header-phone span { display: none; }
    .hamburger { display: flex; }
    .header-inner { height: 60px; padding: 0 16px; }
    .logo-text strong { font-size: 15px; }
    .logo-icon { width: 36px; height: 36px; font-size: 16px; }

    /* ── 히어로 ── */
    .hero { padding-top: 60px; min-height: auto; padding-bottom: 32px; }
    .hero-inner { grid-template-columns: 1fr; gap: 0; padding: 20px 0 0; }
    .hero-visual { display: none; }
    .hero-content { text-align: center; }
    .hero-badge { font-size: 12px; padding: 6px 14px; margin-bottom: 16px; }
    .hero-title { font-size: 30px; margin-bottom: 14px; }
    .hero-desc { font-size: 15px; margin-bottom: 24px; }
    .hero-btns { justify-content: center; gap: 10px; margin-bottom: 24px; }
    .hero-btns .btn { padding: 13px 20px; font-size: 15px; }
    .hero-stats { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .hero-stat strong { font-size: 24px; }
    .hero-stat span { font-size: 12px; }
    .hero-stat-divider { height: 28px; }

    /* ── 모바일 법무사 프로필 ── */
    .hero-mobile-profile {
        display: flex;
        align-items: center;
        gap: 16px;
        background: var(--white);
        border-radius: 20px;
        padding: 16px;
        margin: 0 0 20px;
        box-shadow: 0 4px 20px rgba(30,58,95,0.10);
        border: 1px solid var(--border);
    }
    .hero-mobile-photo-wrap { position: relative; flex-shrink: 0; }
    .hero-mobile-photo {
        width: 80px;
        height: 100px;
        border-radius: 14px;
        object-fit: cover;
        object-position: top;
    }
    .hero-mobile-badge {
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--secondary);
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        padding: 3px 8px;
        border-radius: 999px;
        white-space: nowrap;
    }
    .hero-mobile-info { flex: 1; }
    .hero-mobile-name { font-size: 18px; font-weight: 900; color: var(--primary); margin-bottom: 3px; }
    .hero-mobile-sub { font-size: 13px; color: var(--secondary); font-weight: 600; margin-bottom: 10px; }
    .hero-mobile-tags { display: flex; flex-wrap: wrap; gap: 5px; }
    .hero-mobile-tags span {
        background: var(--bg2);
        color: var(--secondary);
        font-size: 11px;
        font-weight: 700;
        padding: 3px 10px;
        border-radius: 999px;
    }

    /* ── 신뢰 바 ── */
    .trust-bar-inner { gap: 0; flex-direction: column; align-items: stretch; padding: 0; }
    .trust-divider { display: none; }
    .trust-item { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); gap: 14px; }
    .trust-item:last-child { border-bottom: none; }
    .trust-item strong { font-size: 14px; }
    .trust-item span { font-size: 12px; }

    /* ── 서비스 특징 ── */
    .features-grid { grid-template-columns: 1fr; gap: 14px; }
    .feature-card { padding: 24px 20px; text-align: left; display: flex; flex-direction: row; gap: 16px; align-items: flex-start; }
    .feature-icon { width: 52px; height: 52px; font-size: 22px; border-radius: 14px; flex-shrink: 0; margin: 0; }
    .feature-card h3 { font-size: 16px; margin-bottom: 6px; }
    .feature-card p { font-size: 14px; }

    /* ── 절차 ── */
    .steps-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .step-num { width: 56px; height: 56px; font-size: 18px; }

    /* ── 폼 ── */
    .form-grid { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px 20px; }
    .contact-inner { gap: 32px; }
    .contact-info h2 { font-size: 26px; }
    .contact-info p { font-size: 15px; margin-bottom: 24px; }

    /* ── 성공사례 ── */
    .case-card { min-width: calc(100vw - 48px); padding: 20px; }

    /* ── FAQ ── */
    .faq-question { padding: 18px 20px; }
    .faq-question h3 { font-size: 15px; }
    .faq-answer-inner { padding: 0 20px 20px 20px; }

    /* ── 비교 테이블 ── */
    .compare-table th, .compare-table td { padding: 12px 14px; font-size: 13px; }

    /* ── 변호사 소개 ── */
    .lawyer-inner { gap: 32px; }
    .lawyer-photo-wrap { max-width: 260px; }
    .lawyer-cert-badge { right: 0; bottom: -10px; padding: 12px 16px; }
    .lawyer-info h2 { font-size: 28px; }
    .lawyer-desc { font-size: 15px; }

    /* ── 갤러리 ── */
    .office-gallery { grid-template-columns: 1fr 1fr; }
    .office-gallery .main-img { grid-row: auto; height: 160px; }
    .office-gallery .sub-img { height: 160px; }

    /* ── CTA 배너 ── */
    .cta-banner { padding: 44px 0; }
    .cta-banner-inner { flex-direction: column; text-align: center; gap: 24px; }
    .cta-banner-text h2 { font-size: 22px; }
    .cta-banner-text p { font-size: 15px; }
    .cta-banner-btns { flex-direction: column; width: 100%; }
    .cta-banner-btns .btn { justify-content: center; width: 100%; }

    /* ── 푸터 ── */
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-legal p { word-break: keep-all; font-size: 12px; }
    .footer-policy { flex-wrap: wrap; gap: 8px; }
    .site-footer { padding: 48px 0 0; }

    /* ── 페이지 히어로 ── */
    .page-hero { padding: 100px 0 48px; }
    .page-hero h1 { font-size: 28px; }
    .page-hero p { font-size: 15px; }

    /* ── 하단 고정 바 ── */
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #fff;
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 20px rgba(30,58,95,0.12);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .mbb-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 12px 8px;
        font-size: 10px;
        font-weight: 700;
        color: var(--text-sub);
        transition: var(--transition);
    }
    .mbb-btn i { font-size: 20px; }
    .mbb-call { color: var(--accent2); }
    .mbb-call i { font-size: 22px; }
    .mbb-reserve { color: var(--secondary); }
    /* 진단 버튼 강조 */
    .mbb-diag {
        background: linear-gradient(135deg, var(--secondary), var(--primary));
        color: #fff;
        border-radius: 0;
        position: relative;
        margin: -1px 0;
    }
    .mbb-diag i { font-size: 22px; }

    /* 하단 바 공간 확보 */
    body { padding-bottom: 64px; }

    /* 버튼 공통 */
    .btn { white-space: normal; text-align: center; }
    .btn-lg { padding: 14px 24px; font-size: 15px; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .hero-title { font-size: 26px; }
    .hero-btns { flex-direction: column; align-items: stretch; gap: 8px; }
    .hero-btns .btn { justify-content: center; }
    .hero-stats { gap: 10px; }
    .hero-stat strong { font-size: 20px; }
    .section-title { font-size: 22px; }
    .contact-form-wrap { padding: 20px 14px; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .footer-legal p { font-size: 11px; word-break: keep-all; }
    .case-card { min-width: calc(100vw - 28px); padding: 18px; }
    .page-hero h1 { font-size: 24px; }
    /* 프로필 카드 소형 */
    .hero-mobile-photo { width: 70px; height: 88px; }
    .hero-mobile-name { font-size: 16px; }
    /* 하단 바 소형 */
    .mbb-btn { font-size: 9px; padding: 10px 4px; }
    .mbb-btn i { font-size: 18px; }
    body { padding-bottom: 58px; }
}
