/**
 * Single Builder Profile — full-width hero + 2-column body + enquiry footer.
 * Loaded only on is_singular('builder').
 *
 * Class prefix: .sc-bprofile-* to avoid collision with legacy .sc-builder-profile-*.
 */

.sc-bprofile {
	--bp-primary: #1A2E26;
	--bp-primary-hover: #243f35;
	--bp-secondary: #A67C52;
	--bp-secondary-hover: #b88a5d;
	--bp-bg: #F9F8F6;
	--bp-surface: #ffffff;
	--bp-border: #e5e7eb;
	--bp-border-soft: #f1f1ee;
	--bp-text: #1f2937;
	--bp-text-muted: #5b6471;
	--bp-text-faint: #94a3b8;
	--bp-radius: 0.5rem;
	--bp-radius-lg: 0.75rem;
	--bp-content-w: 1200px;
	--bp-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.04);

	color: var(--bp-text);
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	background: var(--bp-bg);
}

/* ============== HERO ============== */
.sc-bprofile__hero {
	background: var(--bp-primary);
	color: #fff;
	position: relative;
	overflow: hidden;
}

.sc-bprofile__hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient( ellipse at 80% -30%, rgba(166, 124, 82, 0.18), transparent 55% ),
		radial-gradient( ellipse at -10% 110%, rgba(166, 124, 82, 0.08), transparent 50% );
	pointer-events: none;
}

.sc-bprofile__hero-inner {
	position: relative;
	max-width: var(--bp-content-w);
	margin: 0 auto;
	padding: 1.75rem 1.5rem 2.5rem;
}

.sc-bprofile__breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.65);
	margin-bottom: 1.75rem;
}

.sc-bprofile__breadcrumbs a {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
}

.sc-bprofile__breadcrumbs a:hover {
	color: #fff;
}

.sc-bprofile__breadcrumbs span[aria-current] {
	color: var(--bp-secondary);
}

.sc-bprofile__hero-grid {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 2rem;
	align-items: center;
}

.sc-bprofile__hero-logo {
	width: 110px;
	height: 110px;
	background: #fff;
	border-radius: var(--bp-radius-lg);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	flex-shrink: 0;
}

.sc-bprofile__hero-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sc-bprofile__hero-logo-placeholder {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 3rem;
	font-weight: 700;
	color: var(--bp-primary);
}

.sc-bprofile__hero-meta {
	min-width: 0;
}

.sc-bprofile__hero-tier {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.7rem;
	background: var(--bp-secondary);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 9999px;
	margin-bottom: 0.85rem;
}

.sc-bprofile__hero-tier svg {
	width: 14px;
	height: 14px;
}

.sc-bprofile__hero-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp( 1.75rem, 1.4rem + 1.6vw, 2.75rem );
	font-weight: 700;
	margin: 0 0 0.6rem;
	line-height: 1.1;
	color: #fff;
}

.sc-bprofile__hero-region {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 0.85rem;
}

.sc-bprofile__hero-region svg {
	width: 16px;
	height: 16px;
	color: var(--bp-secondary);
}

.sc-bprofile__hero-services {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.sc-bprofile__hero-services span {
	display: inline-flex;
	padding: 0.3rem 0.7rem;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 9999px;
	font-size: 0.72rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
}

.sc-bprofile__hero-cta {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-width: 200px;
}

/* ============== BUTTONS ============== */
.sc-bprofile__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	border-radius: var(--bp-radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 120ms, color 120ms, border-color 120ms, transform 120ms;
	text-decoration: none;
	white-space: nowrap;
}

.sc-bprofile__btn svg {
	width: 16px;
	height: 16px;
}

.sc-bprofile__btn--primary {
	background: var(--bp-secondary);
	color: #fff;
	border-color: var(--bp-secondary);
}

.sc-bprofile__btn--primary:hover {
	background: var(--bp-secondary-hover);
	border-color: var(--bp-secondary-hover);
	color: #fff;
}

.sc-bprofile__btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
}

.sc-bprofile__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
}

.sc-bprofile__btn--solid {
	background: var(--bp-primary);
	color: #fff;
	border-color: var(--bp-primary);
}

.sc-bprofile__btn--solid:hover {
	background: var(--bp-primary-hover);
	color: #fff;
}

.sc-bprofile__btn--block {
	width: 100%;
}

/* ============== BODY ============== */
.sc-bprofile__body {
	padding: 3rem 0 4rem;
}

.sc-bprofile__body-inner {
	max-width: var(--bp-content-w);
	margin: 0 auto;
	padding: 0 1.5rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 3rem;
	align-items: start;
}

.sc-bprofile__main {
	min-width: 0;
}

.sc-bprofile__main > section + section {
	margin-top: 2.75rem;
}

.sc-bprofile__main h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--bp-primary);
	margin: 0 0 1.25rem;
	line-height: 1.2;
}

/* Description prose */
.sc-bprofile__prose {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--bp-text);
}

.sc-bprofile__prose p {
	margin: 0 0 1.1rem;
}

.sc-bprofile__prose p:last-child {
	margin-bottom: 0;
}

.sc-bprofile__prose h2,
.sc-bprofile__prose h3,
.sc-bprofile__prose h4 {
	font-family: 'Playfair Display', Georgia, serif;
	color: var(--bp-primary);
	margin: 2rem 0 0.75rem;
	line-height: 1.25;
}

.sc-bprofile__prose h3 { font-size: 1.35rem; }
.sc-bprofile__prose h4 { font-size: 1.1rem; }

.sc-bprofile__prose a {
	color: var(--bp-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sc-bprofile__prose ul,
.sc-bprofile__prose ol {
	margin: 0 0 1.1rem 1.25rem;
}

.sc-bprofile__prose li {
	margin-bottom: 0.4rem;
}

.sc-bprofile__prose blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--bp-secondary);
	background: var(--bp-surface);
	color: var(--bp-text-muted);
	font-style: italic;
	border-radius: 0 var(--bp-radius) var(--bp-radius) 0;
}

/* Gallery */
.sc-bprofile__gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0.75rem;
}

.sc-bprofile__gallery-item {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--bp-radius);
	background: #f1f5f9;
	box-shadow: var(--bp-shadow);
	cursor: zoom-in;
	transition: transform 200ms ease, box-shadow 200ms ease;
}

.sc-bprofile__gallery-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1), 0 12px 32px rgba(15, 23, 42, 0.06);
}

.sc-bprofile__gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}

.sc-bprofile__gallery-item:hover img {
	transform: scale(1.04);
}

/* ============== ASIDE / SIDEBAR ============== */
.sc-bprofile__aside {
	position: sticky;
	top: 90px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.sc-bprofile__card {
	background: var(--bp-surface);
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-lg);
	padding: 1.25rem;
	box-shadow: var(--bp-shadow);
}

.sc-bprofile__card--map {
	padding: 0;
	overflow: hidden;
}

.sc-bprofile__card-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--bp-primary);
	margin: 0 0 0.85rem;
}

.sc-bprofile__contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.sc-bprofile__contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--bp-text);
}

.sc-bprofile__contact-list .sc-bprofile__contact-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 9999px;
	background: rgba(26, 46, 38, 0.06);
	color: var(--bp-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.sc-bprofile__contact-list .sc-bprofile__contact-icon svg {
	width: 14px;
	height: 14px;
}

.sc-bprofile__contact-list a {
	color: var(--bp-text);
	text-decoration: none;
	word-break: break-word;
	transition: color 120ms;
}

.sc-bprofile__contact-list a:hover {
	color: var(--bp-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sc-bprofile__address {
	white-space: pre-line;
	color: var(--bp-text-muted);
	font-size: 0.875rem;
}

/* Mini-map */
.sc-bprofile__map {
	width: 100%;
	height: 220px;
	background: #e6e9ec;
}

/* ============== ENQUIRY ============== */
.sc-bprofile__enquiry {
	background: #fff;
	border-top: 1px solid var(--bp-border);
	padding: 4rem 1.5rem 5rem;
}

.sc-bprofile__enquiry-inner {
	max-width: 760px;
	margin: 0 auto;
}

.sc-bprofile__enquiry h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.85rem;
	font-weight: 700;
	color: var(--bp-primary);
	margin: 0 0 0.6rem;
	text-align: center;
}

.sc-bprofile__enquiry-lede {
	text-align: center;
	color: var(--bp-text-muted);
	font-size: 1rem;
	margin: 0 0 2rem;
}

.sc-bprofile__enquiry .gform_wrapper {
	background: var(--bp-bg);
	padding: 2rem;
	border-radius: var(--bp-radius-lg);
	border: 1px solid var(--bp-border);
}

/* ---- Native enquiry form ---- */
.sc-bprofile__form {
	background: var(--bp-bg);
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-lg);
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.sc-bprofile__form-hidden {
	display: none;
}

.sc-bprofile__form-trap {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sc-bprofile__form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.sc-bprofile__form-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.sc-bprofile__form-field label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--bp-text);
	letter-spacing: 0.01em;
}

.sc-bprofile__form-req {
	color: var(--bp-secondary);
	font-weight: 700;
}

.sc-bprofile__form-opt {
	color: var(--bp-text-faint);
	font-weight: 500;
}

.sc-bprofile__form-field input,
.sc-bprofile__form-field textarea {
	font-family: inherit;
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--bp-text);
	background: var(--bp-surface);
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius);
	padding: 0.7rem 0.9rem;
	transition: border-color 120ms, box-shadow 120ms, background 120ms;
	width: 100%;
}

.sc-bprofile__form-field input:focus,
.sc-bprofile__form-field textarea:focus {
	outline: none;
	border-color: var(--bp-primary);
	box-shadow: 0 0 0 3px rgba(26, 46, 38, 0.12);
	background: #fff;
}

.sc-bprofile__form-field textarea {
	resize: vertical;
	min-height: 120px;
}

.sc-bprofile__form-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: 0.25rem;
}

.sc-bprofile__form-footer .sc-bprofile__btn {
	flex-shrink: 0;
}

.sc-bprofile__form-note {
	font-size: 0.75rem;
	color: var(--bp-text-muted);
	line-height: 1.4;
	flex: 1 1 200px;
}

.sc-bprofile__form-status {
	font-size: 0.875rem;
	line-height: 1.5;
	padding: 0;
	border-radius: var(--bp-radius);
	display: none;
}

.sc-bprofile__form-status.is-success {
	display: block;
	padding: 0.85rem 1rem;
	background: rgba(26, 46, 38, 0.06);
	border: 1px solid rgba(26, 46, 38, 0.18);
	color: var(--bp-primary);
	font-weight: 500;
}

.sc-bprofile__form-status.is-error {
	display: block;
	padding: 0.85rem 1rem;
	background: rgba(220, 38, 38, 0.06);
	border: 1px solid rgba(220, 38, 38, 0.25);
	color: #b91c1c;
	font-weight: 500;
}

.sc-bprofile__form.is-submitting {
	opacity: 0.7;
	pointer-events: none;
}

.sc-bprofile__form.is-sent .sc-bprofile__form-grid,
.sc-bprofile__form.is-sent .sc-bprofile__form-field,
.sc-bprofile__form.is-sent .sc-bprofile__form-footer {
	display: none;
}

@media (max-width: 600px) {
	.sc-bprofile__form {
		padding: 1.25rem;
	}

	.sc-bprofile__form-grid {
		grid-template-columns: 1fr;
	}

	.sc-bprofile__form-footer .sc-bprofile__btn {
		width: 100%;
	}
}

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
	.sc-bprofile__hero-grid {
		grid-template-columns: auto 1fr;
		gap: 1.25rem;
	}

	.sc-bprofile__hero-cta {
		grid-column: 1 / -1;
		flex-direction: row;
		min-width: 0;
	}

	.sc-bprofile__hero-cta .sc-bprofile__btn {
		flex: 1 1 0;
	}

	.sc-bprofile__body-inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.sc-bprofile__aside {
		position: static;
		order: -1; /* show contact card above the long description on mobile */
	}
}

@media (max-width: 600px) {
	.sc-bprofile__hero-inner {
		padding: 1.25rem 1rem 2rem;
	}

	.sc-bprofile__hero-grid {
		grid-template-columns: 1fr;
		text-align: left;
	}

	.sc-bprofile__hero-logo {
		width: 84px;
		height: 84px;
	}

	.sc-bprofile__hero-cta {
		flex-direction: column;
	}

	.sc-bprofile__body {
		padding: 2rem 0 3rem;
	}

	.sc-bprofile__body-inner {
		padding: 0 1rem;
	}

	.sc-bprofile__main h2 {
		font-size: 1.4rem;
	}

	.sc-bprofile__enquiry {
		padding: 3rem 1rem 3.5rem;
	}

	.sc-bprofile__enquiry .gform_wrapper {
		padding: 1.25rem;
	}
}
