/* =========================================================================
   THEX 부동산 테마 - 부동산 소개 페이지 (template-about.php)
   ========================================================================= */

.thex-about { padding: 0; }

/* ---------- 머리 ---------- */
.thex-about-hero {
	padding: 72px 0 56px;
	background:
		radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--thex-accent) 16%, transparent), transparent 45%),
		linear-gradient(180deg, color-mix(in srgb, var(--thex-accent) 9%, var(--thex-bg)), transparent);
}
.thex-about-eyebrow {
	display: inline-block; padding: 5px 12px; border-radius: 999px;
	background: var(--thex-surface); color: var(--thex-accent-ink); font-size: 14px; font-weight: 700;
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--thex-accent) 20%, transparent);
}
.thex-re .thex-about-title { margin-top: 16px; font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.thex-re .thex-about-lead { max-width: 680px; margin-top: 14px; color: var(--thex-text-2); font-size: clamp(16px, 1.9vw, 19px); line-height: 1.7; white-space: pre-line; }
.thex-re .thex-about-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.thex-about-stats li {
	display: flex; flex-direction: column; gap: 2px; min-width: 140px; padding: 14px 20px;
	border-radius: var(--thex-radius); background: var(--thex-surface); box-shadow: var(--thex-shadow);
}
.thex-about-stats span { color: var(--thex-muted); font-size: 13px; }
.thex-about-stats strong { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }

/* ---------- 공통 구역 ---------- */
.thex-about-section { padding: 72px 0; }
.thex-about-section--soft { background: var(--thex-soft); }
.thex-about-section--soft + .thex-about-section--soft { padding-top: 0; }
.thex-about-section-head { margin-bottom: 28px; }
.thex-re .thex-about-kicker { color: var(--thex-accent-ink); font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.thex-re .thex-about-heading { margin-top: 6px; font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.thex-re .thex-about-landmark { margin-top: 8px; color: var(--thex-muted); }

/* ---------- 인사말 ---------- */
.thex-about-greeting { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; gap: 56px; }
.thex-about-ceo { margin: 0; }
.thex-about-ceo-photo {
	display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; overflow: hidden;
	border-radius: calc(var(--thex-radius) + 6px); background: linear-gradient(160deg, var(--thex-accent-soft), color-mix(in srgb, var(--thex-accent) 22%, var(--thex-surface)));
	box-shadow: var(--thex-shadow);
}
.thex-re .thex-about-ceo-photo img { width: 100%; height: 100%; object-fit: cover; }
.thex-about-ceo-photo span { color: var(--thex-accent-ink); font-size: 96px; font-weight: 800; opacity: .55; }
.thex-about-ceo figcaption { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; }
.thex-about-ceo figcaption span { color: var(--thex-muted); font-size: 14px; }
.thex-about-ceo figcaption strong { font-size: 22px; font-weight: 800; }
.thex-re .thex-about-career { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--thex-line); font-size: 15px; }
.thex-about-career li { display: flex; align-items: flex-start; gap: 8px; color: var(--thex-text-2); }
.thex-about-career .thex-icon { width: 16px; height: 16px; margin-top: 4px; color: var(--thex-accent-ink); }

.thex-about-message { padding-top: 8px; }
.thex-re .thex-about-message .thex-about-heading { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.4; }
.thex-about-text { margin-top: 24px; color: var(--thex-text-2); font-size: 17px; line-height: 1.9; }
.thex-re .thex-about-text p + p { margin-top: 1.1em; }
.thex-re .thex-about-sign { margin-top: 28px; color: var(--thex-muted); text-align: right; }
.thex-about-sign strong { margin-left: 4px; color: var(--thex-text); font-size: 20px; }

/* ---------- 주력 업무 ---------- */
.thex-re .thex-about-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.thex-about-services li { padding: 26px; border-radius: var(--thex-radius); background: var(--thex-surface); box-shadow: var(--thex-shadow); }
.thex-about-num { color: var(--thex-accent-ink); font-size: 14px; font-weight: 800; }
.thex-re .thex-about-services h3 { margin-top: 8px; font-size: 19px; }
.thex-re .thex-about-services p { margin-top: 8px; color: var(--thex-text-2); font-size: 15px; }

/* ---------- 사무소 사진 ---------- */
.thex-about-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.thex-about-photos figure { margin: 0; overflow: hidden; border-radius: var(--thex-radius); aspect-ratio: 4 / 3; }
.thex-re .thex-about-photos img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 오시는 길 ---------- */
.thex-about-location { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; }
.thex-about-map .thex-map { aspect-ratio: 4 / 3; background: var(--thex-surface); }
.thex-re .thex-about-routes { display: grid; align-content: start; gap: 4px; padding: 10px 24px; border-radius: var(--thex-radius); background: var(--thex-surface); }
.thex-about-routes li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--thex-line); }
.thex-about-routes li:last-child { border-bottom: 0; }
.thex-about-routes .thex-icon {
	flex: 0 0 36px; width: 36px; height: 36px; padding: 8px; border-radius: 10px;
	background: var(--thex-accent-soft); color: var(--thex-accent-ink);
}
.thex-about-routes div { display: flex; flex-direction: column; min-width: 0; }
.thex-about-routes strong { font-size: 14px; }
.thex-about-routes span, .thex-about-routes a { color: var(--thex-text-2); font-size: 15px; }
.thex-re .thex-about-routes a { color: var(--thex-accent-ink); font-weight: 700; }

/* ---------- 사무소 정보 · 중개보수 ---------- */
.thex-about-facts { display: grid; gap: 20px; }
.thex-about-facts.has-fees { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
.thex-about-card { padding: 28px; border: 1px solid var(--thex-line); border-radius: var(--thex-radius); background: var(--thex-surface); }
.thex-re .thex-about-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 18px; }
.thex-about-card h3 .thex-icon { color: var(--thex-accent-ink); }
.thex-about-info > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--thex-line); font-size: 15px; }
.thex-about-info > div:last-child { border-bottom: 0; }
.thex-about-info dt { color: var(--thex-muted); }
.thex-about-info dd { margin: 0; font-weight: 600; }
.thex-about-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.thex-re .thex-about-links a {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
	border: 1px solid var(--thex-line); border-radius: 999px; font-size: 14px; font-weight: 600;
}
.thex-re .thex-about-links a:hover { border-color: var(--thex-accent-ink); color: var(--thex-accent-ink); }
.thex-about-links .thex-icon { width: 15px; height: 15px; }

.thex-about-fees { width: 100%; border-collapse: collapse; font-size: 14px; }
.thex-about-fees th, .thex-about-fees td { padding: 8px 10px; border: 1px solid var(--thex-line); text-align: center; white-space: nowrap; }
.thex-about-fees td:first-of-type, .thex-about-fees tbody th { white-space: normal; }
.thex-about-fees thead th { background: var(--thex-soft); font-weight: 700; }
.thex-about-fees tbody th { background: var(--thex-accent-soft); color: var(--thex-accent-dark); font-weight: 700; }
.thex-about-fees td:first-of-type { text-align: left; }
.thex-re .thex-about-note { margin-top: 12px; color: var(--thex-muted); font-size: 13px; line-height: 1.7; }

/* ---------- 문의 ---------- */
.thex-about-cta {
	padding: 64px 0; color: #fff; text-align: center;
	background: linear-gradient(135deg, var(--thex-hero), color-mix(in srgb, var(--thex-hero) 78%, #000) 60%, #0f172a);
}
.thex-re .thex-about-cta h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; }
.thex-re .thex-about-cta p { margin-top: 10px; color: rgba(255, 255, 255, .8); }
.thex-about-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.thex-about-actions .thex-btn { padding: 14px 22px; font-size: 16px; }
.thex-re a.thex-btn--light { background: #fff; color: var(--thex-accent-dark); font-size: 18px; font-weight: 800; }
.thex-re a.thex-btn--light:hover { background: var(--thex-accent-soft); }
.thex-re a.thex-btn--outline { border-color: rgba(255, 255, 255, .5); color: #fff; }
.thex-re a.thex-btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
	.thex-about-greeting { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.thex-about-ceo { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: start; gap: 0 20px; }
	.thex-about-ceo-photo { grid-row: span 2; }
	.thex-about-ceo-photo span { font-size: 56px; }
	.thex-about-ceo figcaption { margin-top: 0; }
	.thex-about-location,
	.thex-about-facts.has-fees { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
	.thex-about-hero { padding: 48px 0 40px; }
	.thex-about-section { padding: 48px 0; }
	.thex-about-stats li { flex: 1 1 calc(50% - 6px); min-width: 0; }
	.thex-about-ceo { grid-template-columns: 110px minmax(0, 1fr); }
	.thex-about-card { padding: 20px; }
	.thex-about-info > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.thex-about-fees th, .thex-about-fees td { padding: 6px 5px; font-size: 13px; }
	.thex-about-fees tbody th { width: 3.5em; }
}
