/* ═══ 디자인 클론 출처 ═══
   참조: https://uapti.kosininterior.com/ (레이아웃만 추출, 컬러/타이포는 본 사이트 규칙 그대로)
   레이아웃: container-max 1080~1320px(참조) → 본 사이트는 스펙 지정값 1200px로 고정.
             카드 그리드는 1fr(모바일) → 2~3열(태블릿) → 3열(PC) 단계적 확장, gap 16~48px 넓은 여백.
   카드/모서리: 참조는 border-radius 2~6px 사용 → 본 사이트는 항상 0 (에디토리얼 각진 톤, 폐기 규칙 우선 적용)
   타이포: font-family만 참조(Pretendard Variable) 적용, letter-spacing은 본 사이트 규칙(0.02~0.04em 확장) 별도 적용
   구조: Hero=hero-overlay(모자이크 콜라주형) / 배치패턴=6 / 그리드=grid-2 / 레이블=label-none / 버튼=btn-solid
   ═══════════════════════ */

:root {
    --primary: #D4B8A8;
    --primary-dark: #b8967f;
    --text: #262220;
    --text-muted: #766f68;
    --border: #e4ddd6;
    --bg: #fdfbf9;
    --bg-alt: #f5f0ec;
    --container-max: 1200px;
}

* { box-sizing: border-box; }
*, *::before, *::after { border-radius: 0 !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', system-ui, sans-serif;
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: 0.02em; margin: 0; line-height: 1.35; }
p { margin: 0; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 7.5rem 0; }
@media (max-width: 768px) { section { padding: 4rem 0; } }

/* ===== 버튼 (H-5: btn-solid) ===== */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    border-radius: 0; padding: 0.85rem 1.9rem; background: var(--primary); color: #fff;
    border: none; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: background .25s ease;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.85rem; }
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    border-radius: 0; padding: 0.85rem 1.9rem; background: transparent; color: var(--text);
    border: 1px solid var(--text); font-weight: 700; font-size: 0.95rem; transition: all .25s ease;
}
.btn-outline:hover { background: var(--text); color: #fff; }

/* ===== 섹션 레이블 (H-4: label-none — 별도 배지 없이 제목 크기/여백으로 위계 표현) ===== */
.section-eyebrow { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.section-head { max-width: 640px; margin: 0 0 4rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { margin-top: 0.85rem; color: var(--text-muted); font-size: 1rem; }

/* ===== Header ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(253,251,249,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand-mark { display: flex; flex-direction: column; line-height: 1.2; }
.brand-mark .brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: 0.02em; }
.brand-mark .brand-sub { font-size: 0.7rem; color: var(--text-muted); }
.main-nav { display: flex; gap: 2.25rem; }
.main-nav a { font-size: 0.92rem; font-weight: 600; }
.main-nav a:hover { color: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }
@media (max-width: 768px) {
    .main-nav { position: fixed; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; gap: 0; padding: 0.5rem 1.25rem 1rem; border-bottom: 1px solid var(--border); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s ease; }
    .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .main-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
    .nav-toggle { display: flex; }
    .header-actions .btn-primary.btn-sm { display: none; }
}

/* ===== Hero (hero-overlay: 모자이크 콜라주형) ===== */
.hero-overlay { position: relative; margin-top: 72px; min-height: 92vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg-split { position: absolute; inset: 0; display: flex; }
.hero-bg-split img { width: 50%; height: 100%; object-fit: cover; animation: hero-kenburns 22s ease-in-out infinite alternate; }
@keyframes hero-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-overlay::after { content: ""; position: absolute; inset: 0; background: rgba(20,16,14,0.42); }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 1.25rem; text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
.hero-content .hero-mark { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; opacity: 0.92; }
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 1rem 0; letter-spacing: 0.02em; }
.hero-content .hero-tagline { font-size: 1.05rem; font-weight: 300; }
.hero-explore { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 2; color: #fff; font-size: 0.85rem; letter-spacing: 0.05em; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

/* ===== 퀵링크 ===== */
.quicklinks-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--border); }
@media (max-width: 1024px) { .quicklinks-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .quicklinks-grid { grid-template-columns: repeat(2, 1fr); } }
.quicklink-card { background: #fff; aspect-ratio: 1/1; position: relative; overflow: hidden; display: block; }
.quicklink-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.quicklink-card:hover img { transform: scale(1.06); }
.quicklink-card .label { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; }
.quicklink-card .label .t { font-weight: 700; font-size: 0.92rem; }
.quicklink-card .label .d { font-size: 0.72rem; opacity: 0.85; margin-top: 0.15rem; }

/* ===== 서비스 카드 (G-4: BEFORE/AFTER + 번호배지 + 체크리스트) ===== */
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.75rem; }
@media (max-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card { border: 1px solid var(--border); border-radius: 0; display: flex; flex-direction: column; }
.service-ba { display: grid; grid-template-columns: 1fr 1fr; }
.service-ba figure { margin: 0; position: relative; aspect-ratio: 3/4; overflow: hidden; }
.service-ba figcaption { position: absolute; top: 0.4rem; left: 0.4rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; background: rgba(0,0,0,0.55); color: #fff; padding: 0.15rem 0.5rem; }
.service-ba img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.25,.8,.25,1); }
.service-card:hover .service-ba img { transform: scale(1.06); }
.service-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.service-num { font-size: 0.75rem; font-weight: 800; color: var(--primary-dark); }
.service-body h3 { font-size: 1.05rem; }
.service-body p { color: var(--text-muted); font-size: 0.88rem; }
.service-checklist { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.25rem; }
.service-checklist li { font-size: 0.82rem; color: var(--text); display: flex; gap: 0.4rem; align-items: flex-start; }
.service-checklist li::before { content: "—"; color: var(--primary-dark); flex-shrink: 0; }
.service-more { margin-top: auto; font-size: 0.85rem; font-weight: 700; padding-top: 0.75rem; }

/* ===== 포트폴리오 (H-3: grid-2) ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
@media (max-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .portfolio-grid { grid-template-columns: 1fr; } }
.portfolio-card { border: 1px solid var(--border); border-radius: 0; overflow: hidden; transition: all .4s ease; display: block; }
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); border-color: var(--primary); }
.portfolio-card .card-thumb { aspect-ratio: 4/3; overflow: hidden; }
.portfolio-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.25,.8,.25,1); }
.portfolio-card:hover .card-thumb img { transform: scale(1.06); }
.portfolio-card .card-body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card-badge { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; background: var(--primary); color: #fff; display: inline-block; padding: 0.25rem 0.65rem; border-radius: 0; align-self: flex-start; }
.card-title { font-weight: 800; font-size: 1.15rem; color: var(--text); }
.card-sub { font-weight: 400; font-size: 0.88rem; color: var(--text-muted); }
.card-more { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-top: 0.35rem; }
.portfolio-card:hover .card-more { color: var(--primary-dark); }

/* ===== 중간 배너 ===== */
.mid-banner { background: var(--primary); padding: 3.5rem 0; text-align: center; color: #fff; }
.mid-banner p { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.25rem; }
.mid-banner .btn-primary { background: #fff; color: var(--text); }
.mid-banner .btn-primary:hover { background: var(--bg-alt); }

/* ===== 프로세스 ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
@media (max-width: 768px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { text-align: center; }
.process-num { font-size: 2rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 0.75rem; }
.process-step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== About (브랜드 스토리) ===== */
.about-intro { max-width: 760px; margin-bottom: 3.5rem; font-size: 1.02rem; color: var(--text-muted); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.75rem; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }
.about-card { border-top: 2px solid var(--primary); padding-top: 1.5rem; }
.about-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.about-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== Trust ===== */
.trust-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
@media (max-width: 768px) { .trust-stats { grid-template-columns: 1fr; } }
.trust-stat { border: 1px solid var(--border); padding: 1.75rem; text-align: center; }
.trust-stat .num { font-size: 1.7rem; font-weight: 800; color: var(--primary-dark); }
.trust-stat .label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4rem; }
.trust-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.trust-list li { border: 1px solid var(--border); padding: 0.6rem 1.1rem; font-size: 0.85rem; font-weight: 600; }

/* ===== 서비스 지역 ===== */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 768px) { .areas-grid { grid-template-columns: 1fr; } }
.area-card { border: 1px solid var(--border); padding: 2.5rem 2rem; text-align: center; }
.area-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.area-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== 무드 배너 ===== */
.mood-banner { height: 460px; overflow: hidden; }
.mood-banner img { width: 100%; height: 100%; object-fit: cover; animation: hero-kenburns 22s ease-in-out infinite alternate; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 1.25rem 1.5rem; font-weight: 700; font-size: 0.98rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q .icon { flex-shrink: 0; transition: transform .25s ease; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 1.5rem 1.25rem; font-size: 0.88rem; color: var(--text-muted); }

/* ===== CTA (미니멀 구조) ===== */
.cta-section { text-align: center; padding: 7rem 0; }
.cta-section .eyebrow { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 1.25rem; }
.cta-section h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-style: italic; font-weight: 700; margin-bottom: 2rem; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 4rem 0 0; }
.site-footer-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 768px) { .site-footer-inner { grid-template-columns: 1fr; } }
.footer-col h3 { font-size: 0.9rem; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.88rem; color: var(--text-muted); }
.footer-brand .brand-name { font-weight: 800; font-size: 1.2rem; margin-bottom: 0.6rem; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); }
.site-footer-biz { border-top: 1px solid var(--border); padding: 1.5rem 1.25rem; text-align: center; font-size: 0.8rem; color: var(--text-muted); }
.site-footer-biz a { text-decoration: underline; }
.copyright { margin-top: 0.5rem; }

/* ===== Floating ===== */
.floating-buttons { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: flex; flex-direction: column; gap: 0.6rem; }
.floating-btn { display: flex; align-items: center; gap: 0.5rem; background: var(--primary); color: #fff; padding: 0.75rem 1.1rem; border-radius: 0; font-size: 0.82rem; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.floating-btn.floating-sms { background: var(--text); }

/* ===== 상세/서브 페이지 공용 ===== */
.sub-hero { position: relative; margin-top: 72px; min-height: 46vh; display: flex; align-items: center; overflow: hidden; }
.sub-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sub-hero::after { content: ""; position: absolute; inset: 0; background: rgba(20,16,14,0.5); }
.sub-hero-content { position: relative; z-index: 2; color: #fff; max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; }
.sub-hero-content h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.sub-hero-content .sub { margin-top: 0.6rem; font-size: 0.95rem; opacity: 0.9; }
.back-link { display: inline-block; margin-top: 1.25rem; font-size: 0.85rem; color: #fff; opacity: 0.85; }

.info-bar { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); }
@media (max-width: 640px) { .info-bar { grid-template-columns: repeat(2, 1fr); } }
.info-bar div { padding: 1.25rem; border-right: 1px solid var(--border); }
.info-bar div:last-child { border-right: none; }
.info-bar .k { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.info-bar .v { font-weight: 700; font-size: 0.95rem; }

.prose { max-width: 760px; display: flex; flex-direction: column; gap: 1.1rem; font-size: 0.98rem; color: var(--text); }
.prose p { color: var(--text); }

.ba-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 640px) { .ba-compare { grid-template-columns: 1fr; } }
.ba-compare figure { margin: 0; overflow: hidden; }
.ba-compare img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .6s cubic-bezier(.25,.8,.25,1); }
.ba-compare figure:hover img { transform: scale(1.05); }
.ba-compare figcaption { margin-top: 0.85rem; font-weight: 700; font-size: 0.9rem; }

.summary-box { border: 1px solid var(--border); padding: 1.75rem; }
.summary-box li { font-size: 0.92rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.summary-box li:last-child { border-bottom: none; }

.tech-quote { border-left: 3px solid var(--primary); padding: 1rem 0 1rem 1.5rem; font-size: 1rem; font-style: italic; color: var(--text); }
.tech-quote .sign { display: block; margin-top: 0.75rem; font-size: 0.85rem; font-style: normal; color: var(--text-muted); }

.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }
