/* ==========================================================================
   YK Vocal Hero layout stylesheet
   - "Solid Amber" 디자인 프레임워크 (beanent.com 샘플) 참고, 실제 색상/토큰 값을
     해당 페이지에서 읽어와 반영함 (--acc:#c59026, --r:10px, --bw:0 등)
   - 전역 오염 방지를 위해 .yk-wrap 스코프 내에서만 스타일 적용
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

/* 브라우저 기본 body 여백(8px) 리셋 - 헤더/히어로/푸터가 화면 양옆까지 꽉 차도록 함 */
html, body {
	margin: 0;
	padding: 0;
}

.yk-wrap {
	--yk-primary: #c59026;
	--yk-primary-h: #a5781d;
	--yk-primary-soft: #f8f1e2;
	--yk-accent-ink: #ffffff;
	--yk-secondary: #475569;
	--yk-dark: #1b2230;
	--yk-head: #1a1f29;
	--yk-ink: #3a4250;
	--yk-muted: #7e8794;
	--yk-line: #e6e9ee;
	--yk-line-strong: #cfd4dc;
	--yk-surface: #ffffff;
	--yk-surface2: #eef1f5;
	--yk-bg: #f7f8fa;
	--yk-err: #d32822;
	--yk-radius: 10px;
	--yk-max-width: 1120px;

	/* 하위 호환용 별칭 (기존 코드에서 참조하던 이름) */
	--yk-text: var(--yk-head);
	--yk-text-muted: var(--yk-muted);
	--yk-border: var(--yk-line);
	--yk-bg-alt: var(--yk-surface2);

	font-family: 'Nunito', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--yk-ink);
	line-height: 1.6;
	word-break: keep-all;
	background: var(--yk-bg);
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* -------------------- DARK MODE -------------------- */
.yk-wrap.yk-dark {
	--yk-head: #f5f6f8;
	--yk-ink: #d7dbe2;
	--yk-muted: #9aa3b2;
	--yk-line: #2a3140;
	--yk-line-strong: #3a4252;
	--yk-surface: #1b2230;
	--yk-surface2: #242c3b;
	--yk-bg: #12161f;
	--yk-primary-soft: #3a2f1a;
}

.yk-wrap *,
.yk-wrap *::before,
.yk-wrap *::after {
	box-sizing: border-box;
}

.yk-wrap a {
	color: inherit;
	text-decoration: none;
}

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

.yk-wrap img {
	max-width: 100%;
	display: block;
}

.skip {
	position: absolute;
	top: -9999px;
	left: -9999px;
}
.skip a:focus {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999;
	padding: 8px 12px;
	background: #000;
	color: #fff;
}

/* -------------------- HEADER -------------------- */
.yk-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--yk-surface);
	border-bottom: 1px solid var(--yk-line);
	transition: background-color 0.2s ease;
}
.yk-header.is-scrolled {
	background: var(--yk-primary-soft);
}

.yk-header-inner {
	max-width: var(--yk-max-width);
	margin: 0 auto;
	padding: 0 24px;
	height: 64px;
	display: flex;
	align-items: center;
	gap: 32px;
}

.yk-logo {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 0.2px;
}
.yk-logo a {
	color: var(--yk-head);
}

.yk-gnb {
	margin-left: auto;
}
.yk-gnb > ul {
	display: flex;
	gap: 8px;
}
.yk-gnb > ul > li {
	position: relative;
}
.yk-gnb > ul > li > a {
	display: flex;
	align-items: center;
	gap: 4px;
	color: var(--yk-muted);
	font-size: 14px;
	font-weight: 700;
	padding: 8px 14px;
	border-radius: var(--yk-radius);
	transition: background 0.15s ease, color 0.15s ease;
}
.yk-gnb > ul > li > a:hover {
	color: var(--yk-primary);
	background: var(--yk-primary-soft);
}
.yk-caret {
	font-size: 10px;
	opacity: 0.7;
}
.yk-gnb-depth2 {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 160px;
	background: var(--yk-surface);
	border: 1px solid var(--yk-line);
	border-radius: var(--yk-radius);
	padding: 8px;
	overflow: hidden;
}
.yk-gnb > ul > li:hover .yk-gnb-depth2 {
	display: block;
}
.yk-gnb-depth2 a {
	display: block;
	padding: 8px 12px;
	color: var(--yk-ink);
	font-size: 14px;
	border-radius: 6px;
}
.yk-gnb-depth2 a:hover {
	background: var(--yk-surface2);
}

.yk-header-side {
	display: flex;
	align-items: center;
	gap: 14px;
}
.yk-theme-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: var(--yk-surface2);
	color: var(--yk-head);
	cursor: pointer;
	transition: background 0.15s ease;
}
.yk-theme-btn:hover {
	background: var(--yk-line-strong);
}
.yk-theme-icon-moon {
	display: none;
}
.yk-wrap.yk-dark .yk-theme-icon-sun {
	display: none;
}
.yk-wrap.yk-dark .yk-theme-icon-moon {
	display: block;
}
.yk-user {
	position: relative;
}
.yk-user-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--yk-surface2);
	color: var(--yk-head);
	transition: background 0.15s ease;
}
.yk-user-icon:hover {
	background: var(--yk-line-strong);
}
a.yk-user-icon-avatar {
	background: var(--yk-primary);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
}
a.yk-user-icon-avatar:hover {
	background: var(--yk-primary-h);
}
.yk-user-menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 140px;
	background: var(--yk-surface);
	border: 1px solid var(--yk-line);
	border-radius: var(--yk-radius);
	padding: 8px;
	overflow: hidden;
}
.yk-user:hover .yk-user-menu {
	display: block;
}
.yk-user-menu a {
	display: block;
	padding: 8px 12px;
	color: var(--yk-ink);
	font-size: 14px;
	border-radius: 6px;
}
.yk-user-menu a:hover {
	background: var(--yk-surface2);
}

.yk-menu-btn {
	display: none;
	width: 32px;
	height: 32px;
	background: none;
	border: 0;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 0;
}
.yk-menu-btn span {
	display: block;
	height: 2px;
	background: var(--yk-head);
	border-radius: 2px;
}

/* -------------------- HERO -------------------- */
.yk-hero {
	position: relative;
	min-height: 66vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 96px 24px 72px;
	background: #0f121a;
	color: #ffffff;
	overflow: hidden;
}
.yk-hero-slides {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.yk-hero-slides::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 18, 26, 0.55), rgba(15, 18, 26, 0.8));
}
.yk-hero-slide {
	position: absolute;
	inset: 0;
	background: center 20% / cover no-repeat;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.yk-hero-slide.is-active {
	opacity: 1;
}
.yk-hero-slide:nth-child(1) { background-image: url('../img/hero/hero-1.jpg'); }
.yk-hero-slide:nth-child(2) { background-image: url('../img/hero/hero-2.jpg'); }
.yk-hero-slide:nth-child(3) { background-image: url('../img/hero/hero-3.jpg'); }
.yk-hero-slide:nth-child(4) { background-image: url('../img/hero/hero-4.jpg'); }
.yk-hero-slide:nth-child(5) { background-image: url('../img/hero/hero-5.jpg'); }
.yk-hero-inner {
	position: relative;
	z-index: 1;
	max-width: var(--yk-max-width);
	width: 100%;
}
.yk-hero-eyebrow {
	letter-spacing: 3px;
	font-size: 13px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.85);
	text-transform: uppercase;
	margin: 0 0 18px;
}
.yk-hero-title {
	font-size: clamp(32px, 6vw, 56px);
	font-weight: 800;
	line-height: 1.3;
	color: #ffffff;
	margin: 0 0 20px;
}
.yk-hero-subtitle {
	font-size: 17px;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 36px;
}
.yk-hero-scroll {
	position: absolute;
	z-index: 1;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.85);
	font-size: 20px;
	animation: yk-bounce 1.8s infinite;
}
@keyframes yk-bounce {
	0%, 100% { transform: translate(-50%, 0); }
	50% { transform: translate(-50%, 8px); }
}

/* -------------------- BUTTONS -------------------- */
.yk-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	transition: background 0.15s ease, transform 0.15s ease;
}
.yk-btn:hover {
	transform: translateY(-1px);
}
.yk-btn-primary {
	background: var(--yk-primary);
	color: var(--yk-accent-ink);
}
.yk-btn-primary:hover {
	background: var(--yk-primary-h);
}
.yk-btn-light {
	background: var(--yk-surface);
	color: var(--yk-head);
	border: 1px solid var(--yk-line-strong);
}
.yk-btn-light:hover {
	background: var(--yk-surface2);
}

/* -------------------- SECTIONS -------------------- */
.yk-section {
	padding: 96px 24px;
	background: var(--yk-surface);
}
.yk-section-alt {
	background: var(--yk-surface2);
}
.yk-section-inner {
	max-width: var(--yk-max-width);
	margin: 0 auto;
	text-align: center;
}
.yk-section-eyebrow {
	letter-spacing: 3px;
	font-size: 13px;
	font-weight: 700;
	color: var(--yk-primary);
	text-transform: uppercase;
	margin: 0 0 14px;
}
.yk-section-title {
	font-size: clamp(24px, 4vw, 34px);
	font-weight: 800;
	color: var(--yk-head);
	margin: 0 0 48px;
}

.yk-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	text-align: left;
}
.yk-card {
	background: var(--yk-surface);
	border: 1px solid var(--yk-line);
	border-radius: var(--yk-radius);
	padding: 28px 22px;
}
.yk-card-icon {
	margin-bottom: 14px;
	color: var(--yk-primary);
}

.yk-instructor-wrap {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 40px;
	align-items: center;
	text-align: left;
	margin-top: 12px;
}
.yk-instructor-photo {
	border-radius: var(--yk-radius);
	overflow: hidden;
}
.yk-instructor-photo img {
	width: 100%;
	display: block;
}
.yk-instructor-info h4 {
	font-size: 20px;
	font-weight: 800;
	color: var(--yk-head);
	margin: 0 0 12px;
}
.yk-instructor-info p {
	font-size: 15px;
	color: var(--yk-muted);
	line-height: 1.7;
	margin: 0;
}
@media (max-width: 720px) {
	.yk-instructor-wrap {
		grid-template-columns: 1fr;
	}
	.yk-instructor-photo {
		max-width: 240px;
		margin: 0 auto;
	}
}
.yk-card h4 {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	color: var(--yk-head);
}
.yk-card p {
	margin: 0;
	font-size: 14px;
	color: var(--yk-muted);
}

.yk-about-desc {
	color: var(--yk-muted);
	max-width: 560px;
	margin: 0 auto 48px;
}
.yk-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.yk-stat {
	padding: 24px;
	border-radius: var(--yk-radius);
	background: var(--yk-surface2);
}
.yk-stat strong {
	display: block;
	font-size: 34px;
	font-weight: 800;
	color: var(--yk-primary);
}
.yk-stat span {
	font-size: 14px;
	color: var(--yk-muted);
}

/* -------------------- CTA 카드 (히어로 내부에 배치됨) -------------------- */
.yk-cta-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	max-width: var(--yk-max-width);
	margin: 32px auto 0;
	text-align: left;
}
.yk-cta-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 200px;
	padding: 36px 28px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
	text-decoration: none;
	cursor: default;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
a.yk-cta-card {
	cursor: pointer;
}
.yk-cta-card:hover {
	transform: translateY(-4px);
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.4);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}
.yk-cta-card-icon {
	position: relative;
	z-index: 2;
	margin-bottom: 16px;
	color: var(--yk-primary);
	transition: opacity 0.25s ease;
}
.yk-cta-card:hover .yk-cta-card-icon {
	opacity: 0;
}
.yk-cta-card-title {
	position: relative;
	z-index: 2;
	font-size: 19px;
	font-weight: 800;
	margin: 0;
	color: #ffffff;
	transition: transform 0.3s ease;
}
.yk-cta-card:hover .yk-cta-card-title {
	transform: translateY(-8px);
}
.yk-cta-card-desc {
	position: relative;
	z-index: 2;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.92);
	margin: 0;
	max-height: 0;
	opacity: 0;
	transform: translateY(18px);
	overflow: hidden;
	transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease, margin-top 0.3s ease;
}
.yk-cta-card:hover .yk-cta-card-desc {
	max-height: 100px;
	opacity: 1;
	margin-top: 10px;
	transform: translateY(0);
}

@media (max-width: 860px) {
	.yk-cta-grid {
		grid-template-columns: 1fr;
	}
}

/* -------------------- SUBPAGE HEADER -------------------- */
.yk-subheader {
	padding: 56px 24px;
	background: var(--yk-surface2);
	text-align: center;
}
.yk-subheader h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	color: var(--yk-head);
}
.yk-module-content {
	max-width: var(--yk-max-width);
	margin: 0 auto;
	padding: 40px 24px 80px;
}
/* 페이지 모듈이 문서 제목을 본문 위에 자동으로 한번 더 출력해서
   위쪽 yk-subheader와 제목이 중복 표시됨 -> 중복분 숨김 */
.yk-module-content > h1:first-child {
	display: none;
}

/* -------------------- FOOTER -------------------- */
.yk-footer {
	position: relative;
	background: var(--yk-dark);
	color: rgba(255, 255, 255, 0.6);
	padding: 40px 24px;
	text-align: center;
	font-size: 13px;
}
.yk-footer-inner {
	max-width: var(--yk-max-width);
	margin: 0 auto;
}
.yk-footer-text {
	margin: 0 0 12px;
	color: rgba(255, 255, 255, 0.85);
}
.yk-footer-links a {
	margin: 0 8px;
}
.yk-footer-copy {
	margin: 12px 0 0;
}
.yk-to-top {
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* iframe 안에 삽입되어 열린 페이지(예: 상품문의 게시판 임베드)에서는 헤더/푸터를 숨겨 중복 메뉴가 보이지 않게 함 */
html.yk-embedded .yk-header,
html.yk-embedded .yk-footer {
	display: none !important;
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 860px) {
	.yk-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.yk-stats {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.yk-menu-btn {
		display: flex;
	}
	.yk-gnb {
		position: fixed;
		top: 64px;
		left: 0;
		right: 0;
		bottom: 0;
		background: var(--yk-surface);
		padding: 24px;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		flex: none;
	}
	.yk-gnb.is-open {
		transform: translateX(0);
	}
	.yk-gnb > ul {
		flex-direction: column;
		gap: 4px;
	}
	.yk-gnb > ul > li > a {
		display: block;
		padding: 14px 4px;
		border-bottom: 1px solid var(--yk-line);
	}
	.yk-gnb-depth2 {
		position: static;
		border: none;
		padding-left: 12px;
	}
	.yk-gnb-depth2 a {
		color: var(--yk-muted);
	}
	.yk-gnb-depth2 a:hover {
		background: var(--yk-surface2);
	}
	.yk-card-grid {
		grid-template-columns: 1fr;
	}
	.yk-to-top {
		display: none;
	}
}

/* -------------------- 풀페이지 스냅 스크롤 (데스크톱 전용) -------------------- */
.yk-fp-nav {
	display: none;
	position: fixed;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	flex-direction: column;
	align-items: center;
	gap: 14px;
	z-index: 500;
}
.yk-fp-nav .yk-fp-dot {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ffffff;
	border: 2px solid var(--yk-primary);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.yk-fp-nav .yk-fp-dot:hover {
	transform: scale(1.15);
}
.yk-fp-nav .yk-fp-dot.is-active {
	background: var(--yk-primary);
	transform: scale(1.3);
}

@media (min-width: 769px) {
	.yk-fp-nav {
		display: flex;
	}
	html.yk-fp-enabled {
		scroll-snap-type: y mandatory;
	}
	html.yk-fp-enabled .yk-fullpage > .yk-hero,
	html.yk-fp-enabled .yk-fullpage > .yk-section,
	html.yk-fp-enabled .yk-fullpage > .yk-cta {
		scroll-snap-align: start;
		scroll-snap-stop: always;
		min-height: 100vh;
		display: flex;
		flex-direction: column;
		justify-content: center;
		box-sizing: border-box;
	}
	/* 푸터도 스냅 지점으로 포함시켜야 mandatory 스냅이 CTA에서 더 못 내려가게 막는 문제가 없어짐 */
	html.yk-fp-enabled .yk-footer {
		scroll-snap-align: start;
	}

	/* 히어로 위에서는 헤더를 투명하게, 스크롤하면 배경색이 나타나도록 */
	html.yk-fp-enabled .yk-header {
		background: transparent;
		border-bottom-color: transparent;
	}
	html.yk-fp-enabled .yk-header.is-scrolled {
		background: var(--yk-primary-soft);
		border-bottom-color: var(--yk-line);
	}
	html.yk-fp-enabled .yk-header:not(.is-scrolled) .yk-logo a,
	html.yk-fp-enabled .yk-header:not(.is-scrolled) .yk-gnb > ul > li > a,
	html.yk-fp-enabled .yk-header:not(.is-scrolled) .yk-theme-btn,
	html.yk-fp-enabled .yk-header:not(.is-scrolled) .yk-user-icon,
	html.yk-fp-enabled .yk-header:not(.is-scrolled) .yk-menu-btn span {
		color: #ffffff;
	}
	html.yk-fp-enabled .yk-header:not(.is-scrolled) .yk-menu-btn span {
		background: #ffffff;
	}
	html.yk-fp-enabled .yk-header:not(.is-scrolled) .yk-gnb > ul > li > a:hover {
		color: #ffffff;
		background: rgba(255, 255, 255, 0.18);
	}
	html.yk-fp-enabled .yk-header:not(.is-scrolled) .yk-theme-btn,
	html.yk-fp-enabled .yk-header:not(.is-scrolled) .yk-user-icon {
		background: rgba(255, 255, 255, 0.16);
	}
	html.yk-fp-enabled .yk-header:not(.is-scrolled) .yk-theme-btn:hover,
	html.yk-fp-enabled .yk-header:not(.is-scrolled) .yk-user-icon:hover {
		background: rgba(255, 255, 255, 0.3);
	}
}
