/* ===== 세무회계 송현 — 공통 스타일 ===== */
:root {
  --navy: #1F2A44;
  --navy-2: #26324f;
  --navy-3: #2f3d5f;
  --blue: #3E5C9A;
  --blue-light: #4A6DB5;
  --blue-soft: #eaf0fa;
  --ink: #1c2331;
  --text: #33404f;
  --muted: #6b7688;
  --line: #e4e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 42, 68, 0.08);
  --shadow-sm: 0 4px 14px rgba(31, 42, 68, 0.06);
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { color: var(--ink); line-height: 1.3; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ===== 버튼 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(62, 92, 154, 0.28); }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ===== 헤더 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 0.97rem;
  color: var(--text); transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--navy); }
.nav-links a.active { color: var(--blue); }
.nav-cta { margin-left: 8px; padding: 10px 20px; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; padding: 8px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--navy); border-radius: 2px;
  margin: 5px 0; transition: .3s;
}

/* ===== 히어로 ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(74,109,181,0.35), transparent 60%),
    linear-gradient(160deg, #1b2540 0%, #1F2A44 55%, #26324f 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; pointer-events: none;
}
.hero-inner { position: relative; padding: 96px 0 104px; max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.15rem); margin: 0 0 20px; font-weight: 800; }
.hero h1 .accent { color: #8fb0ec; }
.hero p { color: #c8d2e4; font-size: 1.12rem; margin: 0 0 34px; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tags { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags span {
  font-size: 0.86rem; font-weight: 600; color: #d6def0;
  padding: 7px 15px; border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px; background: rgba(255,255,255,0.05);
}

/* ===== 섹션 공통 ===== */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ===== 서비스 카드 ===== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3ddf0; }
.card .ic {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 18px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin: 0 0 10px; }
.card p { margin: 0; color: var(--text); font-size: 0.98rem; }
.card ul { margin: 14px 0 0; padding-left: 0; list-style: none; }
.card ul li {
  position: relative; padding-left: 22px; font-size: 0.94rem; color: var(--text); margin: 7px 0;
}
.card ul li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--blue-light);
}

/* ===== 특징/신뢰 밴드 ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-size: 2.1rem; color: var(--navy); font-weight: 800; }
.stat span { color: var(--muted); font-size: 0.95rem; }

/* ===== 대표 소개 ===== */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.about-photo {
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid #fff; background: var(--bg-soft);
}
.about-photo img { width: 100%; }
.about-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 6px; }
.about-body .role { color: var(--blue); font-weight: 700; margin: 0 0 20px; }
.about-body p { margin: 0 0 16px; }
.about-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.about-list li { position: relative; padding-left: 26px; }
.about-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue);
  font-weight: 800;
}

/* ===== CTA 밴드 ===== */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff; border-radius: 20px; padding: 54px 48px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 12px; }
.cta-band p { color: #d6def0; margin: 0 0 26px; }

/* ===== 상담 폼 / 오시는 길 ===== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; color: var(--ink); }
.field label .req { color: #d64545; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 0.98rem; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(62,92,154,0.12);
}
.field textarea { min-height: 128px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-agree { display: flex; gap: 9px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); margin: 6px 0 20px; }
.form-agree input { width: auto; margin-top: 4px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 16px; text-align: center; }

.info-card {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px;
  margin-bottom: 22px;
}
.info-card h3 { color: #fff; margin: 0 0 20px; font-size: 1.2rem; }
.info-row { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.info-row:last-child { margin-bottom: 0; }
.info-row .ic {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,0.1); color: #9fb8e8;
}
.info-row .ic svg { width: 20px; height: 20px; }
.info-row .lbl { font-size: 0.78rem; color: #9aa7c0; margin-bottom: 2px; }
.info-row .val { color: #fff; font-weight: 600; }
.info-row .val a:hover { color: #9fb8e8; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ===== 페이지 헤더(서브페이지 상단) ===== */
.page-hero {
  background: linear-gradient(160deg, #1b2540 0%, #1F2A44 100%);
  color: #fff; padding: 70px 0 60px; text-align: center;
}
.page-hero .eyebrow { color: #8fb0ec; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0 0 12px; }
.page-hero p { color: #c8d2e4; max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* ===== 푸터 ===== */
.site-footer { background: var(--navy); color: #c3ccdd; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 40px; margin-bottom: 18px; }
.footer-brand p { color: #9aa7c0; font-size: 0.92rem; margin: 0; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.98rem; margin: 0 0 16px; }
.footer-col a, .footer-col p { display: block; color: #b3bdd0; font-size: 0.92rem; margin: 0 0 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.84rem; color: #8592ab;
}
.footer-bottom .disclaimer { max-width: 720px; line-height: 1.6; }

/* ===== 카카오톡 상담 ===== */
.btn-kakao {
  background: #FEE500; color: #191600; border-color: #FEE500;
}
.btn-kakao:hover { background: #ffd900; border-color: #ffd900; color: #191600; }
.btn-kakao svg { width: 20px; height: 20px; }

.kakao-fab {
  position: fixed; left: 22px; bottom: 22px; z-index: 200;
  display: inline-flex; align-items: center; gap: 8px;
  background: #FEE500; color: #191600;
  padding: 13px 20px 13px 17px; border-radius: 999px; font-weight: 800; font-size: 0.98rem;
  box-shadow: 0 10px 26px rgba(31,42,68,0.28);
  transition: transform .18s ease, box-shadow .2s ease;
}
.kakao-fab:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(31,42,68,0.34); color: #191600; }
.kakao-fab svg { width: 24px; height: 24px; }
@media (max-width: 720px) {
  .kakao-fab { left: 16px; bottom: 16px; padding: 12px 16px 12px 14px; font-size: 0.92rem; }
}

/* ===== 반응형 ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-photo { max-width: 300px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; gap: 2px;
    transform: translateY(-140%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 12px; }
  .nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 60px 0; }
  .hero-inner { padding: 70px 0 76px; }
  .cta-band { padding: 40px 26px; }
  .form-card { padding: 26px 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
