@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --primary: #2b6cd4;       /* 포인트 색 — 바꾸면 전체 반영 */
  --primary-dark: #1f56ad;
  --text: #15161a;
  --muted: #63666f;
  --light: #9aa1ad;
  --line: #e7e9ee;
  --bg-soft: #f6f7f9;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text); background: #fff; line-height: 1.65; word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 26px; border-radius: 10px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: .2s; font-family: inherit; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: var(--text); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 8px; }

/* ---------- 헤더 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-mark { font-weight: 800; font-size: 22px; letter-spacing: .02em; color: #0f2a5c; }
.logo-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.logo-img { flex-direction: row; align-items: center; gap: 12px; }
.logo-img img { height: 56px; width: auto; display: block; }
.logo-branch { font-size: 17px; font-weight: 700; color: #1d6b35; padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.2; }
.logo-branch:empty { display: none; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav > a:not(.btn), .nav-item > a { color: var(--muted); }
.nav a:not(.btn):hover, .nav a.active { color: var(--text); }
.nav-item { position: relative; }
.nav-item .sub { position: absolute; top: 100%; left: -16px; padding: 10px; min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08); display: none; margin-top: 10px; }
.nav-item .sub::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-item .sub a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); }
.nav-item .sub a:hover { background: var(--bg-soft); color: var(--text); }
.nav-item:hover .sub { display: block; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; transition: .2s; }

/* ---------- 섹션 공통 ---------- */
section.block { padding: 100px 0; }
section.soft { background: var(--bg-soft); }
.eyebrow { display: block; color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .12em; margin-bottom: 12px; }
.sec-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.sec-desc { color: var(--muted); margin-top: 14px; font-size: 17px; }
.sec-head { margin-bottom: 48px; }
.sec-head.center { text-align: center; }
.sec-head.row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }

/* ---------- 히어로 ---------- */
.hero { padding: 120px 0 110px; background:
  radial-gradient(900px 400px at 85% 10%, rgba(43,108,212,.10), transparent 60%), #fff; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; line-height: 1.22; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p { font-size: clamp(16px, 1.8vw, 20px); color: var(--muted); margin: 24px 0 40px; max-width: 620px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 페이지 상단 타이틀 */
.page-hero { padding: 80px 0 60px; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.page-hero p { color: var(--muted); margin-top: 14px; }

/* ---------- 서비스 카드 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { display: flex; flex-direction: column; padding: 32px 28px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; transition: .25s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,42,92,.08); border-color: transparent; }
.svc-card h3 { font-size: 21px; margin-bottom: 12px; }
.svc-card p { color: var(--muted); font-size: 15px; flex: 1; }
.tags { display: block; color: var(--light); font-size: 13px; margin-top: 18px; }
.svc-card .more { color: var(--primary); font-weight: 600; font-size: 14px; margin-top: 14px; }

/* ---------- 칼럼 카드 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: block; }
.post-card .thumb { position: relative; aspect-ratio: 16/10; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex;
  flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px 32px; transition: .25s; }
.post-card .thumb::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--c); }
.post-card .thumb strong { font-size: 19px; line-height: 1.4; letter-spacing: -.02em; }
.thumb-cat { font-size: 12px; font-weight: 700; color: var(--c); margin-bottom: 10px; }
.thumb-logo { position: absolute; bottom: 14px; left: 24px; font-size: 11px; font-weight: 800; color: #0f2a5c; opacity: .5; }
.post-card:hover .thumb { box-shadow: 0 16px 40px rgba(15,42,92,.10); transform: translateY(-3px); }
.post-meta { padding: 16px 4px 0; }
.cat { font-size: 13px; font-weight: 700; }
.post-meta h3 { font-size: 18px; line-height: 1.45; margin: 6px 0 8px; }
.post-card:hover h3 { color: var(--primary); }
time { color: var(--light); font-size: 14px; }

/* 칼럼 목록 도구 */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 14px; cursor: pointer; color: var(--muted); }
.chip.on { background: var(--text); color: #fff; border-color: var(--text); }
.search { position: relative; }
.search input { width: 240px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font: inherit; font-size: 14px; }
.search input:focus { outline: none; border-color: var(--primary); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 56px; }
.pager button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; }
.pager button.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- 칼럼 상세 ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 60px 20px 100px; }
.article .back { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.article h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.3; letter-spacing: -.02em; margin: 10px 0 14px; }
.post-body { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.85; }
.post-body p { margin-bottom: 1.3em; }
.post-body h2 { font-size: 24px; margin: 2em 0 .8em; letter-spacing: -.02em; }
.post-body h3 { font-size: 20px; margin: 1.6em 0 .6em; }
.post-body ul, .post-body ol { padding-left: 1.3em; margin-bottom: 1.3em; }
.post-body blockquote { border-left: 4px solid var(--primary); background: var(--bg-soft); padding: 16px 20px; margin: 1.5em 0; border-radius: 0 10px 10px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 12px; }
.post-body th { background: var(--bg-soft); }
.post-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 60px; padding: 28px 32px; background: var(--bg-soft); border-radius: var(--radius); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.post-nav a { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 15px; }
.post-nav a:hover { border-color: var(--primary); }
.post-nav a.r { text-align: right; }
.post-nav small { display: block; color: var(--light); font-weight: 400; margin-bottom: 4px; }

/* ---------- 서비스 상세 ---------- */
.svc-detail { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.svc-detail .num { font-size: 40px; font-weight: 800; color: var(--primary); opacity: .25; }
.svc-detail h2 { font-size: 28px; margin-bottom: 12px; }
.svc-detail p { font-size: 17px; margin-bottom: 8px; }

/* ---------- 소개 ---------- */
.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: start; }
.photo { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(160deg, #e9eef8, #d5deef);
  display: flex; align-items: center; justify-content: center; color: var(--light); font-size: 14px; }
img.photo { width: 100%; object-fit: cover; object-position: center 30%; display: block; background: #f2f2f2; }
.profile + .profile { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.about-grid .tagline { font-size: 20px; font-weight: 600; color: var(--primary); line-height: 1.5; }
.about-grid h2 { font-size: 32px; margin-bottom: 20px; }
.about-grid p { margin-bottom: 1em; font-size: 17px; }
.career { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.career li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: 18px; font-weight: 600;
  padding: 24px 40px 24px 0; cursor: pointer; position: relative; color: var(--text); }
.faq-q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; color: var(--light); transition: .2s; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { display: none; padding: 0 0 24px; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

/* ---------- 오시는 길 / 상담 ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-card { padding: 36px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.info-card dl { display: grid; grid-template-columns: 70px 1fr; gap: 14px 16px; margin: 24px 0; }
.info-card dt { color: var(--light); }
.map-box { border-radius: var(--radius); background: var(--bg-soft); min-height: 300px; display: flex; align-items: center; justify-content: center; color: var(--light); border: 1px dashed var(--line); }
.map-wrap { position: relative; overflow: hidden; border: 1px solid var(--line); background: #fff; min-height: 360px; }
.map-wrap { text-decoration: none; }
.map-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 45%; display: block; transition: transform .3s; }
.map-wrap:hover img { transform: scale(1.02); }
.map-cta { text-decoration: none; z-index: 1; position: absolute; right: 14px; bottom: 14px; padding: 9px 14px; border-radius: 999px; background: #03c75a; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.form { display: grid; gap: 18px; max-width: 720px; margin: 0 auto; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); }
.form textarea { min-height: 160px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 15px; min-height: 1.4em; color: var(--muted); }
.form-status.ok { color: #1f9d74; font-weight: 600; }
.form-status.err { color: #d4502b; font-weight: 600; }

/* 상담문의 아래 빠른 문의 (전화·카카오톡) */
.quick-contact { max-width: 720px; margin: 36px auto 0; padding: 28px; border-radius: var(--radius); background: #12213f; color: #fff; }
.quick-contact h3 { font-size: 19px; margin: 0 0 16px; color: #fff; }
.qc-btn { display: flex; align-items: center; gap: 12px; padding: 17px 22px; border-radius: 12px; font-size: 18px; font-weight: 700; text-decoration: none; transition: .15s; }
.qc-tel { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.qc-tel:hover { background: rgba(255,255,255,.08); }
.qc-kakao { margin-top: 12px; background: #fee500; color: #191919; }
.qc-kakao:hover { filter: brightness(.96); }
.qc-hours { margin: 16px 0 0; font-size: 14px; color: rgba(255,255,255,.75); }
.form .agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
.form .agree input { width: auto; margin-top: 4px; }

/* CTA 띠 */
.cta-band { background: #0f2a5c; color: #fff; text-align: center; padding: 90px 0; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); }
.cta-band p { opacity: .75; margin: 12px 0 32px; }

/* ---------- 푸터 ---------- */
.site-footer { background: #0f1319; color: #c9ced6; padding: 70px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer a { display: block; margin-bottom: 8px; color: #c9ced6; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin-bottom: 12px; }
.site-footer .muted { color: #7b828e; }
.site-footer .btn { display: inline-flex; color: #fff; margin-top: 4px; }
.logo-footer .logo-mark { color: #fff; margin-bottom: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 50px; padding-top: 24px; border-top: 1px solid #262b33; color: #7b828e; font-size: 13px; }
.footer-bottom a { margin: 0; color: #9aa1ad; }

.prose { max-width: 760px; margin: 0 auto; padding: 0 20px 100px; }
.prose h2 { font-size: 20px; margin: 2em 0 .6em; }
.prose p, .prose li { color: var(--muted); margin-bottom: .8em; }
.prose ul { padding-left: 1.3em; }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .svc-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .photo { max-width: 360px; }
}
@media (max-width: 760px) {
  .header-inner { height: 72px; }
  .logo-img img { height: 40px; }
  .logo-branch { font-size: 15px; padding-left: 10px; }
  .menu-btn { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); display: none; }
  .site-header.open .nav { display: flex; }
  .nav > a:not(.btn), .nav-item > a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-item .sub { position: static; display: block; border: 0; box-shadow: none; margin: 0; padding: 4px 0 8px 12px; }
  .nav-item .sub a { padding: 6px 0; font-size: 14px; }
  .nav .btn { margin-top: 16px; }
  .site-header.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .menu-btn span:nth-child(2) { opacity: 0; }
  .site-header.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  section.block { padding: 70px 0; }
  .hero { padding: 80px 0; }
  .svc-grid, .post-grid, .info-grid, .form .row2, .post-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .search, .search input { width: 100%; }
  .svc-detail { grid-template-columns: 1fr; gap: 4px; }
  .post-nav a.r { text-align: left; }
}
