/* ===== 변수 ===== */
:root {
	--bg: #FCFDFF;
	--bg-sub: #DDE6EF;
	--accent: #2B6CB0;
	--accent-sub: #F6AD55;
	--text: #2D3748;
	--radius: 12px;
	--gap-mobile: 24px;
	--section-gap: 64px;
}

/* ===== 리셋 ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Pretendard', -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1 { font-size: 29px; font-weight: 700; margin: 0 0 16px; }
h2 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
h4 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
p { margin: 0 0 16px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 var(--gap-mobile); }
.section { padding: var(--section-gap) 0; }
.section-sub { background: var(--bg-sub); }
.section-title { font-weight: 700; }
.section-subtitle { font-weight: 400; color: var(--text); opacity: .8; margin-bottom: 24px; }

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

/* ===== 아이콘 ===== */
.icon { width: 24px; height: 24px; }

/* ===== 헤더 ===== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bg);
	border-bottom: 1px solid var(--bg-sub);
}
.header-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 var(--gap-mobile);
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-text { font-weight: 700; font-size: 15px; }
.gnb { display: none; }
.header-cta { display: none; }
.hamburger {
	width: 44px; height: 44px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
	background: none; border: none; padding: 0;
}
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-menu {
	max-height: 0;
	overflow: hidden;
	background: var(--bg);
	transition: max-height .35s ease;
	border-bottom: 1px solid transparent;
}
.mobile-menu.is-open { max-height: 480px; border-bottom-color: var(--bg-sub); }
.mobile-menu ul { padding: 8px var(--gap-mobile) 16px; }
.mobile-menu li a { display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--bg-sub); }
.menu-consult-link { color: var(--accent); font-weight: 700; }

/* ===== 히어로 ===== */
.hero {
	position: relative;
	min-height: 360px;
	display: flex;
	align-items: flex-end;
	background-size: cover;
	background-position: center;
	color: #fff;
	overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; padding: 40px var(--gap-mobile) var(--section-gap); width: 100%; }
.hero h1 { color: #fff; }
.hero-copy { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.hero-sub { font-size: 16px; opacity: .92; margin-bottom: 24px; }

/* ===== 핵심가치 로테이터 ===== */
.core-values .section-title, .core-values .rotator { text-align: center; }
.core-values .section-title { margin-bottom: 28px; }
.rotator { position: relative; min-height: 130px; }
.rotator-item {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden;
	transition: opacity 1s ease;
}
.rotator-item.is-active { opacity: 1; visibility: visible; }
.rotator-item h3 { font-family: 'Noto Serif KR', serif; font-weight: 600; font-size: 18px; }

/* ===== 카드 그리드 ===== */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.card {
	display: block;
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(45,55,72,.08);
	transition: box-shadow .3s ease, transform .3s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(45,55,72,.16); transform: translateY(-2px); }
.card-media { position: relative; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.08); }
.card-link-indicator {
	position: absolute; right: 12px; bottom: 12px;
	z-index: 2;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
}
.card-body { padding: var(--gap-mobile); }
.card-body h3 { margin-bottom: 8px; }
.card-body p { margin-bottom: 0; font-size: 16px; }
.card:hover .card-media::after { content: ""; position: absolute; inset: 0; background: rgba(43,108,176,.2); pointer-events: none; }

/* ===== 기술소개 섹션 (배경 이미지 위 텍스트) ===== */
.tech-section {
	position: relative;
	min-height: 320px;
	overflow: hidden;
	padding: 0;
}
.tech-bg {
	position: absolute; inset: 0;
	background: linear-gradient(135deg, var(--text) 0%, #1a2333 100%);
	background-size: cover;
	background-position: center;
	transition: transform .4s ease;
}
.tech-section:hover .tech-bg { transform: scale(1.06); }
.tech-link {
	position: absolute; inset: 0;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	color: #fff;
}
.tech-inner { position: relative; width: 100%; padding: 40px var(--gap-mobile) var(--section-gap); }
.tech-section h2, .tech-section h3 { color: #fff; }
.tech-section h3 { font-weight: 400; opacity: .9; margin-bottom: 0; }
.tech-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: var(--gap-mobile); margin-bottom: 16px; }
.tech-list { display: grid; gap: 12px; margin-top: 16px; }
.tech-list li { display: flex; gap: 12px; align-items: flex-start; }
.tech-list .num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-sub); color: var(--text); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* ===== 자격증 캐러셀 ===== */
.cert-carousel { position: relative; overflow: hidden; padding: 24px 0; }
.cert-track { display: flex; gap: 16px; align-items: center; animation: cert-scroll 22s linear infinite; width: max-content; }
.cert-track img { width: 140px; height: 200px; object-fit: cover; border-radius: var(--radius); opacity: .6; transform: scale(.92); transition: transform .4s ease, opacity .4s ease; flex-shrink: 0; }
.cert-track img.is-center { opacity: 1; transform: scale(1.08); }
@keyframes cert-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.value-slider { margin-top: 32px; }
.value-track { display: grid; grid-template-columns: 1fr; gap: 16px; }
.value-card { background: #fff; border-radius: var(--radius); padding: var(--gap-mobile); box-shadow: 0 2px 12px rgba(45,55,72,.08); }
.value-card h3 { margin-bottom: 8px; }
.slider-dots { display: none; }

/* 모바일(767px 이하): 카드 가로 스와이프 슬라이더 */
@media (max-width: 767px) {
	.value-track {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
		margin: 0 -24px;
		padding: 0 24px;
	}
	.value-track::-webkit-scrollbar { display: none; }
	.value-track .value-card { flex: 0 0 100%; scroll-snap-align: start; }
	.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
	.slider-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-sub); background: rgba(45,55,72,.2); padding: 0; border: none; }
	.slider-dots .dot.is-active { background: var(--accent); }
}

/* ===== CTA 섹션 ===== */
.cta-section { background: var(--accent); color: #fff; text-align: center; }
.cta-section h2 { color: #fff; }
.cta-section .cta-group { justify-content: center; margin-top: 24px; }
.cta-section .btn-primary { background: #fff; color: var(--accent); }
.cta-section .btn-outline { border-color: #fff; color: #fff; }

/* ===== 푸터 ===== */
.site-footer { background: var(--text); color: #fff; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: var(--section-gap) var(--gap-mobile); }
.footer-nav { display: flex; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.footer-nav a { display: flex; align-items: center; gap: 6px; opacity: .85; }
.footer-info p { font-size: 14px; opacity: .75; margin-bottom: 6px; }
.footer-org { font-weight: 700; opacity: 1 !important; font-size: 16px !important; }

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

/* ===== 세부페이지 공통 ===== */
.page-hero { background: var(--bg-sub); padding: 40px 0; }
.breadcrumb { font-size: 14px; opacity: .7; margin-bottom: 12px; }
.detail-block { margin-bottom: var(--section-gap); }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.stat-box { background: var(--bg-sub); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-box .num { font-size: 26px; font-weight: 700; color: var(--accent); display: block; }
.stat-box .label { font-size: 14px; margin-top: 4px; }
.timeline { border-left: 2px solid var(--bg-sub); padding-left: 20px; margin: 24px 0; }
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item::before { content: ""; position: absolute; left: -25px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-sub); }
.spec-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.spec-table th, .spec-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--bg-sub); font-size: 16px; }
.spec-table th { width: 35%; color: var(--accent); font-weight: 700; }
.faq-item { border-bottom: 1px solid var(--bg-sub); padding: 16px 0; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h4 { margin-bottom: 0; }
.faq-item summary::after {
	content: "+";
	flex-shrink: 0;
	width: 24px; height: 24px;
	background: var(--accent);
	color: #fff;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 16px;
	line-height: 1;
	transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 12px 0 0; }
.related-cases { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }

/* ===== 사이트맵 페이지 ===== */
.sitemap-group { margin-bottom: 32px; }
.sitemap-group h2 { margin-bottom: 16px; }
.sitemap-group ul li { padding: 10px 0; border-bottom: 1px solid var(--bg-sub); }
.sitemap-group ul li a { font-size: 16px; }

/* ===== 상담안내 페이지 ===== */
.contact-hero { text-align: center; padding: var(--section-gap) 0; }
.contact-info-list { max-width: 480px; margin: 24px auto 0; text-align: left; }
.contact-info-list li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--bg-sub); }
.contact-info-list li span:first-child { opacity: .7; }

/* ===== 데스크톱 ===== */
@media (min-width: 900px) {
	:root { --section-gap: 80px; }
	.container, .header-inner, .footer-inner { padding-left: 40px; padding-right: 40px; }
	h1 { font-size: 44px; }
	h2 { font-size: 32px; }
	h3 { font-size: 22px; }
	.gnb { display: block; }
	.gnb ul { display: flex; gap: 32px; }
	.gnb a { font-weight: 700; font-size: 15px; }
	.header-cta { display: block; }
	.hamburger, .mobile-menu { display: none; }
	.hero { min-height: 640px; }
	.tech-section { min-height: 520px; }
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
	.value-track { grid-template-columns: repeat(3, 1fr); }
	.stat-row { grid-template-columns: repeat(4, 1fr); }
	.related-cases { grid-template-columns: repeat(3, 1fr); }
}
