/* ==========================================================
   DISTRICT 11 — 카페24 스마트디자인 공통 스타일 (독립 사이트)
   레퍼런스: 젠틀몬스터·탬버린즈(풀블리드·가운데 로고·필 버튼),
            이솝(웜 아이보리·어두운 푸터), 29CM(에디토리얼 타일)
   서체: 시스템 산세리프만. 위계는 크기·자간·여백으로.
   ========================================================== */

.d11 {
  --bg: #F5F3EF;
  --tile: #ECEBE8;
  --ink: #1F1A16;
  --ink-soft: #6B625A;
  --mute: #9A8F84;
  --line: rgba(31, 26, 22, 0.12);
  --gutter: 40px;
  --header: 64px;

  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: -0.005em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
.d11 *, .d11 *::before, .d11 *::after { box-sizing: border-box; }
.d11 img { display: block; max-width: 100%; height: auto; }
.d11 a { color: inherit; text-decoration: none; }
.d11 h1, .d11 h2, .d11 h3, .d11 p, .d11 ul, .d11 ol, .d11 dl, .d11 dd, .d11 figure { margin: 0; padding: 0; }
.d11 ul, .d11 ol { list-style: none; }
.d11 main { display: block; }

/* ---------- 공통 타이포 ---------- */
.d11-label {
  display: block;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 20px;
}
.d11-title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500; line-height: 1.45; letter-spacing: -0.025em;
}
.d11-text { color: var(--ink-soft); margin-top: 20px; max-width: 34em; }
.d11-link {
  display: inline-block; margin-top: 36px;
  font-size: 13px; letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
  align-self: flex-start;
}

/* 필 버튼 */
.d11-pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 24px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: background .25s, color .25s;
}
.d11-pill:hover { background: var(--ink); color: var(--bg) !important; }
.d11-pill--fill { background: var(--ink); color: var(--bg) !important; }
.d11-pill--fill:hover { background: transparent; color: var(--ink) !important; }
.d11-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

/* ---------- 헤더: 왼쪽 메뉴 · 가운데 로고 · 오른쪽 예약 ---------- */
.d11-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.d11-header.is-solid, .d11--sub .d11-header {
  background: rgba(245, 243, 239, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.d11-logo { font-size: 15px; font-weight: 600; letter-spacing: 0.38em; padding-left: 0.38em; white-space: nowrap; }
.d11-nav { display: flex; gap: 28px; font-size: 13px; }
.d11-nav a { color: var(--ink-soft); transition: color .2s; }
.d11-nav a:hover, .d11-nav a.is-on { color: var(--ink); }
.d11-util { display: flex; justify-content: flex-end; align-items: center; gap: 24px; font-size: 13px; }
.d11-util .d11-pill { height: 34px; padding: 0 16px; font-size: 12px; }
.d11-menu-btn { display: none; background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--ink); }
.d11-menu-btn span { display: block; width: 20px; height: 1px; background: currentColor; margin: 5px 0; }
.d11-drawer { display: none; }

/* ---------- 메인 히어로 (풀블리드) ---------- */
.d11-hero { position: relative; height: min(100vh, 900px); min-height: 600px; overflow: hidden; background: var(--tile); }
.d11-hero picture, .d11-hero img { width: 100%; height: 100%; }
.d11-hero img { object-fit: cover; object-position: 80% 50%; }
.d11-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(236,235,232,0.92) 0%, rgba(236,235,232,0.75) 32%, rgba(236,235,232,0) 62%);
}
.d11-hero-copy { position: absolute; z-index: 1; left: var(--gutter); bottom: 88px; max-width: 540px; }
.d11-hero h1, .d11-hero-h { font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; line-height: 1.38; letter-spacing: -0.035em; }
.d11-hero p { margin-top: 20px; color: var(--ink-soft); font-size: 15px; }
.d11-scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 10px; letter-spacing: 0.3em; color: var(--mute); }

/* 롤링 배너 */
.d11-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s 1.1s; }
.d11-slide.is-on { opacity: 1; visibility: visible; transition: opacity 1.1s ease; }
.d11-slide picture { display: block; }
.d11-slide img { transform: scale(1.04); transition: transform 7s ease-out; }
.d11-slide.is-on img { transform: scale(1); }
.d11-dots { position: absolute; z-index: 2; right: var(--gutter); bottom: 96px; display: flex; gap: 8px; }
.d11-dots button { width: 28px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.d11-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: rgba(31,26,22,0.25); }
.d11-dots button.is-on::before { height: 2px; top: 6px; background: var(--ink); }

/* ---------- 선언문 (가운데 정렬) ---------- */
.d11-statement { padding: 160px var(--gutter); text-align: center; }
.d11-statement p.big {
  max-width: 820px; margin: 0 auto;
  font-size: clamp(20px, 2.1vw, 27px); font-weight: 400; line-height: 1.75; letter-spacing: -0.02em;
}
.d11-statement p.big em { font-style: normal; color: var(--mute); }

/* ---------- 스플릿 (이미지 반 · 글 반) ---------- */
.d11-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 720px; }
.d11-split-img { background: var(--tile); overflow: hidden; }
.d11-split-img img { width: 100%; height: 100%; object-fit: cover; }
.d11-split-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 96px clamp(40px, 7vw, 120px); }
.d11-split--rev .d11-split-img { order: 2; }

.d11-vs { align-self: stretch; margin-top: 48px; border-top: 1px solid var(--line); }
.d11-vs > div { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.d11-vs dt { font-size: 11px; letter-spacing: 0.2em; color: var(--mute); padding-top: 4px; }
.d11-vs dd { font-size: 16px; line-height: 1.7; }
.d11-vs > div:first-child dd { color: var(--ink-soft); }

/* ---------- 디테일 3컷 ---------- */
.d11-block { padding: 140px var(--gutter); }
.d11-block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.d11-block-head .d11-text { margin-top: 0; max-width: 26em; }
.d11-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.d11-trio figure .img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.d11-trio figure img { width: 100%; height: 100%; object-fit: cover; }
.d11-trio figcaption { display: flex; gap: 14px; padding-top: 16px; font-size: 13px; }
.d11-trio figcaption span { color: var(--mute); font-size: 11px; letter-spacing: 0.16em; padding-top: 2px; }

.d11-cases-head { padding: 0 var(--gutter); }
.d11-cases-head .d11-link { margin-top: 0; }
.d11-after-grid { margin-top: 140px; }

/* ---------- 복원 사례 그리드 (젠틀몬스터식 타일) ---------- */
.d11-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.d11-grid--3 { grid-template-columns: repeat(3, 1fr); }
.d11-tile .img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.d11-tile .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.6,.2,1); }
.d11-tile:hover .img img { transform: scale(1.035); }
.d11-tile-btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.d11-tile .cap { display: block; padding: 16px 20px 40px; }
.d11-tile .model { display: block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.d11-tile .part { display: block; font-size: 14px; font-weight: 500; margin-top: 6px; }
.d11-tile .line { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 4px; line-height: 1.7; }
.d11-tile[hidden] { display: none; }

.d11-tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; padding: 0 var(--gutter) 32px; }
.d11-tabs button {
  font: inherit; font-size: 13px; color: var(--mute); cursor: pointer;
  background: none; border: 0; padding: 6px 0; border-bottom: 1px solid transparent;
}
.d11-tabs button.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.d11-fine { padding: 48px var(--gutter) 0; font-size: 12px; color: var(--mute); }

/* ---------- 서브 페이지 머리 ---------- */
.d11-pagehead { padding: calc(var(--header) + 120px) var(--gutter) 88px; }
.d11-pagehead h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; line-height: 1.38; letter-spacing: -0.035em; }
.d11-band { height: min(72vh, 680px); overflow: hidden; background: var(--tile); }
.d11-band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 목록형 (하지 않는 것 · 견적 원칙 · 진행 과정) ---------- */
.d11-rows { border-top: 1px solid var(--ink); }
.d11-rows li { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.d11-rows h3 { font-size: 16px; font-weight: 500; }
.d11-rows h3 span { display: inline-block; width: 44px; font-size: 11px; letter-spacing: 0.16em; color: var(--mute); font-weight: 400; }
.d11-rows p { color: var(--ink-soft); }
.d11-split-body .d11-rows li { grid-template-columns: 150px 1fr; gap: 20px; padding: 20px 0; }
.d11-split-body .d11-rows p { font-size: 14px; }
.d11-rows--gap { margin-top: 44px; align-self: stretch; }
.d11-small { font-size: 13px; }
.d11-spacer { height: 140px; }
.d11-split--top { padding-top: var(--header); min-height: 100vh; }
.d11-twocol { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.d11-twocol .d11-title { position: sticky; top: calc(var(--header) + 40px); align-self: start; }

/* ---------- 매장 ---------- */
.d11-info { align-self: stretch; margin-top: 44px; border-top: 1px solid var(--ink); }
.d11-info > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.d11-info dt { color: var(--mute); font-size: 12px; letter-spacing: 0.04em; padding-top: 2px; }
.d11-map { aspect-ratio: 16 / 7; background: var(--tile); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--mute); font-size: 13px; }
.d11-map iframe { width: 100%; height: 100%; border: 0; }
.d11-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.d11-notes li { border-top: 1px solid var(--ink); padding-top: 22px; }
.d11-notes h3 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.d11-notes p { color: var(--ink-soft); font-size: 14px; }

/* ---------- 푸터 (예약 + 사업자 정보, 어두운 면) ---------- */
.d11-footer { background: var(--ink); color: #D9D2CA; }
.d11-footer-cta { padding: 140px var(--gutter) 120px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.d11-footer-cta .d11-label { color: #8F857B; }
.d11-footer-cta h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; line-height: 1.45; letter-spacing: -0.025em; color: #F5F3EF; }
.d11-footer-cta p { margin-top: 14px; font-size: 14px; color: #A99F95; }
.d11-footer-cta .d11-pills { justify-content: center; }
.d11-footer-cta .d11-pill { border-color: rgba(245,243,239,0.5); color: #F5F3EF; }
.d11-footer-cta .d11-pill:hover { background: #F5F3EF; color: var(--ink) !important; border-color: #F5F3EF; }
.d11-footer-cta .d11-pill--fill { background: #F5F3EF; color: var(--ink) !important; border-color: #F5F3EF; }
.d11-footer-cta .d11-pill--fill:hover { background: transparent; color: #F5F3EF !important; }
.d11-footer-info { display: grid; grid-template-columns: 1fr auto; gap: 32px; padding: 56px var(--gutter) 48px; font-size: 12px; line-height: 2; color: #8F857B; }
.d11-footer-info .d11-logo { display: inline-block; color: #F5F3EF; margin-bottom: 14px; font-size: 13px; }
.d11-footer-note { margin-top: 10px; font-size: 11px; color: #6F665D; }
.d11-footer-info .links { display: flex; gap: 24px; font-size: 12px; color: #D9D2CA; }

/* ---------- 전후 비교 (드래그) ---------- */
.d11-ba { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tile); --pos: 50%; user-select: none; }
.d11-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d11-ba .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.d11-ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: #fff; box-shadow: 0 0 0 0.5px rgba(31,26,22,0.2); pointer-events: none; }
.d11-ba-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: rgba(245,243,239,0.92);
  display: flex; align-items: center; justify-content: center; font-size: 15px; letter-spacing: 2px; color: var(--ink);
}
.d11-ba-tag { position: absolute; top: 14px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); background: rgba(245,243,239,0.85); padding: 3px 8px; pointer-events: none; }
.d11-ba-tag.is-b { left: 14px; } .d11-ba-tag.is-a { right: 14px; }
.d11-ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.d11-ba-note { margin-top: 12px; font-size: 11px; color: var(--mute); }
.d11-compare-grid { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.d11-compare-sec { padding-bottom: 40px; }

/* ---------- 사례 상세 (모달) ---------- */
.d11-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 40px; }
.d11-modal[hidden] { display: none; }
.d11-modal-back { position: absolute; inset: 0; background: rgba(31, 26, 22, 0.55); }
.d11-modal-box { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; width: min(1040px, 100%); max-height: calc(100vh - 80px); overflow: auto; background: var(--bg); }
.d11-modal-img { padding: 40px; display: flex; flex-direction: column; justify-content: center; background: var(--tile); }
.d11-modal-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.d11-modal-pages button { font: inherit; font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer; }
.d11-modal-pages button.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.d11-modal-thumb { width: 84px; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 24px; }
.d11-modal-body { padding: 64px 48px; display: flex; flex-direction: column; justify-content: center; }
.d11-modal-text { margin-top: 24px; color: var(--ink-soft); }
.d11-modal-line { margin-top: 18px; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.d11-modal-x { position: absolute; top: 12px; right: 16px; z-index: 1; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; font-weight: 300; line-height: 1; color: var(--ink); cursor: pointer; }

/* 모바일 하단 고정 예약 바 */
.d11-fixbar { display: none; }

/* ==========================================================
   반응형
   ========================================================== */
@media (max-width: 1024px) {
  .d11 { --gutter: 28px; }
  .d11-grid { grid-template-columns: repeat(2, 1fr); }
  .d11-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .d11-split { min-height: 0; }
}
@media (max-width: 768px) {
  .d11 { --gutter: 16px; --header: 56px; font-size: 14px; padding-bottom: 60px; }
  .d11-header { grid-template-columns: 40px 1fr 40px; }
  .d11-logo { text-align: center; font-size: 13px; }
  .d11-nav, .d11-util { display: none; }
  .d11-menu-btn { display: block; }
  .d11-drawer {
    display: none; position: fixed; top: var(--header); left: 0; right: 0; bottom: 0; z-index: 49;
    background: var(--bg); padding: 24px var(--gutter);
  }
  .d11-drawer.is-open { display: block; }
  .d11-drawer a { display: block; padding: 18px 0; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
  .d11-drawer .d11-pill { display: flex; margin-top: 32px; height: 50px; font-size: 14px; border-bottom: 1px solid var(--ink); }

  .d11-hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .d11-hero::after { display: none; }
  .d11-slide { position: static; display: none; opacity: 1; visibility: visible; }
  .d11-slide.is-on { display: block; }
  .d11-slide picture { height: 64vh; }
  .d11-dots { right: auto; left: var(--gutter); bottom: auto; top: calc(64vh - 30px); }
  .d11-modal { padding: 0; }
  .d11-modal-box { grid-template-columns: 1fr; max-height: 100vh; height: 100%; }
  .d11-modal-body { padding: 32px var(--gutter) 48px; justify-content: flex-start; }
  .d11-modal-img { padding: 56px var(--gutter) 16px; }
  .d11-compare-grid { grid-template-columns: 1fr; gap: 36px; }
  .d11-hero img { object-position: 50% 50%; }
  .d11-hero-copy { position: static; padding: 36px var(--gutter) 64px; max-width: none; }
  .d11-scroll { display: none; }
  .d11-pills .d11-pill { flex: 1 1 0; }

  .d11-statement { padding: 96px var(--gutter); text-align: left; }
  .d11-statement p.big { font-size: 19px; }

  .d11-split { grid-template-columns: 1fr; }
  .d11-split-img { aspect-ratio: 4 / 5; }
  .d11-split--rev .d11-split-img { order: 0; }
  .d11-split-body { padding: 48px var(--gutter) 88px; }

  .d11-block { padding: 88px var(--gutter); }
  .d11-after-grid { margin-top: 64px; }
  .d11-block-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 36px; }
  .d11-trio { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .d11-trio figure { scroll-snap-align: start; }

  .d11-grid, .d11-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .d11-tile .cap { padding: 12px 12px 28px; }
  .d11-tile .line { display: none; }
  .d11-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .d11-tabs button { white-space: nowrap; }

  .d11-pagehead { padding: calc(var(--header) + 64px) var(--gutter) 56px; }
  .d11-band { height: 52vh; }
  .d11-rows li, .d11-twocol, .d11-split-body .d11-rows li { grid-template-columns: 1fr; gap: 6px; }
  .d11-twocol { gap: 32px; }
  .d11-twocol .d11-title { position: static; }
  .d11-spacer { height: 72px; }
  .d11-split--top { min-height: 0; }
  .d11-split--top .d11-split-img { aspect-ratio: 4 / 3; }
  .d11-notes { grid-template-columns: 1fr; gap: 28px; }
  .d11-info > div { grid-template-columns: 80px 1fr; }
  .d11-map { aspect-ratio: 4 / 3; }

  .d11-footer-cta { padding: 96px var(--gutter) 80px; }
  .d11-footer-info { grid-template-columns: 1fr; }

  .d11-fixbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    background: rgba(245, 243, 239, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .d11-fixbar .d11-pill { height: 44px; }
}
