/* ===== 변수 ===== */
:root {
	--c-bg: #F7FCF9;
	--c-bg-sub: #D9D9CE;
	--c-accent: #27AE60;
	--c-accent-2: #2980B9;
	--c-text: #1A202C;
	--radius: 12px;
	--gap-section: 48px;
	--pad-x: 24px;
	--touch: 44px;
}

/* ===== 리셋 ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-text);
	background: var(--c-bg);
}
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; font-weight: 700; line-height: 1.35; }
h1 { font-size: 29px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 18px; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.section-inner { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad-x); }
section, .consult-cta { padding: var(--gap-section) 0; }

.icon { width: 24px; height: 24px; flex-shrink: 0; }

/* ===== 버튼 / CTA ===== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--touch);
	padding: 0 20px;
	border-radius: var(--radius);
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-outline { background: transparent; color: var(--c-accent-2); border: 1px solid var(--c-accent-2); }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

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

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a:not(.btn) { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.primary-nav .icon { color: var(--c-accent-2); }
.btn-nav { margin-left: 4px; }

.hamburger-btn {
	width: var(--touch);
	height: var(--touch);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
}
.hamburger-bar { width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; }

.mobile-nav {
	position: absolute;
	left: 0;
	right: 0;
	top: 64px;
	background: var(--c-bg);
	border-bottom: 1px solid var(--c-bg-sub);
	display: flex;
	flex-direction: column;
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease;
}
.mobile-nav.is-open { max-height: 320px; }
.mobile-nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: var(--touch);
	padding: 10px var(--pad-x);
	font-weight: 600;
	border-top: 1px solid var(--c-bg-sub);
}
.mobile-nav .icon { color: var(--c-accent-2); }

/* ===== 히어로 ===== */
.hero {
	position: relative;
	padding: 0;
	min-height: 80vh;
	display: flex;
	align-items: flex-end;
	background-size: cover;
	background-position: center;
}
.hero-overlay { display: none; }
.hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 32px var(--pad-x) var(--gap-section);
	background: var(--c-bg);
}
.hero h1 { margin-bottom: 12px; }
.hero-rotator { position: relative; height: 48px; overflow: hidden; margin-bottom: 20px; }
.hero-rotator span {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1s ease;
	font-size: 16px;
	color: var(--c-accent-2);
	font-weight: 600;
}
.hero-rotator span.is-active { opacity: 1; }

/* ===== 리빌(스크롤 페이드인) ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== 섹션 제목 ===== */
.section-head { margin-bottom: 32px; }
.section-head .eyebrow-title { font-weight: 700; }
.section-head .subtitle { font-weight: 400; color: #4a5568; margin-top: 8px; }

/* ===== 카드 공통 ===== */
.card { background: var(--c-bg-sub); border-radius: var(--radius); overflow: hidden; }

.about-us { background: var(--c-bg-sub); }
.about-us .card { background: #fff; }
.card-body { padding: 16px; }
.card-body .icon { color: var(--c-accent); margin-bottom: 12px; }

/* ===== 포트폴리오 / 서비스 그리드 ===== */
.grid-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-card { position: relative; border-radius: var(--radius); overflow: hidden; display: block; background: var(--c-bg-sub); }
.grid-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.grid-card .placeholder-img {
	aspect-ratio: 4/3;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--c-bg-sub), #c3cabb);
	color: var(--c-accent-2);
}
.grid-card .placeholder-img .icon { width: 40px; height: 40px; }
.grid-card .card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(26,32,44,.82), rgba(26,32,44,0) 60%);
	display: flex;
	align-items: flex-end;
	padding: 16px;
	opacity: 1;
	transform: translateY(0);
	transition: transform .35s ease;
}
.grid-card .card-title { color: #fff; font-weight: 700; font-size: 18px; }
.grid-card .link-indicator {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255,255,255,.9);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--c-accent-2);
}
@media (hover: hover) {
	.grid-card .card-overlay { transform: translateY(30%); }
	.grid-card:hover .card-overlay { transform: translateY(0); }
}
.more-link-wrap { text-align: center; margin-top: 32px; }

/* ===== Pain points / Why us ===== */
.reason-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.reason-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .reason-grid-2 { grid-template-columns: 1fr 1fr; } }
.reason-card { background: var(--c-bg-sub); border-radius: var(--radius); padding: 20px; }
.reason-card h3 { margin-bottom: 8px; }
.reason-card p { color: #2d3748; }

.pain-points, .why-us { background: var(--c-bg-sub); }
.pain-points .reason-card, .why-us .reason-card { background: #fff; }

/* ===== 풀스크린 슬라이드 ===== */
.fullscreen-section { padding: 0; }
.fullscreen-slider { position: relative; width: 100%; height: 60vh; min-height: 320px; overflow: hidden; }
.fullscreen-slider img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.fullscreen-slider img.is-active { opacity: 1; }

/* ===== About / 강점 카드 ===== */
.strength-scroll { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; -ms-overflow-style: none; scrollbar-width: none; }
.strength-scroll::-webkit-scrollbar { display: none; }
.strength-scroll > * { flex: 0 0 100%; scroll-snap-align: start; }
.strength-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.strength-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(26, 32, 44, .18); }
.strength-dots .dot.is-active { background: var(--c-accent); }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--c-bg-sub); }
.faq-q {
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	padding: 16px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	min-height: var(--touch);
	color: var(--c-text);
}
.faq-q .icon { color: var(--c-accent-2); transition: transform .25s ease; flex-shrink: 0; }
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 0 16px; color: #2d3748; }

/* ===== 상담 CTA / 푸터 ===== */
.consult-cta { background: var(--c-bg-sub); text-align: center; }
.consult-cta .subtitle { color: #2d3748; margin-top: 8px; font-weight: 400; }
.consult-cta .cta-group { justify-content: center; }

.site-footer { background: var(--c-text); color: #e2e8f0; padding: var(--gap-section) 0; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad-x); display: flex; flex-direction: column; gap: 24px; }
.footer-brand { font-size: 18px; font-weight: 700; color: #fff; }
.footer-brand-en { font-weight: 400; color: #a0aec0; margin-left: 6px; }
.footer-info p { margin-top: 6px; font-size: 14px; color: #cbd5e0; }
.footer-info a { color: #fff; text-decoration: underline; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #cbd5e0; }
.footer-nav .icon { width: 18px; height: 18px; }

/* ===== 사이트맵 페이지 ===== */
.sitemap-list a { display: flex; align-items: center; gap: 12px; min-height: var(--touch); padding: 8px 0; border-bottom: 1px solid var(--c-bg-sub); font-weight: 600; }
.sitemap-group h2 { margin: 32px 0 12px; }
.sitemap-group:first-child h2 { margin-top: 0; }

/* ===== contact 페이지 ===== */
.contact-info-list { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.contact-info-list .card { padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.contact-info-list .icon { color: var(--c-accent); margin-top: 2px; }

/* ===== 유틸 ===== */
.text-muted { color: #2d3748; }
.page-shell { padding: var(--gap-section) var(--pad-x); }
.hero-sub { margin-bottom: 12px; font-size: 16px; }
.section-lead { margin: 12px 0 32px; }
.about-intro { margin-bottom: 24px; color: #2d3748; }
a.reason-card { display: block; }

/* ===== 시공사례 / 서비스 상세 공용 ===== */
.case-hero .section-inner, .service-hero .section-inner, .cases-list-page .section-inner { padding-top: 40px; }
.detail-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); margin-top: 20px; }
@media (min-width: 768px) { .detail-photo { aspect-ratio: 16/9; } }
.case-hero p, .service-hero p { color: #2d3748; margin-top: 12px; }
.case-landmarks-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.case-scenario-box {
	background: var(--c-bg-sub);
	border-left: 4px solid var(--c-accent-2);
	border-radius: var(--radius);
	padding: 20px;
	color: #2d3748;
}
.case-steps-numbered { display: flex; flex-direction: column; gap: 20px; counter-reset: step; }
.case-steps-numbered li { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--c-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}
.case-steps-numbered p { color: #2d3748; margin-top: 4px; }
.case-timeline { position: relative; display: flex; flex-direction: column; gap: 28px; padding-left: 20px; border-left: 2px solid var(--c-bg-sub); }
.timeline-dot {
	position: absolute;
	left: -31px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--c-accent-2);
	color: #fff;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.case-timeline li { position: relative; }
.case-timeline p { color: #2d3748; margin-top: 4px; }
.case-closing p { color: #2d3748; font-weight: 600; }
.service-detail-list { margin-top: 16px; padding-left: 20px; }
.service-detail-list li { color: #2d3748; margin-bottom: 8px; }

/* ===== 데스크톱 ===== */
@media (min-width: 768px) {
	:root { --pad-x: 40px; }
	h1 { font-size: 44px; }
	h2 { font-size: 32px; }
	h3 { font-size: 20px; }
	.hero { min-height: 560px; align-items: center; }
	.hero-inner { background: none; padding: var(--gap-section) var(--pad-x); }
	.hero-inner h1, .hero-inner .hero-sub, .hero-rotator span { text-shadow: 0 2px 12px rgba(255,255,255,.6); }
	.hero h1 { font-size: 60px; }
	.hero-sub { font-size: 20px; }
	.hero-rotator { height: 56px; }
	.hero-rotator span { font-size: 20px; }
	.grid-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
	.services .grid-cards { grid-template-columns: repeat(2, 1fr); }
	.reason-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
	.strength-scroll { overflow: visible; }
	.strength-scroll > * { flex: 1; }
	.strength-dots { display: none; }
	.reason-grid.strength-scroll { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
	.footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
	.case-landmarks-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
