/* ===== 한백하우징 — 대표 랜딩페이지 =====
   컬러 컨셉: 뉴트럴 차콜 잉크(--ink) + 웜 페이퍼(--paper) + 코발트 블루(--accent) 3톤.
   보라/인디고 그라디언트, 네이비+오렌지+베이지, 세이지그린, 다크그린+골드 등
   범용/유행 AI 배색을 의도적으로 배제하고 단일 채도 높은 블루 포인트만 사용. */

:root {
  --ink: #15171c;
  --ink-2: #1f232b;
  --ink-3: #2a303a;
  --paper: #f1f0ea;
  --paper-2: #ffffff;
  --white: #ffffff;
  --accent: #2f4bd6;
  --accent-dark: #22389f;
  --text: #17191d;
  --text-soft: #53585f;
  --text-invert: #eef0f4;
  --text-invert-soft: #a9afb9;
  --line: rgba(21, 23, 28, 0.13);
  --line-invert: rgba(238, 240, 244, 0.15);
  --shadow-card: 0 18px 40px -24px rgba(21, 23, 28, 0.35);
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 18px;
  --wrap: 1180px;
  --font-body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --font-display: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.28; margin: 0; color: var(--ink); word-break: keep-all; letter-spacing: -0.02em; }
p { margin: 0; word-break: keep-all; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(241, 240, 234, 0.86);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(21,23,28,.4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { display: flex; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.brand__sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--accent); margin-top: 2px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 14.5px; color: var(--text-soft); transition: color .2s; }
.site-nav a:hover { color: var(--ink); }
.site-nav__cta {
  background: var(--ink); color: var(--text-invert) !important; padding: 10px 20px;
  border-radius: var(--radius-s); font-weight: 600; transition: background .2s, transform .2s;
}
.site-nav__cta:hover { background: var(--accent); transform: translateY(-1px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px;
  border-radius: var(--radius-s); font-weight: 600; font-size: 15px;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(34,56,159,.6); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--lg { padding: 16px 32px; font-size: 16px; }

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: 0.02em;
  color: var(--accent-dark); margin: 0 0 14px; display: inline-block;
  border-bottom: 1px solid var(--accent); padding-bottom: 4px;
}
.eyebrow--light { color: var(--accent); }

.section { padding: 120px 0; }
.section--tight { padding-top: 0; }
.section--ink { background: var(--ink); color: var(--text-invert); }
.section--ink h2, .section--ink h3 { color: var(--text-invert); }
.section__head { max-width: 640px; margin-bottom: 64px; }
.section__head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; letter-spacing: -0.015em; line-height: 1.2; }
.section__desc { color: var(--text-soft); font-size: 15.5px; }
.section--ink .section__desc { color: var(--text-invert-soft); }

/* ---------- Hero ---------- */
.hero { padding: 0; }
.hero__row {
  display: flex; align-items: stretch; gap: 40px; padding: 0; min-height: 460px;
  padding-left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
}
.hero__copy {
  flex: 0 0 auto; width: min(42%, 480px); box-sizing: border-box; padding: 56px 24px 56px 0;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__copy h1 {
  font-size: clamp(30px, 4vw, 44px); margin: 8px 0 22px; letter-spacing: -0.02em; line-height: 1.1;
}
.hero__lead-main {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.8vw, 21px);
  color: var(--ink); line-height: 1.45; max-width: 20ch; margin-bottom: 12px;
}
.hero__lead-sub { font-size: 14.5px; color: var(--text-soft); max-width: 42ch; margin-bottom: 26px; line-height: 1.7; }
.hero__lead { font-size: 17px; color: var(--text-soft); max-width: 52ch; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__media {
  position: relative; flex: 1 1 auto; min-width: 0;
  overflow: hidden;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__slideshow .hero__slide {
  position: absolute; inset: 0; opacity: 0; z-index: 1;
  transform: scale(1.04); transition: opacity 1.4s ease, transform 6.5s ease;
}
.hero__slideshow .hero__slide.is-active { opacity: 1; z-index: 2; transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) {
  .hero__slideshow .hero__slide { transition: opacity 1.4s ease; transform: none; }
  .hero__slideshow .hero__slide.is-active { transform: none; }
}
.hero__media-bar {
  position: absolute; left: 0; right: 0; bottom: 0; background: rgba(21,23,28,.86);
  backdrop-filter: blur(8px); display: flex; align-items: center; gap: 26px; padding: 22px 32px;
}
.hero__media-stat { display: flex; flex-direction: column; gap: 3px; }
.hero__media-stat-num {
  font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--accent); line-height: 1;
}
.hero__media-stat-num--sm { font-size: 19px; }
.hero__media-stat-label { font-size: 12px; color: var(--text-invert-soft); }
.hero__media-bar-divider { width: 1px; align-self: stretch; background: var(--line-invert); }

/* ---------- Stats ---------- */
.stats { background: var(--ink); padding: 52px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line-invert); padding-left: 20px; }
.stat__num, .stat__num--text {
  font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); font-weight: 700; color: var(--accent);
  line-height: 1;
}
.stat__num--text { font-size: clamp(20px, 2.2vw, 26px); }
.stat__label { color: var(--text-invert-soft); font-size: 13.5px; }

/* ---------- Category rows / service cards ---------- */
.category-row { padding: 52px 0; border-top: 1px solid var(--line); }
.category-row:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 60px; }
.category-row__head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.category-row__index {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent-dark); border: 1px solid var(--accent);
  border-radius: 999px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.category-row__head h3 { font-size: 21px; margin-bottom: 6px; }
.category-row__head p { color: var(--text-soft); font-size: 14.5px; }

.category-row__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card {
  display: grid; grid-template-columns: 128px 1fr; gap: 18px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px; align-items: center;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.service-card__img { width: 128px; height: 96px; border-radius: var(--radius-s); overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.service-card__title { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.service-card__desc { font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.service-card__link { font-family: var(--font-body); font-weight: 600; font-size: 12px; color: var(--accent-dark); margin-top: 4px; }

/* ---------- Table ---------- */
.table-wrap { margin-top: 48px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }
table { min-width: 560px; }
caption { text-align: left; font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: 0;
  color: var(--text-soft); padding: 14px 18px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
th, td { text-align: left; padding: 14px 18px; font-size: 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--ink); color: var(--text-invert); font-weight: 600; font-size: 13px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(47,75,214,.06); }
td a { color: var(--accent-dark); font-weight: 600; }
td a:hover { text-decoration: underline; }

/* ---------- Process ---------- */
.process__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 8px; }
.process__list li { padding-top: 22px; border-top: 1px solid var(--line-invert); }
.process__num { font-family: var(--font-mono); color: var(--accent); font-size: 13px; }
.process__list h3 { font-size: 18px; margin: 10px 0 10px; }
.process__list p { color: var(--text-invert-soft); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 4px 22px; transition: border-color .2s;
}
.faq-list details[open] { border-color: var(--accent); }
.faq-list summary {
  cursor: pointer; padding: 18px 0; list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.faq-list summary::after {
  content: '+'; font-family: var(--font-mono); font-size: 20px; color: var(--accent-dark);
  flex-shrink: 0; transition: transform .25s;
}
.faq-list details[open] summary::after { content: '–'; }
.faq-list details p { padding: 0 0 20px; color: var(--text-soft); font-size: 14.5px; max-width: 68ch; }

/* ---------- CTA ---------- */
.cta { padding: 90px 0; }
.cta__inner {
  background: var(--ink); border-radius: var(--radius-l); padding: 64px 48px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.cta__inner h2 { color: var(--text-invert); font-size: clamp(26px, 3.6vw, 38px); max-width: 22ch; letter-spacing: -0.015em; }
.cta__inner p { color: var(--text-invert-soft); }
.cta__inner .btn { margin-top: 8px; }

/* ---------- Contact page ---------- */
.contact-hero { padding-top: 64px; padding-bottom: 40px; }
.contact-hero h1 { font-size: clamp(28px, 4vw, 38px); margin: 4px 0 18px; }
.contact-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; margin-bottom: 56px;
}
.contact-panel__call { background: var(--ink); color: var(--text-invert); padding: 44px; }
.contact-panel__call .eyebrow { color: var(--accent); border-color: var(--accent); }
.contact-phone { font-family: var(--font-display); font-size: clamp(30px, 4vw, 40px); font-weight: 700; margin: 6px 0 10px; color: var(--white); }
.contact-panel__hours { color: var(--text-invert-soft); font-size: 13.5px; margin-bottom: 26px; }
.contact-panel__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-panel__info { padding: 44px; }
.contact-panel__info h2 { font-size: 18px; margin-bottom: 20px; }
.contact-info-list { display: flex; flex-direction: column; gap: 12px; }
.contact-info-list li { display: grid; grid-template-columns: 108px 1fr; gap: 10px; font-size: 14.5px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.contact-info-list dt { color: var(--text-soft); }
.contact-info-list dd { margin: 0; color: var(--ink); font-weight: 500; }
.contact-info-list dd a { color: var(--accent-dark); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-invert-soft); padding: 64px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-invert); }
.site-footer__brand { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.site-footer__brand span { font-family: var(--font-mono); font-size: 11px; color: var(--accent); margin-left: 8px; letter-spacing: .08em; }
.site-footer__line { font-size: 13.5px; margin-bottom: 6px; }
.site-footer__line a { color: var(--accent); font-weight: 600; }
.site-footer__heading { font-family: var(--font-body); font-weight: 600; font-size: 12.5px; letter-spacing: 0; color: var(--text-invert-soft); margin-bottom: 16px; }
.site-footer__list { display: flex; flex-direction: column; gap: 10px; }
.site-footer__list a { font-size: 13.5px; transition: color .2s; }
.site-footer__list a:hover { color: var(--white); }
.site-footer__bottom { padding: 22px 0; font-size: 12.5px; opacity: .7; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__row { flex-direction: column; align-items: stretch; padding: 36px 0; gap: 24px; min-height: 0; padding-left: 0; }
  .hero__copy { width: 100%; padding-left: 24px; padding-right: 24px; }
  .hero__media { border-radius: 0; height: 320px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .category-row__cards { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .site-header__inner { height: 66px; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.site-nav__cta) { display: none; }
  .section { padding: 64px 0; }
  .service-card { grid-template-columns: 1fr; }
  .service-card__img { width: 100%; height: 160px; }
  .cta__inner { padding: 44px 26px; }
  .hero__media { height: 240px; }
  .hero__media-bar { gap: 14px; padding: 14px 18px; }
  .hero__media-stat-num { font-size: 20px; }
}
