/* ============================================================
 * footer.css — 푸터 바(다크 시안)
 * oneup_v01
 * ============================================================ */

.site-footer {
	background: var(--footer-bg, #1a1a1a);
	color: var(--footer-text, #ffffff);
	font-weight: var(--font-footer-weight, 400);
	letter-spacing: var(--font-footer-letter-spacing, 0em);
	border-radius: var(--footer-border-radius, 0);
	overflow: hidden;
	margin: var(--footer-margin-top, 0) var(--footer-margin-right, 0) var(--footer-margin-bottom, 0) var(--footer-margin-left, 0);
	padding: var(--footer-padding-top, 0) var(--footer-padding-right, 0) var(--footer-padding-bottom, 0) var(--footer-padding-left, 0);
}

.site-footer--custom {
	background: transparent;
	padding: 0;
	margin: 0;
}

.site-footer__custom {
	width: 100%;
}

.site-footer__custom--empty {
	padding: 2rem 24px;
	text-align: center;
	background: var(--footer-bg, #1a1a1a);
	color: rgba(255, 255, 255, 0.65);
}

.site-footer__custom-placeholder {
	margin: 0;
	font-size: 0.875rem;
}

.site-footer__bar {
	background: var(--footer-bg, #1a1a1a);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.site-footer__bar-inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem 3rem;
	max-width: var(--container-max, 1680px);
	margin-left: auto;
	margin-right: auto;
	padding: 0 24px;
}

.site-footer__bar-inner--solo {
	justify-content: flex-end;
}

.site-footer__bar-inner--solo .site-footer__right {
	width: 100%;
	max-width: 100%;
}

/* ── 왼쪽: 로고 + 주소 + 메타 ── */

.site-footer__left {
	flex: 1 1 50%;
	min-width: 0;
}

.site-footer__logo {
	margin-bottom: 1.25rem;
}

.site-footer__logo img {
	display: block;
	max-width: var(--footer-logo-max-width, 200px);
	max-height: var(--footer-logo-max-height, 40px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.site-footer__address-primary {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--footer-text, #ffffff);
	font-weight: 400;
}

.site-footer__address-secondary {
	margin: 0 0 1.25rem;
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--footer-text-muted, #888888);
}

.site-footer__meta {
	font-size: 0.8125rem;
	line-height: 1.7;
	color: var(--footer-text, #ffffff);
}

.site-footer__meta-item {
	display: inline;
}

.site-footer__meta-label.is-strong {
	font-weight: 700;
}

.site-footer__meta-sep {
	white-space: pre;
	color: rgba(255, 255, 255, 0.35);
}

/* ── 오른쪽: SNS + 연락처 + 저작권 ── */

.site-footer__right {
	flex: 0 0 auto;
	text-align: right;
	min-width: 0;
}

.site-footer__sns {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.375rem 0.75rem;
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.site-footer__sns a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--footer-text, #ffffff);
	font-size: 0.875rem;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-footer__sns a:hover,
.site-footer__sns a:focus {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.35);
	color: var(--footer-accent, #6ec5d8);
}

.site-footer__contact {
	margin-bottom: 1rem;
}

.site-footer__phone,
.site-footer__email {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.site-footer__label {
	color: var(--footer-accent, #6ec5d8);
	font-weight: 500;
	margin-right: 0.35rem;
}

.site-footer__phone strong,
.site-footer__email strong {
	color: #ffffff;
	font-weight: 700;
	font-size: 1rem;
}

.site-footer__email a {
	color: inherit;
	text-decoration: none;
}

.site-footer__email a:hover,
.site-footer__email a:focus {
	text-decoration: underline;
}

/* 비급여수가표 — 회사명(.site-footer__meta) 글자와 동일한 크기·색상 */
.site-footer__price {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	line-height: 1.7;
	color: var(--footer-text, #ffffff);
}

.site-footer__price a {
	color: inherit;
	text-decoration: none;
}

.site-footer__price a:hover,
.site-footer__price a:focus {
	text-decoration: underline;
}

.site-footer__copy-small {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--footer-text-muted, #888888);
}

/* ── 하단: 푸터 메뉴 (선택) ── */

.site-footer__nav-row {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding: 1rem 0;
}

.site-footer__nav-row .container {
	max-width: var(--container-max, 1680px);
	margin-left: auto;
	margin-right: auto;
	padding: 0 24px;
}

.site-footer__nav-row .site-footer__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.25rem;
}

.site-footer__nav-row .footer-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__nav-row .footer-nav a {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.8125rem;
	text-decoration: none;
}

.site-footer__nav-row .footer-nav a:hover,
.site-footer__nav-row .footer-nav a:focus {
	color: var(--footer-accent, #6ec5d8);
}

/* ── 센터 정렬 푸터 (밝은 배경 · 메뉴/로고/정보 중앙) ── */

.site-footer--centered {
	background: var(--footer-centered-bg, #ffffff);
	color: var(--footer-centered-text, #333333);
	border-top: 1px solid var(--footer-centered-line, #e5e5e5);
}

.site-footer__centered-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: var(--container-max, 1680px);
	margin: 0 auto;
	padding: 0 24px clamp(2.5rem, 4vw, 3.5rem);
}

/* 상단 텍스트 메뉴 */
.site-footer__top-nav {
	width: 100%;
	padding: 1.25rem 0;
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.footer-top-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 3rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-top-nav li {
	margin: 0;
}

.footer-top-nav a {
	display: inline-block;
	padding: 0.25rem 0;
	color: var(--footer-centered-menu, #333333);
	font-size: var(--footer-centered-menu-font-size, 16px);
	font-weight: 500;
	letter-spacing: -0.01em;
	text-decoration: none;
	transition: color var(--transition-fast, 0.2s ease);
}

.footer-top-nav a:hover,
.footer-top-nav a:focus,
.footer-top-nav .current-menu-item > a {
	color: var(--footer-centered-hover, #e4732a);
}

/* 로고 */
.site-footer__logo--centered {
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.site-footer__logo--centered img {
	display: block;
	width: auto;
	max-width: var(--footer-centered-logo-width, var(--footer-logo-max-width, 200px));
	max-height: var(--footer-centered-logo-height, var(--footer-logo-max-height, none));
	height: auto;
	margin: 0 auto;
}

/* SNS */
.site-footer__sns--centered {
	justify-content: center;
	margin-bottom: 1.5rem;
}

.site-footer__sns--centered a {
	color: var(--footer-centered-text, #333333);
	border-color: var(--footer-centered-line, #e5e5e5);
}

.site-footer__sns--centered a:hover,
.site-footer__sns--centered a:focus {
	background: var(--footer-centered-hover, #e4732a);
	border-color: var(--footer-centered-hover, #e4732a);
	color: #ffffff;
}

/* 사업자 정보 */
.site-footer__info {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: var(--footer-centered-font-size, 15px);
	line-height: 1.7;
	color: var(--footer-centered-text, #333333);
}

.site-footer__info-row {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: 0 0.5rem;
}

.site-footer__info-item {
	white-space: nowrap;
}

.site-footer__info-label {
	margin-right: 0.35em;
	opacity: 0.85;
}

.site-footer__info-value {
	font-weight: 500;
	color: inherit;
	text-decoration: none;
}

a.site-footer__info-value:hover {
	color: var(--footer-centered-hover, #e4732a);
}

.site-footer__info-sep {
	opacity: 0.35;
}

/* 비급여수가표 */
.site-footer__price--centered {
	margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
	font-size: var(--footer-centered-font-size, 15px);
	color: var(--footer-centered-text, #333333);
}

.site-footer__price--centered a {
	color: inherit;
	text-decoration: none;
	transition: color var(--transition-fast, 0.2s ease);
}

.site-footer__price--centered a:hover {
	color: var(--footer-centered-hover, #e4732a);
}

/* 정책 링크 */
.site-footer__policy--centered {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 0.5rem;
	margin-top: 1rem;
	font-size: calc(var(--footer-centered-font-size, 15px) - 2px);
}

.site-footer__policy--centered .site-footer__policy-link {
	color: var(--footer-centered-text, #333333);
	opacity: 0.8;
	text-decoration: none;
}

.site-footer__policy--centered a.site-footer__policy-link:hover {
	color: var(--footer-centered-hover, #e4732a);
	opacity: 1;
}

.site-footer__policy--centered .site-footer__policy-sep {
	opacity: 0.35;
}

/* 저작권 */
/* 저작권 줄바꿈 — PC 에서는 한 줄 */
.site-footer__copy-br { display: none; }

.site-footer__copy--centered {
	margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
	font-size: var(--footer-centered-font-size, 15px);
	color: var(--footer-centered-text, #333333);
	letter-spacing: 0.01em;
}

@media (max-width: 767px) {
	.site-footer__centered-inner {
		padding-left: 16px;
		padding-right: 16px;
	}

	.footer-top-nav {
		gap: 0.25rem 1.25rem;
	}

	.footer-top-nav a {
		font-size: calc(var(--footer-centered-menu-font-size, 16px) - 2px);
	}

	.site-footer__info {
		font-size: calc(var(--footer-centered-font-size, 15px) - 1px);
	}

	.site-footer__info-item {
		white-space: normal;
	}

	.site-footer__logo--centered img {
		max-width: min(var(--footer-centered-logo-width, var(--footer-logo-max-width, 200px)), 70vw);
	}

	/* 모바일 — All Rights Reserved 를 다음 줄로 */
	.site-footer__copy-br { display: inline; }

	.site-footer__centered-inner {
		padding-bottom: calc(clamp(2.5rem, 4vw, 3.5rem) + 0px);
	}
}

/* 위젯 영역 (기존) — 다크 톤에 맞춤 */
.site-footer .site-footer__widgets {
	background: var(--footer-bg, #1a1a1a);
	color: rgba(255, 255, 255, 0.85);
}

.site-footer .widget-title {
	color: #ffffff;
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

.site-footer .widget a {
	color: rgba(255, 255, 255, 0.75);
}

.site-footer .widget a:hover {
	color: var(--footer-accent, #6ec5d8);
}

/* ── 반응형 최적화 ──────────────────────────────────────── */
@media (max-width: 1023px) {
	.site-footer__bar {
		padding: 2rem 0;
	}

	.site-footer__bar-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem;
	}

	.site-footer__left,
	.site-footer__right {
		flex: 1 1 auto;
		width: 100%;
		max-width: 100%;
	}

	.site-footer__right {
		text-align: left;
	}

	.site-footer__sns {
		justify-content: flex-start;
	}

	.site-footer__meta {
		font-size: 0.78rem;
		line-height: 1.8;
	}
}

@media (max-width: 767px) {
	.site-footer__bar {
		padding: 1.5rem 0;
	}

	.site-footer__bar-inner {
		gap: 1.25rem;
		padding-left: 0;
		padding-right: 0;
	}

	.site-footer__logo img {
		max-width: min(var(--footer-logo-max-width, 200px), 70vw);
	}

	.site-footer__address-primary {
		font-size: 0.875rem;
	}

	.site-footer__address-secondary,
	.site-footer__meta,
	.site-footer__copy-small {
		font-size: 0.75rem;
	}

	.site-footer__meta-item {
		display: inline;
	}

	.site-footer__phone,
	.site-footer__email {
		font-size: 0.875rem;
	}

	.site-footer__phone strong,
	.site-footer__email strong {
		font-size: 0.9375rem;
	}

	.site-footer__sns a {
		width: 2rem;
		height: 2rem;
	}

	.site-footer__nav-row .footer-nav {
		gap: 0.35rem 0.9rem;
	}
}
