@charset "UTF-8";

/* ==================== */
/* Header               */
/* ==================== */
header {
	position: fixed !important;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background: rgba(0, 0, 0, 0.20);
	z-index: 1000;
	transition: background var(--transition-normal);
}

header.scrolled {
	background: rgba(0, 0, 0, 0.90);
	backdrop-filter: blur(10px);
}

/* Detail Pages (except About) - Light Header */
body.content-detail-page:not(.about-page-mode) header {
	background: #fff;
}

body.content-detail-page:not(.about-page-mode) header.scrolled {
	background: #fff;
	backdrop-filter: none;
}

body.content-detail-page:not(.about-page-mode) header .gnb > ul > li > a,
body.content-detail-page:not(.about-page-mode) .header-contact,
body.content-detail-page:not(.about-page-mode) .header-contact svg {
	color: #1f1f1f;
}

body.content-detail-page:not(.about-page-mode) .header-contact {
	border-color: rgba(35, 35, 35, 0.35);
}

body.content-detail-page:not(.about-page-mode) .header-contact:hover {
	background: #1f1f1f;
	color: #fff;
}

body.content-detail-page:not(.about-page-mode) .btn-menu span,
body.content-detail-page:not(.about-page-mode) .btn-menu span::before,
body.content-detail-page:not(.about-page-mode) .btn-menu span::after {
	background: #1f1f1f;
}

header .inner-wrap {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Header Logo */
header .header-logo {
	display: flex;
	align-items: center;
	height: var(--header-height);
}

header .header-logo a {
	display: flex;
	align-items: center;
	height: 100%;
}

header .header-logo img {
	height: 40px;
}

/* GNB (Global Navigation) */
header .gnb {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}

header .gnb > ul {
	display: flex;
	gap: 60px;
}

header .gnb > ul > li > a {
	font-size: 18px;
	font-weight: 600;
	color: var(--white);
	transition: color var(--transition-normal);
}

header .gnb > ul > li > a:hover {
	color: var(--primary);
}

/* Depth2 Dropdown */
.gnb > ul > li {
	position: relative;
}

.gnb > ul > li .depth2 {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	min-width: 200px;
	background: rgba(0, 0, 0, 0.95);
	backdrop-filter: blur(10px);
	border-radius: var(--radius-sm);
	padding: 16px 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	z-index: 100;
	margin-top: 20px;
}

.gnb > ul > li:hover .depth2 {
	display: block;
}

.gnb > ul > li .depth2 li a {
	display: block;
	padding: 10px 24px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
	transition: all var(--transition-normal);
}

.gnb > ul > li .depth2 li a:hover {
	color: var(--white);
	background: rgba(255, 255, 255, 0.05);
}

/* Header Contact Button */
.header-contact {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border: 1px solid var(--white);
	border-radius: 30px;
	font-size: 14px;
	font-weight: 600;
	color: var(--white);
	transition: all var(--transition-normal);
}

.header-contact:hover {
	background: var(--white);
	color: var(--black);
	fill: var(--black)
}

.header-contact svg {
	width: 16px;
	height: 16px;
}

/* Mobile Menu Button */
.btn-menu {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
}

.btn-menu span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--white);
	position: relative;
	transition: all var(--transition-normal);
}

.btn-menu span::before,
.btn-menu span::after {
	content: '';
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--white);
	transition: all var(--transition-normal);
}

.btn-menu span::before {
	top: -8px;
}

.btn-menu span::after {
	top: 8px;
}

/* Mobile Menu Open State */
.btn-menu.active span {
	background: transparent;
}

.btn-menu.active span::before {
	top: 0;
	transform: rotate(45deg);
}

.btn-menu.active span::after {
	top: 0;
	transform: rotate(-45deg);
}

/* ==================== */
/* Mobile Sidebar       */
/* ==================== */
.sidebar {
	position: fixed;
	top: 0;
	right: -100%;
	width: 100%;
	max-width: 400px;
	height: 100vh;
	background: var(--black);
	z-index: 1001;
	transition: right var(--transition-slow);
	overflow-y: auto;
}

.sidebar.active {
	right: 0;
}

.sidebar-inner {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 100px 40px 40px;
}

.sidebar-content {
	flex: 1;
}

.sidebar-main-menu ul {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.sidebar-main-menu li a {
	font-size: 24px;
	font-weight: 600;
	color: var(--white);
	transition: color var(--transition-normal);
}

.sidebar-main-menu li a:hover {
	color: var(--primary);
}

.sidebar-sub-menu {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-sub-menu .sub-menu-group {
	display: none;
}

.sidebar-sub-menu .sub-menu-group.active {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sidebar-sub-menu .sub-menu-btn {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.6);
	transition: color var(--transition-normal);
}

.sidebar-sub-menu .sub-menu-btn:hover {
	color: var(--white);
}

.sidebar-footer {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo img {
	height: 32px;
}

/* Close Button */
.btn-close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 40px;
	height: 40px;
}

.btn-close span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 24px;
	height: 2px;
	background: var(--white);
}

.btn-close span:first-child {
	transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close span:last-child {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Sidebar Overlay */
.sidebar-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all var(--transition-normal);
}

.sidebar-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* ==================== */
/* Footer               */
/* ==================== */
.footer {
	position: relative;
	padding: 50px 0;
	border-top: 1px solid #B3B3B3;
}

.footer .inner-wrap {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.footer .f-left {
	display: flex;
	gap: 83px;
}

.footer .f-logo img {
	height: 36px;
}

.footer .f-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer .f-info p {
	font-size: 16px;
	line-height: 1.6;
}

.footer .f-info b {
	font-weight: 600;
}

.footer .f-info .divider {
	margin: 0 12px;
}

.footer .f-contact {
	color: #787878;
}

.footer .f-copy {
	margin-top: 38px;
	font-size: 14px;
	color: var(--text-secondary);
}

.footer .f-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 16px;
}

.footer .f-privacy {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-tertiary);
	transition: color var(--transition-normal);
}

.footer .f-privacy:hover {
	color: var(--primary);
}

/* ==================== */
/* Common Buttons       */
/* ==================== */
.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 32px;
	background: var(--primary);
	border-radius: var(--radius-lg);
	font-size: 16px;
	font-weight: 600;
	color: var(--white);
	transition: all var(--transition-normal);
}

.btn-primary:hover {
	background: var(--primary-dark);
	transform: translateY(-2px);
}

.btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 32px;
	background: transparent;
	border: 1px solid var(--primary);
	border-radius: var(--radius-lg);
	font-size: 16px;
	font-weight: 600;
	color: var(--primary);
	transition: all var(--transition-normal);
}

.btn-outline:hover {
	background: var(--primary);
	color: var(--white);
}

.btn-white {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 32px;
	background: var(--white);
	border-radius: var(--radius-lg);
	font-size: 16px;
	font-weight: 600;
	color: var(--primary);
	transition: all var(--transition-normal);
}

.btn-white:hover {
	background: var(--gray-100);
	transform: translateY(-2px);
}

/* ==================== */
/* Responsive           */
/* ==================== */
@media (max-width: 1200px) {
	header .gnb > ul {
		gap: 32px;
	}

	header .gnb > ul > li > a {
		font-size: 14px;
	}
}

@media (max-width: 1024px) {
	header .gnb {
		display: none;
	}

	header .header-contact {
		display: none;
	}

	.btn-menu {
		display: flex;
	}

	.footer .inner-wrap {
		flex-direction: column;
		gap: 32px;
	}

	.footer .f-left {
		flex-direction: column;
		gap: 24px;
	}

	.footer .f-right {
		align-items: flex-start;
	}
}

@media (max-width: 767px) {
	.sidebar {
		max-width: 100%;
	}

	.sidebar-inner {
		padding: 80px 24px 32px;
	}

	.sidebar-main-menu li a {
		font-size: 20px;
	}

	.footer {
		padding: 40px 0;
	}

	.footer .f-logo img {
		height: 28px;
	}

	.footer .f-info p {
		font-size: 12px;
		line-height: 1.8;
	}

	.footer .f-info .divider {
		display: none;
	}

	.footer .f-company b,
	.footer .f-company span:last-child {
		display: block;
	}

	.footer .f-contact {
		display: flex;
		flex-direction: column;
		gap: 2px;
	}

	.footer .f-copy {
		font-size: 11px;
	}

	.footer .f-privacy {
		font-size: 14px;
	}
}
