/*
 * About Page — Professional Redesign
 * Scoped under `.sd-about` to avoid leaking into the rest of the theme.
 * -----------------------------------------------------------------------
 * Design tokens
 *   --sd-dark    #0f1623   hero / CTA backgrounds
 *   --sd-mid     #1c2840   card section background
 *   --sd-accent  #d4aa6e   warm gold accent (headlines, highlights)
 *   --sd-text    #374151   body copy
 *   --sd-muted   #6b7280   secondary text
 *   --sd-line    #e5e7eb   subtle dividers
 *   --sd-white   #ffffff
 */

/* =========================================================
   ROOT TOKENS
   ========================================================= */
.sd-about {
	--sd-dark:    #0f1623;
	--sd-mid:     #1c2840;
	--sd-accent:  #d4aa6e;
	--sd-text:    #374151;
	--sd-muted:   #6b7280;
	--sd-line:    #e5e7eb;
	--sd-white:   #ffffff;
	--sd-radius:  12px;
	--sd-shadow:  0 4px 24px rgba(0,0,0,.08);
	--sd-shadow-lg: 0 12px 48px rgba(0,0,0,.14);
	--sd-container: 1100px;
	--sd-gap:     clamp(3rem, 8vw, 7rem);

	/* Override Johannes default page padding */
	padding: 0 !important;
	margin: 0 !important;
	background: var(--sd-white);
	color: var(--sd-text);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Hide the Johannes page header / breadcrumb section injected above the template */
.page-id-about .johannes-section.johannes-section-margin-alt:not(.sd-about__hero),
.page-id-about .johannes-section:not(.sd-about) > .container > .section-head {
	display: none;
}

/* Prevent any theme top-padding on main content area for the about page */
.page-id-about #johannes-main-content,
.page-id-about .johannes-wrapper > main {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* =========================================================
   SHARED UTILITIES
   ========================================================= */
.sd-about__container {
	width: 100%;
	max-width: var(--sd-container);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.sd-about__section-label {
	display: inline-block;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--sd-accent);
	margin: 0 0 .75rem;
}

.sd-about__section-label--center { text-align: center; display: block; }
.sd-about__section-label--light  { color: rgba(255,255,255,.55); }

.sd-about__section-title {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--sd-dark);
	margin: 0 0 1.5rem;
	letter-spacing: -.02em;
}

.sd-about__section-title--center { text-align: center; }

/* Buttons */
.sd-about__btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .75rem 1.75rem;
	border-radius: 6px;
	font-size: .9375rem;
	font-weight: 600;
	letter-spacing: .01em;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.sd-about__btn--light {
	background: var(--sd-accent);
	color: var(--sd-dark);
	border-color: var(--sd-accent);
}
.sd-about__btn--light:hover {
	background: #c49a57;
	border-color: #c49a57;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(212,170,110,.35);
	color: var(--sd-dark);
}

.sd-about__btn--outline {
	background: transparent;
	color: var(--sd-white);
	border-color: rgba(255,255,255,.55);
}
.sd-about__btn--outline:hover {
	background: rgba(255,255,255,.1);
	border-color: var(--sd-white);
	color: var(--sd-white);
	transform: translateY(-2px);
}

.sd-about__btn--ghost {
	background: transparent;
	color: rgba(255,255,255,.7);
	border-color: rgba(255,255,255,.25);
}
.sd-about__btn--ghost:hover {
	background: rgba(255,255,255,.08);
	border-color: rgba(255,255,255,.5);
	color: var(--sd-white);
}

.sd-about__btn--lg {
	padding: .9375rem 2.25rem;
	font-size: 1rem;
}

/* =========================================================
   HERO
   ========================================================= */
.sd-about__hero {
	position: relative;
	min-height: 65vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: var(--sd-dark);
	background-image: var(--hero-bg, none);
	background-size: cover;
	background-position: center top;
	padding: 5rem 0 6rem;
}

/* Rich gradient fallback when no image is set */
.sd-about__hero:not([style]) {
	background-image: linear-gradient(135deg, #0f1623 0%, #1c2840 40%, #0f1a2e 70%, #131e30 100%);
}

.sd-about__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		160deg,
		rgba(15,22,35,.88) 0%,
		rgba(15,22,35,.72) 40%,
		rgba(15,22,35,.82) 100%
	);
	z-index: 1;
}

.sd-about__hero-inner {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 2rem clamp(1.25rem, 5vw, 2.5rem);
	max-width: 780px;
}

.sd-about__eyebrow {
	display: inline-block;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--sd-accent);
	margin: 0 0 1.25rem;
	background: rgba(212,170,110,.12);
	border: 1px solid rgba(212,170,110,.3);
	padding: .35rem .9rem;
	border-radius: 100px;
}

.sd-about__hero-title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.03em;
	color: var(--sd-white);
	margin: 0 0 1rem;
}

.sd-about__hero-tagline {
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	line-height: 1.6;
	color: rgba(255,255,255,.72);
	margin: 0 0 2.5rem;
	max-width: 560px;
	margin-inline: auto;
	margin-bottom: 2.5rem;
}

.sd-about__hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

/* Animated scroll cue — hidden on compact hero */
.sd-about__scroll-cue {
	display: none;
}

.sd-about__scroll-icon {
	display: block;
	width: 26px;
	height: 42px;
	border: 2px solid rgba(255,255,255,.35);
	border-radius: 13px;
	position: relative;
}

.sd-about__scroll-icon::after {
	content: '';
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 8px;
	background: rgba(255,255,255,.6);
	border-radius: 2px;
	animation: sd-scroll-bob 1.6s ease-in-out infinite;
}

@keyframes sd-scroll-bob {
	0%   { opacity: 1;   transform: translateX(-50%) translateY(0); }
	80%  { opacity: 0;   transform: translateX(-50%) translateY(14px); }
	100% { opacity: 0;   transform: translateX(-50%) translateY(0); }
}

/* =========================================================
   STORY / BIO
   ========================================================= */
.sd-about__story {
	padding: var(--sd-gap) 0;
	background: var(--sd-white);
}

.sd-about__story-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: start;
}

@media (min-width: 768px) {
	.sd-about__story-grid {
		grid-template-columns: 280px 1fr;
		gap: 3.5rem;
		align-items: start;
	}
}

/* Portrait */
.sd-about__portrait-col {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.sd-about__portrait-wrap {
	position: relative;
	width: 100%;
	max-width: 320px;
}

.sd-about__portrait-img {
	width: 100%;
	height: 400px;
	object-fit: cover;
	object-position: center top;
	border-radius: var(--sd-radius);
	display: block;
	box-shadow: var(--sd-shadow-lg);
	position: relative;
	z-index: 1;
}

/* Decorative gold frame accent — sits behind image via z-index layering */
.sd-about__portrait-wrap::before {
	content: '';
	position: absolute;
	inset: -14px -14px auto auto;
	width: 65%;
	height: 65%;
	border: 3px solid var(--sd-accent);
	border-radius: var(--sd-radius);
	z-index: 0;
	pointer-events: none;
}

.sd-about__portrait-badge {
	position: absolute;
	bottom: -1rem;
	left: -1rem;
	background: var(--sd-dark);
	color: var(--sd-white);
	padding: .6rem 1.1rem;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .8125rem;
	font-weight: 600;
	box-shadow: var(--sd-shadow);
	border: 1px solid rgba(255,255,255,.08);
	z-index: 2;
}

.sd-about__portrait-badge svg {
	color: #4ade80;
	flex-shrink: 0;
}

/* Bio text */
.sd-about__bio-col {}

.sd-about__bio-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--sd-text);
	margin-bottom: 2rem;
}

.sd-about__bio-content p:first-child {
	font-size: 1.175rem;
	color: #1f2937;
}

.sd-about__bio-content > * + * { margin-top: 1em; }

.sd-about__bio-content a {
	color: #1d4ed8;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sd-about__bio-content a:hover { color: #1e3a8a; }

/* Social links in bio */
.sd-about__social {
	display: flex;
	gap: .75rem;
	flex-wrap: wrap;
	margin-top: 2rem;
}

.sd-about__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #f3f4f6;
	color: var(--sd-dark);
	font-size: 1rem;
	text-decoration: none;
	transition: background .2s, color .2s, transform .15s;
}

.sd-about__social-link:hover {
	background: var(--sd-accent);
	color: var(--sd-dark);
	transform: translateY(-3px);
}

/* =========================================================
   EXPERTISE CARDS
   ========================================================= */
.sd-about__expertise {
	padding: var(--sd-gap) 0;
	background: #f9fafb;
	border-top: 1px solid var(--sd-line);
}

.sd-about__cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-top: 3rem;
}

@media (min-width: 600px) {
	.sd-about__cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	.sd-about__cards { grid-template-columns: repeat(3, 1fr); }
}

.sd-about__card {
	background: var(--sd-white);
	border: 1px solid var(--sd-line);
	border-radius: var(--sd-radius);
	padding: 2rem;
	transition: box-shadow .25s ease, transform .2s ease, border-color .2s;
}

.sd-about__card:hover {
	box-shadow: var(--sd-shadow-lg);
	transform: translateY(-4px);
	border-color: rgba(212,170,110,.4);
}

.sd-about__card-icon {
	width: 52px;
	height: 52px;
	border-radius: 10px;
	background: rgba(212,170,110,.12);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sd-accent);
	margin-bottom: 1.25rem;
}

.sd-about__card-title {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--sd-dark);
	margin: 0 0 .625rem;
	letter-spacing: -.01em;
}

.sd-about__card-text {
	font-size: .9375rem;
	line-height: 1.65;
	color: var(--sd-muted);
	margin: 0;
}

/* =========================================================
   STATS
   ========================================================= */
.sd-about__stats {
	background: var(--sd-mid);
	padding: 4rem 0;
}

.sd-about__stats-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2.5rem 2rem;
}

@media (min-width: 768px) {
	.sd-about__stats-list {
		grid-template-columns: repeat(4, 1fr);
		gap: 0;
	}
}

.sd-about__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
}

/* Vertical divider between stats on desktop */
@media (min-width: 768px) {
	.sd-about__stat + .sd-about__stat::before {
		content: '';
		position: absolute;
		left: 0;
		top: 15%;
		height: 70%;
		width: 1px;
		background: rgba(255,255,255,.12);
	}
}

.sd-about__stat-number {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -.03em;
	color: var(--sd-white);
	line-height: 1;
	display: flex;
	align-items: baseline;
	gap: .1em;
}

.sd-about__stat-sup {
	font-size: .55em;
	font-weight: 700;
	color: var(--sd-accent);
}

.sd-about__stat-label {
	margin-top: .625rem;
	font-size: .8125rem;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: rgba(255,255,255,.5);
}

/* =========================================================
   CTA
   ========================================================= */
.sd-about__cta {
	background: var(--sd-dark);
	padding: var(--sd-gap) 0;
	position: relative;
	overflow: hidden;
}

/* Subtle radial glow behind the CTA */
.sd-about__cta::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 700px;
	height: 400px;
	background: radial-gradient(ellipse at center, rgba(212,170,110,.1) 0%, transparent 70%);
	pointer-events: none;
}

.sd-about__cta-inner {
	position: relative;
	text-align: center;
	max-width: 680px;
	margin-inline: auto;
}

.sd-about__cta-title {
	font-size: clamp(1.875rem, 4vw, 3rem);
	font-weight: 800;
	letter-spacing: -.03em;
	color: var(--sd-white);
	margin: 0 0 1rem;
}

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

.sd-about__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width: 767px) {
	.sd-about__portrait-wrap { max-width: 280px; }
	.sd-about__portrait-img  { height: 320px; }
	.sd-about__portrait-badge {
		bottom: -.75rem;
		left: -.75rem;
		font-size: .75rem;
		padding: .5rem .85rem;
	}
}

@media (max-width: 479px) {
	.sd-about__hero-actions,
	.sd-about__cta-actions { flex-direction: column; align-items: center; }
	.sd-about__btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* =========================================================
   ACCESSIBILITY — MOTION PREFERENCE
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	.sd-about__scroll-icon::after { animation: none; }
	.sd-about__btn,
	.sd-about__card,
	.sd-about__social-link { transition: none; }
}
