:root {
  --deep: #1A2A2A;
  --accent: #E4D8C4;
  --accent-soft: #F4EFE6;
  --bg: #FFFFFF;
  --bg-soft: #F4F6F5;
  --ink: #1A1A1A;
  --desc: #4A5C57;
  --bar-chrome: #ECEEF1;
  --line: #E5E7EB;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-kr: "Noto Sans KR", "Pretendard Variable", Pretendard, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body), var(--font-kr);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--desc);
  margin: 0 0 12px;
}
h1, h2, h3 { font-family: var(--font-body), var(--font-kr); font-weight: 700; margin: 0; }
p { margin: 0; }

/* ---------- Header (B-22) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--bar-chrome);
  box-shadow: 0 1px 16px rgba(0,0,0,0.06);
  border-bottom-color: var(--line);
}
.site-header .row {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
}
.site-header.scrolled .row { height: 68px; }
.logo { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: #fff; transition: color .3s ease; }
.site-header.scrolled .logo { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a.navlink { font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,0.92); transition: color .3s ease; }
.site-header.scrolled .nav a.navlink { color: var(--ink); }
.nav a.navlink:hover { opacity: .75; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; font-size: 14.5px; font-weight: 700;
  border-radius: 999px; border: none; cursor: pointer;
  background: var(--accent); color: var(--ink);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(0.96); transform: translateY(-1px); }
.btn-outline {
  background: transparent; border: 1.5px solid var(--accent-soft); color: #fff;
}
.site-header.scrolled .btn-outline { color: var(--ink); border-color: var(--line); }
.hamburger { display: none; width: 26px; height: 20px; position: relative; background: none; border: none; cursor: pointer; }
.hamburger span { position: absolute; left: 0; right: 0; height: 2px; background: #fff; transition: background .3s ease; }
.site-header.scrolled .hamburger span { background: var(--ink); }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

@media (max-width: 860px) {
  .nav { position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
    background: #fff; flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 100px 28px 28px; gap: 22px; transition: right .3s ease; box-shadow: -8px 0 30px rgba(0,0,0,0.12); }
  .nav.open { right: 0; }
  .nav a.navlink { color: var(--ink) !important; font-size: 17px; }
  .nav .btn { width: 100%; }
  .hamburger { display: block; }
}

/* ---------- Hero (index) ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  overflow: hidden; background: var(--deep);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,42,42,0.55) 0%, rgba(26,42,42,0.25) 32%, rgba(26,42,42,0.75) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 0 24px 96px; max-width: 1160px; margin: 0 auto; }
.hero-eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; margin-bottom: 18px; }
.hero h1 {
  color: #fff; font-size: clamp(34px, 5.6vw, 60px); line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 20px; white-space: normal;
}
.hero-sub { color: rgba(255,255,255,0.86); font-size: clamp(15px, 1.8vw, 18px); margin-bottom: 34px; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sub-page hero banner (B - full-bleed, light overlay) ---------- */
.page-hero { position: relative; padding: 168px 0 76px; overflow: hidden; background: var(--deep); }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(1px); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.32); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--deep); text-shadow: 0 1px 12px rgba(255,255,255,0.7); }
.page-hero h1 { font-size: clamp(28px, 4.4vw, 44px); color: #16211f; text-shadow: 0 1px 14px rgba(255,255,255,0.55); letter-spacing: -0.01em; }

/* ---------- Service checklist ---------- */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (max-width: 720px) { .svc-list { grid-template-columns: 1fr; } }
.svc-row { background: #fff; padding: 30px 28px; display: flex; gap: 18px; align-items: flex-start; }
.svc-icon { width: 46px; height: 46px; flex: none; color: var(--deep); }
.svc-row h3 { font-size: 18px; margin-bottom: 8px; }
.svc-row p { font-size: 14.5px; color: var(--desc); line-height: 1.7; }

/* ---------- Portfolio strip ---------- */
.case-scroll { display: flex; gap: 20px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.case-scroll::-webkit-scrollbar { height: 6px; }
.case-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.case-card { flex: 0 0 280px; scroll-snap-align: start; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.case-card .thumb { width: 100%; height: 200px; object-fit: cover; }
.case-card .body { padding: 18px 18px 22px; }
.case-card .tag { font-size: 12px; font-weight: 700; color: var(--desc); margin-bottom: 6px; }
.case-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.case-card .more { font-size: 13px; color: var(--desc); }
.portfolio-more { margin-top: 26px; text-align: center; }

/* ---------- Guide ---------- */
.guide-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.guide-row { display: flex; align-items: center; justify-content: space-between; padding: 24px 4px; border-bottom: 1px solid var(--line); gap: 20px; }
.guide-row .num { font-size: 13px; color: var(--desc); font-weight: 700; width: 44px; flex: none; }
.guide-row .txt { flex: 1; }
.guide-row h3 { font-size: 17px; margin-bottom: 6px; }
.guide-row p { font-size: 14px; color: var(--desc); }
.guide-row .go { font-size: 13px; font-weight: 700; color: var(--deep); flex: none; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; font-weight: 700; color: var(--ink); }
.faq-q .sym { color: var(--desc); font-weight: 400; flex: none; transition: transform .2s ease; }
.faq-item.open .faq-q .sym { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 4px 22px; font-size: 14.5px; color: var(--desc); line-height: 1.8; }

/* ---------- Cross layout (case detail) ---------- */
.cross { padding: 64px 0; }
.cross-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.cross-row.rev .img { order: 2; }
.cross-row.rev .txt { order: 1; }
@media (max-width: 780px) {
  .cross-row { grid-template-columns: 1fr; gap: 22px; }
  .cross-row.rev .img, .cross-row.rev .txt { order: initial; }
}
.cross img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.cross .num { font-size: 13px; font-weight: 700; color: var(--desc); margin-bottom: 10px; letter-spacing: 0.04em; }
.cross h2 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 16px; }
.cross .desc { font-size: 15px; line-height: 1.9; color: #4B5563; }

/* ---------- Region info sections ---------- */
.info-block { max-width: 760px; margin: 0 auto; }
.info-block p { font-size: 15.5px; line-height: 1.95; color: #374151; }
.info-block p + p { margin-top: 20px; }

.stack-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 900px) { .stack-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stack-4 { grid-template-columns: 1fr; } }
.step { }
.step .idx { font-size: 12.5px; font-weight: 700; color: var(--desc); margin-bottom: 10px; }
.step h4 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--desc); line-height: 1.7; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.chip { font-size: 13px; padding: 8px 16px; border-radius: 999px; background: var(--bg-soft); color: var(--desc); border: 1px solid var(--line); }

/* ---------- Gallery grid ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gallery-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-card .body { padding: 16px 18px 20px; }
.gallery-card .tag { font-size: 12px; font-weight: 700; color: var(--desc); margin-bottom: 4px; }
.gallery-card h3 { font-size: 16px; }

/* ---------- Sitemap page (faded) ---------- */
.sm-col h3 { font-size: 15px; margin-bottom: 14px; color: var(--ink); }
.sm-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 780px) { .sm-cols { grid-template-columns: repeat(2, 1fr); } }
.sm-col a { display: block; font-size: 13.5px; color: #9CA3AF; padding: 5px 0; }
.sm-col a:hover { color: var(--desc); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--deep); color: rgba(255,255,255,0.82); padding: 56px 0 120px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 34px; }
.footer-biz p { font-size: 13.5px; line-height: 1.9; color: rgba(255,255,255,0.72); }
.footer-biz .name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-actions { display: flex; gap: 12px; align-items: flex-start; }
.footer-map { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 26px; }
.footer-map summary { cursor: pointer; font-size: 12.5px; color: rgba(255,255,255,0.35); list-style: none; }
.footer-map summary::-webkit-details-marker { display: none; }
.footer-map[open] summary { margin-bottom: 16px; }
.footer-map-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 20px; }
@media (max-width: 700px) { .footer-map-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-map-grid a { font-size: 12px; color: rgba(255,255,255,0.28); }
.footer-map-grid a:hover { color: rgba(255,255,255,0.5); }

/* ---------- Bottom consult bar (B-23) ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--bar-chrome); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(0,0,0,0.08);
  padding: 12px 20px; display: flex; align-items: center; justify-content: center; gap: 14px;
  transform: translateY(100%); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.bottom-bar.show { transform: translateY(0); opacity: 1; }
.bottom-bar .btn { flex: none; min-height: 48px; padding: 0 26px; }
.bottom-bar .bb-sub { font-size: 13px; color: var(--desc); display: none; }
@media (min-width: 620px) { .bottom-bar .bb-sub { display: inline; } }

.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.01em; }
.section-head.left { text-align: left; margin-left: 0; }

@media (max-width: 720px) {
  .footer-top { flex-direction: column; }
  section { text-align: left; }
}
