/* =========================================================
   쌤집수리 (crack.kimseonggeun.com) — style.css
   5색 팔레트 고정: bg / bg-sub / accent-1 / accent-2 / text
   ========================================================= */

@font-face {
	font-family: 'Pretendard';
	src: url('../fonts/PretendardVariable.woff2') format('woff2-variations');
	font-weight: 45 920;
	font-display: swap;
}

:root {
	--bg: #FAFAFA;
	--bg-sub: #334155;
	--accent-1: #06B6D4;
	--accent-2: #D4A373;
	--text: #020617;
	--bg-warm: #F4EFE7;

	--space-x: 24px;
	--space-section: 48px;
	--gap-img-text: 16px;
	--radius-card: 12px;

	--font-body: 16px;
	--h1: 29px;
	--h2: 22px;
	--h3: 18px;
	--line-height: 1.6;

	--touch-min: 44px;
	--icon-size: 24px;
	--btn-pad-x: 20px;
}

@media (min-width: 1024px) {
	:root {
		--h1: 40px;
		--h2: 30px;
		--h3: 22px;
		--space-section: 96px;
	}
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: var(--font-body);
	line-height: var(--line-height);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
	margin: 0 0 16px;
	line-height: 1.3;
	font-weight: 700;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }

p { margin: 0 0 16px; }

.icon { width: var(--icon-size); height: var(--icon-size); flex-shrink: 0; }

.container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 var(--space-x);
}

section { padding: var(--space-section) 0; }

.section-head { margin-bottom: 32px; }
.section-head .eyebrow {
	display: inline-block;
	color: var(--accent-1);
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 8px;
}
.section-head .subtitle { color: var(--bg-sub); font-size: var(--font-body); }

/* -------- 버튼 -------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--touch-min);
	padding: 12px var(--btn-pad-x);
	border-radius: var(--radius-card);
	font-weight: 700;
	font-size: var(--font-body);
	border: 2px solid transparent;
	cursor: pointer;
}
.btn-primary { background: var(--accent-1); color: var(--bg); }
.btn-secondary,
.btn-outline { background: var(--bg); color: var(--text); border-color: var(--bg-sub); }
.btn-sm { min-height: 40px; padding: 8px 16px; }
.btn-block { width: 100%; }
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* -------- 헤더 -------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bg);
	border-bottom: 1px solid #e2e2e2;
}
.site-header-inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 var(--space-x);
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.site-logo { display: flex; align-items: center; gap: 8px; }
.site-logo-text { font-weight: 800; font-size: 18px; color: var(--text); }

.site-nav-pc { display: none; }
@media (min-width: 1024px) {
	.site-nav-pc { display: flex; align-items: center; gap: 32px; }
	.site-nav-pc > ul { display: flex; gap: 24px; }
	.site-nav-pc > ul a { display: flex; align-items: center; gap: 6px; font-weight: 600; }
	.site-nav-pc > ul a .icon { color: var(--bg-sub); }
}

.hamburger-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--touch-min);
	height: var(--touch-min);
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text);
}
.hamburger-btn .icon-close { display: none; }
.hamburger-btn[aria-expanded="true"] .icon-open { display: none; }
.hamburger-btn[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 1024px) {
	.hamburger-btn { display: none; }
}

.mobile-menu {
	max-height: 0;
	overflow: hidden;
	background: var(--bg);
	transition: max-height .3s ease;
}
.mobile-menu.is-open { max-height: 400px; }
.mobile-menu ul { padding: 8px var(--space-x) 16px; }
.mobile-menu li { border-top: 1px solid #ececec; }
.mobile-menu a,
.mobile-menu .cta-tel,
.mobile-menu .cta-contact {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: var(--touch-min);
	font-weight: 600;
}
@media (min-width: 1024px) {
	.mobile-menu { display: none; }
}

/* -------- 히어로 -------- */
.hero {
	position: relative;
	padding: 56px 0;
	background: var(--bg-sub);
	color: var(--bg);
	overflow: hidden;
}
.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(2, 6, 23, .78) 0%, rgba(2, 6, 23, .45) 40%, rgba(2, 6, 23, 0) 78%),
		url('../img/hero-bg.webp') center/cover no-repeat;
	z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { color: var(--bg); }
.hero .hero-copy { font-size: var(--font-body); color: #E2E8F0; margin-bottom: 24px; }
@media (min-width: 1024px) {
	.hero { padding: 140px 0; min-height: 560px; display: flex; align-items: center; }
}

/* -------- Before/After 슬라이더 -------- */
.ba-slider {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
	height: 0;
	padding-top: 75%;
	border-radius: var(--radius-card);
	overflow: hidden;
	touch-action: pan-y;
	cursor: ew-resize;
}
.ba-slider img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	pointer-events: none;
}
.ba-slider .ba-after { clip-path: inset(0 0 0 50%); }
.ba-slider .ba-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	background: var(--accent-1);
	transform: translateX(-50%);
}
.ba-slider .ba-handle::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--accent-1);
	box-shadow: 0 2px 8px rgba(2, 6, 23, .35);
	transform: translate(-50%, -50%);
}
.ba-handle-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 22px;
	color: var(--bg);
	transform: translate(-50%, -50%);
	z-index: 1;
	pointer-events: none;
}
.ba-label {
	position: absolute;
	top: 12px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(2, 6, 23, .65);
	color: var(--bg);
	font-size: 13px;
	font-weight: 700;
}
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }
.ba-hint {
	text-align: center;
	margin-top: 12px;
	color: var(--bg-sub);
	font-size: 14px;
}

/* -------- 단일 현장 사진 프레임 -------- */
.photo-frame {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
	height: 0;
	padding-top: 75%;
	border-radius: var(--radius-card);
	overflow: hidden;
}
.photo-frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -------- 카드 그리드 (시공사례 / 서비스) -------- */
.card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
@media (min-width: 640px) {
	.card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
	position: relative;
	border-radius: var(--radius-card);
	overflow: hidden;
	background: var(--bg);
	box-shadow: 0 1px 3px rgba(2, 6, 23, .08);
	display: block;
}
.card-media { position: relative; height: 0; padding-top: 75%; overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(2,6,23,.85) 0%, rgba(2,6,23,.15) 60%, transparent 100%);
	display: flex;
	align-items: flex-end;
	padding: 16px;
}
.card-overlay-body {
	color: var(--bg);
	transform: translateY(8px);
	opacity: .92;
	transition: transform .3s ease, opacity .3s ease;
}
.card:hover .card-overlay-body { transform: translateY(0); opacity: 1; }
.card-overlay-body h3 { color: var(--bg); margin-bottom: 4px; }
.card-link-indicator { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-1); font-size: 14px; font-weight: 700; }

.section-more { text-align: center; margin-top: 32px; }

/* -------- 회사소개 강점 카드 -------- */
.strengths {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
}
.strengths::-webkit-scrollbar { display: none; }
.strength-card {
	scroll-snap-align: center;
	flex: 0 0 85%;
	background: var(--bg);
	border: 1px solid #e5e5e5;
	border-radius: var(--radius-card);
	padding: 24px;
	text-align: center;
}
.strength-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: rgba(6, 182, 212, .12);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent-1);
	animation: strength-pulse 2.4s ease-in-out infinite;
}
.strength-icon .icon { width: 28px; height: 28px; }

@keyframes strength-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, .35); }
	50% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
}

.strengths-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.strengths-dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d9d9d9;
}
.strengths-dots span.is-active { background: var(--accent-1); }

@media (min-width: 1024px) {
	.strengths { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
	.strength-card { scroll-snap-align: none; }
	.strengths-dots { display: none; }
}

/* -------- 공정 4단계 -------- */
.process-steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
@media (min-width: 768px) {
	.process-steps { grid-template-columns: repeat(4, 1fr); }
}
.process-step {
	background: var(--bg);
	border: 1px solid #e5e5e5;
	border-radius: var(--radius-card);
	padding: 20px;
}
.process-step .step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--accent-2);
	color: var(--text);
	font-weight: 800;
	margin-bottom: 12px;
}

/* -------- FAQ -------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e5e5e5; }
.faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	background: none;
	border: none;
	text-align: left;
	font-weight: 700;
	font-size: var(--font-body);
	color: var(--text);
	cursor: pointer;
	min-height: var(--touch-min);
}
.faq-question .icon { transition: transform .25s ease; color: var(--accent-1); }
.faq-item.is-open .faq-question .icon { transform: rotate(180deg); }
.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease;
}
.faq-answer p { padding-bottom: 16px; color: var(--bg-sub); }

/* -------- 상담문의 CTA 섹션 -------- */
.consult-cta {
	background: var(--bg-sub);
	color: var(--bg);
	text-align: center;
}
.consult-cta h2 { color: var(--bg); }
.consult-cta .subtitle { color: #CBD5E1; margin-bottom: 24px; }
.consult-cta .cta-group { justify-content: center; }

/* -------- 푸터 -------- */
.site-footer { background: var(--text); color: #CBD5E1; padding: 40px 0 0; }
.site-footer-inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 var(--space-x) 32px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
@media (min-width: 768px) {
	.site-footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-logo { font-weight: 800; font-size: 18px; color: var(--bg); }
.footer-info { font-size: 14px; margin-top: 8px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-nav a { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.site-footer-bottom {
	border-top: 1px solid #1e293b;
	padding: 16px var(--space-x);
	text-align: center;
	font-size: 13px;
}

/* -------- 스크롤 페이드인 -------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* -------- 일반 콘텐츠 페이지 공통 -------- */
.page-hero { background: var(--bg-sub); color: var(--bg); padding: 40px 0; }
.page-hero h1 { color: var(--bg); }
.page-hero .subtitle { color: #E2E8F0; }

.content-block { max-width: 800px; }
.content-block h2 { margin-top: 40px; }
.highlight-box {
	background: rgba(212, 163, 115, .15);
	border-left: 4px solid var(--accent-2);
	border-radius: 0 var(--radius-card) var(--radius-card) 0;
	padding: 20px;
	margin: 24px 0;
}
.local-info-box {
	background: var(--bg);
	border: 1px solid #e5e5e5;
	border-radius: var(--radius-card);
	padding: 20px;
	margin: 24px 0;
}
.checklist li { display: flex; gap: 10px; padding: 8px 0; align-items: flex-start; }
.checklist .icon { color: var(--accent-1); margin-top: 2px; }
.timeline { list-style: none; padding: 0; margin: 24px 0; }
.timeline li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid #ececec; }
.timeline .t-num { font-weight: 800; color: var(--accent-1); font-size: 20px; }
.pull-quote {
	font-size: 20px;
	font-weight: 700;
	color: var(--bg-sub);
	border-left: 4px solid var(--accent-1);
	padding-left: 20px;
	margin: 32px 0;
}
.img-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.img-grid img { border-radius: var(--radius-card); aspect-ratio: 1; object-fit: cover; }
.split-layout { display: grid; grid-template-columns: 1fr; gap: var(--gap-img-text); align-items: center; }
@media (min-width: 768px) {
	.split-layout { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.split-layout img { border-radius: var(--radius-card); }

/* -------- 사이트맵 링크 목록 -------- */
.footer-nav-list { margin: 0 0 32px; }
.footer-nav-list li { border-bottom: 1px solid #ececec; }
.footer-nav-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: var(--touch-min);
	font-weight: 600;
}
.footer-nav-list .icon { color: var(--accent-1); }
