/* ===== 수납장제작 디자인 시스템 (딥 포레스트 그린 · 코퍼 오렌지) ===== */
:root {
  --green: #1F4D43;
  --dark: #172E29;
  --copper: #C46632;
  --copper-hover: #A94F29;
  --bg: #F5F7F6;
  --bg-alt: #DCE4E0;
  --text: #202624;
  --gray-mid: #66706C;
  --border: #CDD5D1;
  --white: #FFFFFF;
  --font: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --max: 1360px;
  --radius: 6px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--green); font-weight: 600; letter-spacing: -0.3px; line-height: 1.3; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===== 헤더 ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 88px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.logo { font-size: 1.3rem; font-weight: 600; color: var(--green); flex-shrink: 0; }
.main-nav { display: flex; gap: 40px; margin: 0 auto; }
.main-nav a { font-size: .95rem; font-weight: 500; color: var(--text); padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .3s, color .3s; }
.main-nav a:hover { color: var(--green); border-color: var(--green); }
.btn-inquire {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px;
  background: var(--copper); color: var(--white);
  border-radius: 4px; font-weight: 600; font-size: .92rem;
  transition: background .3s; flex-shrink: 0;
}
.btn-inquire:hover { background: var(--copper-hover); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--green); }
.mobile-nav {
  display: none; position: absolute; top: 88px; left: 0; right: 0;
  background: var(--bg); border-top: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(23,46,41,.08); z-index: 999;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 1rem; color: var(--text); }
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 480px) {
  .site-header, .header-inner { height: 72px; }
  .mobile-nav { top: 72px; }
  .logo { font-size: 1.1rem; }
  .btn-inquire { height: 40px; padding: 0 16px; font-size: .84rem; }
}

/* ===== 히어로 ===== */
.hero { position: relative; width: 100%; min-height: 760px; display: flex; align-items: center; overflow: hidden; }
.hero-detail { min-height: 380px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(23,46,41,.28); }
.hero-detail .hero-overlay { background: rgba(23,46,41,.35); }
.hero-inner { position: relative; z-index: 2; color: var(--white); max-width: 640px; padding: 0 24px; }
.hero .container { position: relative; z-index: 2; }
.hero-inner .eyebrow { color: var(--white); border-color: rgba(255,255,255,.5); }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5.5vw, 4.25rem); font-weight: 600; letter-spacing: -1px; margin: 14px 0 20px; }
.hero-detail h1 { font-size: clamp(1.8rem, 4.5vw, 2.75rem); margin: 10px 0 14px; }
.hero p { font-size: 1.05rem; line-height: 1.8; opacity: .95; margin-bottom: 30px; max-width: 560px; }
.hero .btn { display: inline-flex; align-items: center; height: 54px; padding: 0 38px; background: var(--copper); color: var(--white); border-radius: 4px; font-weight: 600; font-size: 1rem; transition: background .3s; }
.hero .btn:hover { background: var(--copper-hover); }
@media (max-width: 900px) {
  .hero { min-height: 78svh; }
  .hero-detail { min-height: 320px; }
}

/* ===== 섹션 공통 ===== */
.section { padding: 140px 0; }
.section-alt { background: var(--bg-alt); }
.section-sm { padding: 96px 0; }
@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .section-sm { padding: 72px 0; }
}
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--copper); border-bottom: 2px solid var(--copper); padding-bottom: 5px; margin-bottom: 16px;
}
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.section-desc { color: var(--gray-mid); font-size: 1.02rem; max-width: 680px; line-height: 1.8; }
.section-head.center .section-desc { margin: 0 auto; }

/* ===== 스크롤 페이드인 ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== 캐러셀(6개) ===== */
.carousel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.carousel-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.carousel-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.carousel-card:hover img { transform: scale(1.03); }
.carousel-card-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 24px;
  background: linear-gradient(180deg, rgba(23,46,41,0) 45%, rgba(23,46,41,.75) 100%);
}
.carousel-card-title { color: var(--white); font-size: 1.15rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.carousel-card-title .arrow { color: var(--copper); transition: transform .3s ease; }
.carousel-card:hover .arrow { transform: translateX(6px); }
@media (max-width: 900px) { .carousel-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 560px) {
  .carousel-grid { grid-auto-flow: column; grid-auto-columns: 62%; grid-template-columns: none; overflow-x: auto; gap: 12px; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .carousel-card { scroll-snap-align: start; }
}

/* ===== 전후사진 그리드 (16장 / 8세트) ===== */
.ba-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 16px; }
.ba-set { grid-column: span 2; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
.ba-photo { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.ba-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ba-set:hover .ba-photo img { transform: scale(1.03); }
.ba-tag {
  position: absolute; bottom: 10px; font-size: .68rem; font-weight: 700; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 2px; color: var(--white);
}
.ba-tag.before { left: 10px; background: var(--gray-mid); }
.ba-tag.after { right: 10px; background: var(--green); }
.ba-caption { margin-top: 10px; font-size: .86rem; color: var(--text); line-height: 1.6; }
.ba-caption::before { content: ''; display: inline-block; width: 10px; height: 2px; background: var(--copper); margin-right: 8px; vertical-align: middle; }
@media (max-width: 900px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } .ba-set { grid-column: span 2; } }
@media (max-width: 480px) { .ba-caption { font-size: .8rem; } }

/* ===== 현장사진 4장 (파생페이지) ===== */
.site-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.site-photos .ba-set { grid-column: span 2; }
@media (max-width: 700px) { .site-photos { grid-template-columns: repeat(2, 1fr); } }

/* ===== 서비스 / 지역 카드 그리드 ===== */
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .card-grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; } }
.info-card { display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s; }
.info-card:hover { box-shadow: 0 8px 24px rgba(23,46,41,.1); }
.info-card-img { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.info-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.info-card:hover .info-card-img img { transform: scale(1.03); }
.info-card-body { padding: 18px 18px 20px; }
.info-card-body h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--green); }
.info-card-body p { font-size: .88rem; color: var(--gray-mid); line-height: 1.6; margin-bottom: 10px; }
.info-card-more { font-size: .82rem; font-weight: 700; color: var(--copper); display: inline-flex; align-items: center; gap: 4px; }

/* ===== 본문(prose) ===== */
.prose { max-width: 880px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 56px 0 18px; color: var(--green); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 30px 0 10px; color: var(--green); }
.prose p { margin-bottom: 16px; font-size: 1rem; line-height: 1.8; color: var(--text); }
.prose ul { margin: 0 0 20px; }
.prose ul li { position: relative; padding-left: 20px; margin-bottom: 10px; line-height: 1.7; color: var(--text); }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.lead {
  font-size: 1.12rem; line-height: 1.85; color: var(--text); font-weight: 500;
  padding: 22px 26px; background: var(--white); border-left: 3px solid var(--copper); border-radius: 2px; margin-bottom: 40px;
}

/* ===== 표 ===== */
.data-table { width: 100%; border-collapse: collapse; margin: 20px 0 36px; font-size: .92rem; background: var(--white); }
.data-table caption { text-align: left; font-size: .82rem; color: var(--gray-mid); margin-bottom: 10px; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; color: var(--text); }
.data-table thead th { background: var(--green); color: var(--white); font-weight: 600; }
.data-table td.num, .data-table th.num { text-align: center; white-space: nowrap; }
@media (max-width: 640px) {
  .data-table, .data-table thead, .data-table tbody, .data-table th, .data-table td, .data-table tr { display: block; }
  .data-table thead { display: none; }
  .data-table tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; padding: 6px 16px; }
  .data-table td { border-bottom: none; padding: 10px 0; }
  .data-table td::before { content: attr(data-label); display: block; font-size: .74rem; color: var(--gray-mid); font-weight: 700; margin-bottom: 2px; }
}

/* ===== 6단계 공정 도식 ===== */
.process-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 24px 0 36px; position: relative; }
.process-flow::before { content: ''; position: absolute; top: 35px; left: 6%; right: 6%; height: 1px; background: var(--border); z-index: 0; }
.process-step { position: relative; z-index: 1; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 14px; text-align: center; }
.process-step .num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--copper); color: var(--white); font-size: .82rem; font-weight: 700; margin-bottom: 10px; }
.process-step h4 { font-size: .9rem; margin-bottom: 6px; color: var(--green); }
.process-step p { font-size: .78rem; color: var(--gray-mid); line-height: 1.5; }
@media (max-width: 900px) { .process-flow { grid-template-columns: repeat(3, 1fr); } .process-flow::before { display: none; } }
@media (max-width: 560px) { .process-flow { grid-template-columns: repeat(2, 1fr); } }

/* ===== 공간설계형 히어로 (메인 전용) ===== */
.hero-split { background: var(--bg); padding: 56px 0 0; }
.hero-split-top { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-split-text h1 { color: var(--green); font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -1px; margin: 14px 0 20px; }
.hero-split-text p { color: var(--text); font-size: 1.05rem; line-height: 1.85; margin-bottom: 30px; max-width: 520px; }
.hero-split-img { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.hero-split-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-process-strip { margin-top: 48px; padding: 26px 0; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.hero-process-strip .step { display: flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.hero-process-strip .step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--copper); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 700; flex-shrink: 0; }
.hero-process-strip .sep { flex: 1; height: 1px; background: var(--border); min-width: 12px; }
@media (max-width: 900px) {
  .hero-split-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-split-img { aspect-ratio: 16/10; }
  .hero-process-strip { flex-wrap: wrap; justify-content: flex-start; row-gap: 14px; }
  .hero-process-strip .sep { display: none; }
}
@media (max-width: 480px) {
  .hero-process-strip .step span:last-child { display: none; }
}

/* ===== 버튼: 코퍼 ===== */
.btn-copper { background: var(--copper); color: var(--white); }
.btn-copper:hover { background: var(--copper-hover); }

/* ===== 공간 진단 카드 ===== */
.space-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.space-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.space-card .space-icon { width: 38px; height: 38px; margin-bottom: 16px; color: var(--green); }
.space-card h3 { font-size: 1.05rem; color: var(--green); margin-bottom: 12px; }
.space-card dt { font-size: .74rem; color: var(--copper); font-weight: 700; margin-top: 10px; }
.space-card dt:first-of-type { margin-top: 0; }
.space-card dd { font-size: .84rem; color: var(--text); line-height: 1.55; }
@media (max-width: 1024px) { .space-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .space-grid { grid-template-columns: 1fr; } }

/* ===== 현장 실측 섹션 ===== */
.measure-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.measure-diagram { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.measure-diagram svg { width: 100%; height: auto; display: block; }
.measure-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.measure-list li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--border); font-size: .92rem; color: var(--text); }
.measure-list li::before { content: ''; position: absolute; left: 0; top: 19px; width: 7px; height: 7px; background: var(--copper); border-radius: 50%; }
@media (max-width: 900px) { .measure-wrap { grid-template-columns: 1fr; gap: 28px; } .measure-list { grid-template-columns: 1fr; } }

/* ===== 서비스 목록(텍스트형) ===== */
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-list-item { display: flex; align-items: flex-start; gap: 14px; padding: 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); transition: box-shadow .3s; }
.service-list-item:hover { box-shadow: 0 8px 20px rgba(23,46,41,.08); }
.service-list-item .sl-icon { width: 30px; height: 30px; flex-shrink: 0; color: var(--copper); }
.service-list-item h3 { font-size: .98rem; color: var(--green); margin-bottom: 4px; }
.service-list-item p { font-size: .8rem; color: var(--gray-mid); line-height: 1.5; }
@media (max-width: 900px) { .service-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .service-list { grid-template-columns: 1fr; } }

/* ===== 자재/구성 선택 카드 ===== */
.choice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 36px; }
.choice-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.choice-card h4 { font-size: .98rem; margin-bottom: 8px; color: var(--green); }
.choice-card p { font-size: .86rem; color: var(--text); line-height: 1.6; }
@media (max-width: 700px) { .choice-cards { grid-template-columns: 1fr; } }

/* ===== 체크리스트 ===== */
.checklist { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 24px; margin: 20px 0 36px; }
.checklist li { padding: 14px 0; border-bottom: 1px solid var(--border); padding-left: 22px; color: var(--text); }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: ''; position: absolute; margin-left: -22px; margin-top: 6px; width: 8px; height: 8px; border: 2px solid var(--copper); border-radius: 2px; }

/* ===== 관련페이지 카드 ===== */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: box-shadow .3s; }
.related-card:hover { box-shadow: 0 8px 20px rgba(23,46,41,.1); }
.related-card-label { font-size: .72rem; color: var(--green); font-weight: 700; letter-spacing: 1px; }
.related-card-title { font-size: 1rem; font-weight: 600; color: var(--text); }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq-list { max-width: 880px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-size: 1.02rem; font-weight: 600; color: var(--green); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--copper); flex-shrink: 0; transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; font-size: .94rem; line-height: 1.75; color: var(--text); }

/* ===== CTA ===== */
.cta-section { background: var(--green); color: var(--white); text-align: center; padding: 100px 24px; }
.cta-section .eyebrow { color: var(--copper); border-color: var(--copper); }
.cta-section h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 16px 0 14px; }
.cta-section p { color: rgba(255,255,255,.78); margin-bottom: 32px; font-size: 1rem; }
.btn-outline-light { display: inline-flex; align-items: center; height: 54px; padding: 0 40px; background: var(--copper); color: var(--white); border: none; border-radius: 4px; font-weight: 600; transition: background .3s; }
.btn-outline-light:hover { background: var(--copper-hover); }

/* ===== 푸터 ===== */
.site-footer { background: var(--dark); color: var(--border); padding: 40px 0 28px; font-size: .86rem; }
.footer-biz { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.18); color: var(--white); }
.footer-links { display: flex; gap: 20px; margin-bottom: 14px; }
.footer-links a:hover { color: var(--copper); }
.footer-copy { color: var(--border); font-size: .8rem; opacity: .8; }
@media (max-width: 640px) { .footer-biz { flex-direction: column; gap: 6px; } .footer-links { flex-direction: column; gap: 10px; } }

/* ===== 상담페이지 전용 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 56px; }
.contact-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  height: 100px; border-radius: var(--radius); font-weight: 600;
  background: var(--copper); color: var(--white); transition: background .3s;
}
.contact-btn:nth-child(2) { background: var(--green); }
.contact-btn:hover { opacity: .92; }
.cb-label { font-size: .82rem; opacity: .85; }
.cb-value { font-size: 1.3rem; font-weight: 700; }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== 허브페이지 ===== */
.hub-hero { background: var(--green); color: var(--white); padding: 90px 0 64px; text-align: center; }
.hub-hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 2.75rem); margin: 14px 0; }
.hub-hero p { color: rgba(255,255,255,.78); max-width: 600px; margin: 0 auto; font-size: 1rem; }

/* ===== 버튼 공통 ===== */
.btn { display: inline-flex; align-items: center; height: 52px; padding: 0 32px; border-radius: 4px; font-weight: 600; font-size: .95rem; transition: background .3s, color .3s; }
.btn-dark { background: var(--green); color: var(--white); }
.btn-dark:hover { background: var(--dark); }
