/**
 * Single Formateur profile — Legal Family
 * Editorial layout: asymmetric hero, split content, staggered reveals.
 * Brand: #105050 (deep teal), #E67E22 (warm accent), Anuphan + Montserrat
 */

/* ── Tokens ──────────────────────────────────────────── */
.fp {
	--fp-teal: #105050;
	--fp-teal-deep: #0a3c3c;
	--fp-teal-light: #1a6b6b;
	--fp-accent: #E67E22;
	--fp-accent-hover: #d35400;
	--fp-warm: #faf8f5;
	--fp-warm-mid: #f2ede6;
	--fp-ink: #1a2332;
	--fp-muted: #64748b;
	--fp-border: #e8e2d9;
	--fp-radius: 10px;
	padding-top: 0 !important;
	overflow-x: hidden;
	background: #fff;
}

/* ── Animations ──────────────────────────────────────── */
@keyframes fpFadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes fpFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes fpSlideLeft {
	from { opacity: 0; transform: translateX(40px); }
	to   { opacity: 1; transform: translateX(0); }
}

@keyframes fpScaleIn {
	from { opacity: 0; transform: scale(0.92); }
	to   { opacity: 1; transform: scale(1); }
}

@keyframes fpAccentLine {
	from { width: 0; }
	to   { width: 48px; }
}

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.fp-hero {
	position: relative;
	overflow: hidden;
}

.fp-hero__bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 60% at 20% 50%, var(--fp-teal) 0%, var(--fp-teal-deep) 100%);
	z-index: 0;
}

/* Subtle noise texture overlay */
.fp-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
	opacity: 0.5;
	mix-blend-mode: overlay;
}

/* Decorative diagonal accent */
.fp-hero__bg::before {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 80px;
	background: #fff;
	clip-path: polygon(0 100%, 100% 100%, 100% 0);
	z-index: 1;
}

.fp-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 48px;
	align-items: end;
	padding: 48px 40px 0;
	min-height: 480px;
}

/* ── Hero: left content ──────────────────────────────── */
.fp-hero__content {
	padding-bottom: 80px;
	animation: fpFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fp-hero__breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
	margin-bottom: 36px;
	transition: color 0.2s;
	letter-spacing: 0.3px;
}

.fp-hero__breadcrumb:hover {
	color: rgba(255, 255, 255, 0.9);
}

.fp-hero__headline {
	max-width: 560px;
}

/* h1 in selector beats .elementor-kit-* h1 (class + element). */
.fp-hero h1.fp-hero__name {
	font-family: "Anuphan", sans-serif;
	font-size: clamp(2.25rem, 5vw, 3.35rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 14px;
	line-height: 1.08;
	letter-spacing: -0.5px;
}

/* Accent underline below name + presentation */
.fp-hero__headline::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	background: var(--fp-accent);
	border-radius: 2px;
	margin-top: 20px;
	animation: fpAccentLine 0.5s 0.5s ease both;
}

.fp-hero p.fp-hero__lead {
	font-size: clamp(1rem, 1.9vw, 1.125rem);
	font-weight: 400;
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
	line-height: 1.55;
	max-width: 520px;
}

/* ── Contact pills ───────────────────────────────────── */
.fp-hero__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
	animation: fpFadeUp 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fp-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: all 0.25s ease;
	white-space: nowrap;
}

.fp-pill svg {
	opacity: 0.7;
	flex-shrink: 0;
}

a.fp-pill:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.25);
	color: #fff;
	transform: translateY(-1px);
}

/* ── Expertise tags in hero ──────────────────────────── */
.fp-hero__expertise {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 24px;
	animation: fpFadeUp 0.7s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fp-tag {
	display: inline-block;
	padding: 5px 12px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.75rem;
	font-weight: 500;
	border-radius: 5px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	letter-spacing: 0.2px;
}

.fp-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
	animation: fpFadeUp 0.7s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fp-badge {
	display: inline-block;
	padding: 6px 14px;
	background: var(--fp-accent);
	color: #fff;
	font-family: "Anuphan", sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 5px;
	letter-spacing: 0.3px;
}

/* ── Hero: photo column ──────────────────────────────── */
.fp-hero__photo-col {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	animation: fpSlideLeft 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fp-hero__photo {
	width: 100%;
	max-width: 340px;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	background: var(--fp-warm-mid);
	box-shadow:
		0 -4px 30px rgba(0, 0, 0, 0.15),
		0 0 0 1px rgba(255, 255, 255, 0.05);
	position: relative;
}

.fp-hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ══════════════════════════════════════════════════════
   BODY: Bio + Courses split
   ══════════════════════════════════════════════════════ */
.fp-body {
	background: #fff;
	padding: 64px 40px 72px;
}

.fp-body__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: start;
}

/* ── Section titles (align with single formation .lf-section__title, larger) ─ */
.fp-body h2.fp-section-title {
	font-family: "Anuphan", sans-serif;
	font-size: clamp(1.4rem, 2.65vw, 1.9375rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.25px;
	color: var(--fp-ink);
	margin: 0 0 28px;
	padding: 2px 0 2px 16px;
	border-left: 4px solid var(--fp-teal);
	border-bottom: none;
}

/* ── Profile / Bio column ────────────────────────────── */
.fp-body__profile {
	animation: fpFadeUp 0.6s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fp-bio {
	margin: 0;
	padding: 0;
	font-size: 0.9375rem;
	line-height: 1.8;
	color: #3d4852;
}

.fp-bio p {
	margin: 0 0 0.85rem;
}

.fp-bio p:last-child {
	margin-bottom: 0;
}

.fp-bio-empty {
	color: var(--fp-muted);
	font-style: italic;
	font-size: 0.9375rem;
}

/* ── Courses column ──────────────────────────────────── */
.fp-body__courses {
	animation: fpFadeUp 0.6s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fp-courses-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Course card — horizontal with thumbnail */
.fp-course {
	display: grid;
	grid-template-columns: 1fr auto 44px;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	background: var(--fp-warm);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
	text-decoration: none;
	color: inherit;
	transition:
		border-color 0.3s ease,
		box-shadow 0.3s ease,
		transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	animation: fpFadeUp 0.5s calc(0.45s + var(--i, 0) * 0.08s) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fp-course:hover {
	border-color: var(--fp-accent);
	box-shadow: 0 6px 20px rgba(16, 80, 80, 0.08);
	transform: translateY(-2px);
}

.fp-course__body {
	min-width: 0;
}

.fp-course__title {
	font-family: "Anuphan", sans-serif;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--fp-teal);
	margin: 0 0 3px;
	line-height: 1.35;
}

.fp-course__subtitle {
	font-size: 0.8125rem;
	color: var(--fp-muted);
	margin: 0 0 8px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fp-course__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.75rem;
	color: var(--fp-muted);
}

.fp-course__detail {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.fp-course__detail svg {
	opacity: 0.5;
}

.fp-course__price {
	font-weight: 700;
	color: var(--fp-teal);
}

/* Course thumbnail — landscape frame so cover art (text + visuel) stays readable */
.fp-course__thumb {
	width: clamp(120px, 16vw, 152px);
	aspect-ratio: 16 / 9;
	height: auto;
	border-radius: 8px;
	overflow: hidden;
	background: var(--fp-warm-mid);
	flex-shrink: 0;
}

.fp-course__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
}

/* Arrow indicator */
.fp-course__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: transparent;
	color: var(--fp-teal);
	opacity: 0.3;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.fp-course:hover .fp-course__arrow {
	background: var(--fp-accent);
	color: #fff;
	opacity: 1;
	transform: translateX(2px);
}

.fp-courses-empty {
	color: var(--fp-muted);
	font-style: italic;
	font-size: 0.9375rem;
}

/* ══════════════════════════════════════════════════════
   CTA FOOTER
   ══════════════════════════════════════════════════════ */
.fp-cta {
	background: var(--fp-warm);
	border-top: 1px solid var(--fp-border);
	padding: 40px 40px;
}

.fp-cta__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.fp-cta__text {
	font-size: 0.9375rem;
	color: var(--fp-muted);
	margin: 0;
}

.fp-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "Anuphan", sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--fp-teal);
	text-decoration: none;
	padding: 12px 28px;
	border: 2px solid var(--fp-teal);
	border-radius: 8px;
	transition: all 0.25s ease;
	white-space: nowrap;
}

.fp-cta__btn:hover {
	background: var(--fp-teal);
	color: #fff;
}

.fp-cta__btn svg {
	transition: transform 0.25s ease;
}

.fp-cta__btn:hover svg {
	transform: translateX(3px);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */

/* ── Tablet ──────────────────────────────────────────── */
@media (max-width: 1024px) {
	.fp-hero__inner {
		grid-template-columns: 1fr 300px;
		gap: 32px;
		padding: 40px 28px 0;
		min-height: 420px;
	}

	.fp-hero__photo {
		max-width: 280px;
	}

	.fp-body {
		padding: 48px 28px 56px;
	}

	.fp-body__inner {
		gap: 40px;
	}
}

/* ── Small tablet ────────────────────────────────────── */
@media (max-width: 860px) {
	.fp-hero__inner {
		grid-template-columns: 1fr;
		min-height: auto;
		padding: 36px 24px 0;
		gap: 0;
	}

	.fp-hero__content {
		padding-bottom: 32px;
		text-align: center;
	}

		.fp-hero__headline {
		max-width: none;
		margin-left: auto;
		margin-right: auto;
	}

	.fp-hero__headline::after {
		margin-left: auto;
		margin-right: auto;
	}

	.fp-hero p.fp-hero__lead {
		max-width: 36rem;
		margin-left: auto;
		margin-right: auto;
	}

	.fp-hero__links {
		justify-content: center;
	}

	.fp-hero__expertise {
		justify-content: center;
	}

	.fp-hero__badges {
		justify-content: center;
	}

	.fp-hero__photo-col {
		justify-content: center;
	}

	.fp-hero__photo {
		max-width: 240px;
		border-radius: 12px;
	}

	.fp-hero__bg::before {
		height: 48px;
	}

	.fp-body__inner {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.fp-body {
		padding: 40px 24px 48px;
	}
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 600px) {
	.fp-hero__inner {
		padding: 28px 16px 0;
	}

	.fp-hero h1.fp-hero__name {
		font-size: 1.75rem;
	}

	.fp-hero__content {
		padding-bottom: 24px;
	}

	.fp-hero__photo {
		max-width: 200px;
	}

	.fp-hero__bg::before {
		height: 36px;
	}

	.fp-body {
		padding: 32px 16px 40px;
	}

	.fp-body h2.fp-section-title {
		font-size: clamp(1.25rem, 4.5vw, 1.5rem);
		margin-bottom: 22px;
	}

	.fp-course {
		grid-template-columns: 1fr 36px;
		padding: 14px 16px;
	}

	.fp-course__thumb {
		display: none;
	}

	.fp-cta {
		padding: 28px 16px;
	}

	.fp-cta__inner {
		flex-direction: column;
		text-align: center;
	}
}
