/* 부동산품격 테마 — 섹션·컴포넌트 스타일. 색·서체 토큰은 theme.json에서 관리한다. */

body { word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p, li) { text-wrap: pretty; }
img { height: auto; }
.bp-main > .wp-block-post-content > *:first-child { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.bp-main .wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }
:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 2px; }

/* ---------- 헤더 ---------- */
.bp-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .bp-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bp-site-header { top: 46px; } }
.bp-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.bp-header__bar { min-height: 76px; gap: 1.5rem; }
.bp-brand a, .bp-brand { color: var(--wp--preset--color--navy); text-decoration: none; letter-spacing: -0.03em; white-space: nowrap; }
.bp-brand a::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--wp--preset--color--gold); margin-right: 0.55rem; transform: translateY(-2px) rotate(45deg); }
.bp-header__nav { gap: 2rem; }
.bp-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--charcoal); }
.bp-header .wp-block-navigation a:hover { color: var(--wp--preset--color--gold-deep); }
.bp-header .wp-block-navigation .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--line) !important; padding: 0.5rem 0; min-width: 210px !important; }
.bp-header .wp-block-navigation .wp-block-navigation__submenu-container a { padding: 0.55rem 1.1rem; }
.bp-header .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem 1.5rem; }
.bp-header .wp-block-navigation__responsive-container.is-menu-open a { color: #fff; font-size: 1.15rem; }
.bp-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a { font-size: 1rem; opacity: .85; }
@media (max-width: 960px) { .bp-header__cta { display: none !important; } }

/* ---------- 공통 타이포 ---------- */
.is-style-eyebrow { display: flex; align-items: center; gap: 0.7rem; font-size: 0.78rem !important; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--gold-deep); margin-bottom: 1rem !important; }
.is-style-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.is-style-eyebrow a { color: inherit; text-decoration: none; }
.has-navy-background-color .is-style-eyebrow, .bp-hero .is-style-eyebrow { color: var(--wp--preset--color--gold); }
.bp-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.7; color: var(--wp--preset--color--muted); }
.has-navy-background-color .bp-lead { color: rgba(255, 255, 255, .78); }
.bp-sec h2 { margin-block-end: 1.25rem; }
.bp-sec > * + .wp-block-buttons { margin-block-start: 2.25rem; }

/* ---------- 버튼 스타일 ---------- */
.wp-block-button .wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--wp--preset--color--navy); border: 1px solid var(--wp--preset--color--navy); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: #fff; }
.wp-block-button.is-style-gold .wp-block-button__link { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--gold); }
.wp-block-button.is-style-gold .wp-block-button__link:hover { background: #c9b18f; border-color: #c9b18f; color: var(--wp--preset--color--navy-deep); }
.wp-block-button.is-style-ghost-light .wp-block-button__link { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.wp-block-button.is-style-ghost-light .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--navy); border-color: #fff; }

/* ---------- 히어로 ---------- */
.bp-hero.wp-block-cover { padding-top: clamp(6rem, 14vh, 10rem); padding-bottom: clamp(2.5rem, 6vh, 4rem); min-height: min(860px, calc(100svh - 76px)) !important; align-items: flex-end; overflow: hidden; }
.bp-hero::before {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
	background:
		linear-gradient(90deg, rgba(182, 154, 117, .16) 1px, transparent 1px) 0 0 / calc(100% / 12) 100%,
		linear-gradient(180deg, transparent 0 62%, rgba(182, 154, 117, .10) 62% calc(62% + 1px), transparent calc(62% + 1px));
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 100%);
	        mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 100%);
}
.bp-hero::after { content: ""; position: absolute; z-index: 1; right: 6%; top: 15%; width: min(24vw, 340px); aspect-ratio: 3 / 4; border: 1px solid rgba(182, 154, 117, .35); pointer-events: none; }
.bp-hero .wp-block-cover__inner-container { z-index: 2; }
.bp-hero__eyebrow { color: var(--wp--preset--color--gold); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; margin-bottom: 1.5rem; }
.bp-hero__title { color: #fff !important; margin: 0 0 1.75rem; font-weight: 700; letter-spacing: -0.035em; }
.bp-hero__sub { color: rgba(255, 255, 255, .8); font-size: var(--wp--preset--font-size--large); line-height: 1.7; margin-bottom: 2.25rem; }
.bp-hero__facts { margin-top: clamp(3rem, 8vh, 6rem) !important; border-top: 1px solid rgba(255, 255, 255, .2); gap: 0 !important; }
.bp-hero__facts p { color: rgba(255, 255, 255, .72); font-size: 0.95rem; padding: 1.25rem 1.5rem 0 0; margin: 0; }
.bp-hero__facts p + p { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .12); }
.bp-hero__facts strong { display: block; color: var(--wp--preset--color--gold); font-size: 0.75rem; letter-spacing: 0.1em; margin-bottom: 0.3rem; font-weight: 600; }

/* ---------- 페이지 히어로 (서브) ---------- */
.bp-page-hero h1 { margin-block: 0 1.5rem; }
.bp-page-hero .wp-block-buttons { margin-top: 2rem; }

/* ---------- 분할 레이아웃 ---------- */
.bp-split { gap: clamp(2rem, 6vw, 6rem) !important; margin-bottom: 0; }
.bp-split > .wp-block-column > h2:first-of-type { margin-top: 0; }

/* 번호 목록 */
.bp-numbered { list-style: none; padding: 0; margin: 0; counter-reset: n; border-top: 1px solid var(--wp--preset--color--line); }
.bp-numbered > li { counter-increment: n; display: grid; grid-template-columns: 3rem 9rem minmax(0, 1fr); gap: 0 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--wp--preset--color--line); align-items: baseline; margin: 0; }
.bp-numbered > li::before { content: counter(n, decimal-leading-zero); font-size: 0.8rem; font-weight: 600; color: var(--wp--preset--color--gold-deep); font-variant-numeric: tabular-nums; }
.bp-numbered > li strong { color: var(--wp--preset--color--navy); font-size: 1.05rem; }
.bp-numbered > li span { color: var(--wp--preset--color--charcoal); }

/* 흐름 5단계 */
.bp-flow { gap: 0 !important; margin-top: 3rem !important; border-top: 1px solid var(--wp--preset--color--navy); }
.bp-step { padding: 1.5rem 1.5rem 0 0; position: relative; }
.bp-step + .bp-step { padding-left: 1.5rem; border-left: 1px solid var(--wp--preset--color--line); }
.bp-step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--wp--preset--color--gold); transform: rotate(45deg); }
.bp-step + .bp-step::before { left: 1.5rem; }
.bp-step__n { font-size: 0.8rem; font-weight: 600; color: var(--wp--preset--color--gold-deep); margin: 0.5rem 0 0.5rem; font-variant-numeric: tabular-nums; }
.bp-step h3 { margin: 0 0 0.5rem; }
.bp-step p:last-child { color: var(--wp--preset--color--muted); font-size: 0.95rem; }

/* 선택형 서비스 목록 */
.bp-svc-list { gap: 0 !important; border-top: 1px solid var(--wp--preset--color--navy); }
.bp-svc { display: grid !important; grid-template-columns: 14rem minmax(0, 1fr); grid-template-areas: "t d" "t g"; gap: 0.35rem 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.bp-svc > * { margin: 0 !important; }
.bp-svc h3 { grid-area: t; }
.bp-svc h3 a { text-decoration: none; color: var(--wp--preset--color--navy); }
.bp-svc h3 a::after { content: " →"; color: var(--wp--preset--color--gold-deep); }
.bp-svc p:not(.bp-tag) { grid-area: d; color: var(--wp--preset--color--charcoal); }
.bp-svc .bp-tag { grid-area: g; }
.bp-tag { display: inline-block; width: fit-content; font-size: 0.75rem !important; font-weight: 600; color: var(--wp--preset--color--gold-deep); border: 1px solid currentColor; padding: 0.15rem 0.55rem; border-radius: 2px; margin: 0 0 0.75rem; }

/* 서비스 개요 행 */
.bp-svc-rows { gap: 0 !important; border-top: 1px solid var(--wp--preset--color--navy); }
.bp-svc-row { display: grid !important; grid-template-columns: 4rem 18rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.bp-svc-row > * { margin: 0 !important; }

/* 포인트 그리드 */
.bp-points { gap: 2.5rem 2rem !important; margin-top: 2.5rem !important; }
.bp-point { border-top: 2px solid var(--wp--preset--color--navy); padding-top: 1.25rem; }
.bp-point h3 { margin: 0 0 0.6rem; }
.bp-point p { color: var(--wp--preset--color--charcoal); margin: 0; }

/* 매체 카드 */
.bp-media-cards { gap: 1.5rem !important; margin-top: 2.5rem !important; }
.bp-media-card { background: #fff; border: 1px solid var(--wp--preset--color--line); padding: 1.75rem; display: flex !important; flex-direction: column; }
.bp-media-card h3 { margin: 0 0 1rem; }
.bp-media-card .wp-block-buttons { margin-top: auto; padding-top: 1rem; }
.bp-kv thead { display: none; }
.bp-kv td:first-child { width: 34%; color: var(--wp--preset--color--muted); font-weight: 500 !important; }

/* 표 */
.wp-block-table.is-style-bp-lined { margin: 2rem 0 0; overflow-x: auto; }
.wp-block-table.is-style-bp-lined table { border-collapse: collapse; width: 100%; min-width: 560px; }
.bp-kv.wp-block-table.is-style-bp-lined table { min-width: 0; }
.wp-block-table.is-style-bp-lined th, .wp-block-table.is-style-bp-lined td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.95rem 1rem 0.95rem 0; text-align: left; vertical-align: top; line-height: 1.6; }
.wp-block-table.is-style-bp-lined thead { border-bottom: 0; }
.wp-block-table.is-style-bp-lined thead th { font-size: 0.8rem; font-weight: 600; color: var(--wp--preset--color--muted); border-bottom: 1px solid var(--wp--preset--color--navy); }
.wp-block-table.is-style-bp-lined td:first-child { color: var(--wp--preset--color--navy); font-weight: 600; }
.wp-block-table.is-style-bp-lined figcaption { text-align: left; font-size: 0.82rem; color: var(--wp--preset--color--muted); margin-top: 0.75rem; }

/* 스타일 나열 */
.bp-style-cloud { font-size: var(--wp--preset--font-size--large); line-height: 1.95; color: var(--wp--preset--color--navy); font-weight: 500; letter-spacing: -0.01em; }

/* 타임라인 */
.bp-timeline { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); counter-reset: t; border-top: 1px solid var(--wp--preset--color--navy); }
.bp-timeline > li { counter-increment: t; padding: 1.5rem 1rem 0 0; font-size: 0.92rem; color: var(--wp--preset--color--muted); margin: 0; }
.bp-timeline > li::before { content: counter(t, decimal-leading-zero); display: block; font-size: 0.78rem; color: var(--wp--preset--color--gold-deep); font-weight: 600; margin-bottom: 0.6rem; }
.bp-timeline > li strong { display: block; color: var(--wp--preset--color--navy); font-size: 1.05rem; margin-bottom: 0.35rem; }

.bp-chain { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; counter-reset: c; }
.bp-chain > li { counter-increment: c; background: var(--wp--preset--color--ivory); padding: 0.55rem 0.9rem; font-size: 0.92rem; margin: 0; position: relative; }
.bp-chain > li::before { content: counter(c) ". "; color: var(--wp--preset--color--gold-deep); font-weight: 600; }
.bp-chain > li strong { color: var(--wp--preset--color--navy); font-weight: 600; }

/* 체크 목록 */
.is-style-bp-check { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.is-style-bp-check > li { position: relative; padding: 0.85rem 0 0.85rem 2rem; border-bottom: 1px solid var(--wp--preset--color--line); margin: 0; }
.is-style-bp-check > li::before { content: ""; position: absolute; left: 0.2rem; top: 1.3rem; width: 11px; height: 6px; border-left: 2px solid var(--wp--preset--color--gold-deep); border-bottom: 2px solid var(--wp--preset--color--gold-deep); transform: rotate(-45deg); }

/* 안내 문단 */
.bp-note-p { background: var(--wp--preset--color--ivory); border-left: 2px solid var(--wp--preset--color--gold); padding: 1rem 1.25rem; font-size: 0.95rem; margin-top: 2rem !important; }
.has-ivory-background-color .bp-note-p { background: #fff; }
.bp-admin-note { display: none; }
.logged-in .bp-admin-note { display: block; background: #fff8e8; border: 1px dashed var(--wp--preset--color--gold); color: var(--wp--preset--color--gold-deep); padding: 0.85rem 1rem; font-size: 0.88rem; }

/* FAQ */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); margin: 0 !important; }
.wp-block-details summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--wp--preset--color--navy); font-size: 1.05rem; padding-right: 2.5rem; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; position: absolute; right: 0.4rem; top: 0.45rem; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform .2s; color: var(--wp--preset--color--gold-deep); }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > p { color: var(--wp--preset--color--charcoal); margin-top: 0.75rem; max-width: 62ch; }
.bp-split .wp-block-details:first-child, .bp-faq .wp-block-details:first-child { border-top: 1px solid var(--wp--preset--color--line); }
.bp-faq { gap: 0 !important; }

/* 마지막 CTA */
.bp-final h2 { color: #fff; }
.bp-final .wp-block-buttons { margin-top: 2.25rem; }

/* 사례 상세 CTA */
.bp-inline-cta h3 { margin-top: 0; }

/* 블로그 목록 */
.bp-post-row { border-bottom: 1px solid var(--wp--preset--color--line); padding: 1.75rem 0; }
.bp-post-row .wp-block-post-title a { text-decoration: none; }

/* ---------- 푸터 ---------- */
.bp-footer { font-size: 0.92rem; }
.bp-footer .bp-brand a, .bp-footer .bp-brand { color: #fff; }
.bp-footer__tag { color: rgba(255, 255, 255, .7); margin: 1rem 0 1.5rem; }
.bp-footer__h { font-size: 0.75rem !important; letter-spacing: 0.14em; color: var(--wp--preset--color--gold); font-weight: 600; margin-bottom: 0.9rem; }
.bp-footer__list { list-style: none; padding: 0; margin: 0; }
.bp-footer__list li { margin: 0 0 0.55rem; }
.bp-footer a { text-decoration: none; color: rgba(255, 255, 255, .85); }
.bp-footer a:hover { color: var(--wp--preset--color--gold); }
.bp-footer__sep { border: 0 !important; height: 1px !important; background: rgba(255, 255, 255, .12) !important; margin: 3rem 0 1.5rem !important; opacity: 1; }
.bp-footer .bp-ci { color: rgba(255, 255, 255, .6); }
.bp-footer__copy { color: rgba(255, 255, 255, .45); margin-top: 1.25rem; }

/* 모바일 하단 고정 CTA */
.bp-mobile-cta { display: none !important; }
@media (max-width: 781px) {
	.bp-mobile-cta { display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--wp--preset--color--line); padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); margin: 0 !important; box-shadow: 0 -4px 16px rgba(23, 35, 50, .06); }
	.bp-mobile-cta .wp-block-buttons { width: 100%; display: grid !important; grid-template-columns: 1fr 1.4fr; gap: 0.5rem; }
	.bp-mobile-cta .wp-block-button { width: 100%; margin: 0; }
	.bp-mobile-cta .wp-block-button__link { width: 100%; min-height: 46px; font-size: 0.92rem; padding: 0.6rem 0.5rem; }
	body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
	.bp-flow { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; row-gap: 2rem !important; }
	.bp-step:nth-child(4) { padding-left: 0; border-left: 0; }
	.bp-step:nth-child(4)::before { left: 0; }
	.bp-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.5rem; }
	.bp-points { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.bp-media-cards { grid-template-columns: 1fr !important; }
	.bp-svc-row { grid-template-columns: 3rem minmax(0, 1fr) auto; }
	.bp-svc-row > p:not(.bp-step__n) { grid-column: 2 / 3; }
	.bp-svc-row .wp-block-buttons { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 781px) {
	.bp-hero::after { display: none; }
	.bp-hero__facts { grid-template-columns: 1fr !important; }
	.bp-hero__facts p + p { padding-left: 0; border-left: 0; }
	.bp-hero__facts p { padding-top: 0.9rem; }
	.bp-flow, .bp-points, .bp-timeline { grid-template-columns: 1fr !important; }
	.bp-step, .bp-step + .bp-step { padding-left: 0; border-left: 0; }
	.bp-step + .bp-step::before { left: 0; }
	.bp-numbered > li { grid-template-columns: 2.25rem minmax(0, 1fr); }
	.bp-numbered > li span { grid-column: 2; }
	.bp-svc { grid-template-columns: 1fr; grid-template-areas: "t" "d" "g"; }
	.bp-svc-row { grid-template-columns: 1fr; gap: 0.6rem; }
	.bp-svc-row > *, .bp-svc-row .wp-block-buttons { grid-column: auto !important; grid-row: auto !important; }
	.bp-lead { font-size: 1.05rem; }
}
.bp-site-header.is-scrolled .bp-header { box-shadow: 0 6px 20px rgba(23, 35, 50, .06); }

/* 읽기 좋은 줄 길이: max-width 대신 오른쪽 여백으로 제한해 제약 레이아웃의 가운데 정렬과 왼쪽 시작선을 맞춘다 */
.bp-lead, .bp-hero__sub, .bp-hero__title, .bp-final h2, .bp-page-hero h1, .bp-footer__tag { box-sizing: border-box; }
.bp-lead { padding-right: max(0px, calc(100% - 40rem)); }
.bp-hero__sub { padding-right: max(0px, calc(100% - 36rem)); }
.bp-hero__title { padding-right: max(0px, calc(100% - 60rem)); }
.bp-final h2 { padding-right: max(0px, calc(100% - 46rem)); }
.bp-page-hero h1 { padding-right: max(0px, calc(100% - 54rem)); }
.bp-footer__tag { padding-right: max(0px, calc(100% - 22rem)); }
.bp-footer__sep { width: 100% !important; max-width: none !important; }
.bp-hero.wp-block-cover { padding-left: var(--wp--style--root--padding-left, clamp(1.25rem, 4vw, 3rem)); padding-right: var(--wp--style--root--padding-right, clamp(1.25rem, 4vw, 3rem)); }
.bp-note-p, .bp-media-card, .bp-inline-cta { box-sizing: border-box; }
.bp-media-card > *, .bp-point > *, .bp-step > *, .bp-svc-row > * { margin-left: 0 !important; margin-right: 0 !important; }
.bp-media-card .wp-block-buttons { justify-content: flex-start; }
