/* 플로우디컨설팅 공통 스타일 — 색은 theme.css에서 관리합니다 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Gowun Dodum', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(19, 34, 43, .05) 1px, transparent 1px),
    radial-gradient(rgba(19, 34, 43, .03) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  word-break: keep-all;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 10px; }

/* 레이아웃 */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(56px, 8vw, 96px); position: relative; }
.section.tight { padding-block: clamp(32px, 5vw, 56px); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* 배경 빛 번짐 */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.glow.g1 { left: -160px; top: 40px; width: 520px; height: 520px; background: var(--glow-1); opacity: .28; }
.glow.g2 { right: -140px; top: 240px; width: 460px; height: 460px; background: var(--glow-2); opacity: .2; }
.glow-host { position: relative; overflow: hidden; }
.glow-host > .wrap, .glow-host > section { position: relative; z-index: 1; }

/* 글자 */
.eyebrow { font-size: 14px; letter-spacing: .16em; color: var(--brand-ink); text-transform: uppercase; }
.on-dark .eyebrow { color: var(--brand-on-dark); }
.h1 { font-size: clamp(36px, 6vw, 70px); line-height: 1.2; letter-spacing: -0.03em; }
.h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.35; margin-top: 10px; }
.h3 { font-size: 22px; line-height: 1.45; }
.lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); max-width: 40em; }
.on-dark .lead { color: rgba(255, 255, 255, .78); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.accent { color: var(--brand); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(28px, 4vw, 40px); }

/* 헤더 */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg);
}
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-top: 12px; }
.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px 8px 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(19, 34, 43, .06);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 18px; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 2px 6px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 999px; font-size: 15px; }
.nav a:hover { background: rgba(19, 34, 43, .06); }
.nav a[aria-current="page"] { color: var(--brand-ink); background: rgba(255, 255, 255, .8); }
.nav .nav-cta { background: var(--navy); color: var(--white); padding: 10px 20px; margin-left: 6px; }
.nav .nav-cta:hover { background: var(--brand-ink); color: var(--white); }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--navy); color: var(--white);
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav-bar { flex-wrap: wrap; border-radius: 26px; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 6px 0 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; font-size: 16px; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }
}

/* 버튼 */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 28px; border-radius: 999px; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--brand-ink); color: var(--white); }
.btn-ghost { background: var(--glass-strong); color: var(--ink); border-color: rgba(19, 34, 43, .15); }
.btn-ghost:hover { color: var(--ink); }
.btn-kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn-kakao:hover { color: var(--kakao-ink); }
.btn-light { background: rgba(255, 255, 255, .12); color: var(--white); border-color: rgba(255, 255, 255, .3); }
.btn-light:hover { color: var(--white); background: rgba(255, 255, 255, .2); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* 카드 */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(19, 34, 43, .07);
}
.card { background: var(--white); border-radius: 24px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 10px 30px rgba(19, 34, 43, .06); }
.card-dark { background: var(--navy); color: var(--white); border-radius: 24px; padding: clamp(22px, 3vw, 28px); }
.card-dark .muted { color: rgba(255, 255, 255, .78); }
.pad { padding: clamp(22px, 3vw, 32px); }
.pill {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 14px;
  background: var(--glass-strong); border: 1px solid var(--glass-line); color: var(--brand-ink);
}
.tag { font-size: 13px; color: var(--brand-ink); }
.card-dark .tag { color: var(--brand-on-dark); }

/* 메인 히어로 */
.hero { padding-block: clamp(56px, 9vw, 104px) clamp(40px, 6vw, 64px); }
.hero-row { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero-copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-stats { flex: 1 1 300px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 22px; }
.stat:nth-child(2n) { margin-top: 28px; }
.stat .num { font-size: clamp(34px, 4vw, 44px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: 18px; margin-left: 2px; }
.stat .label { font-size: 14px; color: var(--muted); margin-top: 6px; }
.stat.dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.stat.dark .num { color: var(--brand-on-dark); }
.stat.dark .label { color: rgba(255, 255, 255, .8); }

/* 서브 페이지 머리 */
.page-hero { padding-block: clamp(48px, 8vw, 88px) clamp(24px, 4vw, 40px); }
.page-hero .h1 { font-size: clamp(32px, 5vw, 56px); }
.page-hero .lead { margin-top: 18px; }

/* 사진 자리 (images 폴더에 사진을 넣으면 자동으로 사진이 보입니다) */
.photo {
  position: relative; overflow: hidden; border-radius: 28px; background: #DDE3DC;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #4A5A63; font-size: 14px; line-height: 1.6; padding: 16px;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo.h-280 { height: 280px; }
.photo.portrait { aspect-ratio: 4 / 5; width: 100%; }
.photo.book { width: 96px; height: 136px; border-radius: 10px; font-size: 12px; padding: 8px; flex: none; }
.on-dark .photo { background: var(--navy-2); color: rgba(255, 255, 255, .55); }
.on-dark .photo.book { background: #2F4757; }

/* 이유 목록 */
.reasons { display: flex; flex-direction: column; }
.reason { display: flex; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.reason:last-child { border-bottom: 1px solid var(--line); }
.reason .no { font-size: 22px; color: var(--brand); min-width: 40px; font-variant-numeric: tabular-nums; }
.reason h3 { font-size: 22px; margin-bottom: 8px; }
.reason p { color: var(--muted); }
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split > .side { flex: 1 1 300px; }
.split > .main { flex: 999 1 520px; min-width: 0; }

/* 서비스 카드 */
.svc { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: transform .2s ease; }
.svc:hover { transform: translateY(-3px); color: inherit; }
.card-dark.svc, .card-dark.svc:hover { color: var(--white); }
.svc-white, .svc-white:hover { color: var(--ink); }
@media (max-width: 560px) { .photo.h-280 { height: 200px; } }
.svc h3 { font-size: 24px; }
.svc .more { margin-top: auto; padding-top: 10px; font-size: 14px; }
.card-dark.svc .more { color: var(--brand-on-dark); }
.svc-white { background: var(--white); border-radius: 22px; padding: 26px; border: 1px solid rgba(19, 34, 43, .08); }
.svc-white .more { color: var(--brand-ink); }
.svc-lines { font-size: 14px; line-height: 1.85; }
.card-dark .svc-lines { color: rgba(255, 255, 255, .82); }
.svc-white .svc-lines { color: var(--muted); }

/* 연도 타임라인 */
.years { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: 22px; }
.year { border-radius: 18px; background: var(--bg); padding: 20px; }
.year b { display: block; font-weight: 400; font-size: 22px; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.year p { margin-top: 8px; font-size: 15px; line-height: 1.6; }

/* 고객사 */
.clients { font-size: 16px; line-height: 2.1; }
.clients span { white-space: nowrap; }
.clients span:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--subtle); }

/* 대표 띠 */
.band-dark { background: var(--navy); color: var(--white); }
.band-dark a { color: var(--brand-on-dark); }
.quote { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.6; }
.ceo-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.ceo-row > .main { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ceo-row > .side { flex: 1 1 260px; display: flex; gap: 14px; align-items: flex-end; }
.books { display: flex; flex-direction: column; gap: 10px; }

/* 표 */
.table-box { overflow-x: auto; border-radius: 20px; background: var(--white); box-shadow: 0 10px 30px rgba(19, 34, 43, .06); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 400; color: var(--subtle); font-size: 14px; background: rgba(19, 34, 43, .03); }
tr:last-child td { border-bottom: 0; }
td.year-col { color: var(--brand-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 정의 목록 */
.dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0; }
.dl dt, .dl dd { margin: 0; padding: 16px 0; border-top: 1px solid var(--line); }
.dl dt { color: var(--brand-ink); }
.dl dd { color: var(--ink); }
@media (max-width: 560px) {
  .dl { grid-template-columns: 1fr; }
  .dl dd { border-top: 0; padding-top: 0; }
}

/* 단계 */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; }
.step { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step .name { font-size: 28px; color: var(--brand); }
.step .out { font-size: 14px; color: var(--ink); margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }

/* 서비스 상세 */
.svc-detail { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.list-dot li { position: relative; padding-left: 18px; }
.list-dot li + li { margin-top: 6px; }
.list-dot li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); }
.area { scroll-margin-top: 110px; }
.area + .area { border-top: 1px solid var(--line); }
.area-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 22px; }
.chip { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--navy); color: var(--white); }
.chip.light { background: var(--white); color: var(--brand-ink); border: 1px solid var(--line); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { text-decoration: none; padding: 10px 16px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-line); color: var(--ink); font-size: 15px; }
.jump a:hover { color: var(--brand-ink); }

/* 문의 */
.contact-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.contact-cta .btns { justify-content: center; margin-top: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 10px; }
.contact-card .value { font-size: 20px; word-break: break-all; }

/* 하단 */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: 14px; color: var(--subtle); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-row .name { color: var(--ink); font-size: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--subtle); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.signature { color: var(--signature-red); }

/* 카카오톡 떠 있는 버튼 */
.kakao-float {
  position: fixed; z-index: 40;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 20px 12px 16px;
  border-radius: 999px; background: var(--kakao); color: var(--kakao-ink); text-decoration: none; font-size: 15px;
  box-shadow: 0 10px 28px rgba(19, 34, 43, .2);
}
.kakao-float:hover { color: var(--kakao-ink); transform: translateY(-2px); }
.kakao-float svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .kakao-float span { display: none; } .kakao-float { padding: 14px; } }

/* 등장 효과 (멈춘 상태에서도 내용이 보이도록 약하게) */
.js .reveal { opacity: .35; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .svc, .kakao-float { transition: none; }
}
