/* ============================================================
   주식회사 수호 — 회사 소개 홈페이지
   브랜드 기준: 명함 (흰 여백 + 골드 네잎 심볼 + 얇은 금색 구분선)
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Color — 골드 계열은 로고 파일에서 추출 */
  --gold:        #d4a017;  /* 로고 골드. 심볼·장식선 등 비텍스트 요소에만 */
  --gold-light:  #e8c877;  /* 옅은 금색. 얇은 구분선 */
  --gold-pale:   #faf1da;  /* 아주 옅은 배경 */
  --gold-deep:   #8a6410;  /* 텍스트·버튼용. 흰 배경 대비 5.3:1 (WCAG AA 충족) */
  --gold-darker: #6d4f0a;  /* 버튼 hover */

  --paper:       #fbf9f5;
  --paper-2:     #f4efe6;
  --paper-3:     #ece5d8;
  --white:       #ffffff;

  --ink:         #26231f;
  --ink-soft:    #5d564c;
  --ink-faint:   #8d857a;

  --line:        #e3dccf;
  --line-strong: #d2c8b6;

  /* Type */
  --font-display: 'Nanum Myeongjo', 'Noto Serif KR', serif;
  --font-body:    'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --font-logo:    'Poppins', 'Century Gothic', 'Noto Sans KR', sans-serif;

  /* Layout */
  --wrap:      1160px;
  --header-h:  76px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur:  0.7s;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(38, 35, 31, 0.05);
  --shadow-md: 0 6px 24px rgba(38, 35, 31, 0.07);
  --shadow-lg: 0 18px 50px rgba(38, 35, 31, 0.10);
}

/* ---------- 2. RESET ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

p  { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- 3. ACCESSIBILITY ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 6px 6px;
  font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 4. LAYOUT PRIMITIVES ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(72px, 10vw, 132px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.section-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 64px;
  height: 1px;
  background: var(--gold-light);
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
}

.section-sub {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 300;
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  transition: background 0.25s var(--ease),
              color 0.25s var(--ease),
              border-color 0.25s var(--ease),
              transform 0.25s var(--ease);
}

/* 밝은 로고 골드에 흰 글자를 얹으면 대비가 2.4:1 로 부족해
   버튼에는 어두운 골드를 사용 (흰 글자 대비 5.3:1) */
.btn-primary {
  background: var(--gold-deep);
  color: var(--white);
  border-color: var(--gold-deep);
}
.btn-primary:hover {
  background: var(--gold-darker);
  border-color: var(--gold-darker);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  transform: translateY(-2px);
}

/* ---------- 6. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

/* Brand — 명함의 [심볼 | 회사명] 배치를 그대로 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}
.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--gold);
  flex: none;
}
.brand-divider {
  width: 1px;
  height: 26px;
  background: var(--gold-light);
}
/* 워드마크 — 로고의 SUHO */
.brand-word {
  font-family: var(--font-logo);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  color: var(--gold);
  /* 자간이 마지막 글자 뒤에도 붙어 생기는 여백 보정 */
  margin-right: -0.2em;
  white-space: nowrap;
}

/* 국문 사명 — 로고 옆 보조 표기 */
.brand-ko {
  padding-left: 14px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 26px;
}
.primary-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 400;
  white-space: nowrap;
}
.primary-nav > ul a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.primary-nav > ul a:hover::after,
.primary-nav > ul a.is-active::after { transform: scaleX(1); }
.primary-nav > ul a.is-active { color: var(--gold-deep); font-weight: 500; }

.nav-cta {
  padding: 11px 24px;
  background: var(--ink);
  color: var(--paper) !important;
  border-radius: 2px;
  font-size: 0.9rem !important;
  transition: background 0.25s var(--ease);
}
.nav-cta:hover { background: var(--gold-deep); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 0 10px;
  order: 3;
}
.nav-toggle-bar {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  padding-block: clamp(88px, 13vw, 168px);
  background:
    radial-gradient(1000px 520px at 88% -8%, var(--gold-pale) 0%, transparent 62%),
    linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
  overflow: hidden;
}
/* 얇은 금색 하단선 — 명함의 구분선 모티프 */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-light), transparent 72%);
}

.hero-inner { max-width: 900px; }

.hero-eyebrow {
  margin-bottom: 26px;
  color: var(--gold-deep);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.hero-title {
  position: relative;
  font-size: clamp(2.1rem, 5.6vw, 3.9rem);
  font-weight: 800;
  line-height: 1.28;
}
.hero-title em {
  display: inline-block;
  color: var(--gold-deep);
  font-style: normal;
}
.hero-hanja {
  display: block;
  margin-bottom: 18px;
  color: var(--gold-deep);
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: 0.5em;
}

.hero-lead {
  max-width: 620px;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  font-weight: 300;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

/* 연락처 한 줄 표기 — 현재는 푸터에서 사용 */
.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.contact-line .bar { margin-inline: 11px; }

/* ---------- 8. ABOUT ---------- */
.section-about { background: var(--white); }

.about-grid { display: block; }

/* 본문은 읽기 좋은 폭으로 제한 */
.about-body { max-width: 820px; }

.about-lead {
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.6;
}
.about-lead strong { color: var(--gold-deep); }

.about-body > p:not(.about-lead) {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 1.01rem;
}

/* 핵심 가치 — 1px 간격을 배경색으로 드러내 얇은 구분선 효과 */
.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 6vw, 72px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.value-item {
  padding: 30px 26px 34px;
  background: var(--white);
  transition: background 0.3s var(--ease);
}
.value-item:hover { background: var(--paper); }

.value-item dt {
  position: relative;
  padding-top: 17px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--gold-deep);
}
.value-item dt::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 2px;
  background: var(--gold);
}
.value-item dd {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 300;
}

/* ---------- 9. SERVICES ---------- */
.section-services {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 32px 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
/* 마우스가 있는 기기에서만 들어올림 효과.
   터치 화면에서는 탭한 카드가 들린 상태로 남는 문제를 피합니다. */
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
  .service-card:hover::before { transform: scaleX(1); }
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.12em;
}

.service-title {
  margin-top: 14px;
  font-size: 1.32rem;
  font-weight: 800;
}

.service-desc {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.97rem;
  font-weight: 300;
}

.service-tags {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.service-tags li {
  position: relative;
  padding-left: 17px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 300;
}
.service-tags li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  background: var(--gold-light);
  border-radius: 50%;
}

/* ---------- 9-2. WORKS (전후 비교) ---------- */
.section-works {
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}

.ba { max-width: 980px; }

/* 사례는 한 번에 하나만 보임 */
.ba-case {
  display: none;
  margin: 0;
}
.ba-case.is-active { display: block; }

/* 사진 두 장을 겹쳐 두고 서로 교차하며 나타남 */
.ba-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.ba-img.is-active { opacity: 1; }

.ba-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 7px 15px;
  background: rgba(38, 35, 31, 0.82);
  color: var(--paper);
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.ba-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.ba-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
}
.ba-btn {
  padding: 10px 24px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.ba-btn + .ba-btn { border-left: 1px solid var(--line-strong); }
.ba-btn:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.ba-btn.is-on {
  background: var(--gold-deep);
  color: var(--white);
}

.ba-toggle {
  padding: 9px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.ba-toggle:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

/* 사례 넘기기 */
.ba-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ba-pager button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink-soft);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.ba-pager button:hover {
  background: var(--white);
  border-color: var(--gold);
  color: var(--gold-deep);
}
.ba-pager svg {
  width: 15px;
  height: 15px;
}
.ba-count {
  min-width: 92px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

/* 화면낭독기 전용 알림 영역 */
.ba-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ba-caption {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.ba-name {
  font-size: 1.16rem;
  font-weight: 800;
}
.ba-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 44px;
  margin-top: 15px;
}
.ba-meta > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ba-meta dt {
  color: var(--ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}
.ba-meta dd {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 400;
}

/* 현장 활동 — 업무 유형별로 묶은 작업 사진 */
.works-process {
  max-width: 980px;
  margin-top: clamp(56px, 7vw, 84px);
  padding-top: clamp(38px, 5vw, 54px);
  border-top: 1px solid var(--line);
}

/* 두 묶음(보존처리 전·후 / 현장 활동)의 소제목 */
.works-sub {
  margin-bottom: 26px;
  font-size: 1.3rem;
  font-weight: 800;
}
.proc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 26px;
}

.proc-item figure { margin: 0; }

/* 한 카드 안에 사진을 겹쳐 두고 교차 전환 */
.proc-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.proc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.proc-img.is-active { opacity: 1; }

/* 사진이 두 장 이상일 때만 JS 가 점을 만듭니다 */
.proc-dots {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0;
}

/* 점은 작게 보이지만 누를 수 있는 범위는 24x24 로 넓혀
   손가락으로도 정확히 눌리게 합니다 (WCAG 2.5.8) */
.proc-dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
}
.proc-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(38, 35, 31, 0.4);
  border-radius: 50%;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.proc-dot:hover::before { background: var(--gold-light); }
.proc-dot.is-on::before {
  background: var(--gold);
  border-color: var(--gold-deep);
  transform: translate(-50%, -50%) scale(1.2);
}

.proc-name {
  margin-top: 17px;
  font-size: 1.06rem;
  font-weight: 700;
}


/* ---------- 10. OVERVIEW ---------- */
.section-overview { background: var(--white); }

.overview-list {
  display: grid;
  max-width: 900px;
  border-top: 1px solid var(--line-strong);
}

.overview-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 24px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.overview-row:last-child { border-bottom: 1px solid var(--line-strong); }
.overview-row:hover { background: var(--paper); }

.overview-row dt {
  position: relative;
  padding-left: 15px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-deep);
}
.overview-row dt::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.overview-row dd {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
}

/* 기업 구분 — 히어로 배지와 같은 계열로 표기 */
.overview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-pill {
  padding: 5px 13px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  border-radius: 2px;
  color: var(--gold-deep);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---------- 11. CONTACT ---------- */
.section-contact {
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper-3) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: start;
}

.contact-list {
  display: grid;
  border-top: 1px solid var(--line-strong);
}
.contact-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 20px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line-strong);
}
.contact-row dt {
  color: var(--ink-faint);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
}
.contact-row dd {
  font-size: 1.06rem;
  font-weight: 400;
}
.contact-row dd a {
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
}
.contact-row dd a:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold-light);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 36px;
}

/* 지도 카드 — 명함 실물 느낌 */
.map-card {
  padding: 44px 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.map-mark {
  width: 38px;
  height: 38px;
  margin: 0 auto 20px;
  color: var(--gold);
}
.map-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.map-address {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 300;
}
.map-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.map-link {
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 0.92rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.map-link:hover {
  background: var(--paper);
  border-color: var(--gold);
  color: var(--gold-deep);
}
.ext-note {
  color: var(--ink-faint);
  font-size: 0.8rem;
}

/* ---------- 12. FOOTER ---------- */
.site-footer {
  padding-top: clamp(56px, 7vw, 84px);
  background: var(--ink);
  color: var(--paper-2);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 44px;
  padding-bottom: 48px;
}

/* 푸터 로고 락업 */
.footer-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}
.footer-mark {
  width: 32px;
  height: 32px;
  color: var(--gold-light);
  flex: none;
}
.footer-divider {
  width: 1px;
  height: 26px;
  background: rgba(232, 200, 119, 0.55);
}
.footer-word {
  font-family: var(--font-logo);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-right: -0.2em;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--white);
}
.footer-tag {
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 0.88rem;
  font-weight: 300;
}



.footer-nav ul { display: grid; gap: 11px; }
.footer-nav a {
  color: rgba(244, 239, 230, 0.72);
  font-size: 0.92rem;
  font-weight: 300;
}
.footer-nav a:hover { color: var(--gold-light); }

/* 푸터 최하단 — 주소 / 연락처 / 저작권 */
.footer-bottom {
  padding-block: 28px 36px;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
}

.footer-address,
.footer-tel,
.footer-biz {
  color: rgba(244, 239, 230, 0.66);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.9;
}

.footer-tel { margin-top: 2px; }
.footer-tel .bar { color: rgba(244, 239, 230, 0.26); }

.footer-bottom a {
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-bottom a:hover {
  color: var(--gold-light);
  border-bottom-color: rgba(232, 200, 119, 0.5);
}

.footer-copy {
  margin-top: 18px;
  color: var(--ink-faint);
  font-size: 0.81rem;
  font-weight: 300;
}
/* 소문자 브랜드명이 오타로 보이지 않게 로고 서체로 표기 */
.copy-brand {
  font-family: var(--font-logo);
  letter-spacing: 0.06em;
}

/* ---------- 13. REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 14. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: grid;
    gap: 0;
    padding: 8px 24px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }
  .primary-nav.is-open {
    max-height: calc(100vh - var(--header-h));
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
  }

  .primary-nav > ul {
    display: grid;
    gap: 0;
  }
  .primary-nav > ul li { border-bottom: 1px solid var(--line); }
  .primary-nav > ul a {
    display: block;
    padding-block: 17px;
    font-size: 1.02rem;
  }
  .primary-nav > ul a::after { display: none; }

  .nav-cta {
    margin-top: 22px;
    padding-block: 15px;
    text-align: center;
  }

  .overview-row,
  .contact-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .wrap { padding-inline: 20px; }

  /* 좁은 화면에서는 로고 락업만 남김 */
  .brand-ko { display: none; }
  .brand-word { font-size: 1.22rem; }
  .brand-mark { width: 26px; height: 26px; }

  .hero-hanja { letter-spacing: 0.34em; }

  .btn { width: 100%; }
  .hero-actions,
  .contact-actions { flex-direction: column; }

  .service-card { padding: 32px 24px 28px; }
  .map-card { padding: 34px 22px; }

  /* 전후 비교 조작부는 세로로 쌓고 버튼을 넓게 */
  .ba-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .ba-switch { width: 100%; }
  .ba-btn { flex: 1; padding-inline: 12px; }
  .ba-toggle { width: 100%; }
  .ba-pager { justify-content: center; }
  .ba-meta { gap: 12px 28px; }

  /* 푸터 연락처는 좁은 화면에서 항목별 줄바꿈 */
  .contact-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .contact-line .bar { display: none; }
}

/* ---------- 15. MOTION / PRINT PREFERENCES ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .hero-actions,
  .contact-actions,
  .map-links,
  .skip-link { display: none !important; }

  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
  .section { padding-block: 24px; }
  .site-footer { background: #fff; color: #000; }
}
