/*
 * Professional Page Template — Layout & Styling
 * Used by template-professional.php for key pages (Advocacy, Contact,
 * Ventures, etc.)
 *
 * Scoped under `.sd-pro-page` to avoid leaking into other templates.
 * -----------------------------------------------------------------------
 */

/* ═══════════════════════════════════════════════════════════════════
   ROOT
   ═══════════════════════════════════════════════════════════════════ */
.sd-pro-page {
	background: var(--t-white, #ffffff);
}

/* Hide the standard Johannes page header when this template is active */
.page-template-template-professional .johannes-section.johannes-section-margin-alt {
	display: none;
}

/* Container utility */
.sd-pro-page__container {
	width: 100%;
	max-width: 900px;
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ═══════════════════════════════════════════════════════════════════
   HERO BANNER
   ═══════════════════════════════════════════════════════════════════ */
.sd-pro-page__hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 320px;
	padding: 3rem 0 2.5rem;
	background-color: var(--t-dark, #0f1623);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.sd-pro-page__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(15, 22, 35, .55) 0%,
		rgba(15, 22, 35, .85) 100%
	);
	z-index: 1;
}

.sd-pro-page__hero-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 900px;
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* Breadcrumbs in hero */
.sd-pro-page__hero .johannes-breadcrumbs,
.sd-pro-page__hero .johannes-breadcrumbs a,
.sd-pro-page__hero .johannes-breadcrumbs span {
	color: rgba(255, 255, 255, .55) !important;
	font-size: .8125rem;
}
.sd-pro-page__hero .johannes-breadcrumbs a:hover {
	color: var(--t-accent, #d4aa6e) !important;
}

.sd-pro-page__hero-title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.03em;
	color: #ffffff;
	margin: .75rem 0 0;
}
/* Gold accent bar */
.sd-pro-page__hero-title::after {
	content: '';
	display: block;
	width: 50px;
	height: 3px;
	background: var(--t-accent, #d4aa6e);
	margin-top: .75rem;
	border-radius: 2px;
}

.sd-pro-page__hero-subtitle {
	font-size: 1.125rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, .7);
	margin: 1rem 0 0;
	max-width: 600px;
}

/* ═══════════════════════════════════════════════════════════════════
   CONTENT SECTION
   ═══════════════════════════════════════════════════════════════════ */
.sd-pro-page__content {
	padding: 3.5rem 0 4rem;
	background: var(--t-white, #ffffff);
}

/* Article reset — remove any inherited card styling */
.sd-pro-page__content article {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
}

/* Entry content inherits the global typography from theme-redesign.css
   (section 19) — lead paragraphs, drop caps, heading accents, etc.
   We just ensure proper spacing here. */
.sd-pro-page__content .entry-content > * + * {
	margin-top: 1.5em;
}

/* Content images — full-bleed within the container */
.sd-pro-page__content .entry-content img {
	border-radius: var(--t-radius, 10px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

/* Make WP columns look nice in the professional layout */
.sd-pro-page__content .entry-content .wp-block-columns {
	gap: 2.5rem;
	margin: 3rem 0;
}

/* ═══════════════════════════════════════════════════════════════════
   CTA FOOTER SECTION
   ═══════════════════════════════════════════════════════════════════ */
.sd-pro-page__cta {
	background: var(--t-dark, #0f1623);
	padding: 4rem 0;
	position: relative;
	overflow: hidden;
}
/* Subtle radial glow */
.sd-pro-page__cta::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 600px;
	height: 300px;
	background: radial-gradient(ellipse at center, rgba(212, 170, 110, .08) 0%, transparent 70%);
	pointer-events: none;
}

.sd-pro-page__cta-inner {
	position: relative;
	text-align: center;
	max-width: 560px;
	margin-inline: auto;
}

.sd-pro-page__cta-title {
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -.02em;
	color: #ffffff;
	margin: 0 0 .75rem;
}

.sd-pro-page__cta-text {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, .6);
	margin: 0 0 2rem;
}

.sd-pro-page__cta-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .875rem 2rem;
	background: var(--t-accent, #d4aa6e);
	color: var(--t-dark, #0f1623);
	border-radius: 6px;
	font-size: .9375rem;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid var(--t-accent, #d4aa6e);
	transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.sd-pro-page__cta-btn:hover {
	background: #c49a57;
	border-color: #c49a57;
	color: var(--t-dark, #0f1623);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(212, 170, 110, .3);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
	.sd-pro-page__hero {
		min-height: 240px;
		padding: 2.5rem 0 2rem;
	}
	.sd-pro-page__content {
		padding: 2.5rem 0 3rem;
	}
	.sd-pro-page__cta {
		padding: 3rem 0;
	}
}

@media (max-width: 479px) {
	.sd-pro-page__hero-title {
		font-size: 1.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sd-pro-page__cta-btn { transition: none; }
}
