:root {
  --accent: #5A2433;
  --accent-soft: #F3E8EB;
  --hero-tint: #F7F2F3;
  --text: #1A1214;
  --muted: #6B565C;
  --line: #E8E0E2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: #fff;
  letter-spacing: -0.3px;
  padding-bottom: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── 헤더 ─────────────────────────────────────────────────────────── */
header.site-header {
  position: relative; z-index: 200;
  background: #fff; height: 76px;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 76px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 34px; height: 34px; color: var(--accent); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-brand { font-size: 13px; font-weight: 600; color: var(--muted); }
.logo-keyword { font-size: 19px; font-weight: 700; color: var(--text); }

.nav { display: flex; align-items: center; gap: 30px; font-size: 17px; letter-spacing: -.3px; }
.nav > li { position: relative; }
.nav a.nav-link {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: -0.035em; text-transform: uppercase;
}
.nav-cta {
  padding: 11px 22px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 600;
}
.hub-drop {
  position: absolute; top: 100%; left: 0; margin-top: 0; padding: 22px 10px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 44px rgba(0,0,0,.12);
  display: none; flex-direction: column; min-width: 220px; z-index: 300;
  pointer-events: auto;
}
.hub-drop::before {
  content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
}
.nav > li:hover .hub-drop, .nav > li:focus-within .hub-drop { display: flex; }
.hub-drop a {
  padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 600;
  letter-spacing: -0.035em;
}
.hub-drop a:hover { background: var(--accent-soft); color: var(--accent); }

/* ── 히어로 (matt형 카드) ─────────────────────────────────────────── */
.hero { padding: 28px 20px 40px; background: #fff; }
.hero__inner {
  max-width: 1280px; margin: 0 auto; padding: 56px; border-radius: 26px;
  background: var(--hero-tint);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .4px;
  margin: 0 0 18px;
}
.hero h1 {
  font-size: 44px; font-weight: 700; color: var(--text); letter-spacing: -.3px;
  line-height: 1.32; margin: 0 0 14px;
}
.hero-sub { font-size: 16px; line-height: 28px; color: var(--muted); max-width: 440px; margin: 0 0 24px; }
.hero-cta { display: flex; gap: 12px; margin: 0 0 24px; }
.btn-fill {
  height: 48px; padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
  letter-spacing: -.3px; display: inline-flex; align-items: center; border: none;
}
.btn-line {
  height: 48px; padding: 14px 26px; border-radius: 999px;
  background: transparent; color: var(--text); border: 1px solid var(--text);
  font-size: 15px; font-weight: 600; letter-spacing: -.3px;
  display: inline-flex; align-items: center;
}
.hero-checks {
  display: flex; gap: 20px; padding: 18px 0 0; margin: 0;
  font-size: 14px; color: var(--muted); list-style: disc inside;
}
.hero-media {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 44px rgba(0,0,0,.14);
  display: flex; align-items: center; justify-content: center;
}
.hero-media img { width: 100%; height: auto; object-fit: contain; display: block; }

@media (max-width: 767px) {
  .hero__inner { grid-template-columns: 1fr; padding: 28px 24px; border-radius: 20px; }
  .hero h1 { font-size: 30px; }
}

/* ── 서브페이지 상단 tint 패널 ────────────────────────────────────── */
.hero-panel {
  max-width: 1280px; margin: 40px auto; padding: 48px 56px;
  background: var(--hero-tint); border-radius: 26px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero-panel h1 { font-size: 36px; font-weight: 700; margin: 12px 0 14px; line-height: 1.3; }
.hero-panel .hero-eyebrow { margin-bottom: 8px; }
.hero-panel p { font-size: 16px; line-height: 28px; color: var(--muted); margin: 0; }
.hero-panel .panel-media { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 20px 44px rgba(0,0,0,.1); }
.hero-panel .panel-media img { width: 100%; height: auto; object-fit: contain; }
@media (max-width: 767px) {
  .hero-panel { grid-template-columns: 1fr; padding: 28px 24px; margin: 24px auto; }
}

/* ── 설치사례 상세 풀폭 히어로 (case_detail_variant=0) ───────────── */
.page-hero {
  position: relative; z-index: 0; min-height: 420px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.page-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; background: rgba(19,19,19,.5);
  pointer-events: none; z-index: 0;
}
.page-hero .copy { position: relative; z-index: 1; color: #fff; pointer-events: none; padding: 0 24px; }
.page-hero .copy .eyebrow { color: #fff; opacity: .85; font-size: 14px; font-weight: 600; letter-spacing: .4px; margin: 0 0 10px; }
.page-hero h1 { color: #fff; font-size: 36px; font-weight: 800; margin: 0; }

/* ── 리스트 히어로 (설치사례 목록) ─────────────────────────────────── */
.list-hero { position: relative; height: 38vh; min-height: 320px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.list-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.list-hero::after { content: ""; position: absolute; inset: 0; background: rgba(19,19,19,.5); }
.list-hero .copy { position: relative; z-index: 1; color: #fff; text-align: center; }
.list-hero .eyebrow { color: #fff; opacity: .85; font-size: 14px; font-weight: 700; letter-spacing: 1px; margin: 0 0 10px; }
.list-hero h1 { color: #fff; font-size: 38px; font-weight: 800; margin: 0; }

/* ── 섹션 공통 ─────────────────────────────────────────────────────── */
section { padding: 96px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--accent); margin: 0 0 12px; }
.section-title { font-size: 30px; font-weight: 700; margin: 0 0 14px; }
.section-lead { font-size: 16px; max-width: 640px; color: var(--muted); margin: 0 0 48px; line-height: 1.7; }

/* ── ABOUT ─────────────────────────────────────────────────────────── */
#about p { font-size: 16px; line-height: 1.8; color: var(--text); margin: 0 0 20px; max-width: 760px; }

/* ── SERVICE (section_variant=9 apt-service-icons 변형: 흑선 + accent 아이콘) ── */
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.service-card { border-top: 3px solid var(--text); padding-top: 24px; }
.svc-icon { display: block; width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; margin: 0 0 18px; }
.svc-icon svg { display: block; width: 100%; height: 100%; max-width: 44px; max-height: 44px; color: var(--accent); }
.service-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.service-card p { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2,1fr); } .svc-icon { width: 36px; height: 36px; } .svc-icon svg { max-width: 36px; max-height: 36px; } }

/* ── CASES (design_id=1: 3열 흰카드) ─────────────────────────────── */
.case-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.case-card { background: #fff; border-radius: 16px; overflow: hidden; transition: transform .2s ease; border: 1px solid var(--line); }
.case-card:hover { transform: scale(1.03); }
.case-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-card .card-body { padding: 20px; }
.case-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.case-card p {
  font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }
.cases-more { text-align: center; margin-top: 40px; }

/* ── 페이지네이션 ─────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.pagination a.page-num.is-active { background: var(--accent); color: #fff; }
.pagination a.page-num:not(.is-active):hover { background: var(--accent-soft); color: var(--accent); }
.pagination a.page-arrow { color: var(--text); }
.pagination a.page-arrow:hover { color: var(--accent); }

/* ── PROCESS ───────────────────────────────────────────────────────── */
.process-list { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top: 1px solid var(--line); }
.process-item { padding: 28px 20px 28px 24px; border-right: 1px solid var(--line); }
.process-item:first-child { padding-left: 0; }
.process-item:last-child { border-right: none; }
.pnum { color: var(--accent); font-weight: 700; font-size: 13px; display: block; margin-bottom: 10px; }
.process-item h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.process-item p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
@media (max-width: 767px) { .process-list { grid-template-columns: repeat(2,1fr); } .process-item { border-right: none; border-bottom: 1px solid var(--line); } }

/* ── 지역안내 ──────────────────────────────────────────────────────── */
.region-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.region-grid a { display: block; padding: 14px 12px; text-align: center; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 600; }
.region-grid a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 767px) { .region-grid { grid-template-columns: repeat(2,1fr); } }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq-item h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.faq-item p { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 0; }

/* ── 비용 표 ───────────────────────────────────────────────────────── */
table.price-table { width: 100%; border-collapse: collapse; margin: 24px 0 40px; font-size: 15px; }
table.price-table th, table.price-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
table.price-table thead th { color: var(--muted); font-weight: 600; font-size: 13px; }
table.price-table tbody tr:hover { background: var(--accent-soft); }

/* ── Closing ───────────────────────────────────────────────────────── */
.closing { position: relative; height: 560px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.closing img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing::after { content: ""; position: absolute; inset: 0; background: rgba(19,19,19,.55); }
.closing .copy { position: relative; z-index: 1; text-align: center; color: #fff; padding: 0 24px; }
.closing .copy h2 { font-size: 32px; font-weight: 700; margin: 0 0 16px; }
.closing .copy .quote { font-size: 15px; opacity: .85; margin: 0 0 28px; }
.closing .copy .btn-outline {
  display: inline-flex; align-items: center; height: 50px; padding: 0 30px;
  border: 1px solid #fff; color: #fff; font-size: 15px; font-weight: 600;
}

/* ── Footer ────────────────────────────────────────────────────────── */
footer.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 100px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-biz { font-size: 13px; line-height: 1.9; color: var(--muted); }
.footer-biz strong { color: var(--text); }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-copy { margin-top: 32px; font-size: 12px; color: var(--muted); }
@media (max-width: 767px) { footer.site-footer { padding-bottom: 88px; } }

/* ── 모바일 하단바 ─────────────────────────────────────────────────── */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 60px; z-index: 300;
    border-top: 1px solid var(--line); background: #fff;
  }
  .mobile-bar a { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
  .mobile-bar a.tel { background: var(--accent); color: #fff; }
  body { padding-bottom: 72px; }
}

/* ── 공용 콘텐츠 페이지 (허브/지역/설치사례 상세) ────────────────────── */
.content-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.case-body { max-width: 640px; margin: 48px auto 0; text-align: center; }
.case-body .rep-photo { border-radius: 16px; overflow: hidden; background: var(--accent-soft); }
.case-body .rep-photo img { width: 100%; height: auto; object-fit: contain; }
.case-body .label { font-size: 13px; color: #888; margin: 14px 0 6px; }
.case-body h2 { font-size: 28px; font-weight: 700; margin: 0 0 24px; }
.case-body .desc { text-align: left; font-size: 15.5px; line-height: 1.85; color: var(--text); margin: 0 0 8px; }

.hub-body, .region-body { max-width: 760px; margin: 0 auto; padding: 48px 0 0; }
.hub-body p, .region-body p { font-size: 16px; line-height: 1.85; color: var(--text); margin: 0 0 20px; }
.hub-body h2, .region-body h2 { font-size: 24px; font-weight: 700; margin: 40px 0 16px; }

.back-link { text-align: center; margin: 60px 0 0; }
.back-link a { font-size: 15px; font-weight: 600; color: var(--accent); }

.breadcrumb { font-size: 13px; color: var(--muted); padding: 20px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
