/* 해인세무법인 홈페이지 공통 스타일 (모든 페이지가 함께 사용) */
:root {
    --navy: #0b2a5b;        /* 로고 남색 */
    --navy-dark: #071d40;
    --ink: #1b1f24;
    --muted: #6b7280;
    --line: #e7e9ee;
    --bg-soft: #f6f7f9;
    --accent: #3f6fb5;      /* 링크·포인트 */
    --sky: #9cc0ef;         /* 어두운 배경 위 포인트 */
    --dark-bg:
        radial-gradient(ellipse 60% 55% at 72% 55%, rgba(63,111,181,.28), transparent 70%),
        radial-gradient(ellipse 50% 35% at 20% 95%, rgba(255,255,255,.07), transparent 70%),
        radial-gradient(ellipse 70% 30% at 85% 100%, rgba(255,255,255,.06), transparent 70%),
        linear-gradient(180deg, #05080f 0%, #0b1424 55%, #0d1729 100%);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; color: var(--ink); line-height: 1.6; background: #fff; -webkit-font-smoothing: antialiased; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 헤더: 어두운 첫 화면 위에서는 투명, 스크롤하면 흰색 ---------- */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
header.scrolled, header.open, header.solid { background: rgba(255,255,255,0.97); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .3s; }
header.scrolled .nav, header.solid .nav { height: 70px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-family: 'Noto Serif KR', serif; font-weight: 900; font-size: 1.32rem; letter-spacing: .02em; }
.logo-text small { font-family: 'Times New Roman', serif; font-size: .58rem; letter-spacing: .08em; opacity: .75; margin-top: 3px; }
.menu { display: flex; gap: 34px; font-size: 1.02rem; font-weight: 500; }
.menu a { padding: 6px 0; opacity: .92; border-bottom: 2px solid transparent; transition: border-color .2s, opacity .2s; }
.menu a:hover, .menu a.active { opacity: 1; border-color: currentColor; }
.menu a.active { font-weight: 700; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; font-size: .95rem; font-weight: 600; padding: 11px 24px; border-radius: 999px; transition: background .2s; border: 0; cursor: pointer; font-family: inherit; }
.btn-pill:hover { background: var(--navy-dark); }
header .btn-pill { background: var(--sky); color: var(--navy-dark); }
header .btn-pill:hover { background: #fff; }
header.scrolled .btn-pill, header.solid .btn-pill { background: var(--navy); color: #fff; }
.hamburger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: inherit; }
.hamburger span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .2s, opacity .2s; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; color: var(--ink); }
.mobile-menu a { display: block; padding: 16px 24px; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-menu a.active { color: var(--navy); font-weight: 700; }
header.open .mobile-menu { display: block; }
header.open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.open .hamburger span:nth-child(2) { opacity: 0; }
header.open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 버튼 ---------- */
.btn-line { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px; border: 1px solid #cfd4dc; font-size: .92rem; font-weight: 600; transition: border-color .2s, color .2s; }
.btn-line:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- 하위 페이지 상단 (어두운 배경) ---------- */
.sub-hero { position: relative; overflow: hidden; color: #fff; background: var(--dark-bg); padding: 168px 0 72px; }
.sub-hero::before { content: ''; position: absolute; inset: -20%; background:
        radial-gradient(closest-side, rgba(255,255,255,.05), transparent) 15% 80% / 45% 40% no-repeat,
        radial-gradient(closest-side, rgba(255,255,255,.035), transparent) 85% 30% / 40% 45% no-repeat;
    filter: blur(20px); pointer-events: none; }
.sub-hero .container { position: relative; }
.crumb { font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.crumb a:hover { color: #fff; }
.crumb span { margin: 0 8px; }
.sub-kicker { font-size: 1.15rem; font-weight: 300; color: var(--sky); letter-spacing: -0.01em; }
.sub-hero h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; margin: 4px 0 14px; }
.sub-hero p { color: rgba(255,255,255,.72); font-size: 1.05rem; max-width: 640px; }

/* ---------- 섹션 공통 ---------- */
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: 16px; }
section.block { padding: 64px 0; }
section.block.soft { background: var(--bg-soft); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.block-head h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.more { font-size: .92rem; color: var(--muted); font-weight: 500; }
.more:hover { color: var(--navy); }
.more::after { content: ' →'; }

/* ---------- 상담 배너 ---------- */
.cta { background: var(--navy); color: #fff; border-radius: 20px; padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: 1.5rem; font-weight: 700; }
.cta p { opacity: .8; margin-top: 6px; }
.cta .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .btn-white { background: #fff; color: var(--navy); padding: 12px 24px; border-radius: 999px; font-weight: 700; }
.cta .btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; padding: 12px 24px; border-radius: 999px; font-weight: 600; }

/* ---------- 푸터 ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: .9rem; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot strong { color: var(--ink); }
.foot p { margin-bottom: 6px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a:hover { color: var(--navy); }

/* ---------- 카톡 버튼 ---------- */
.floating-kakao { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #FEE500; color: #3C1E1E; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: .85rem; line-height: 1.25; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .2s; }
.floating-kakao:hover { transform: scale(1.06); }
.floating-acc { position: fixed; right: 24px; bottom: 96px; z-index: 90; display: flex; align-items: center; gap: 8px; padding: 0 18px 0 14px; height: 48px; border-radius: 999px; background: #fff; color: var(--navy); border: 1px solid rgba(11,42,91,.15); font-weight: 700; font-size: .9rem; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .2s, background .2s, color .2s; }
.floating-acc:hover { transform: translateY(-2px); background: var(--navy); color: #fff; }
.floating-acc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 문의 폼 공통 ---------- */
.form-card { border: 1px solid var(--line); border-radius: 20px; padding: 40px; background: #fff; }
.form-card h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.form-card .hint { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: #374151; margin-bottom: 8px; }
.field label em { font-style: normal; color: #b42318; margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,42,91,.08); }
.field textarea { resize: vertical; min-height: 150px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.agree { display: flex; align-items: center; gap: 10px; margin: 8px 0 24px; font-size: .92rem; color: #4b5563; }
.agree input { width: 18px; height: 18px; accent-color: var(--navy); }
.submit { width: 100%; padding: 16px; border: 0; border-radius: 12px; background: var(--navy); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: background .2s; }
.submit:hover { background: var(--navy-dark); }
.sent { display: none; margin-bottom: 24px; padding: 16px 20px; border-radius: 12px; background: #ecfdf3; color: #05603a; font-weight: 600; }
.sent.show { display: block; }

/* ---------- 반응형 ---------- */
@media (max-width: 860px) {
    .menu, .nav-right .btn-pill { display: none; }
    .hamburger { display: block; }
    .nav, header.scrolled .nav, header.solid .nav { height: 64px; }
    .logo-mark { width: 32px; height: 32px; }
    .logo-text b { font-size: 1.12rem; }
    section.block { padding: 48px 0; }
    .cta { padding: 32px 26px; }
    .sub-hero { padding: 120px 0 48px; }
    .sub-hero h1 { font-size: 2rem; }
    .sub-kicker { font-size: 1rem; }
    .sub-hero p { font-size: .98rem; }
    .form-card { padding: 28px 20px; }
    .floating-kakao { right: 16px; bottom: 16px; }
    .floating-acc { right: 16px; bottom: 84px; width: 48px; padding: 0; justify-content: center; }
    .floating-acc span { display: none; }
}
@media (max-width: 1100px) and (min-width: 861px) {
    .menu { gap: 22px; font-size: .96rem; }
}
@media (max-width: 520px) {
    .container { padding: 0 16px; }
    .row-2 { grid-template-columns: 1fr; }
}
