/* ===== FONTS ===== */
@font-face {
	font-family: 'Pretendard';
	font-weight: 300;
	font-style: normal;
	font-display: swap;
	src: url('../fonts/pretendard/PretendardStd-Light.woff2') format('woff2');
}
@font-face {
	font-family: 'Pretendard';
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url('../fonts/pretendard/PretendardStd-Regular.woff2') format('woff2');
}

body {
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ===== HEADER ===== */
/* sticky는 래퍼(.wp-block-template-part)에 적용해야 실제로 동작 */
.wp-site-blocks > .wp-block-template-part:first-child {
	position: sticky !important;
	top: 0 !important;
	z-index: 100 !important;
	margin-bottom: 0 !important;
}

.site-header {
	position: relative;
	height: 64px !important;
	background-color: #ffffff !important;
	box-sizing: border-box;
	border-bottom: none !important;
	transition: background-color 0.35s ease;
}

/* 딤드 그라디언트 레이어 — 히어로 페이지 최상위에서만 활성화 */
.site-header::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 100%);
	pointer-events: none;
	z-index: -1;
	opacity: 0;
	transition: opacity 0.35s ease;
}

/* 히어로 페이지 최상위: 투명 배경 + 딤드 그라디언트 활성화 */
.has-hero .site-header:not(.is-scrolled) {
	background-color: transparent !important;
}
.has-hero .site-header:not(.is-scrolled)::after {
	opacity: 1;
}

/* 스크롤 시: 흰색 불투명 배경 */
.site-header.is-scrolled {
	background-color: #ffffff !important;
}

/* 기본 텍스트 색상: 검정 (히어로 없는 페이지 / 스크롤 후 공통) */
.site-header .wp-block-site-title a {
	color: #1c1c1c !important;
	transition: color 0.35s ease;
}
.site-header .wp-block-navigation a {
	color: #1c1c1c !important;
	transition: color 0.35s ease;
}

/* 히어로 페이지 최상위: 흰색 텍스트 */
.has-hero .site-header:not(.is-scrolled) .wp-block-site-title a {
	color: #ffffff !important;
}
.has-hero .site-header:not(.is-scrolled) .wp-block-navigation a {
	color: #ffffff !important;
}

/* ===== HOMEPAGE BLOCK ===== */
.wp-block-interior-studio-homepage {
	margin-block-start: -64px !important; /* 헤더 뒤로 끌어올려 히어로가 뷰포트 전체 커버 */
	margin-block-end: 0 !important;
}

.wp-block-group:is(main) {
	padding: 0 !important;
	margin: 0 !important;
}

.wp-site-blocks {
	row-gap: 0 !important;
}

.wp-site-blocks > .wp-block-template-part:last-child,
.wp-site-blocks > footer {
	margin-top: 0 !important;
}

/* ===== FOOTER ===== */
.footer-inner {
	padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 5rem) 0;
}

/* 코어 columns의 flex를 grid로 override — 2fr 1fr 1fr 비율 유지 */
.footer-top.wp-block-columns {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
	margin-bottom: 0;
}
.footer-top > .wp-block-column {
	flex: none;
	min-width: 0;
}

.footer-col__label.wp-block-heading {
	display: block;
	font-family: 'Pretendard', sans-serif;
	font-size: 0.6875rem;
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.35);
	margin: 0 0 1.5rem;
	line-height: 1;
}

/* site-title 블록을 푸터 로고로 사용 (헤더와 자동 동기화) */
.site-footer .wp-block-site-title {
	margin-bottom: 1.25rem;
}
.site-footer .wp-block-site-title a {
	color: #1C1C1C !important;
	text-decoration: none;
}

.footer-tagline {
	font-family: 'Pretendard', sans-serif;
	font-size: 0.8125rem;
	font-weight: 300;
	line-height: 1.85;
	color: rgba(0, 0, 0, 0.45);
	margin: 0 0 1.75rem;
}

/* 코어 social-links 기본 padding/background 제거하고 라인 스타일 적용 */
.footer-social.wp-block-social-links {
	gap: 0.875rem;
	padding: 0;
	margin: 0;
}
.footer-social .wp-block-social-link {
	background: transparent !important;
	color: rgba(0, 0, 0, 0.4) !important;
	margin: 0;
	width: auto;
	height: auto;
	transition: color 0.25s ease;
}
.footer-social .wp-block-social-link:hover {
	color: #1C1C1C !important;
	transform: none;
}
.footer-social .wp-block-social-link a {
	padding: 0;
	background: transparent;
}
.footer-social .wp-block-social-link svg {
	width: 1.1rem;
	height: 1.1rem;
	fill: currentColor;
}

/* 푸터 네비게이션 (코어 navigation 마크업) */
.footer-nav .wp-block-navigation-item__content {
	font-family: 'Pretendard', sans-serif;
	font-size: 0.875rem;
	font-weight: 300;
	color: rgba(0, 0, 0, 0.55);
	text-decoration: none;
	transition: color 0.2s ease;
}
.footer-nav .wp-block-navigation-item__content:hover {
	color: #1C1C1C;
}

/* 컨택트 컬럼 paragraph 각 라인 */
.footer-address__line {
	font-family: 'Pretendard', sans-serif;
	font-size: 0.875rem;
	font-weight: 300;
	line-height: 1.6;
	color: rgba(0, 0, 0, 0.55);
	margin: 0 0 0.6rem;
}
.footer-address__line:last-child {
	margin-bottom: 0;
}

/* 하단 바 */
.footer-bottom.wp-block-group {
	padding: 1.5rem 0;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	margin-top: 0;
}

.footer-copy {
	font-family: 'Pretendard', sans-serif;
	font-size: 0.75rem;
	font-weight: 300;
	color: rgba(0, 0, 0, 0.3);
	margin: 0;
}

.footer-bottom__links {
	font-family: 'Pretendard', sans-serif;
	font-weight: 300;
	color: rgba(0, 0, 0, 0.3);
	margin: 0;
}
.footer-bottom__links a {
	color: rgba(0, 0, 0, 0.3);
	text-decoration: none;
	transition: color 0.2s ease;
}
.footer-bottom__links a:hover { color: rgba(0, 0, 0, 0.7); }
.footer-bottom__links span { color: rgba(0, 0, 0, 0.2); margin: 0 0.5rem; }

@media (max-width: 768px) {
	.footer-top.wp-block-columns {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
	.footer-bottom.wp-block-group {
		flex-direction: column;
		gap: 0.75rem;
		text-align: center;
	}
}
