/* ==========================================================================
   rc-style.css
   대전 하늘채 스카이앤 3차 - 참고사이트(가경동 센트럴 더 플래티넘) 구조를
   기반으로 이식한 헤더/메가메뉴/팝업/모달/스티키바/카카오플로팅 스타일.
   콘텐츠(문구/이미지)는 각 페이지 블록 편집기에서 수정하고,
   여기 있는 것은 전역 디자인/애니메이션 뼈대입니다.
   ========================================================================== */

:root {
	--rc-navy: #0b1420;
	--rc-navy-2: #121c2b;
	--rc-gold: #c9a24b;
	--rc-gold-light: #e2c887;
	--rc-header-h: 84px;
	--rc-z-header: 4000;
	--rc-z-mega: 3900;
	--rc-z-modal: 6000;
	--rc-z-popup: 9999;
	--rc-z-sticky: 3500;
	--rc-z-kakao: 3600;
}

/* Neve 기본 헤더/푸터는 숨기고 아래 커스텀 헤더/푸터를 사용합니다. */
.rc-hide-native-header .site-header,
.rc-hide-native-header #header-grid,
.rc-hide-native-header > .wrapper > header.header,
.rc-hide-native-header .site-footer,
.rc-hide-native-header #colophon {
	display: none !important;
}

body.has-rc-chrome {
	padding-top: 0;
}

/* --------------------------------------------------------------------------
   HEADER + MEGA MENU
   -------------------------------------------------------------------------- */
.rc-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--rc-header-h);
	z-index: var(--rc-z-header);
	background: transparent;
	transition: background-color .35s ease, border-color .35s ease;
	border-bottom: 1px solid transparent;
}

.rc-header.is-scrolled,
.rc-header.is-mega-open {
	background: #fff;
	border-bottom-color: rgba(11, 20, 32, .12);
}

.rc-header-bar {
	height: var(--rc-header-h);
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rc-logo {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: .01em;
	color: #fff;
	text-decoration: none;
	transition: color .3s ease;
	white-space: nowrap;
}

.rc-header.is-scrolled .rc-logo,
.rc-header.is-mega-open .rc-logo {
	color: var(--rc-navy);
}

.rc-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.rc-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: clamp(20px, 3vw, 44px);
	margin: 0;
	padding: 0;
}

.rc-menu > li {
	position: relative;
}

.rc-menu > li > a {
	position: relative;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	opacity: .95;
	padding-bottom: 6px;
	transition: color .3s ease;
}

.rc-menu > li > a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	transform: translateX(-50%);
	clip-path: inset(0 50% 0 50%);
	transition: clip-path .28s ease;
}

.rc-menu > li:hover > a::after,
.rc-menu > li.rc-mega-active > a::after {
	clip-path: inset(0 0 0 0);
}

.rc-header.is-scrolled .rc-menu > li > a,
.rc-header.is-mega-open .rc-menu > li > a {
	color: var(--rc-navy);
}

.rc-header.is-scrolled .rc-menu > li:hover > a,
.rc-header.is-mega-open .rc-menu > li:hover > a {
	color: var(--rc-gold);
}

.rc-call-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.15;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	transition: color .3s ease;
}

.rc-header.is-scrolled .rc-call-btn,
.rc-header.is-mega-open .rc-call-btn {
	color: var(--rc-navy);
}

.rc-call-btn-label {
	font-size: 12px;
	font-weight: 600;
	opacity: .85;
}

.rc-call-btn-phone {
	font-size: 21px;
	font-weight: 800;
	letter-spacing: .02em;
}

/* Mega dropdown */
.rc-mega {
	position: fixed;
	top: var(--rc-header-h);
	left: 0;
	width: 100%;
	z-index: var(--rc-z-mega);
	background: #fff;
	box-shadow: 0 24px 48px rgba(11, 20, 32, .12);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-8px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.rc-header:hover .rc-mega,
.rc-header.is-mega-open .rc-mega {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.rc-mega-row {
	max-width: 1440px;
	margin: 0 auto;
	padding: 36px 32px 44px;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 24px;
}

.rc-mega-col a {
	display: block;
	padding: 8px 6px;
	font-size: 15px;
	color: var(--rc-navy);
	text-decoration: none;
	opacity: .82;
	border-radius: 4px;
	transition: color .2s ease, background-color .2s ease, opacity .2s ease;
}

.rc-mega-col a:hover {
	opacity: 1;
	color: var(--rc-gold);
	background: rgba(201, 162, 75, .08);
}

.rc-menu-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.rc-menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: #fff;
	transition: background-color .3s ease, transform .3s ease, opacity .3s ease;
}

.rc-header.is-scrolled .rc-menu-toggle span,
.rc-header.is-mega-open .rc-menu-toggle span {
	background: var(--rc-navy);
}

.rc-header.is-mega-open .rc-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rc-header.is-mega-open .rc-menu-toggle span:nth-child(2) { opacity: 0; }
.rc-header.is-mega-open .rc-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   HERO 진입 애니메이션 (premium-hero 블록에 적용)
   -------------------------------------------------------------------------- */
.premium-hero h1 {
	animation: rcHeroTitleDown 1.1s cubic-bezier(.22, .61, .36, 1) both;
}

.premium-hero p {
	animation: rcHeroSubDown .8s cubic-bezier(.22, .61, .36, 1) both;
	animation-delay: .12s;
}

@keyframes rcHeroTitleDown {
	from { opacity: 0; transform: translateY(-26px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes rcHeroSubDown {
	from { opacity: 0; transform: translateY(-16px); }
	to { opacity: 1; transform: translateY(0); }
}

/* 스크롤 진입 시 섹션 페이드업 (premium-section / premium-cards / premium-dark 공통) */
.rc-inview {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}

.rc-inview.rc-inview-active {
	opacity: 1;
	transform: translateY(0);
}

/* --------------------------------------------------------------------------
   POPUP (진입 팝업)
   -------------------------------------------------------------------------- */
.rc-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--rc-z-popup);
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .65);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .35s ease, visibility .35s ease;
}

.rc-popup-overlay.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.rc-popup-wrap {
	width: min(1040px, calc(100vw - 64px));
	max-height: calc(100vh - 64px);
	overflow: auto;
	background: #111;
	border-radius: 10px;
	transform: translateY(18px);
	opacity: 0;
	transition: transform .35s cubic-bezier(.22, .61, .36, 1), opacity .25s ease;
}

.rc-popup-overlay.is-active .rc-popup-wrap {
	transform: translateY(0);
	opacity: 1;
}

.rc-popup-images {
	display: flex;
	flex-wrap: wrap;
}

.rc-popup-images > a,
.rc-popup-images > button {
	flex: 1 1 260px;
	min-width: 0;
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.rc-popup-images img {
	display: block;
	width: 100%;
	height: auto;
}

.rc-popup-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px;
	background: #333;
}

.rc-popup-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #fff;
}

.rc-popup-close {
	background: none;
	border: none;
	font-size: 22px;
	color: #fff;
	cursor: pointer;
	line-height: 1;
	padding: 4px 8px;
}

/* --------------------------------------------------------------------------
   NOTICE / POLICY MODAL (사업승인 고시, 개인정보처리방침)
   -------------------------------------------------------------------------- */
.rc-notice-modal,
.rc-policy-modal {
	position: fixed;
	inset: 0;
	z-index: var(--rc-z-modal);
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .72);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .3s ease, visibility .3s ease;
}

.rc-notice-modal.is-active,
.rc-policy-modal.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.rc-notice-modal-content {
	width: min(900px, calc(100% - 64px));
	max-height: calc(100vh - 64px);
	background: #f4f4f4;
	border-radius: 8px;
	overflow: hidden;
}

.rc-notice-modal-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-height: calc(100vh - 140px);
	overflow: auto;
}

.rc-notice-modal-body img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.rc-notice-modal-bottom,
.rc-policy-modal-header {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 10px 20px;
	background: #333;
	color: #fff;
}

.rc-policy-modal-header {
	justify-content: space-between;
	background: var(--rc-navy);
}

.rc-policy-modal-content {
	width: min(760px, calc(100% - 48px));
	max-height: calc(100vh - 64px);
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.rc-policy-modal-body {
	padding: 24px 26px;
	overflow: auto;
	font-size: 14px;
	line-height: 1.75;
	color: #222;
}

.rc-policy-modal-body h4 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.rc-policy-modal-body p { margin: 0 0 12px; }
.rc-policy-modal-body ul, .rc-policy-modal-body ol { margin: 0 0 14px 18px; }
.rc-policy-modal-body hr { border: 0; border-top: 1px solid rgba(0,0,0,.1); margin: 16px 0; }

.rc-modal-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
}

/* --------------------------------------------------------------------------
   LEAD MODAL (관심고객등록 / 방문예약)
   -------------------------------------------------------------------------- */
.rc-lead-modal {
	position: fixed;
	inset: 0;
	z-index: var(--rc-z-modal);
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .65);
}

.rc-lead-modal.is-active { display: flex; }

.rc-lead-modal-content {
	position: relative;
	width: min(480px, 92%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 46px 34px 32px;
	border-radius: 16px;
	background: #fff;
	animation: rcModalFadeUp .3s ease;
}

@keyframes rcModalFadeUp {
	from { transform: translateY(14px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.rc-lead-modal-close {
	position: absolute;
	top: -16px;
	left: 50%;
	transform: translateX(-50%);
	width: 84px;
	height: 44px;
	border-radius: 24px;
	border: none;
	background: var(--rc-navy);
	color: #fff;
	font-size: 26px;
	cursor: pointer;
}

.rc-modal-title {
	margin: 0 0 6px;
	text-align: center;
	font-size: 26px;
	font-weight: 700;
	color: var(--rc-navy);
}

.rc-modal-sub {
	margin: 0 0 20px;
	text-align: center;
	font-size: 14px;
	color: #555;
}

.rc-lead-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rc-field { position: relative; }

.rc-row {
	height: 52px;
	border-radius: 12px;
	border: 1px solid #d8d8d8;
	background: #f7f7f7;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.rc-row:focus-within {
	border-color: var(--rc-gold);
	background: #fff;
}

.rc-field-label {
	width: 92px;
	flex: 0 0 92px;
	padding-left: 18px;
	font-size: 15px;
	color: var(--rc-navy);
}

.rc-input,
.rc-visit-trigger {
	flex: 1;
	height: 100%;
	border: 0;
	background: transparent;
	outline: none;
	padding: 0 16px;
	font-size: 15px;
	color: #111;
	text-align: left;
	cursor: pointer;
}

.rc-input::placeholder { color: #999; }

.rc-error-bubble {
	display: none;
	margin-top: 6px;
	padding: 8px 12px;
	border: 1px solid #f0c9c0;
	border-radius: 8px;
	background: #fff5f2;
	color: #d9552f;
	font-size: 12.5px;
}

.rc-error-bubble.is-active { display: block; }

.rc-agree-group {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 4px;
}

.rc-policy-link {
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
	color: var(--rc-navy);
}

.rc-agree-option {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	cursor: pointer;
}

.rc-lead-submit {
	height: 58px;
	border: 0;
	border-radius: 12px;
	background: var(--rc-navy);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s ease;
}

.rc-lead-submit:hover { background: var(--rc-navy-2); }
.rc-lead-submit:disabled { opacity: .7; cursor: default; }

/* Visit date/time picker */
.rc-visit-modal {
	position: fixed;
	inset: 0;
	z-index: calc(var(--rc-z-modal) + 10);
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(3, 14, 33, .72);
}

.rc-visit-modal.is-active { display: flex; }

.rc-visit-picker {
	width: min(420px, calc(100vw - 24px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 18px;
	border-radius: 14px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rc-cal-header {
	display: grid;
	grid-template-columns: 36px 1fr 36px;
	align-items: center;
}

.rc-cal-title { text-align: center; font-weight: 700; font-size: 18px; color: var(--rc-navy); }

.rc-cal-nav {
	border: 0;
	background: transparent;
	font-size: 22px;
	cursor: pointer;
	color: var(--rc-navy);
}

.rc-cal-nav:disabled { color: #ccc; cursor: default; }

.rc-cal-weekdays,
.rc-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
}

.rc-cal-weekday { text-align: center; font-size: 13px; font-weight: 600; color: #666; }

.rc-cal-day {
	height: 38px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	cursor: pointer;
}

.rc-cal-day.is-disabled { color: #ccc; cursor: default; }
.rc-cal-day.is-selected { background: var(--rc-navy); color: #fff; }
.rc-cal-day:not(.is-disabled):not(.is-selected):hover { border-color: var(--rc-navy); }

.rc-time-grid {
	display: none;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.rc-time-grid.is-active { display: grid; }

.rc-time-slot {
	height: 36px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	cursor: pointer;
}

.rc-time-slot.is-active { background: var(--rc-navy); color: #fff; border-color: var(--rc-navy); }

.rc-visit-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.rc-visit-btn {
	height: 36px;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: var(--rc-navy);
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   STICKY BOTTOM BAR
   -------------------------------------------------------------------------- */
.rc-sticky-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 16px;
	z-index: var(--rc-z-sticky);
	display: flex;
	justify-content: center;
	padding: 0 16px;
}

.rc-sticky-inner {
	width: min(720px, 100%);
	display: flex;
	gap: 10px;
}

.rc-sticky-btn {
	height: 58px;
	flex: 1;
	border: 0;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s ease;
}

.rc-sticky-btn:hover { transform: translateY(-3px); }

.rc-sticky-lead { background: var(--rc-gold); color: #17140b; flex-grow: 2; }
.rc-sticky-popup { background: #767676; flex-grow: 1; }
.rc-sticky-call { background: var(--rc-navy); flex-grow: 2; }

/* --------------------------------------------------------------------------
   KAKAO FLOAT
   -------------------------------------------------------------------------- */
.rc-kakao-float {
	position: fixed;
	right: 24px;
	top: 42%;
	transform: translateY(-50%);
	z-index: var(--rc-z-kakao);
}

.rc-kakao-float a {
	width: 68px;
	height: 74px;
	border-radius: 14px;
	background: #FEE500;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-decoration: none;
	color: #111;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
	transition: transform .3s ease, box-shadow .3s ease;
}

.rc-kakao-float a:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .26);
}

.rc-kakao-float i { font-size: 26px; }
.rc-kakao-float span { font-size: 12px; font-weight: 700; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.rc-footer {
	background: #05080d;
	color: rgba(255, 255, 255, .82);
	padding: 56px 32px 100px;
}

.rc-footer-inner {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px;
}

.rc-footer-title { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.rc-footer-copy p { margin: 0 0 4px; font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.65); }
.rc-footer-copy .rc-footer-key { font-weight: 700; color: rgba(255,255,255,.9); }

/* --------------------------------------------------------------------------
   서브페이지 상단 히어로(브레드크럼) - 목록형 페이지에 사용
   -------------------------------------------------------------------------- */
.rc-sub-hero {
	padding: calc(var(--rc-header-h) + 46px) 24px 40px;
	text-align: center;
	background: linear-gradient(135deg, var(--rc-navy) 0%, var(--rc-navy-2) 100%);
	color: #fff;
}

.rc-sub-hero h1 { margin: 0 0 10px; font-size: 32px; font-weight: 700; }
.rc-sub-hero p { margin: 0; color: rgba(255,255,255,.78); }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.rc-mega-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 782px) {
	:root { --rc-header-h: 64px; }

	.rc-menu { display: none; }
	.rc-header-bar { padding: 0 18px; }
	.rc-call-btn-phone { font-size: 16px; }
	.rc-call-btn-label { font-size: 10px; }
	.rc-logo { font-size: 16px; }

	.rc-menu-toggle { display: flex; }

	/* 모바일에서는 메가메뉴를 햄버거 버튼으로 여닫는 전체 목록으로 사용 */
	.rc-mega {
		top: var(--rc-header-h);
		height: calc(100vh - var(--rc-header-h));
		overflow: auto;
	}

	.rc-header:hover .rc-mega { opacity: 0; visibility: hidden; pointer-events: none; }
	.rc-header.is-mega-open .rc-mega { opacity: 1; visibility: visible; pointer-events: auto; }

	.rc-mega-row { grid-template-columns: 1fr; padding: 12px 24px 40px; gap: 4px; }
	.rc-mega-col { border-bottom: 1px solid rgba(11,20,32,.08); padding: 4px 0; }
	.rc-mega-col a { padding: 12px 6px; font-size: 16px; }

	.rc-sticky-inner { flex-wrap: wrap; }
	.rc-sticky-btn { min-width: 45%; font-size: 14px; height: 50px; }

	.rc-kakao-float { right: 14px; }
	.rc-kakao-float a { width: 56px; height: 60px; }
	.rc-kakao-float i { font-size: 20px; }
	.rc-kakao-float span { font-size: 10px; }

	.rc-footer { padding: 40px 20px 96px; }
}

body.has-rc-sticky-bar { padding-bottom: 84px; }
@media (max-width: 782px) {
	body.has-rc-sticky-bar { padding-bottom: 122px; }
}
