/* ===== 기본 색상 ===== */
:root {
  --navy: #13294b;
  --navy-dark: #0b1b33;
  --gold: #b8935a;
  --gold-dark: #9c7a45;
  --text: #222831;
  --muted: #5d6673;
  --line: #e3e6ea;
  --gray: #f5f6f8;
  --white: #ffffff;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 800px; }

/* ===== 버튼 ===== */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-dark); }
.btn--line { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--line:hover { background: var(--white); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); }
.btn--navy-line { border-color: var(--navy); color: var(--navy); }
.btn--navy-line:hover { background: var(--navy); color: var(--white); }
.btn--full { width: 100%; }
.btn--kakao { background: #fee500; color: #191919; }
.btn--kakao:hover { background: #f5dc00; }

/* ===== 헤더 ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--navy); color: var(--gold);
  font-family: "Noto Serif KR", serif; font-weight: 700; font-size: 14px;
  border-radius: 4px;
}
.logo__mark img { width: 100%; height: 100%; }
.logo__text { font-family: "Noto Serif KR", serif; font-weight: 700; font-size: 18px; color: var(--navy); }
.logo__text em { font-style: normal; color: var(--gold-dark); }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--gold-dark); }
.nav__call {
  padding: 8px 16px; border-radius: 4px;
  background: var(--navy); color: var(--white) !important; font-weight: 700;
}

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--navy); transition: transform .2s, opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 첫 화면 ===== */
.hero {
  background:
    linear-gradient(120deg, rgba(11,27,51,.96) 0%, rgba(19,41,75,.92) 60%, rgba(19,41,75,.85) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px);
  color: var(--white);
  padding: 120px 0 110px;
}
.hero__eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .08em; margin-bottom: 18px; }
.hero__title { font-family: "Noto Serif KR", serif; font-size: 44px; line-height: 1.35; margin-bottom: 24px; }
.hero__desc { font-size: 18px; color: rgba(255,255,255,.82); margin-bottom: 40px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== 강점 ===== */
.points { background: var(--navy-dark); color: var(--white); }
.points__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.point { padding: 32px 24px; border-left: 1px solid rgba(255,255,255,.1); }
.point:last-child { border-right: 1px solid rgba(255,255,255,.1); }
.point strong { display: block; color: var(--gold); font-size: 18px; margin-bottom: 6px; }
.point p { color: rgba(255,255,255,.75); font-size: 15px; }

/* ===== 공통 섹션 ===== */
.section { padding: 100px 0; }
.section--gray { background: var(--gray); }
.section__eyebrow { color: var(--gold-dark); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.section__title { font-family: "Noto Serif KR", serif; font-size: 34px; color: var(--navy); line-height: 1.3; margin-bottom: 16px; }
.section__desc { color: var(--muted); font-size: 17px; margin-bottom: 48px; }

/* ===== 주력 업무 ===== */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 2px solid var(--navy); }
.tab {
  padding: 22px 12px;
  font: inherit; font-family: "Noto Serif KR", serif; font-size: 21px; font-weight: 700;
  color: var(--muted); background: var(--gray);
  border: 1px solid var(--line); border-bottom: 0; margin-right: -1px;
  cursor: pointer; transition: background .2s, color .2s;
}
.tab:hover { color: var(--navy); }
.tab.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tab__num { display: block; font-size: 13px; color: var(--gold); letter-spacing: .1em; margin-bottom: 2px; }

.panel {
  display: grid; grid-template-columns: 5fr 7fr; gap: 56px;
  padding: 48px 40px;
  border: 1px solid var(--line); border-top: 0;
  animation: panel-in .3s ease-out;
}
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
.panel h3 { font-family: "Noto Serif KR", serif; font-size: 28px; color: var(--navy); margin-bottom: 12px; }
.panel h4 { font-size: 16px; color: var(--navy); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.panel__lead { color: var(--muted); margin-bottom: 32px; }
.panel__lead b, .tip b { color: var(--navy); }

.check { margin-bottom: 32px; }
.check li { position: relative; padding-left: 28px; margin-bottom: 10px; font-size: 15px; }
.check li::before {
  content: ""; position: absolute; left: 2px; top: 5px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--gold);
}
.check li::after {
  content: ""; position: absolute; left: 7px; top: 8px;
  width: 4px; height: 8px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.deadline { padding: 16px 20px; background: var(--navy); color: rgba(255,255,255,.85); font-size: 15px; }
.deadline span { display: block; color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .05em; margin-bottom: 2px; }
.deadline b { color: var(--white); }

.works { counter-reset: work; }
.works li { position: relative; padding: 0 0 22px 48px; counter-increment: work; }
.works li::before {
  content: counter(work, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: "Noto Serif KR", serif; font-weight: 700; font-size: 18px; color: var(--gold);
}
.works strong { display: block; font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.works p { color: var(--muted); font-size: 15px; }

.tip { margin-top: 8px; padding: 20px 24px; background: #fbf7f0; border-left: 3px solid var(--gold); }
.tip strong { display: block; color: var(--gold-dark); font-size: 15px; margin-bottom: 4px; }
.tip p { font-size: 15px; }

.services__note { margin-top: 16px; font-size: 13px; color: var(--muted); }

.other { margin-top: 40px; padding: 28px 32px; background: var(--gray); display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.other h3 { font-size: 17px; color: var(--navy); white-space: nowrap; }
.other ul { display: flex; flex-wrap: wrap; gap: 8px; }
.other li { padding: 6px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; font-size: 14px; }

/* ===== 세무사 소개 ===== */
.about { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; }
.about__photo img, .about__placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* 블로그 프로필 사진(원형)에 맞춘 둥근 액자 */
.about__photo img {
  aspect-ratio: 1;
  object-position: top;
  border-radius: 50%;
  border: 6px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold), 0 16px 40px rgba(19,41,75,.15);
}
.about__placeholder {
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--navy), var(--navy-dark));
  color: var(--gold); font-family: "Noto Serif KR", serif; font-size: 36px; letter-spacing: .2em;
}
.about__greeting { font-size: 17px; color: var(--text); padding: 20px 0 20px 20px; border-left: 3px solid var(--gold); margin: 8px 0 32px; }
.profile div { display: flex; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.profile dt { width: 56px; flex-shrink: 0; font-weight: 700; color: var(--navy); }

/* ===== 상담 절차 ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; counter-reset: step; }
.steps li { padding: 32px 24px; border: 1px solid var(--line); background: var(--white); }
.steps__no { display: block; color: var(--gold-dark); font-weight: 700; font-size: 13px; letter-spacing: .1em; margin-bottom: 10px; }
.steps strong { display: block; font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ===== FAQ ===== */
.faq { margin-top: 32px; border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); background: var(--white); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 56px 22px 24px; position: relative;
  font-weight: 700; font-size: 17px; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 24px; color: var(--muted); }

/* ===== 오시는 길 / 상담 신청 ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.info { margin: 24px 0 32px; }
.info div { display: flex; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info dt { width: 72px; flex-shrink: 0; font-weight: 700; color: var(--navy); }
.info a:hover { color: var(--gold-dark); }
.info__sub { font-size: 14px; color: var(--muted); }
.map-links { display: flex; gap: 10px; flex-wrap: wrap; }

.consult { padding: 40px; background: var(--gray); border-top: 4px solid var(--gold); }
.consult h3 { font-family: "Noto Serif KR", serif; font-size: 24px; color: var(--navy); }
.consult__note { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.consult__call { margin-top: 10px; }
.consult__list { margin-top: 24px; padding-top: 20px; border-top: 1px solid #cfd4da; }
.consult__list li { position: relative; padding-left: 14px; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.consult__list li::before { content: "·"; position: absolute; left: 2px; font-weight: 700; }

/* ===== 푸터 ===== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.65); padding: 48px 0; font-size: 14px; }
.footer__name { display: flex; align-items: center; gap: 8px; font-family: "Noto Serif KR", serif; color: var(--white); font-size: 17px; margin-bottom: 10px; }
.footer__name img { width: 32px; height: 32px; }
.footer__copy { margin-top: 16px; color: rgba(255,255,255,.4); }

.mobile-bar { display: none; }

/* ===== 태블릿 ===== */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 20px; border-top: 1px solid var(--line); }
  .nav__call { margin: 12px 20px 16px; text-align: center; border-top: 0 !important; }

  .steps { grid-template-columns: 1fr 1fr; }
  .panel { grid-template-columns: 1fr; gap: 32px; }
  .about { grid-template-columns: 260px 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
}

/* ===== 모바일 ===== */
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .pc-only { display: none; }
  .logo__mark { width: 34px; height: 34px; font-size: 12px; }
  .logo__text { font-size: 16px; }

  .hero { padding: 72px 0 64px; }
  .hero__title { font-size: 29px; }
  .hero__desc { font-size: 16px; }
  .hero__actions .btn { width: 100%; }

  .points__grid { grid-template-columns: 1fr; }
  .point { border-left: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
  .point:last-child { border-right: 0; border-bottom: 0; }

  .section { padding: 72px 0; }
  .section__title { font-size: 27px; }
  .section__desc { margin-bottom: 32px; }

  .steps { grid-template-columns: 1fr; }
  .tab { padding: 14px 4px; font-size: 16px; }
  .tab__num { font-size: 11px; }
  .panel { padding: 32px 20px; }
  .panel h3 { font-size: 24px; }
  .works li { padding-left: 38px; }
  .tip { padding: 18px 18px; }
  .other { padding: 24px 20px; gap: 16px; }

  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 240px; }

  .consult { padding: 28px 20px; }
  .info a { display: inline-block; padding: 8px 0; margin: -8px 0; }

  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    box-shadow: 0 -4px 16px rgba(0,0,0,.12);
    background: var(--navy);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { padding: 16px; text-align: center; font-weight: 700; color: var(--white); background: var(--navy); }
  .mobile-bar a:last-child { background: var(--gold); }
}

/* ===== 앱 설치 안내 ===== */
.install {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end;
  background: rgba(11,27,51,.45);
  animation: install-fade .25s ease-out;
}
.install__sheet {
  width: 100%;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  background: var(--white);
  border-radius: 16px 16px 0 0;
  animation: install-up .3s ease-out;
}
.install__head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.install__icon { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 4px 12px rgba(19,41,75,.25); flex-shrink: 0; }
.install__head strong { display: block; font-size: 17px; color: var(--navy); line-height: 1.4; }
.install__head p { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.install__ios { list-style: decimal; padding: 14px 16px 14px 34px; margin-bottom: 20px; background: var(--gray); border-radius: 8px; font-size: 15px; }
.install__ios li + li { margin-top: 4px; }
.install__share {
  display: inline-block; width: 16px; height: 18px; vertical-align: -3px;
  border: 2px solid #1a73e8; border-top: 0; border-radius: 0 0 3px 3px; position: relative;
}
.install__share::before { content: ""; position: absolute; left: 5px; top: -8px; width: 2px; height: 14px; background: #1a73e8; }
.install__share::after { content: ""; position: absolute; left: 2px; top: -8px; width: 6px; height: 6px; border-left: 2px solid #1a73e8; border-top: 2px solid #1a73e8; transform: rotate(45deg); }
.install__actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.install__actions .btn { padding: 14px 0; }

@keyframes install-fade { from { opacity: 0; } }
@keyframes install-up { from { transform: translateY(100%); } }

/* ===== 작은 휴대폰 (아이폰 SE 등) ===== */
@media (max-width: 380px) {
  .wide-only { display: none; }
  .hero__title { font-size: 26px; }
  .logo__text { font-size: 15px; }
}
