/* 기본 설정 (Reset) */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; } 
body { 
    font-family: 'Pretendard', sans-serif; 
    line-height: 1.6; 
    color: #333; 
    background-color: #fff;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
/* 폰트 교체 시 깜빡임 방지 */
@font-face {
    font-family: 'Pretendard';
    font-display: swap;
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
img { max-width: 100%; height: auto; display: block; font-style: italic; background-repeat: no-repeat; background-size: cover; shape-margin: 0.75rem; }

/* 스크린 리더용 (SEO 및 접근성) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 레이아웃 공통 */
.section { padding: 80px 20px; }
.section-container { max-width: 1200px; margin: 0 auto; width: 100%; }
.bg-light { background-color: #f8f9fa; }
.text-center { text-align: center; }

/* 제목 공통 스타일 */
.section-header { margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; font-weight: 700; color: #1a2b4c; letter-spacing: -1px; }
.divider { width: 50px; height: 3px; background-color: #c9a756; margin: 15px auto 20px; } /* 예닮 포인트 컬러(골드) */
.section-header p { font-size: 1.1rem; color: #666; }

/* 헤더 (메뉴바) */
.header { position: sticky; top: 0; width: 100%; background: #fff; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; }
.logo img { height: 50px; width: auto; } /* 메뉴 높이에 맞춰 높이 고정 및 너비 자동 조절 */
.nav-menu ul { display: flex; gap: 35px; }
.nav-menu a { font-size: 1.05rem; font-weight: 600; color: #1a2b4c; transition: color 0.3s ease; }
.nav-menu a:hover { color: #c9a756; }
.mobile-menu-btn { display: none; font-size: 1.5rem; color: #1a2b4c; cursor: pointer; }

/* 메인 비주얼 (Hero) */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* 고급스러운 어두운 법봉 클로즈업 이미지 적용 (1234.webp 적용) - 가독성을 유지하며 더 밝게 조정 */
    background: linear-gradient(rgba(10, 20, 40, 0.4), rgba(10, 20, 40, 0.4)), 
                url('1234.webp') no-repeat center center/cover;
    color: #fff;
}
.hero-content h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 20px; letter-spacing: -1px; }
.hero-content p { font-size: 1.2rem; font-weight: 300; opacity: 0.9; margin-bottom: 40px; }
.hero-content strong { color: #c9a756; font-weight: 600; }
.btn-primary { 
    display: inline-block; padding: 15px 40px; background-color: #c9a756; color: #fff; 
    font-size: 1.1rem; font-weight: 600; border-radius: 4px; transition: background-color 0.3s; 
}
.btn-primary:hover { background-color: #b39247; }

/* 간단한 애니메이션 (페이드인) */
.fade-in-up { animation: fadeInUp 1s ease forwards; opacity: 0; transform: translateY(20px); }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* 사무실 소개 */
.about-content { display: flex; gap: 50px; align-items: center; }
.about-text { flex: 1.2; text-align: left; }
.about-text h3 { font-size: 1.8rem; margin-bottom: 20px; color: #1a2b4c; text-align: center; }
.about-text h3 strong { color: #c9a756; }
.about-text p { margin-bottom: 25px; font-size: 1.05rem; color: #555; line-height: 1.8; }

/* 경력사항 스타일 */
.career-wrap { display: flex; gap: 30px; margin-bottom: 35px; background: #fff; padding: 25px; border-radius: 8px; border-left: 4px solid #c9a756; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.career-group { flex: 1; }
.career-group h4 { font-size: 1.05rem; color: #1a2b4c; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; font-weight: 700; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.career-group h4 i { color: #c9a756; font-size: 0.9rem; }
.career-list { list-style: none; padding: 0; }
.career-list li { font-size: 0.95rem; color: #666; margin-bottom: 8px; position: relative; padding-left: 15px; line-height: 1.5; }
.career-list li::before { content: "•"; position: absolute; left: 0; color: #c9a756; font-weight: bold; }

.feature-list { margin-top: 25px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.feature-list li { margin-bottom: 10px; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; color: #333; font-weight: 500;}
.feature-list i { color: #c9a756; }
.about-image { flex: 0.8; align-self: center; display: flex; justify-content: center; }
.attorney-photo { 
    width: 100%; 
    max-width: 320px; /* 기존 400px에서 4/5인 320px로 추가 축소 */
    height: auto; 
    object-fit: contain; 
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    border: 1px solid #eee;
}
.placeholder-img { width: 100%; height: 100%; min-height: 500px; background-color: #e9ecef; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #adb5bd; }

/* 주요 업무 */
.practice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.practice-card { 
    background: #fff; padding: 40px 30px; text-align: center; border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; 
    border: 1px solid #f1f3f5;
}
.practice-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: #c9a756; }
.icon-box { width: 70px; height: 70px; margin: 0 auto 20px; background-color: #f4f6f9; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #1a2b4c; transition: all 0.3s; }
.practice-card:hover .icon-box { background-color: #1a2b4c; color: #c9a756; }
.practice-card h3 { font-size: 1.4rem; color: #1a2b4c; margin-bottom: 15px; font-weight: 600; }
.practice-card p { font-size: 1rem; color: #666; }

/* 오시는 길 */
.location-content { display: flex; gap: 40px; }
.map-container { flex: 1.5; }
.placeholder-map { width: 100%; height: 400px; background-color: #e9ecef; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #6c757d; font-weight: 600;}
.info-container { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.info-item { display: flex; gap: 20px; align-items: flex-start; }
.info-item i { font-size: 1.5rem; color: #c9a756; margin-top: 3px; }
.info-item h4 { font-size: 1.1rem; color: #1a2b4c; margin-bottom: 5px; font-weight: 600; }
.info-item p { color: #555; }

/* 푸터 */
.footer { background-color: #1a2b4c; color: #fff; padding: 60px 20px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.footer-logo img { width: 180px; }
.footer-info p { font-size: 0.95rem; color: #a0aec0; margin-bottom: 5px; }
.footer-info .copyright { margin-top: 15px; font-size: 0.85rem; color: #6c757d; }

/* 서브 페이지 전용 스타일 */
.sub-hero {
    background: linear-gradient(rgba(26, 43, 76, 0.9), rgba(26, 43, 76, 0.9));
    padding: 100px 20px;
    text-align: center;
    color: #fff;
}
.sub-hero h1 { font-size: 2.8rem; margin-bottom: 15px; letter-spacing: -1px; }
.sub-hero p { font-size: 1.2rem; opacity: 0.8; font-weight: 300; }

.practice-detail { display: flex; gap: 60px; }
.detail-content { flex: 2; }
.detail-content h3 { font-size: 1.8rem; color: #1a2b4c; margin-bottom: 25px; border-bottom: 2px solid #c9a756; display: inline-block; padding-bottom: 5px; }
.detail-content p { font-size: 1.1rem; line-height: 1.9; color: #555; margin-bottom: 30px; }

.point-box { background: #fdfaf2; padding: 40px; border-radius: 12px; border: 1px solid #f3e5c2; }
.point-box h4 { font-size: 1.3rem; color: #1a2b4c; margin-bottom: 20px; }
.point-box h4 i { color: #c9a756; margin-right: 10px; }
.point-box ul { padding: 0; }
.point-box li { margin-bottom: 20px; font-size: 1.05rem; position: relative; padding-left: 20px; list-style: none; }
.point-box li::before { content: "•"; position: absolute; left: 0; color: #c9a756; font-weight: bold; }
.point-box li strong { color: #1a2b4c; font-size: 1.1rem; }

.detail-sidebar { flex: 1; }
.firm-strength { background: #1a2b4c; color: #fff; padding: 35px; border-radius: 12px; position: sticky; top: 120px; }
.firm-strength h4 { font-size: 1.4rem; color: #c9a756; margin-bottom: 25px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.firm-strength ul { padding: 0; }
.firm-strength li { margin-bottom: 20px; display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; line-height: 1.5; opacity: 0.9; }
.firm-strength i { color: #c9a756; margin-top: 3px; }

/* AI 서비스 전용 */
.ai-hero { background: linear-gradient(rgba(10, 20, 40, 0.85), rgba(10, 20, 40, 0.85)), url('1234.webp') no-repeat center center/cover; }

.ai-container { display: flex; gap: 30px; background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.1); min-height: 600px; }
.ai-sidebar { flex: 1; background: #f8f9fa; padding: 30px; border-right: 1px solid #eee; }
.ai-sidebar h3 { font-size: 1.2rem; color: #1a2b4c; margin-bottom: 20px; font-weight: 700; }
.doc-select-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.doc-btn { 
    padding: 15px; border: 1px solid #ddd; background: #fff; border-radius: 8px; text-align: left; 
    font-size: 1rem; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 10px;
}
.doc-btn i { color: #c9a756; }
.doc-btn.active { background: #1a2b4c; color: #fff; border-color: #1a2b4c; }
.doc-btn.active i { color: #c9a756; }
.ai-info-box { background: #eef2f7; padding: 20px; border-radius: 8px; font-size: 0.9rem; line-height: 1.6; }

.chat-window { flex: 2.5; display: flex; flex-direction: column; background: #fff; }
.chat-messages { flex: 1; padding: 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; background: #fafafa; }
.msg { max-width: 80%; padding: 12px 18px; border-radius: 15px; font-size: 1rem; line-height: 1.5; }
.msg.bot { align-self: flex-start; background: #fff; color: #333; border: 1px solid #eee; border-bottom-left-radius: 2px; }
.msg.user { align-self: flex-end; background: #c9a756; color: #fff; border-bottom-right-radius: 2px; }

.chat-input-area { padding: 20px; border-top: 1px solid #eee; display: flex; gap: 10px; }
.chat-input-area input { flex: 1; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; outline: none; }
.chat-input-area input:focus { border-color: #1a2b4c; }
.send-btn { background: #1a2b4c; color: #fff; border: none; width: 50px; border-radius: 8px; cursor: pointer; font-size: 1.2rem; transition: background 0.3s; }
.send-btn:hover { background: #2c3e50; }

/* 반응형 모바일 추가 */
@media (max-width: 992px) {
    .ai-container { flex-direction: column; }
    .ai-sidebar { border-right: none; border-bottom: 1px solid #eee; }
    .chat-messages { height: 400px; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; } /* 모바일에서는 기본 메뉴 숨김 (추후 JS로 토글 구현 필요) */
    .mobile-menu-btn { display: block; }
    .hero-content h1 { font-size: 2.5rem; }
    .about-content, .location-content { flex-direction: column; }
    .career-wrap { flex-direction: column; gap: 20px; }
    .section { padding: 50px 20px; }
}