/* =========================================================
   김현석 세무회계사무소 랜딩페이지 스타일
   색을 바꾸려면 :root 의 값만 고치면 됩니다.
   ========================================================= */

:root {
  --green: #0aa85a;        /* 포인트 초록 (원래 네이버 초록보다 살짝 차분하게) */
  --green-dark: #078a49;   /* 버튼에 마우스 올렸을 때 */
  --green-soft: #e8f6ee;   /* 아주 연한 초록 배경 */
  --green-on-dark: #3fd48a;/* 어두운 배경 위 초록 글자 */
  --night: #0f1f17;        /* 어두운 구역 배경 (초록 기운의 검정) */
  --night-2: #172b21;
  --ink: #15211b;          /* 본문 글자 */
  --gray: #56645c;         /* 보조 글자 */
  --line: #e1e8e3;
  --bg: #ffffff;
  --bg-2: #f4f7f5;
  --radius: 16px;          /* 카드 모서리 */
  --radius-sm: 10px;       /* 버튼·입력칸 모서리 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- 공통 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: var(--radius-sm);
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-white { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-white:hover { border-color: var(--green); color: var(--green-dark); }

/* ---------- 섹션 공통 ---------- */
section { padding: 100px 0; }
.sec-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.3; letter-spacing: -0.025em; }
.sec-desc { margin-top: 14px; color: var(--gray); font-size: 1.05rem; max-width: 60ch; }

/* =========================================================
   1. 상단 메뉴
   ========================================================= */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 31, 23, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.nav { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.logo img, .foot-name img { border-radius: 50%; background: #fff; padding: 2px; flex-shrink: 0; }
.foot-name { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.nav-links { display: flex; gap: 28px; list-style: none; margin-left: auto; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,.72); font-weight: 600; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-call { padding: 10px 18px; font-size: .92rem; border-radius: 999px; }

/* =========================================================
   2. 첫 화면 (어두운 배경 + 오른쪽 끝까지 이어지는 사진)
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, #1d3a2b 0%, var(--night) 55%);
  color: #fff;
  padding: 0;
}
.hero-inner { position: relative; z-index: 2; min-height: 640px; display: flex; align-items: center; padding: 72px 24px 88px; }
.hero-text { max-width: 640px; }
.hero-badge {
  display: inline-block; font-size: .9rem; font-weight: 600;
  color: var(--green-on-dark);
  padding: 6px 14px; border: 1px solid rgba(63,212,138,.35); border-radius: 999px;
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800; line-height: 1.25; letter-spacing: -0.03em;
}
.hero-sub { margin-top: 20px; font-size: 1.1rem; color: #c3d0c8; max-width: 30em; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: 1;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 15%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 180px);
  mask-image: linear-gradient(to right, transparent 0, #000 180px);
}
.hero-name {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  background: rgba(255,255,255,.96); color: var(--gray);
  padding: 9px 20px; border-radius: 999px; font-size: .92rem; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
}
.hero-name strong { color: var(--ink); font-weight: 800; margin-right: 4px; }

/* =========================================================
   4. 일하는 원칙 (사장님들의 고민과 저희가 일하는 방식)
   ========================================================= */
.compare-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.compare { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row > div { padding: 20px 24px; }
.compare-row + .compare-row > div { border-top: 1px solid var(--line); }
.compare-head > div { font-weight: 700; font-size: .92rem; padding-top: 16px; padding-bottom: 16px; }
.compare .compare-head .them { color: var(--gray); background: var(--bg-2); }
.compare .compare-head .us { color: #fff; background: var(--green); }
.compare .them { color: var(--gray); background: var(--bg-2); }
.compare .us { background: var(--green-soft); font-weight: 600; color: var(--ink); }

/* =========================================================
   4. 세무사 소개
   ========================================================= */
.about { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: start; }
.about-photo { border-radius: var(--radius); overflow: hidden; background: #4b4c4f; aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; }
.about-text .about-quote {
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.4; letter-spacing: -0.02em;
}
.about-text p { margin-top: 16px; font-size: 1.04rem; color: #2f3d35; max-width: 62ch; }
.about-text .hello { margin-top: 24px; font-weight: 700; color: var(--ink); }
.career { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.career li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: .9rem; color: var(--gray);
}
.career li.now { color: var(--ink); font-weight: 600; border-color: #bfe3cd; }
.career li.now::before { content: "現 "; color: var(--green-dark); font-weight: 800; }
.career li.past::before { content: "前 "; color: var(--gray); font-weight: 700; }

/* =========================================================
   5. 업무 영역 (같은 바탕의 카드 4장)
   ========================================================= */
.svc-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.svc {
  display: flex; flex-direction: column;
  padding: 40px 40px 32px;
  background: var(--bg-2);
  border-radius: 20px;
  text-decoration: none; color: var(--ink);
  transition: background-color .25s, transform .25s;
}
.svc:hover { background: #ecf2ee; transform: translateY(-3px); }
.svc-name { font-size: .95rem; font-weight: 700; color: var(--green-dark); }
.svc h3 { margin-top: 14px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; line-height: 1.35; letter-spacing: -0.03em; }
.svc > p { margin-top: 16px; color: var(--gray); font-size: 1rem; max-width: 46ch; }
.svc dl { margin-top: auto; padding-top: 32px; display: grid; gap: 8px; }
.svc dl > div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; font-size: .93rem; padding-top: 12px; border-top: 1px solid #dbe4de; }
.svc dl > div + div { border-top: 0; padding-top: 0; }
.svc dt { color: var(--gray); }
.svc dd { font-weight: 600; }
.services-more { margin-top: 24px; color: var(--gray); }
.services-more a { color: var(--green-dark); font-weight: 700; }

/* =========================================================
   6. 고객 후기 (옆으로 넘기기)
   ========================================================= */
.reviews { background: var(--night); color: #fff; overflow: hidden; }
.reviews .sec-desc { color: #a9b9b0; }
.review-track {
  margin-top: 44px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 340px; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-color: rgba(255,255,255,.25) transparent;
}
.review {
  scroll-snap-align: start;
  background: var(--night-2); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 30px 28px 24px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  text-decoration: none; transition: border-color .2s, transform .2s;
}
.review:hover { border-color: rgba(63,212,138,.55); transform: translateY(-3px); }
.review blockquote { font-size: 1.05rem; line-height: 1.7; }
.review blockquote::before { content: "“"; display: block; font-size: 2.6rem; line-height: 1; color: var(--green-on-dark); font-weight: 800; height: 26px; }
.review .who { font-size: .88rem; color: #8fa397; }
.review .who b { color: #dce6e0; font-weight: 600; margin-right: 6px; }

/* =========================================================
   7. 수수료
   ========================================================= */
.plans { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  display: flex; flex-direction: column; background: #fff;
}
.plan h3 { font-size: 1.2rem; font-weight: 800; }
.plan .for { color: var(--gray); font-size: .92rem; margin-top: 6px; }
.plan .amount { margin: 22px 0 20px; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .amount small { font-size: .9rem; font-weight: 600; color: var(--gray); letter-spacing: 0; }
.plan ul { list-style: none; border-top: 1px solid var(--line); }
.plan li { padding: 10px 0; font-size: .95rem; border-bottom: 1px solid var(--line); }
.plan .cta { margin-top: auto; padding-top: 26px; }
.plan .cta .btn { width: 100%; }
.plan.featured { background: var(--night); color: #fff; border: 0; box-shadow: 0 30px 60px -30px rgba(15,31,23,.6); }
.plan.featured .for, .plan.featured .amount small { color: #a9b9b0; }
.plan.featured ul, .plan.featured li { border-color: rgba(255,255,255,.12); }


.fee-list { margin-top: 40px; }
.fee-list > h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; }
.fee { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.fee + .fee { margin-top: 8px; }
.fee summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 18px 22px; font-weight: 700;
}
.fee summary::-webkit-details-marker { display: none; }
.fee summary .from { margin-left: auto; color: var(--green-dark); font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.fee summary::after { content: "+"; font-size: 1.3rem; color: var(--gray); width: 18px; text-align: center; }
.fee[open] summary::after { content: "−"; }
.fee[open] { border-color: #bfe3cd; }
.fee-body { padding: 0 22px 24px; }
.fee-body h4 { font-size: .95rem; margin: 18px 0 8px; }
.fee-body h4:first-child { margin-top: 4px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { background: var(--bg-2); font-weight: 700; }
td:first-child, th:first-child { text-align: left; }
.fee-note { margin-top: 10px; font-size: .85rem; color: var(--gray); line-height: 1.8; }

/* =========================================================
   8. 분기별 세무 일정
   ========================================================= */
.calendar { background: var(--bg); }
.monthly {
  margin-top: 44px; padding: 24px 28px;
  background: var(--night); color: #fff; border-radius: var(--radius);
  display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: start;
}
.monthly h3 { font-size: 1.05rem; font-weight: 800; padding-top: 2px; }
.monthly ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.monthly li { font-size: .96rem; color: #dce6e0; }
.monthly time { display: inline-block; min-width: 44px; margin-right: 10px; font-weight: 800; color: var(--green-on-dark); }
.monthly small { color: #8fa397; }
.quarters { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quarter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.quarter h3 { font-size: 1.25rem; font-weight: 800; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 2px solid var(--ink); }
.quarter h3 small { font-size: .85rem; font-weight: 600; color: var(--gray); margin-left: 6px; }
.quarter ul { list-style: none; }
.quarter li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; line-height: 1.5; }
.quarter li:last-child { border-bottom: 0; padding-bottom: 0; }
.quarter time { display: block; font-weight: 800; font-size: .88rem; color: var(--ink); margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.quarter small { color: var(--gray); }
.quarter li.ins time::after, .ins-key {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-dark); font-size: .75rem; font-weight: 700; vertical-align: 1px;
}
.quarter li.ins time::after { content: "4대보험"; }
.ins-key { margin: 0 4px 0 0; }
.calendar .fine { margin-top: 16px; font-size: .88rem; color: var(--gray); }

/* =========================================================
   9. 자주 묻는 질문
   ========================================================= */
.faq-grid { display: grid; grid-template-columns: 320px 1fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 40px 22px 0; font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-size: 1.5rem; color: var(--green); font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 40px 24px 0; color: var(--gray); }
.faq details p strong { color: var(--ink); }

/* =========================================================
   10. 상담 신청 (어두운 구역)
   ========================================================= */
.contact { background: radial-gradient(100% 120% at 100% 0%, #1d3a2b 0%, var(--night) 60%); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact .sec-desc { color: #a9b9b0; }
.big-call {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 32px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em;
  color: var(--green-on-dark); text-decoration: none; font-variant-numeric: tabular-nums;
}
.big-call svg { width: .9em; height: .9em; }
.channels { margin-top: 28px; list-style: none; display: grid; gap: 10px; }
.channels a {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 14px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm);
  transition: border-color .2s, background-color .2s;
}
.channels a:hover { border-color: rgba(63,212,138,.55); background: rgba(255,255,255,.03); }
.channels .k { color: #8fa397; font-size: .9rem; width: 72px; }
.channels .v { font-weight: 600; }

form {
  background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 32px;
  display: grid; gap: 16px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
form h3 { font-size: 1.2rem; font-weight: 800; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
input[type="text"], input[type="tel"], textarea {
  width: 100%; padding: 13px 14px; font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2);
}
input::placeholder, textarea::placeholder { color: #7c8a82; }
input:focus, textarea:focus { outline: none; border-color: var(--green); background: #fff; }
textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--gray); }
.consent input { width: 17px; height: 17px; margin-top: 4px; accent-color: var(--green); flex-shrink: 0; }
form .btn { width: 100%; }

/* =========================================================
   11. 오시는 길
   ========================================================= */
.location-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; }
.location address { font-style: normal; font-size: 1.3rem; font-weight: 800; margin-top: 18px; }
.location .how { margin-top: 12px; color: var(--gray); }
.location .how strong { color: var(--ink); }
.map-label { margin-top: 28px; font-size: .9rem; font-weight: 700; color: var(--gray); }
.map-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.map-links .btn { padding: 12px 18px; font-size: .95rem; }
.map-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.map-card img { width: 100%; height: auto; }

/* ---------- 맨 아래 ---------- */
footer { background: var(--night); color: #8fa397; padding: 36px 0 44px; font-size: .9rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot strong { color: #fff; }
.foot a { color: #dce6e0; }

/* 휴대폰에서만 보이는 하단 고정 버튼 */
.mobile-bar { display: none; }

/* =========================================================
   태블릿 (1023px 이하)
   ========================================================= */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-call { margin-left: auto; }
  .hero-photo { width: 44%; }
  .compare-wrap, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 300px 1fr; gap: 48px; }
  .quarters { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   휴대폰 (767px 이하)
   ========================================================= */
@media (max-width: 767px) {
  section { padding: 72px 0; }
  .container { padding: 0 18px; }
  .nav { height: 60px; }
  .logo { font-size: .98rem; }
  .nav-call { padding: 8px 14px; font-size: .85rem; }

  .hero-inner { min-height: 0; padding: 0 18px 56px; display: block; }
  .hero-photo { position: relative; width: auto; height: 380px; margin: 0 0 4px; }
  .hero-photo img {
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    object-position: center 12%;
  }
  .hero-name { bottom: 40px; }
  .hero h1 { margin-top: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }


  .compare-row > div { padding: 16px 14px; font-size: .92rem; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { display: none; }

  .svc-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc { padding: 30px 24px 24px; }


  .review-track { grid-auto-columns: 82%; }

  .plans { grid-template-columns: 1fr; gap: 24px; }

  .quarters { grid-template-columns: 1fr; }
  .monthly { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
  .monthly ul { grid-template-columns: 1fr; }

  form { padding: 24px 20px; }

  body { padding-bottom: 76px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(15,31,23,.96); backdrop-filter: blur(8px);
  }
  .mobile-bar .btn { padding: 13px 10px; }
}

.plan .amount small { margin-left: 3px; }

/* 이번 분기만 보여 줄 때 (스크립트가 켜 줌) */
.quarters.only-now { grid-template-columns: 1fr; }
.quarters.only-now .quarter { display: none; }
.quarters.only-now .quarter.is-now { display: block; padding: 30px 32px; }
.quarters.only-now .quarter h3 { font-size: 1.5rem; }
.quarters.only-now .quarter ul {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px;
}
.quarters.only-now .quarter li:last-child { border-bottom: 1px solid var(--line); padding-bottom: 11px; }
@media (max-width: 767px) {
  .quarters.only-now .quarter.is-now { padding: 24px 20px; }
}

.svc dd .dd-sub { display: block; font-weight: 500; font-size: .86rem; color: var(--gray); margin-top: 2px; }

.logo { white-space: nowrap; }
@media (max-width: 767px) {
  .logo { font-size: .9rem; gap: 7px; }
  .logo img { width: 26px; height: 26px; }
  .nav { gap: 10px; }
}

/* 스팸 방지용 숨은 칸: 사람에게는 보이지 않음 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 소개 바로 아래 이어지는 '일하는 원칙' 구역 */
.principles { background: var(--bg-2); padding-top: 0; }
#faq { background: var(--bg-2); }

/* 맨 아래: 개인정보처리방침, 블로그 링크 */
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.consent a { color: var(--green-dark); font-weight: 600; }

/* 휴대폰: 개인정보 동의 체크칸을 손가락으로 누르기 쉽게 */
@media (max-width: 767px) {
  .consent input { width: 22px; height: 22px; margin-top: 1px; }
}
