:root {
  --accent: #1E4544;
  --accent-soft: #DDECEA;
  --hero-tint: #F0F5F4;
  --text: #121A19;
  --muted: #4F5E5C;
  --line: #DDE5E3;
}

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

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

/* ---------- header ---------- */
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.25; }
.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-family: "Barlow Condensed", "Pretendard Variable", Pretendard, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.nav-item { position: relative; }
.nav-item > a, .nav-item > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  padding: 8px 0;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0,0,0,.12);
  padding: 10px;
  min-width: 180px;
  display: none;
  flex-direction: column;
  z-index: 201;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display: flex; }
.nav-dropdown a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-dropdown a:hover { background: var(--accent-soft); color: var(--accent); }
.nav-cta {
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.3px;
}
.nav-toggle { display: none; }
.mobile-nav {
  display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--line);
  padding: 8px 24px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 0; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav a.nav-cta { text-align: center; border: none; margin-top: 12px; }

/* ---------- hero (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;
}
.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; }

/* ---------- hero-panel (작은 컷용 서브페이지 상단) ---------- */
.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 .hero-eyebrow { margin-bottom: 18px; }
.hero-panel h1 { font-size: 34px; font-weight: 700; margin: 0 0 12px; line-height: 1.35; }
.hero-panel p { font-size: 15px; color: var(--muted); margin: 0; max-width: 420px; }
.hero-panel .hero-panel-media {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 44px rgba(0,0,0,.12);
}
.hero-panel .hero-panel-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.hero-panel-wrap { padding: 0 !important; }

/* ---------- page-hero (풀폭, 큰 사진 있을 때) ---------- */
.page-hero {
  padding: 0 !important;
  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; max-width: 720px; padding: 0 24px; }
.page-hero .hero-eyebrow { background: rgba(255,255,255,.15); color: #fff; }
.page-hero h1 { color: #fff; font-size: 38px; font-weight: 800; margin: 0 0 10px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 15px; margin: 0; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.sec-label { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--accent); margin: 0 0 12px; }
.sec-title { font-size: 30px; font-weight: 700; margin: 0 0 16px; }
.sec-lead { font-size: 16px; max-width: 640px; color: var(--muted); margin: 0 0 48px; }

#about .about-body p { font-size: 16px; color: var(--muted); max-width: 760px; margin: 0 0 18px; }

.service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 24px; }
.svc-icon { display: block; width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; margin-bottom: 20px; color: var(--accent); }
.svc-icon svg { display: block; width: 100%; height: 100%; max-width: 44px; max-height: 44px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.service-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }

.case-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.case-card {
  background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  transition: transform .2s ease;
}
.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: 18px 20px 22px; }
.case-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.case-card p {
  font-size: 14px; color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.case-more { text-align: center; margin-top: 40px; }

.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); margin: 0; }

.region-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.region-grid a {
  display: block; text-align: center; padding: 14px 10px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; font-weight: 600;
}
.region-grid a:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item .q { font-size: 16px; font-weight: 700; margin: 0 0 8px; display: flex; gap: 10px; }
.faq-item .q span { color: var(--accent); }
.faq-item .a { font-size: 14px; color: var(--muted); margin: 0; padding-left: 24px; line-height: 1.7; }

/* ---------- closing ---------- */
.closing {
  padding: 0 !important;
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.closing .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; color: #fff; max-width: 640px; padding: 0 24px; }
.closing h2 { font-size: 32px; font-weight: 800; margin: 0 0 16px; }
.closing .quote { font-size: 15px; color: rgba(255,255,255,.8); margin: 0 0 28px; font-style: normal; }
.closing .btn-outline-white {
  display: inline-flex; align-items: center; height: 50px; padding: 0 30px;
  border: 1px solid #fff; color: #fff; font-size: 15px; font-weight: 600;
}

/* ---------- case detail body ---------- */
.case-body { max-width: 640px; margin: 48px auto 0; text-align: center; }
.case-body .photo { border-radius: 20px; overflow: hidden; background: var(--accent-soft); margin-bottom: 18px; }
.case-body .photo { max-width: 320px; margin-left: auto; margin-right: auto; }
.case-body .photo img { width: 100%; height: auto; object-fit: contain; display: block; cursor: zoom-in; }
.case-body .frame-label { font-size: 13px; color: #888; margin: 0 0 10px; }
.case-body h2 { font-size: 28px; font-weight: 700; margin: 0 0 22px; }
.case-body .body-text { text-align: left; font-size: 15px; color: var(--text); line-height: 1.8; }

/* ---------- catalog / info blocks (허브 본문) ---------- */
.hub-body p { font-size: 16px; color: var(--muted); max-width: 760px; margin: 0 0 18px; }

/* ---------- keyword landing table ---------- */
.kw-table { width: 100%; max-width: 760px; border-collapse: collapse; margin: 8px 0 24px; font-size: 14px; }
.kw-table caption { text-align: left; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.kw-table th, .kw-table td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; }
.kw-table th { width: 30%; background: #fff; color: var(--text); font-weight: 600; }
.kw-table td { color: var(--muted); }

/* ---------- guide hub / 상세 하단 관련 사례 ---------- */
.guide-grid { max-width: 1180px; margin: 0 auto; }
.guide-more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent); }
.rel-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.rel-grid .thumb { aspect-ratio: auto; height: 170px; }
.rel-grid .card-body { padding: 14px 16px 16px; }
.rel-grid h3 { font-size: 16px; margin: 0; }

/* ---------- footer ---------- */
footer.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 90px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-links { display: flex; gap: 24px; font-size: 14px; flex-wrap: wrap; }
.footer-legal { font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.footer-legal b { color: var(--text); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none;
  align-items: center; justify-content: center; z-index: 500; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: 8px; }

/* ---------- mobile bottom bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0;
    height: 60px; z-index: 300; box-shadow: 0 -4px 12px rgba(0,0,0,.08);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; }
  .mobile-bar a:first-child { background: var(--text); }
  .mobile-bar a:last-child { background: var(--accent); }
  body { padding-bottom: 72px; }
}
@media (min-width: 768px) { .mobile-bar { display: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .case-grid { grid-template-columns: repeat(2,1fr); }
  .process-list { grid-template-columns: repeat(2,1fr); }
  .process-item:nth-child(2n) { border-right: none; }
  .region-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 767px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; }
  .hero__inner, .hero-panel { grid-template-columns: 1fr; padding: 28px 24px; border-radius: 20px; }
  .hero h1 { font-size: 32px; }
  .hero-panel { margin: 24px auto; }
  section { padding: 64px 0; }
  .service-grid, .case-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .process-item { border-right: none; border-bottom: 1px solid var(--line); padding-left: 0; }
  .region-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { flex-direction: column; }
}

/* ---------- mobile: keep-all · 메뉴 가로 4칸 ---------- */
@media (max-width: 767px) {
  body { word-break: keep-all; overflow-wrap: break-word; }
  .hero-panel h1, .page-hero h1, .sec-title { font-size: 24px; }
  .hero h1 { font-size: 28px; }
  .closing h2 { font-size: 20px; }
  .closing { min-height: 420px; }
  .case-card h3, .service-card h3 { font-size: 16px; }
  .mobile-nav.open { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; padding: 10px 12px 14px; }
  .mobile-nav a { padding: 10px 2px; font-size: 12.5px; letter-spacing: -.5px; text-align: center; white-space: nowrap; border: 1px solid var(--line); border-radius: 8px; }
  .mobile-nav a.nav-cta { grid-column: 1 / -1; margin-top: 4px; padding: 11px 0; font-size: 14px; border: none; }
  .rel-grid { grid-template-columns: 1fr; }
  .rel-grid .thumb { height: 160px; }
}

/* ---------- 허브·세부: 자식 링크 목록 ---------- */
.child-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.child-list a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; }
.child-list a:hover { background: var(--accent-soft); }
@media (max-width: 900px) { .child-list { grid-template-columns: repeat(2,1fr); } }
.faq-item h3.q { font-size: 16px; }
.svc-more summary { cursor: pointer; text-align: center; list-style: none; margin: 32px auto 0; width: max-content; }
.svc-more .case-grid { margin-top: 24px; }
.case-title-block { padding: 56px 0 0; text-align: center; }
.case-title-block h1 { font-size: 30px; font-weight: 800; margin: 12px 0 0; }

/* ---------- 설치사례 DUI 가이드형 ---------- */
.gd-sec { padding: 64px 0; }
.gd-top { padding-top: 32px; }
.gd-narrow { max-width: 860px; }
.gd-photo { max-width: 320px; margin: 0 auto 32px; border-radius: 20px; overflow: hidden; background: var(--accent-soft); }
.gd-photo img { width: 100%; height: auto; cursor: zoom-in; }
.gd-label { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--accent); margin: 0 0 12px; }
.gd-summary { background: var(--accent-soft); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 14px; padding: 24px 28px; margin-bottom: 20px; }
.gd-summary ul { list-style: disc; padding-left: 20px; margin: 0; }
.gd-summary li { font-size: 15px; line-height: 1.75; margin: 0 0 6px; }
.gd-toc { border: 1px solid var(--line); border-radius: 14px; padding: 22px 28px; margin-bottom: 20px; }
.gd-toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 4px 24px; }
.gd-toc a { display: flex; gap: 12px; padding: 8px 0; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line); }
.gd-toc a span { color: var(--accent); font-weight: 700; }
.gd-toc a:hover { color: var(--accent); }
.gd-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.gd-stats div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 12px; text-align: center; }
.gd-stats b { display: block; font-size: 38px; line-height: 1.1; color: var(--accent); font-weight: 800; }
.gd-stats small { font-size: 16px; font-weight: 700; margin-left: 2px; }
.gd-stats span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.gd-text p { font-size: 16px; line-height: 1.85; margin: 0 0 24px; }
.gd-table-wrap { margin-top: 32px; }
.gd-table-wrap .kw-table { max-width: none; }
.gd-hook { background: var(--accent); color: #fff; padding: 56px 0; text-align: center; }
.gd-hook-eyebrow { display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.gd-hook p { font-size: 24px; font-weight: 700; line-height: 1.5; margin: 0 auto 24px; max-width: 640px; }
.gd-hook-btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 28px; border-radius: 999px; background: #fff; color: var(--accent); font-size: 15px; font-weight: 700; }
.gd-myths { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.gd-myth { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; }
.gd-num { display: block; font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.gd-myth h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.gd-myth p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.7; }
.gd-sec[id], .gd-table-wrap[id] { scroll-margin-top: 16px; }
@media (max-width: 767px) {
  .gd-sec { padding: 44px 0; }
  .gd-toc ol, .gd-myths { grid-template-columns: 1fr; }
  .gd-stats { grid-template-columns: repeat(2,1fr); }
  .gd-hook p { font-size: 18px; }
  .gd-summary, .gd-toc { padding: 20px; }
}
