/* Section Editor 위젯 블록과 공통 효과
 * 글꼴 변수와 .se-block 기준은 style.css, 여백·컨테이너·버튼은 extra.css 에 있다.
 */

/* ---------- 전역 색: 설정 화면에서 바꾼 값이 여기로 들어온다 ---------- */
/* 기본 글자 색(--se-text)은 style.css 의 .se-block 에서 쓴다 */
.se-button {
	border-color: var(--se-accent, #0f0f0f);
	background: var(--se-accent, #0f0f0f);
}

.se-button:hover,
.se-button:focus {
	color: var(--se-accent, #0f0f0f);
}

.se-tabs__tab[aria-selected="true"] { border-bottom-color: var(--se-accent, #0f0f0f); }

/* ---------- 등장 효과: 스크립트가 켜진 방문자 화면에서만 숨겼다가 보여준다 ---------- */
.se-js .se-motion {
	opacity: 0;
	transition: opacity 0.9s ease, transform 0.9s ease;
}

.se-js .se-motion--fade-up { transform: translateY(40px); }
.se-js .se-motion--fade-left { transform: translateX(40px); }
.se-js .se-motion--fade-right { transform: translateX(-40px); }
.se-js .se-motion--zoom { transform: scale(0.94); }

.se-js .se-motion.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- 여러 칸 배치 공통 ---------- */
.se-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 24px;
}

.se-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.se-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@container (max-width: 1023px) {
	.se-cols,
	.se-cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (max-width: 600px) {
	.se-cols,
	.se-cols--2,
	.se-cols--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 숫자 카운터 ---------- */
.se-counter { text-align: center; }

.se-counter__value {
	margin: 0;
	font-family: var(--se-serif);
	font-size: 64px;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.se-counter__suffix { font-size: 0.6em; }

.se-counter__label {
	margin: 10px 0 0;
	font-family: var(--se-kr);
	font-size: 16px;
	line-height: 1.5;
	color: #555;
}

@container (max-width: 600px) {
	.se-counter__value { font-size: 48px; }
}

/* ---------- 진행 막대 ---------- */
.se-progress__item + .se-progress__item { margin-top: 26px; }

.se-progress__head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 8px;
	font-family: var(--se-kr);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

.se-progress__bar {
	height: 6px;
	overflow: hidden;
	background: #e3e3e3;
}

.se-progress__bar span {
	display: block;
	height: 100%;
	background: var(--se-accent, #0f0f0f);
	transform-origin: left center;
	transition: transform 1.2s ease;
}

/* 화면에 들어오기 전에는 0에서 시작한다 */
.se-js .se-progress:not(.is-visible) .se-progress__bar span { transform: scaleX(0); }

/* ---------- 후기 ---------- */
.se-testimonials__item {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 32px 28px;
	border: 1px solid #dcdcdc;
	background: #fff;
}

.se-testimonials__rating {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 2px;
	color: #c79a2b;
}

.se-testimonials__rating span { color: #d9d9d9; }

.se-testimonials__quote {
	flex: 1;
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--se-kr);
	font-size: 16px;
	font-style: normal;
	line-height: 1.8;
	color: #333;
}

.se-testimonials__who {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
	font-family: var(--se-kr);
	font-size: 15px;
	line-height: 1.4;
}

.se-testimonials__who img {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.se-testimonials__who strong { display: block; }

.se-testimonials__who small {
	display: block;
	font-size: 13px;
	color: #757575;
}

/* ---------- 이미지 상자 ---------- */
.se-imagebox--center { text-align: center; }

.se-imagebox__img {
	display: inline-block;
	width: auto;
	max-width: 100%;
	max-height: 160px;
	margin-bottom: 20px;
}

.se-imagebox__title {
	margin: 0;
	padding: 0;
	font-family: var(--se-kr);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
	color: inherit;
}

.se-imagebox__title a {
	color: inherit;
	text-decoration: none;
}

.se-imagebox__title a:hover { text-decoration: underline; }

.se-imagebox__body {
	margin: 10px 0 0;
	font-family: var(--se-kr);
	font-size: 15px;
	line-height: 1.7;
	color: #444;
}

/* ---------- 가격표 ---------- */
.se-pricing {
	display: grid;
	grid-template-columns: repeat(var(--se-count, 3), minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.se-pricing__item {
	display: flex;
	flex-direction: column;
	padding: 36px 28px;
	border: 1px solid #dcdcdc;
	background: #fff;
}

.se-pricing__item.is-featured {
	border: 2px solid var(--se-accent, #0f0f0f);
	padding: 35px 27px;
}

.se-pricing__name {
	margin: 0;
	padding: 0;
	font-family: var(--se-kr);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
	color: inherit;
}

.se-pricing__price {
	margin: 14px 0 0;
	font-family: var(--se-grotesk);
	font-size: 40px;
	font-weight: 500;
	line-height: 1.1;
}

.se-pricing__price small {
	margin-left: 4px;
	font-size: 15px;
	font-weight: 400;
	color: #757575;
}

.se-pricing__features {
	flex: 1;
	margin: 24px 0 28px;
	padding: 0;
	list-style: none;
	font-family: var(--se-kr);
	font-size: 15px;
	line-height: 1.6;
}

.se-pricing__features li {
	padding: 10px 0;
	border-top: 1px solid #ececec;
}

.se-pricing .se-button { min-width: 0; }

@container (max-width: 900px) {
	.se-pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (max-width: 600px) {
	.se-pricing { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 지도 ---------- */
.se-map {
	display: block;
	width: 100%;
	max-width: none;
	border: 0;
}

/* ---------- 카운트다운 ---------- */
.se-countdown-wrap { text-align: center; }

.se-countdown {
	display: flex;
	justify-content: center;
	gap: 12px;
}

.se-countdown__unit {
	min-width: 96px;
	padding: 20px 10px;
	border: 1px solid #dcdcdc;
	background: #fff;
}

.se-countdown__num {
	display: block;
	font-family: var(--se-grotesk);
	font-size: 44px;
	font-weight: 500;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.se-countdown__label {
	display: block;
	margin-top: 6px;
	font-family: var(--se-kr);
	font-size: 13px;
	color: #757575;
}

.se-countdown__done,
.se-countdown__fallback {
	margin: 0;
	font-family: var(--se-kr);
	font-size: 20px;
	line-height: 1.5;
}

@container (max-width: 600px) {
	.se-countdown { gap: 6px; }
	.se-countdown__unit {
		flex: 1;
		min-width: 0;
		padding: 14px 4px;
	}
	.se-countdown__num { font-size: 28px; }
}

/* ---------- 알림 상자 ---------- */
.se-alert {
	padding: 18px 20px;
	border-left: 4px solid #2b6cb0;
	background: #eef4fb;
	font-family: var(--se-kr);
	color: #1a365d;
}

.se-alert--success { border-left-color: #1b6e3c; background: #edf7f0; color: #14472a; }
.se-alert--warning { border-left-color: #b7791f; background: #fdf6e7; color: #5f3d0c; }
.se-alert--error   { border-left-color: #b00020; background: #fceef0; color: #6b0014; }

.se-alert__title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
}

.se-alert__body {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
	.se-js .se-motion {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.se-progress__bar span { transition: none; }
	.se-js .se-progress:not(.is-visible) .se-progress__bar span { transform: none; }
}
