@charset "UTF-8";

/* ============================================================
   헤더 / 모바일 메뉴 / 푸터

   헤더는 첫 화면(히어로/페이지 머리) 위에 투명하게 겹쳐 두고,
   스크롤하면 흰 바로 바뀌고 높이·로고가 살짝 줄어든다 (main.js 가 .is-scrolled 부여).
   어두운 면은 푸터에만 쓴다.
   ============================================================ */

#root {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-width: 320px;
}

main {
	flex: 1;
}

/* ---------------- 헤더 ---------------- */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	color: var(--c-text);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.is-scrolled {
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(14px);
	border-bottom-color: var(--c-line);
}

.header-inner {
	max-width: calc(var(--w-content) + var(--pad-x) * 2);
	height: var(--h-header);
	margin: 0 auto;
	padding: 0 var(--pad-x);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	transition: height 0.3s;
}

.is-scrolled .header-inner {
	height: var(--h-header-sm);
}

.logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.logo img {
	width: 136px;
	transition: width 0.3s;
}

.is-scrolled .logo img {
	width: 108px;
}

.gnb {
	display: flex;
	align-items: center;
}

.gnb-list {
	display: flex;
	align-items: center;
	gap: 48px;
}

.gnb-list a {
	position: relative;
	display: block;
	font-weight: 800;
	font-size: 1.0625rem;
	padding: 6px 0;
	transition: color 0.2s;
}

.gnb-list a:hover,
.gnb-list a.is-active {
	color: var(--c-brand);
}

/* 현재 페이지 표시: 글자 위 작은 사각점 */
.gnb-list a.is-active::before {
	content: '';
	position: absolute;
	left: 50%;
	top: -6px;
	width: 6px;
	height: 6px;
	margin-left: -3px;
	background: var(--c-brand);
}

/* 제품 하위 목록 (마우스 hover / 키보드 focus 로 열림) */
.gnb-drop {
	position: relative;
}

.gnb-sub {
	position: absolute;
	top: 100%;
	left: 50%;
	min-width: 200px;
	padding: 10px 0;
	background: #fff;
	border: 1px solid var(--c-line);
	box-shadow: 0 16px 40px rgba(17, 18, 20, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

/* 메뉴와 목록 사이 틈에서 hover 가 끊기지 않도록 위쪽을 메운다 */
.gnb-sub::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -20px;
	height: 20px;
}

.gnb-drop:hover .gnb-sub,
.gnb-drop:focus-within .gnb-sub {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 4px);
}

.gnb-sub a {
	padding: 12px 24px;
	font-size: 1.0625rem;
	white-space: nowrap;
}

.gnb-sub a:hover {
	background: var(--c-fill);
}

/* 하위 목록에는 현재 페이지 점 표시를 쓰지 않는다 */
.gnb-sub a.is-active::before {
	display: none;
}

/* 언어 전환은 메뉴가 아니라 보조 동작이므로 시각적으로 구분한다 */
.gnb-list .lang-btn {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--c-text-sub);
}

.gnb-list .lang-btn:hover {
	color: var(--c-brand);
}

/* ---------------- 모바일 메뉴 ---------------- */

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
}

.menu-toggle svg,
.menu-close svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

.menu-backdrop {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(0, 0, 0, 0.3);
}

/* 전체 화면을 덮는 메뉴. 링크를 아주 크게 */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 201;
	padding: 12px var(--pad-x) 40px;
	background: var(--c-white);
	color: var(--c-text);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.menu-close {
	align-self: flex-end;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-menu ul {
	margin-top: 32px;
	border-top: 3px solid var(--c-line-strong);
}

.mobile-menu li a {
	display: flex;
	align-items: baseline;
	gap: 18px;
	padding: 22px 0;
	border-bottom: 1px solid var(--c-line);
	font-weight: 900;
	font-size: clamp(2rem, 9vw, 2.75rem);
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.mobile-menu li a b {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--c-brand);
}

.mobile-menu li a:hover span {
	color: var(--c-brand);
}

.mobile-menu .lang-btn {
	align-self: flex-start;
	margin-top: 32px;
	padding: 10px 18px;
	border: 1px solid var(--c-line-strong);
	font-size: 0.875rem;
	letter-spacing: 0.02em;
}

/* 제품 하위 목록 */
.mobile-sub {
	padding: 0 0 16px 52px;
	border-bottom: 1px solid var(--c-line);
}

.mobile-menu .mobile-sub li a {
	padding: 8px 0;
	border-bottom: 0;
	font-size: 1.375rem;
	font-weight: 800;
	color: var(--c-text-sub);
}

.mobile-menu li:has(> .mobile-sub) > a {
	border-bottom: 0;
}

/* 모바일 메뉴가 열려 있는 동안 배경 스크롤 잠금 */
body.menu-open {
	overflow: hidden;
}

/* ---------------- 푸터 ---------------- */

.site-footer {
	position: relative;
	background: #060607;
	color: #a7a9b0;
	padding: 72px 0 64px;
	font-size: 0.875rem;
	overflow: hidden;
	border-top: 1px solid var(--c-line-dark);
}

.footer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: 40px;
	margin-bottom: 40px;
	border-bottom: 1px solid var(--c-line-dark);
}

.footer-logo img {
	width: 168px;
	filter: brightness(1.2);
}

.footer-nav {
	display: flex;
	gap: 40px;
}

.footer-nav a {
	color: #fff;
	font-size: 1.125rem;
	font-weight: 800;
	transition: color 0.2s;
}

.footer-nav a:hover {
	color: var(--c-brand-hi);
}

.footer-info {
	line-height: 2;
}

.footer-info b {
	color: #45474d;
	font-weight: 400;
	margin: 0 10px;
}

.footer-info a:hover {
	color: #fff;
	text-decoration: underline;
}

.footer-bottom {
	margin-top: 32px;
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	color: #6b6d74;
}

/* ---------------- 반응형 ---------------- */

@media (max-width: 1024px) {
	.gnb-list {
		gap: 32px;
	}
}

@media (max-width: 768px) {
	.logo img {
		width: 112px;
	}

	.is-scrolled .logo img {
		width: 96px;
	}

	.gnb-list {
		display: none;
	}

	.menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.site-footer {
		padding: 48px 0 40px;
	}

	.footer-top {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
		padding-bottom: 28px;
		margin-bottom: 28px;
	}

	.footer-logo img {
		width: 128px;
	}

	.footer-nav {
		gap: 24px;
	}

	.footer-nav a {
		font-size: 1rem;
	}

	.footer-info {
		font-size: 0.8125rem;
		line-height: 1.85;
	}

	.footer-info b {
		margin: 0 4px;
	}


}
