/* 꿈디자인 홈페이지 공통 스타일 */
:root {
  --ivory: #F8F4EC;
  --ivory2: #EFE8DC;
  --brown: #2B2420;
  --brown2: #5A4E45;
  --gold: #B48C46;
  --gold-text: #8A6A2E; /* 밝은 바탕 위 금색 글씨 (대비 확보) */
  --line: #E2D8C8;
  --white: #fff;
  --serif: 'Noto Serif KR', serif;
  --sans: Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --wrap: 1280px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ivory); color: var(--brown); font-family: var(--sans); font-size: 1rem; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; font-size: max(1rem, 1em); color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.eyebrow { font-size: .75rem; letter-spacing: .3em; color: var(--gold-text); font-weight: 700; text-transform: uppercase; }
.visually-hidden:where(:not(:focus-within, :active)) { position: absolute !important; clip-path: inset(50%) !important; overflow: hidden !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; white-space: nowrap !important; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--brown); color: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .8rem 1.75rem; background: var(--brown); color: var(--ivory); font-size: .95rem; font-weight: 600; text-decoration: none; border: 1px solid var(--brown); cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: #000; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn.gold:hover { background: #9c7836; }
.btn.line { background: transparent; color: var(--brown); }
.btn.line:hover { background: var(--brown); color: var(--ivory); }

/* 머리말 */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--ivory) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 48px; height: auto; }
.brand b { display: block; font-size: .95rem; letter-spacing: .28em; font-weight: 700; line-height: 1.2; }
.brand small { display: block; font-size: .72rem; color: var(--brown2); letter-spacing: .05em; }
.site-nav ul { display: flex; gap: 2rem; align-items: center; font-size: .95rem; }
.site-nav a { text-decoration: none; padding-block: .5rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--gold-text); }
.site-nav .btn { min-height: 42px; padding: .55rem 1.25rem; color: var(--white); }
@media (max-width: 860px) {
  .site-nav li:not(.keep) { display: none; }
  .brand img { width: 40px; }
}

/* 첫 화면 */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; min-height: min(760px, calc(100svh - var(--header-h))); }
.hero .copy { padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem) var(--pad); display: flex; flex-direction: column; justify-content: center; max-width: 680px; margin-left: auto; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.35; margin: 1.1rem 0 1.3rem; }
.hero .lead { color: var(--brown2); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero .cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.hero .ph { position: relative; min-height: 360px; }
.hero .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .badge { position: absolute; left: -2.5rem; bottom: 3.5rem; background: var(--white); padding: 1.3rem 1.75rem; box-shadow: 0 20px 40px rgb(60 40 20 / .12); }
.hero .badge b { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; color: var(--gold-text); line-height: 1.2; }
.hero .badge span { display: block; font-size: .82rem; color: var(--brown2); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero .ph { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .hero .badge { left: auto; right: 1rem; bottom: -1.5rem; padding: .9rem 1.2rem; }
  .hero .badge b { font-size: 1.4rem; }
  .hero .copy { margin: 0; padding-top: 3rem; }
}

/* 공통 섹션 */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-top: .6rem; line-height: 1.35; }
.section .intro { color: var(--brown2); margin-top: 1rem; max-width: 36rem; }
.alt { background: var(--ivory2); }

/* 다른 점 */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 3rem; }
.why li { background: var(--white); padding: 2.5rem 2rem; border-top: 2px solid var(--gold); }
.why em { font-style: normal; font-family: var(--serif); color: var(--gold-text); font-size: 1.75rem; }
.why h3 { font-size: 1.3rem; margin: .75rem 0 .6rem; }
.why p { color: var(--brown2); font-size: .95rem; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; gap: 1rem; } .why li { padding: 1.75rem 1.5rem; } }

/* 대표 사례 */
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.more { text-decoration: none; border-bottom: 1px solid var(--brown); padding-bottom: .2rem; font-weight: 600; }
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.75rem; }
.case a { text-decoration: none; display: block; }
.case .ph { aspect-ratio: 3 / 4; overflow: hidden; background: var(--line); }
.case img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case a:hover img { transform: scale(1.04); }
.case h3 { font-size: 1.1rem; margin-top: .9rem; }
.case span { font-size: .85rem; color: var(--brown2); }
@media (max-width: 960px) { .cases { grid-template-columns: repeat(2, 1fr); } }

/* 진행 과정 */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 3.5rem; position: relative; counter-reset: step; }
.steps::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px; background: var(--gold); }
.steps li { text-align: center; position: relative; padding-inline: .5rem; }
.steps b { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--gold); color: var(--gold-text); font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.steps h3 { font-size: 1.1rem; margin-top: 1rem; }
.steps p { font-size: .9rem; color: var(--brown2); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps::before { top: 0; bottom: 0; left: 27px; right: auto; width: 1px; height: auto; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.25rem; text-align: left; padding: 0; }
  .steps b { grid-row: span 2; }
  .steps h3 { margin-top: .3rem; }
}

/* 예상 비용 */
.price { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 4rem); align-items: start; }
.price table { width: 100%; border-collapse: collapse; }
.price th, .price td { padding: 1.2rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.price thead th { font-size: .82rem; color: var(--brown2); font-weight: 500; }
.price tbody th { font-weight: 600; }
.price td.ask { font-family: var(--serif); font-size: 1.15rem; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } }

/* 자주 묻는 질문 */
.faq { margin-top: 2.5rem; border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .5rem; top: 1.1rem; font-size: 1.4rem; color: var(--gold-text); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 1.4rem; color: var(--brown2); }

/* 상담 신청서 */
.form-box { background: var(--brown); color: var(--ivory); padding: clamp(2rem, 6vw, 4.5rem); }
.form-box h2 { color: var(--white); }
.form-box .intro { color: #d8cdbd; }
.form-box .eyebrow { color: #d9b872; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin-top: 2.5rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label, .field legend, .fs legend { font-size: .9rem; color: #e6dccd; font-weight: 600; }
.req { color: #f0c987; font-weight: 500; font-size: .8rem; margin-left: .3rem; }
.opt { color: #b6a998; font-weight: 400; font-size: .8rem; margin-left: .3rem; }
.field input, .field textarea { background: transparent; border: 0; border-bottom: 1px solid #a3968a; padding: .7rem 0; min-height: 48px; color: var(--white); border-radius: 0; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a99b8d; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-bottom: 2px solid #f0c987; }
.help { font-size: .8rem; color: #b6a998; }
.err { display: none; font-size: .85rem; color: #ffb4a0; }
:is(:user-invalid, [aria-invalid="true"]) ~ .err { display: block; }
.field :is(input, textarea):user-invalid, .field [aria-invalid="true"] { border-bottom-color: #ffb4a0; }
fieldset.fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border: 1px solid #8f8276; font-size: .9rem; color: #e6dccd; cursor: pointer; }
.chips input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid #f0c987; outline-offset: 2px; }
.ref-line { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.ref-line input { flex: 1; min-width: 12rem; }
.ref-line button { background: none; border: 1px solid #8f8276; color: #e6dccd; padding: .4rem .9rem; min-height: 40px; cursor: pointer; }
.consent { margin-top: 2.25rem; padding: 1.25rem 1.4rem; background: rgb(255 255 255 / .06); font-size: .85rem; color: #d8cdbd; }
.consent dl { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; }
.consent dt { color: #e6dccd; font-weight: 600; }
.consent .check { display: flex; gap: .6rem; align-items: center; margin-top: 1rem; font-size: .95rem; color: var(--white); flex-wrap: wrap; }
.consent .check input { width: 1.25rem; height: 1.25rem; accent-color: var(--gold); }
.consent a { color: #f0c987; }
.submit-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.submit-row small { color: #b6a998; }
#form-status { margin-top: 1rem; min-height: 1.5rem; font-weight: 600; color: #f0c987; }
#form-status.ok { color: #c6e8b5; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } .consent dl { grid-template-columns: 1fr; } }

/* 바닥글 */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 7rem; font-size: .85rem; color: var(--brown2); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer strong { color: var(--brown); }
.site-footer nav a { margin-left: 1.25rem; }
@media (min-width: 861px) { .site-footer { padding-bottom: 2.5rem; } }

/* 떠 있는 상담 버튼 */
.float { position: fixed; right: 2rem; bottom: 2rem; display: flex; background: var(--brown); border-radius: 40px; overflow: hidden; box-shadow: 0 12px 30px rgb(0 0 0 / .25); z-index: 50; }
.float a { display: flex; align-items: center; gap: .4rem; padding: .95rem 1.4rem; color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; min-height: 52px; }
.float a + a { border-left: 1px solid #5a4e45; }
.float a.g { background: var(--gold); }
.float a:hover { background: #000; }
.float a.g:hover { background: #9c7836; }
@media (max-width: 860px) {
  .float { left: 0; right: 0; bottom: 0; border-radius: 0; padding-bottom: env(safe-area-inset-bottom); }
  .float a { flex: 1; justify-content: center; padding: .9rem .5rem; }
}

/* 포트폴리오 */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) 1rem; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: .6rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.filters button { border: 1px solid var(--line); background: var(--white); padding: .5rem 1.1rem; min-height: 44px; cursor: pointer; font-size: .95rem; }
.filters button[aria-pressed="true"] { background: var(--brown); color: var(--white); border-color: var(--brown); }
.projects { display: grid; gap: clamp(3rem, 7vw, 5rem); padding-block: 2.5rem 6rem; }
.project h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.project .meta { color: var(--brown2); font-size: .9rem; margin-top: .2rem; }
.project .top { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.project .ask { font-size: .9rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.thumbs button { padding: 0; border: 0; background: var(--line); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; display: block; width: 100%; }
.thumbs button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.thumbs button:hover img { transform: scale(1.04); }
@media (max-width: 720px) { .thumbs { grid-template-columns: repeat(2, 1fr); } }
.project[hidden] { display: none; }

/* 사진 크게 보기 */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100svh; color: var(--white); }
dialog.lightbox:modal { overscroll-behavior: contain; }
dialog.lightbox::backdrop { background: rgb(20 15 10 / .92); overflow: hidden; overscroll-behavior: contain; }
dialog.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; }
.lb-top h1 { font-size: 1rem; font-weight: 600; }
.lb-fig { display: grid; place-items: center; min-height: 0; padding: 0 4rem; }
.lb-fig img { max-width: 100%; max-height: calc(100svh - 9rem); width: auto; height: auto; object-fit: contain; }
.lb-bottom { display: flex; justify-content: center; gap: 1rem; align-items: center; padding: 1rem; }
.lightbox button { background: rgb(255 255 255 / .12); color: var(--white); border: 0; min-width: 48px; min-height: 48px; padding: .5rem 1rem; cursor: pointer; font-size: 1rem; }
.lightbox button:hover { background: rgb(255 255 255 / .25); }
@media (max-width: 720px) { .lb-fig { padding: 0 .5rem; } }

/* 일반 문서 (개인정보처리방침) */
.doc { max-width: 52rem; padding-block: 3rem 6rem; }
.doc h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.5rem; }
.doc h2 { font-size: 1.15rem; margin: 2.2rem 0 .7rem; }
.doc p, .doc li { color: var(--brown2); }
.doc ul { list-style: disc; padding-left: 1.3rem; }
.doc table { border-collapse: collapse; width: 100%; margin-top: .5rem; font-size: .92rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.doc th { background: var(--ivory2); }

/* 보조 */
.contact-sec { padding-bottom: clamp(4rem, 9vw, 7rem); }
.tel-link { color: #f0c987; }
.mt { margin-top: .6rem; }
.mt2 { margin-top: 2rem; }
.page-head .intro { color: var(--brown2); margin-top: 1rem; }
