/* =========================================
   새벽인테리어 — Design system
   ========================================= */

:root {
  /* Palette */
  --ink: #1c1815;
  --ink-soft: #4a423b;
  --muted: #6b6158; /* 작은 글씨도 배경 대비 4.5:1 이상 (예전 #8a7f75 는 3.5:1 안팎) */
  --brown: #7a5c42;
  --brown-dark: #4f3a29;
  --brown-light: #a8886a;
  --sand: #f6f1e9;
  --sand-deep: #ece3d6;
  --paper: #fffdfa;
  --line: #e3d9cb;
  --line-soft: rgba(122, 92, 66, 0.14);
  --danger: #b4462f;
  --success: #2f6b4a;

  /* Shape & motion */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(28, 24, 21, 0.04), 0 4px 12px rgba(28, 24, 21, 0.04);
  --shadow-md: 0 2px 4px rgba(28, 24, 21, 0.04), 0 12px 32px rgba(28, 24, 21, 0.07);
  --shadow-lg: 0 4px 8px rgba(28, 24, 21, 0.05), 0 24px 64px rgba(28, 24, 21, 0.1);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Layout */
  --nav-h: 72px;
  --banner-h: 30px; /* 데모 배너의 대략적인 높이 — 로드 직후 실제 값으로 교체됨 */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--banner-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system,
    "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 700;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* hidden 속성은 언제나 숨김이 되도록.
   브라우저 기본값 [hidden]{display:none} 은 display 를 지정한 클래스에 밀리기 때문에,
   JS 로 .hidden 을 토글하는 요소가 안 사라지는 문제가 생깁니다. */
[hidden] { display: none !important; }

::selection {
  background: var(--brown);
  color: #fff;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 760px; }

.section { padding: 112px 0; }

.section-alt { background: var(--sand); }

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    color 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--brown);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brown-dark);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--brown-dark);
  border-color: var(--line);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: #fff;
  border-color: var(--brown-light);
}

.btn-dark {
  width: 100%;
  background: var(--ink);
  color: #fff;
  padding: 1.05rem 2rem;
  font-size: 1rem;
}

.btn-dark:hover { background: #000; box-shadow: var(--shadow-md); }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Navigation ---------- */
/* 안내 띠가 없는 페이지: 띠 자리만큼 비워 두지 않습니다 (스크립트보다 먼저 적용되도록 CSS 에서도) */
:root:not(:has(.demo-banner)) { --banner-h: 0px; }

.demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  /* 높이를 고정하지 않고 글자에 맞춰 줄어들게 둡니다.
     --banner-h 는 아래 콘텐츠 여백 계산용이며, 실제 높이는 script.js 가 재서 넣습니다. */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px;
  background: var(--ink);
  color: #f3ebe1;
  font-size: 0.74rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: center;
  word-break: keep-all; /* 한글이 글자 중간에서 끊기지 않게 */
}

.nav {
  position: fixed;
  top: var(--banner-h);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(255, 253, 250, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(28, 24, 21, 0.04);
}

/* backdrop-filter 를 못 쓰는 브라우저에서는 반투명 배경만 남아
   바 아래로 지나가는 본문 글자가 비쳐 겹쳐 보입니다 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.is-scrolled { background: var(--paper); }
}

/* 모바일 메뉴가 열려 있는 동안은 스크롤 위치와 무관하게 배경을 채워
   로고 줄과 메뉴가 한 덩어리로 보이게 합니다 */
.nav.is-menu-open {
  background: rgba(255, 253, 250, 0.97);
  backdrop-filter: blur(14px);
  border-bottom-color: transparent;
  box-shadow: none;
}

.nav-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

/* 로고 이미지 (assets/img/brand/). 높이만 정하고 너비는 비율대로 */
.nav-logo img {
  display: block;
  height: 36px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.nav-menu a:hover { color: var(--brown); }

.nav-menu .nav-cta {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--brown);
  color: #fff;
  font-weight: 600;
}

.nav-menu .nav-cta:hover { background: var(--brown-dark); color: #fff; }

/* 포트폴리오 — 견적 문의보다 한 단계 약한 외곽선 버튼 */
.nav-menu .nav-portfolio {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown-dark);
  font-weight: 600;
}

.nav-menu .nav-portfolio:hover {
  border-color: var(--brown-light);
  background: var(--sand);
  color: var(--brown-dark);
}

.nav-menu .nav-portfolio[aria-current="page"] {
  border-color: var(--brown-light);
  background: var(--sand);
}

/* 섹션 제목 옆 더보기 링크 */
.section-head-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown);
  text-decoration: none;
}

.section-head-link:hover { color: var(--brown-dark); text-decoration: underline; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + var(--banner-h) + 96px) 24px 0;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 50% -8%, #fff 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(620px 420px at 12% 8%, rgba(168, 136, 106, 0.22), transparent 68%),
    radial-gradient(680px 440px at 88% 16%, rgba(122, 92, 66, 0.16), transparent 70%),
    linear-gradient(180deg, var(--sand-deep) 0%, var(--sand) 46%, var(--paper) 100%);
  z-index: -1;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  animation: rise 0.9s var(--ease) both;
}

/* 첫 화면 제목 위 취급 품목 */
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--brown);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  word-break: keep-all;
}

.hero h1 {
  word-break: keep-all;
  font-size: clamp(2.1rem, 6vw, 3.7rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 strong {
  font-weight: 800;
  background: linear-gradient(120deg, var(--brown-dark), var(--brown-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(0.96rem, 1.6vw, 1.1rem);
  color: var(--ink-soft);
  margin-bottom: 38px;
  word-break: keep-all; /* 한글을 띄어쓰기에서 줄바꿈 */
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-note {
  margin: 44px auto 0;
  padding-bottom: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  word-break: keep-all; /* 한글을 글자 중간이 아니라 띄어쓰기에서 줄바꿈 */
  animation: rise 0.9s 0.15s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--brown-light);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--sand);
  color: var(--brown);
  margin-bottom: 20px;
}

.feature-icon svg { width: 23px; height: 23px; }

.feature-card h3 {
  font-size: 1.14rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.93rem;
  color: var(--muted);
}

/* ---------- Works ---------- */
/* 대표 사례 1장(전폭) + 나머지 3장(3열) — 균일한 2×2 격자보다 시선이 먼저 붙습니다 */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
}

.work-card {
  grid-column: span 2;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.work-card-featured { grid-column: span 6; }
.work-card-featured .work-thumb { aspect-ratio: 16 / 9; }
.work-card-featured .work-meta { padding: 24px 28px 30px; }
.work-card-featured .work-meta h3 { font-size: 1.32rem; }

.work-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  /* 이미지 로딩 전/실패 시 비어 보이지 않도록 */
  background: var(--sand-deep);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-card:hover .work-thumb img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .work-card:hover .work-thumb img { transform: none; }
}

.work-meta { padding: 22px 24px 26px; }

.work-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--brown);
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.work-meta h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.work-meta p {
  font-size: 0.87rem;
  color: var(--muted);
}

/* ---------- Process ---------- */
.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}

.process-item {
  position: relative;
  padding: 30px 22px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.process-item:hover {
  border-color: var(--brown-light);
  box-shadow: var(--shadow-sm);
}

.process-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brown-light);
  margin-bottom: 14px;
}

.process-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.process-item p {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brown-light);
  border-bottom: 2px solid var(--brown-light);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}

.faq-item[open] summary { color: var(--brown); }
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }

.faq-item summary:hover { color: var(--brown); }

.faq-body {
  padding: 0 4px 24px;
  font-size: 0.93rem;
  color: var(--muted);
  animation: fadeIn 0.3s var(--ease) both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Quote form ---------- */
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow-md);
}

.quote-card .section-head {
  max-width: none;
  text-align: center;
  margin-bottom: 44px;
}

.quote-card .section-head p { font-size: 0.93rem; }

.quote-form { max-width: 100%; }

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--ink);
  padding-bottom: 12px;
  margin: 40px 0 20px;
  border-bottom: 1px solid var(--line);
}

.form-section-title:first-of-type { margin-top: 0; }

.form-section-title span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--sand);
  color: var(--brown);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.form-row { margin-bottom: 18px; }

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-label-row label,
.field-label-row legend {
  margin-bottom: 8px;
}

.form-fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}

.form-fieldset legend,
.fieldset-title {
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field-label-row .fieldset-title {
  margin-bottom: 8px;
}

/* 동의 전 고지 — 개인정보 보호법 제15조제2항 (목적·항목·보유 기간·거부권)
   기본은 접힌 한 줄, '내용 보기'를 누르면 펼침 (details/summary, 스크립트 없음) */
.consent-notice {
  margin: 8px 0 16px;
  border: 1px solid var(--line, #e7ded3);
  border-radius: 12px;
  background: var(--sand, #f6f1ea);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-soft);
  word-break: keep-all;
}
.consent-notice-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  border-radius: 12px;
}
.consent-notice-summary::-webkit-details-marker { display: none; }
.consent-notice-summary::marker { content: ""; }
.consent-notice-summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.consent-notice-title {
  font-weight: 700;
  color: var(--ink);
}
.consent-notice-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid var(--line, #e7ded3);
  border-radius: 999px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.consent-notice-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.consent-notice[open] .consent-notice-toggle::after {
  transform: translateY(1px) rotate(-135deg);
}
.consent-notice .when-open { display: none; }
.consent-notice[open] .when-open { display: inline; }
.consent-notice[open] .when-closed { display: none; }
.consent-notice-summary:hover .consent-notice-toggle { border-color: var(--ink-soft); }
.consent-notice-body {
  padding: 0 14px 12px;
}
.consent-notice[open] .consent-notice-summary {
  padding-bottom: 6px;
}
.consent-notice dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0 0 8px;
}
.consent-notice dt {
  font-weight: 600;
  white-space: nowrap;
}
.consent-notice dd {
  margin: 0;
}
.consent-notice p {
  margin: 0 0 4px;
}
.consent-notice a {
  color: var(--ink);
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  .consent-notice-toggle::after { transition: none; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.unknown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}

.unknown-toggle input {
  width: 14px;
  height: 14px;
}

.unknown-toggle:has(input:checked) { color: var(--brown); font-weight: 600; }

/* 위의 .form-row label(블록·굵게·아래 여백)이 체크박스 줄과 '모르겠어요' 토글에도 먹어서
   체크박스가 글자보다 떠 보이고 글씨가 전부 굵게 나오던 것을 바로잡습니다.
   (선택된 시공 항목을 굵게 하는 .item-category … :has(input:checked) 는 더 구체적이라 그대로 적용됩니다) */
.form-row label.checkbox-label {
  display: flex;
  margin-bottom: 0;
  font-weight: 400;
}
.form-row label.checkbox-label-all { font-weight: 700; }
.form-row label.unknown-toggle {
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.form-row label.unknown-toggle:has(input:checked) { color: var(--brown); font-weight: 600; }

.form-row input:disabled,
.form-row select:disabled {
  background: var(--sand);
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
}

.required { color: var(--danger); }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-row textarea { resize: vertical; min-height: 110px; }

.form-row input::placeholder,
.form-row textarea::placeholder { color: #b9afa2; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brown-light);
  box-shadow: 0 0 0 3px rgba(168, 136, 106, 0.16);
}

.form-row input.field-invalid,
.form-row select.field-invalid,
.form-row textarea.field-invalid {
  border-color: var(--danger);
  background: #fdf4f2;
}

.form-row input.field-invalid:focus,
.form-row select.field-invalid:focus,
.form-row textarea.field-invalid:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 70, 47, 0.14);
}

.form-row-checkbox.field-invalid {
  border-color: var(--danger);
  background: #fdf4f2;
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7f75' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 16px;
  padding-right: 2.4rem;
}

.form-note {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--sand);
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

/* Item categories */
.item-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.item-category {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 20px 18px 22px;
}

.item-category-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brown);
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.item-category-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-soft);
  cursor: pointer;
}

.item-category .checkbox-label {
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.item-category .checkbox-label:hover { background: rgba(122, 92, 66, 0.08); }

.item-category .checkbox-label:has(input:checked) {
  background: rgba(122, 92, 66, 0.14);
  color: var(--brown-dark);
  font-weight: 600;
}

/* .form-row input 의 width:100%·안쪽 여백이 체크박스·라디오에 먹으면
   동그라미가 칸을 다 차지해 글자가 한 글자씩 세로로 쪼개집니다 */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brown);
  padding: 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.item-consult-toggle {
  display: flex;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.item-consult-toggle:has(input:checked) {
  border-style: solid;
  border-color: var(--brown-light);
  background: var(--sand);
  color: var(--brown-dark);
  font-weight: 600;
}

/* 견적 폼 — 도배를 고르면 나오는 '원하는 벽지' */
.wallpaper-pick {
  margin-top: 14px;
  padding: 18px 18px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.wallpaper-pick-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 12px;
}
.wallpaper-pick-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}
.wallpaper-pick-optional {
  font-weight: 400;
  color: var(--muted);
}
.wallpaper-pick-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brown);
  text-decoration: none;
}
.wallpaper-pick-link:hover { text-decoration: underline; }
.wallpaper-pick-link svg { width: 14px; height: 14px; }

.wallpaper-type {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.wallpaper-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), color 0.16s var(--ease);
}
.wallpaper-chip:hover { border-color: var(--brown-light); }
.wallpaper-chip:has(input:checked) {
  border-color: var(--brown);
  background: rgba(122, 92, 66, 0.1);
  color: var(--brown-dark);
  font-weight: 600;
}
.wallpaper-chip:has(input:focus-visible) {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
}
.wallpaper-chip input[type="radio"] {
  accent-color: var(--brown);
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
}
.wallpaper-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
@media (max-width: 560px) {
  .wallpaper-detail { grid-template-columns: 1fr; }
}

.item-category.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.form-row-checkbox {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.form-row-checkbox .checkbox-label { font-size: 0.88rem; }

.checkbox-label-all {
  font-weight: 700;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.checkbox-sublist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 26px;
}
.form-row-checkbox a { color: var(--brown); text-underline-offset: 3px; }

.btn-submit { margin-top: 22px; }

.form-result {
  margin-top: 14px;
  text-align: center;
  font-size: 0.89rem;
  min-height: 1.4em;
}

.form-result.success { color: var(--success); }
.form-result.error { color: var(--danger); }

/* ---------- Privacy policy page ---------- */
/* .policy-section / .quote-page 의 상단 여백은 파일 맨 아래에서 정의합니다.
   여기 두면 뒤따라오는 @media 의 .section 규칙에 덮여버립니다. */

/* 견적 문의 전용 페이지 (quote.html) */
.quote-page .policy-back-row { margin-bottom: 20px; }

.policy-back-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 28px;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.policy-cross-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--brown);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.policy-cross-link:hover { color: var(--brown-dark); text-decoration: underline; }

.policy-back:hover { color: var(--brown); }

.policy-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
}
.policy-updated a {
  color: inherit;
  text-decoration: underline;
}

/* 처리방침·약관 개정 안내 (시행 7일 전 공지) */
.policy-revision {
  margin: 0 0 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brown);
  border-radius: var(--radius-sm);
  background: var(--sand);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--ink-soft);
  word-break: keep-all;
}
.policy-revision p { margin: 0 0 6px; }
.policy-revision ul { margin: 0; padding-left: 1.2em; }
.policy-revision strong { color: var(--ink); }

.policy-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-sm);
}

.policy-lead {
  font-size: 0.96rem;
  color: var(--ink-soft);
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.policy-block { margin-bottom: 30px; }
.policy-block:last-child { margin-bottom: 0; }

.policy-block h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  margin-bottom: 12px;
}

.policy-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--sand);
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 800;
}

.policy-block p,
.policy-block li,
.policy-lead {
  word-break: keep-all; /* 한글을 띄어쓰기에서 줄바꿈 */
  overflow-wrap: anywhere; /* 아주 긴 주소·영문은 넘치지 않게 */
}

.policy-block p,
.policy-block li {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.policy-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-block li {
  padding-left: 18px;
  position: relative;
}

.policy-block li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brown-light);
}

.policy-block li strong {
  color: var(--ink);
  font-weight: 700;
}

.policy-block a {
  color: var(--brown);
  text-underline-offset: 3px;
}

.policy-note {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--sand);
  font-size: 0.86rem !important;
}

.policy-block ul + p,
.policy-table-wrap + ul { margin-top: 12px; }

/* 위탁·국외 이전 표 — 휴대폰에서는 표만 옆으로 넘깁니다 */
.policy-table-wrap {
  overflow-x: auto;
  margin: 12px 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.policy-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.85rem;
  color: var(--ink-soft);
  word-break: keep-all;
}

.policy-table th,
.policy-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.policy-table th {
  background: var(--sand);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.policy-table tr:last-child td { border-bottom: none; }
.policy-table small { color: var(--muted); }

/* 하단의 개인정보처리방침 링크는 다른 링크와 구별되게 */
.footer-col a.footer-privacy { color: #fff; font-weight: 700; }
.footer-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links a.footer-privacy { color: #fff; font-weight: 700; }

.policy-cta {
  display: flex;
  width: fit-content;
  margin: 40px auto 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  padding: 72px 0 32px;
  font-size: 0.88rem;
}

.footer .nav-logo { color: #fff; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 260px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.86rem;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-col a,
.footer-col p,
.footer-col .footer-contact {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.18s var(--ease);
}

.footer-col a:hover { color: #fff; }

/* 클릭되지 않는 안내용 연락처 — 링크처럼 보이지 않게 커서만 기본값 */
.footer-col .footer-contact,
.contact-text { cursor: default; }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-biz { line-height: 1.8; word-break: keep-all; }
.nowrap { white-space: nowrap; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.mobile-cta .btn { flex: 1; padding: 0.85rem 1rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 카드가 .reveal 이기도 하면, 위 규칙이 카드의 hover 떠오름·전환을 덮어씁니다. 둘 다 살립니다. */
.feature-card.reveal,
.wp-teaser-card.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease),
    box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature-card.reveal.is-visible:hover,
.wp-teaser-card.reveal.is-visible:hover {
  transform: translateY(-5px);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
/* 메뉴 항목이 7개라 태블릿 폭에서 간격을 좁혀 한 줄을 유지 */
@media (max-width: 1040px) {
  .nav-menu { gap: 18px; }
  .nav-menu a { font-size: 0.88rem; }
  .nav-menu .nav-portfolio,
  .nav-menu .nav-cta { padding: 0.5rem 0.9rem; }
}
/* 769~900px: 햄버거 메뉴로 바뀌기 직전 폭. 글자가 두 줄로 꺾이지 않게 더 줄임 */
@media (min-width: 769px) and (max-width: 900px) {
  .nav-logo img { height: 28px; width: auto; }
  .nav-menu { gap: 12px; }
  .nav-menu a { font-size: 0.8rem; white-space: nowrap; }
  .nav-menu .nav-portfolio,
  .nav-menu .nav-cta { padding: 0.45rem 0.75rem; }
}

@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(4, 1fr); }
  .work-card { grid-column: span 2; }
  .work-card-featured { grid-column: span 4; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  /* 배너 문구가 2줄로 접히므로 높이를 함께 늘림 */
  :root { --banner-h: 42px; } /* 모바일은 두 줄로 접힐 수 있어 조금 크게 잡음 */
  .demo-banner { font-size: 0.7rem; }
  .nav-logo img { height: 30px; }

  .nav-menu {
    /* 네비게이션 바(fixed)를 기준으로 바로 아래에 붙입니다.
       top 을 배너·바 높이로 계산하면 배너 문구가 몇 줄로 접히느냐에 따라
       어긋나서 그 틈으로 히어로가 비칩니다. top:100% 는 항상 바 바로 아래입니다. */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    /* 로고 줄과 첫 메뉴 사이가 벌어지지 않도록 위 여백 없이 붙임 */
    padding: 0 24px 28px;
    background: rgba(255, 253, 250, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s var(--ease);
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.98rem;
  }

  .nav-menu .nav-portfolio {
    margin-top: 14px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 14px 4px;
    text-align: center;
  }

  .nav-menu .nav-portfolio:hover,
  .nav-menu .nav-portfolio[aria-current="page"] { background: transparent; }

  .nav-menu .nav-cta {
    margin-top: 14px;
    border-bottom: none;
    text-align: center;
    padding: 0.9rem 1rem;
  }

  .nav-toggle { display: flex; }

  /* 좁은 화면에서는 본문이 바 아래로 지나갈 때 글자가 비치지 않도록 불투명 처리 */
  .nav.is-scrolled { background: var(--paper); }

  .hero { padding-top: calc(var(--nav-h) + var(--banner-h) + 64px); }
  .work-grid { grid-template-columns: 1fr; gap: 20px; }
  .work-card, .work-card-featured { grid-column: span 1; }
  .work-card-featured .work-thumb { aspect-ratio: 4 / 3; }
  .work-card-featured .work-meta { padding: 22px 24px 26px; }
  .work-card-featured .work-meta h3 { font-size: 1.08rem; }
  .process-list { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .item-category-grid { grid-template-columns: 1fr; }
  .quote-card { padding: 40px 22px; }

  .footer { padding-bottom: 104px; }
  /* 하단 고정 CTA 가 없는 페이지는 여백을 비워두지 않음 */
  .no-mobile-cta .footer { padding-bottom: 56px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .mobile-cta { display: flex; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* 데모 안내 문구 — 실제 사진으로 교체 후 삭제 */
/* ---------- 시공 전·후 사례 (홈) ---------- */
.ba-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.ba-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--paper);
}
.ba-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand-deep);
}
.ba-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: rgba(28, 24, 21, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  pointer-events: none;
}
.ba-label-after { background: var(--brown); }
.ba-card .work-meta { word-break: keep-all; }
@media (max-width: 960px) {
  .ba-list { grid-template-columns: 1fr; gap: 20px; }
}

.works-note {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- 벽지 (홈 미리보기 + wallpaper.html) ----------
   제품 사진은 제조사 저작물이라 쓰지 않고, 종류별 질감을 CSS 견본(swatch)으로만 표현합니다.
   제품 이름 카드는 제조사 사이트로 새 창 링크. */
.nav-menu a[aria-current="page"]:not(.nav-portfolio):not(.nav-cta) { color: var(--brown); }

.wp-swatch { background-color: var(--sand-deep); }
.wp-swatch-premium {
  background:
    radial-gradient(ellipse at 18% 22%, rgba(255, 255, 255, 0.55), transparent 42%),
    radial-gradient(ellipse at 78% 72%, rgba(79, 58, 41, 0.14), transparent 50%),
    radial-gradient(circle at 56% 34%, rgba(255, 255, 255, 0.28), transparent 30%),
    radial-gradient(circle at 30% 80%, rgba(79, 58, 41, 0.08), transparent 35%),
    linear-gradient(140deg, #d8c8b2, #bea78b);
}
.wp-swatch-silk {
  background: linear-gradient(115deg, #e9e0d2 0%, #fbf8f3 30%, #e4dacb 52%, #f7f2ea 74%, #e7ddcf 100%);
}
.wp-swatch-paper {
  background-color: #eee6d9;
  background-image:
    repeating-linear-gradient(0deg, rgba(79, 58, 41, 0.06) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(79, 58, 41, 0.045) 0 1px, transparent 1px 5px);
}

/* 홈 — 벽지 미리보기 카드 */
.wp-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.wp-teaser-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.wp-teaser-card:hover {
  transform: translateY(-5px);
  border-color: var(--brown-light);
  box-shadow: var(--shadow-md);
}
.wp-teaser-card:focus-visible,
.wp-brand-card:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}
.wp-teaser-card .wp-swatch {
  height: 120px;
  border-bottom: 1px solid var(--line);
}
.wp-teaser-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 26px 26px;
}
.wp-teaser-body h3 {
  font-size: 1.14rem;
  margin-bottom: 8px;
}
.wp-teaser-body p {
  font-size: 0.93rem;
  color: var(--muted);
  word-break: keep-all;
}
.wp-teaser-body .wp-teaser-brands {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.wp-teaser-go {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brown);
}

/* wallpaper.html */
.wp-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -24px 0 40px;
}
.wp-jump a {
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.wp-jump a:hover {
  border-color: var(--brown-light);
  color: var(--brown-dark);
}

.wp-type { padding: 40px 0; }
.wp-type + .wp-type { border-top: 1px solid var(--line); }

.wp-type-head {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}
.wp-type-head .wp-swatch {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.wp-type-num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brown-light);
}
.wp-type h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 4px 0 10px;
}
.wp-type-lead {
  max-width: 640px;
  color: var(--ink-soft);
  word-break: keep-all;
}

.wp-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 22px;
}
.wp-facts div {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--sand);
}
.wp-facts dt {
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brown);
}
.wp-facts dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  word-break: keep-all;
}

.wp-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.wp-brand-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px 22px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.wp-brand-card:hover {
  transform: translateY(-3px);
  border-color: var(--brown-light);
  box-shadow: var(--shadow-sm);
}
.wp-brand-maker {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.wp-brand-name {
  font-size: 1.25rem;
  color: var(--ink);
}
.wp-brand-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown);
}
.wp-brand-go svg { width: 15px; height: 15px; flex-shrink: 0; }

.wp-note {
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--muted);
  word-break: keep-all;
}
.wp-cta {
  margin-top: 48px;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: var(--sand);
  text-align: center;
}
.wp-cta p {
  margin-bottom: 16px;
  color: var(--ink-soft);
  word-break: keep-all;
}

@media (max-width: 960px) {
  .wp-teaser-grid { grid-template-columns: 1fr; gap: 14px; }
  .wp-teaser-card { flex-direction: row; }
  .wp-teaser-card .wp-swatch {
    width: 112px;
    height: auto;
    flex-shrink: 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .wp-teaser-body { padding: 20px 22px; }
  .wp-teaser-go { padding-top: 12px; }
  .wp-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .wp-type-head { grid-template-columns: 1fr; gap: 16px; }
  .wp-type-head .wp-swatch { aspect-ratio: auto; height: 88px; }
  .wp-brand-grid { grid-template-columns: 1fr; gap: 10px; }
  .wp-brand-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    padding: 18px 20px;
  }
  .wp-brand-go { margin-top: 6px; flex-basis: 100%; }
  .wp-teaser-card .wp-swatch { width: 84px; }
}

/* =========================================
   고정 헤더 아래 첫 콘텐츠 여백
   -----------------------------------------
   @media 안의 `.section { padding: 88px 0 }` 이 같은 우선순위로 뒤에 오기 때문에,
   반드시 그 뒤(파일 맨 끝)에서 정의해야 덮이지 않습니다.
   ========================================= */
.policy-section,
.quote-page,
.pf-page,
.wp-page {
  padding-top: calc(var(--nav-h) + var(--banner-h) + 56px);
}

@media (max-width: 768px) {
  /* 좁은 화면에서는 바 바로 아래에 붙어 보이지 않도록 조금 더 띄웁니다 */
  .policy-section,
  .quote-page,
  .pf-page,
  .wp-page {
    padding-top: calc(var(--nav-h) + var(--banner-h) + 40px);
  }
}

/* ------------------------------------------------------------
   현장 주소 — 시/도 · 시·군·구 선택 + 상세 주소
   ------------------------------------------------------------ */
.region-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.region-selects select {
  width: 100%;
  min-width: 0; /* grid 안에서 select 가 칸을 밀고 나가는 것을 막습니다 */
}

/* 상세 주소는 위 두 칸 아래에 한 줄로 */
.region-detail {
  margin-top: 8px;
}

/* 좁은 화면에서는 시/도와 시·군·구도 위아래로 */
@media (max-width: 480px) {
  .region-selects { grid-template-columns: 1fr; }
}
