/**
 * JP-SEC-FOOTER — Figma footer (compact height to portrait).
 */

.jp-footer {
	--jp-footer-pad-x: clamp(24px, calc(80 * 100vw / 1440), 80px);
	--jp-footer-pad-top: clamp(18px, calc(24 * 100vw / 1440), 28px);
	--jp-footer-min-h: clamp(460px, calc(540 * 100vw / 1440), 560px);
	position: relative;
	isolation: isolate;
	width: 100%;
	min-height: var(--jp-footer-min-h);
	overflow: hidden;
	color: #ffffff;
	background-color: #5603ad;
	background-image: linear-gradient(160.79deg, #5603ad 50.96%, #dad8fd 115.36%);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	box-sizing: border-box;
}

.jp-footer--has-bg {
	background-image: var(--jp-footer-bg),
		linear-gradient(160.79deg, #5603ad 50.96%, #dad8fd 115.36%);
	background-size: cover, cover;
	background-position: right center, center;
}

.jp-footer__shell {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1440px;
	--jp-footer-shell-max: 1440px;
	--jp-footer-line-pull: calc(
		var(--jp-footer-pad-x) +
		max(0px, (100vw - min(100vw, var(--jp-footer-shell-max, 1440px))) / 2)
	);
	min-height: var(--jp-footer-min-h);
	margin: 0 auto;
	padding: var(--jp-footer-pad-top) var(--jp-footer-pad-x) 0;
	box-sizing: border-box;
}

/* JP-SEC-FOOTER-BADGES — credential strip, top of footer */
.jp-footer__badges {
	position: relative;
	z-index: 2;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(20px, calc(28 * 100vw / 1440), 32px);
	margin-bottom: clamp(28px, calc(48 * 100vw / 1440), 56px);
}

.jp-footer__badges-label {
	margin: 0;
	font-family: "Plus Jakarta Sans", var(--jp-font-body, sans-serif);
	font-weight: 600;
	font-size: 13px;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-align: center;
	color: rgba(255, 255, 255, 0.85);
}

.jp-footer__badges-row {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: clamp(16px, calc(28 * 100vw / 1440), 28px);
	width: 100%;
}

.jp-footer__badge {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jp-footer__badge-link {
	display: flex;
	line-height: 0;
}

.jp-footer__badge-img {
	display: block;
	width: 110px;
	height: clamp(48px, calc(64 * 100vw / 1440), 72px);
	object-fit: contain;
}

@media (min-width: 1101px) {
	.jp-footer__badge-img {
		width: 115px;
		height: 160px;
	}
}

.jp-footer__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	max-width: 765px;
	flex: 0 0 auto;
}

/* Figma Mask group ≈ 499 × 139 */
.jp-footer__brand-wrap {
	width: 100%;
	max-width: 420px;
}

.jp-footer__brand {
	margin: 0;
	font-family: "Great Vibes", cursive;
	font-weight: 400;
	font-size: clamp(40px, calc(64 * 100vw / 1440), 72px);
	line-height: 0.95;
	color: #ffffff;
}

.jp-footer__brand-img {
	display: block;
	width: min(100%, 380px);
	height: auto;
	max-height: 88px;
	object-fit: contain;
	object-position: left center;
}

/* Brand divider — sibling of brand-wrap so it spans full content width */
.jp-footer__rule {
	display: block;
	width: 100%;
	max-width: 100%;
	align-self: stretch;
	box-sizing: border-box;
	height: 0;
	margin: 14px 0 22px;
	border: 0;
	border-top: 0.5px solid rgba(255, 255, 255, 0.4);
}

.jp-footer__nav {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 40px;
	width: 100%;
	max-width: 765px;
}

.jp-footer__col:nth-child(1) {
	width: 234px;
	flex: 0 0 auto;
}

.jp-footer__col:nth-child(2) {
	width: 150px;
	flex: 0 0 auto;
}

.jp-footer__col:nth-child(3) {
	width: 301px;
	flex: 0 1 auto;
	max-width: 301px;
}

.jp-footer__col-title {
	margin: 0 0 18px;
	font-family: "Poppins", var(--jp-font-heading, "Plus Jakarta Sans"), sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: -0.04em;
	color: #ffffff;
}

.jp-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.jp-footer__link {
	font-family: "Plus Jakarta Sans", var(--jp-font-body, sans-serif);
	font-weight: 500;
	font-size: 14px;
	line-height: 18px;
	color: #ffffff;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.jp-footer__link:hover {
	opacity: 0.8;
	color: #ffffff;
}

.jp-footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	font-family: "Plus Jakarta Sans", var(--jp-font-body, sans-serif);
	font-weight: 500;
	font-size: 14px;
	line-height: 18px;
	color: #ffffff;
}

.jp-footer__contact-item a {
	color: inherit;
	text-decoration: none;
	word-break: break-word;
}

.jp-footer__contact-item a:hover {
	text-decoration: underline;
}

.jp-footer__icon {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	color: #ffffff;
}

.jp-footer__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.jp-footer__linkedin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
	padding: 12px 20px;
	min-height: 44px;
	font-family: "Plus Jakarta Sans", var(--jp-font-body, sans-serif);
	font-weight: 600;
	font-size: 14px;
	line-height: 18px;
	color: #5603ad;
	text-decoration: none;
	background: #ffffff;
	border-radius: 6px;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease;
}

.jp-footer__linkedin:hover {
	color: #5603ad;
	transform: translateY(-1px);
}

.jp-footer__linkedin-icon {
	display: inline-flex;
	width: 30px;
	height: 30px;
	flex: 0 0 auto;
}

.jp-footer__linkedin-icon svg {
	width: 100%;
	height: 100%;
}

/* Portrait fills height with a small gap above her head */
.jp-footer__portrait-wrap {
	position: absolute;
	right: max(0px, calc((100% - 1440px) / 2));
	bottom: 0;
	top: 200px;
	z-index: 1;
	width: min(38vw, 480px);
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	pointer-events: none;
}

.jp-footer__portrait {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: top right;
	transform: scaleX(-1);
}

/* Legal row — fine print, left cluster (Figma) */
.jp-footer__bar {
	position: relative;
	z-index: 3;
	width: 100%;
	margin-top: auto;
	padding: 28px 0 20px;
	border: 0;
	background: transparent;
}

.jp-footer__bar-inner {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 32px 40px;
	width: 100%;
	max-width: 680px;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Instrument Sans", "Plus Jakarta Sans", var(--jp-font-body, sans-serif);
	font-weight: 400;
	font-size: 12px;
	line-height: 18px;
	letter-spacing: -0.01em;
	color: rgba(255, 255, 255, 0.92);
}

.jp-footer__legal-block {
	display: flex;
	flex-direction: column;
	gap: 30px;
	flex: 0 1 280px;
	max-width: 280px;
}

.jp-footer__legal-title {
	margin: 0;
	font-family: "Poppins", var(--jp-font-heading, "Plus Jakarta Sans"), sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: -0.04em;
	color: #ffffff;
}

.jp-footer__legal {
	margin: 0;
	font-size: 12px;
	line-height: 18px;
	font-weight: 400;
}

.jp-footer__copyright {
	margin: 0;
	flex: 0 0 auto;
	white-space: nowrap;
	padding-top: 0;
	font-size: 12px;
	line-height: 18px;
	font-weight: 400;
}

.jp-footer__privacy {
	margin: 0;
	flex: 0 0 auto;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	font-size: 12px;
	line-height: 18px;
	font-weight: 400;
}

.jp-footer__privacy:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/*
 * Tablet only (701–1100) — Figma Frame 2147225350:
 * pad 40×60, content ~625.5, 3 cols gap 60, no portrait, Office Address block.
 * Desktop untouched.
 */
@media (min-width: 701px) and (max-width: 1100px) {
	.jp-footer {
		--jp-footer-pad-x: 60px;
		--jp-footer-pad-top: 40px;
		--jp-footer-pad-bottom: 40px;
		--jp-footer-min-h: 0;
		/* Pure gradient — tablet Figma has no side portrait */
		background-image: linear-gradient(160.79deg, #5603ad 50.96%, #dad8fd 115.36%);
		background-color: #5603ad;
	}

	.jp-footer--has-bg {
		background-image: linear-gradient(160.79deg, #5603ad 50.96%, #dad8fd 115.36%) !important;
	}

	.jp-footer__shell {
		min-height: 0;
		max-width: none;
		padding: 40px 60px;
		box-sizing: border-box;
	}

	.jp-footer__badges {
		gap: 20px;
		margin-bottom: 40px;
	}

	.jp-footer__badges-row {
		flex-wrap: nowrap;
		justify-content: center;
		align-items: center;
		gap: 14px;
		max-width: none;
		width: 100%;
		margin: 0;
	}

	.jp-footer__badge-img {
		display: block;
		width: 64px;
		height: 86px;
		max-width: none;
		object-fit: contain;
		flex-shrink: 0;
	}

	.jp-footer__content {
		max-width: 625.5px;
		width: 100%;
		gap: 0;
		align-items: stretch;
	}

	.jp-footer__brand-wrap {
		max-width: 308px;
		align-self: flex-start;
	}

	.jp-footer__brand {
		font-size: clamp(48px, 8vw, 64px);
	}

	.jp-footer__brand-img {
		width: min(100%, 308px);
		max-height: 86px;
	}

	.jp-footer__rule {
		display: block;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		align-self: stretch;
		box-sizing: border-box;
		margin: 14px 0 34px;
	}

	.jp-footer__nav {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: flex-start;
		align-self: flex-start;
		gap: 60px;
		width: 100%;
		max-width: 100%;
	}

	.jp-footer__col:nth-child(1) {
		width: 227px;
		flex: 0 0 227px;
		max-width: 227px;
		min-width: 0;
	}

	.jp-footer__col:nth-child(2) {
		width: auto;
		flex: 0 0 auto;
		max-width: none;
		min-width: 61px;
	}

	.jp-footer__col:nth-child(3) {
		width: auto;
		flex: 1 1 217.5px;
		max-width: 217.5px;
		min-width: 0;
	}

	.jp-footer__col-title {
		margin: 0 0 30px;
		font-size: 18px;
		line-height: 1.2;
		letter-spacing: -0.04em;
	}

	.jp-footer__list {
		gap: 18px;
	}

	.jp-footer__linkedin {
		display: flex;
		width: 100%;
		box-sizing: border-box;
		margin-top: 30px;
		padding: 14px 24px;
		min-height: 49.78px;
		gap: 10px;
	}

	.jp-footer__portrait-wrap {
		display: none !important;
	}

	.jp-footer__bar {
		margin-top: 40px;
		padding: 0;
		width: 100%;
		max-width: 625.5px;
	}

	.jp-footer__bar-inner {
		display: grid;
		grid-template-columns: auto auto;
		grid-template-areas:
			"legal legal"
			"copy privacy";
		justify-content: start;
		align-items: start;
		column-gap: 40px;
		row-gap: 40px;
		max-width: 625.5px;
		width: 100%;
		font-size: 14px;
		line-height: 18px;
	}

	.jp-footer__legal-block {
		grid-area: legal;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 30px;
		max-width: none;
		width: 100%;
	}

	.jp-footer__legal {
		margin: 0;
		font-family: var(--jp-font-body, "Manrope", sans-serif);
		font-weight: 500;
		font-size: 16px;
		line-height: 1.6;
		color: #ffffff;
	}

	.jp-footer__legal-title {
		margin: 0;
		font-family: "Poppins", var(--jp-font-heading, "Plus Jakarta Sans"), sans-serif;
		font-weight: 500;
		font-size: 18px;
		line-height: 1.2;
		letter-spacing: -0.04em;
		color: #ffffff;
	}

	.jp-footer__copyright {
		grid-area: copy;
		font-family: "Plus Jakarta Sans", var(--jp-font-body, sans-serif);
		font-weight: 500;
		font-size: 14px;
		line-height: 18px;
		white-space: nowrap;
	}

	.jp-footer__privacy {
		grid-area: privacy;
		font-family: "Plus Jakarta Sans", var(--jp-font-body, sans-serif);
		font-weight: 500;
		font-size: 14px;
		line-height: 18px;
		white-space: nowrap;
	}
}

/* Mobile only (≤700) — Figma Frame 2147225408: pad 40×24, stacked cols, Office Address */
@media (max-width: 700px) {
	.jp-footer {
		--jp-footer-pad-x: 24px;
		--jp-footer-pad-top: 40px;
		--jp-footer-pad-bottom: 40px;
		--jp-footer-min-h: 0;
		background-image: linear-gradient(160.79deg, #5603ad 50.96%, #dad8fd 115.36%);
		background-color: #5603ad;
	}

	.jp-footer--has-bg {
		background-image: linear-gradient(160.79deg, #5603ad 50.96%, #dad8fd 115.36%) !important;
	}

	.jp-footer__shell {
		min-height: 0;
		max-width: none;
		padding: 40px 24px;
		box-sizing: border-box;
	}

	.jp-footer__badges {
		align-items: flex-start;
		gap: 18px;
		margin-bottom: 32px;
		width: 100%;
		max-width: 344px;
	}

	.jp-footer__badges-label {
		font-size: 12px;
		letter-spacing: 0.1em;
		text-align: left;
	}

	.jp-footer__badges-row {
		flex-wrap: wrap;
		row-gap: 18px;
		column-gap: 16px;
		justify-content: flex-start;
		max-width: none;
		width: 100%;
		margin: 0;
	}

	.jp-footer__badge-img {
		height: 44px;
		max-width: 64px;
	}

	.jp-footer__content {
		max-width: 344px;
		width: 100%;
		align-items: stretch;
	}

	.jp-footer__brand-wrap {
		max-width: 154px;
	}

	.jp-footer__brand {
		font-size: 48px;
	}

	.jp-footer__brand-img {
		width: min(100%, 154px);
		max-height: 43px;
	}

	.jp-footer__rule {
		width: 100%;
		max-width: 100%;
		align-self: stretch;
		margin: 14px 0 34px;
	}

	.jp-footer__nav {
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 40px;
		width: 100%;
		max-width: 344px;
	}

	.jp-footer__col:nth-child(1) {
		width: 234px;
		flex: 0 0 auto;
		max-width: 234px;
		min-width: 0;
	}

	.jp-footer__col:nth-child(2) {
		width: 150px;
		flex: 0 0 auto;
		max-width: 150px;
		min-width: 0;
	}

	.jp-footer__col:nth-child(3) {
		width: 100%;
		flex: 0 0 auto;
		max-width: 344px;
		min-width: 0;
	}

	.jp-footer__col-title {
		margin: 0 0 30px;
		font-family: "Plus Jakarta Sans", var(--jp-font-heading, sans-serif);
		font-weight: 500;
		font-size: 16px;
		line-height: 1.2;
		letter-spacing: -0.04em;
	}

	.jp-footer__list {
		gap: 18px;
	}

	.jp-footer__linkedin {
		display: inline-flex;
		width: auto;
		min-width: 212px;
		box-sizing: border-box;
		margin-top: 30px;
		padding: 14px 24px;
		min-height: 52px;
		gap: 10px;
		font-weight: 500;
		font-size: 16px;
		line-height: 20px;
	}

	.jp-footer__linkedin-icon {
		width: 24px;
		height: 24px;
	}

	.jp-footer__portrait-wrap {
		display: none !important;
	}

	.jp-footer__bar {
		margin-top: 40px;
		padding: 0;
		width: 100%;
		max-width: 344px;
	}

	.jp-footer__bar-inner {
		display: grid;
		grid-template-columns: auto auto;
		grid-template-areas:
			"legal legal"
			"copy privacy";
		justify-content: start;
		align-items: start;
		column-gap: 40px;
		row-gap: 40px;
		max-width: 344px;
		width: 100%;
	}

	.jp-footer__legal-block {
		grid-area: legal;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 30px;
		max-width: none;
		width: 100%;
	}

	.jp-footer__legal {
		margin: 0;
		font-family: var(--jp-font-body, "Manrope", sans-serif);
		font-weight: 500;
		font-size: 14px;
		line-height: 1.6;
		color: #ffffff;
	}

	.jp-footer__legal-title {
		margin: 0;
		font-family: "Plus Jakarta Sans", var(--jp-font-heading, sans-serif);
		font-weight: 500;
		font-size: 16px;
		line-height: 1.2;
		letter-spacing: -0.04em;
		color: #ffffff;
	}

	.jp-footer__copyright {
		grid-area: copy;
		font-family: "Plus Jakarta Sans", var(--jp-font-body, sans-serif);
		font-weight: 500;
		font-size: 14px;
		line-height: 18px;
		white-space: nowrap;
	}

	.jp-footer__privacy {
		grid-area: privacy;
		font-family: "Plus Jakarta Sans", var(--jp-font-body, sans-serif);
		font-weight: 500;
		font-size: 14px;
		line-height: 18px;
		white-space: nowrap;
	}
}

/* ==========================================================================
   JP-SEC-FOOTER-LINES — edge-to-edge; behind portrait on desktop
   ========================================================================== */

.jp-footer__badges {
	z-index: auto;
	border-bottom: none;
}

.jp-footer__badges::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 100vw;
	height: 0;
	border-top: 0.5px solid rgba(255, 255, 255, 0.4);
	z-index: 1;
	pointer-events: none;
}

.jp-footer__badges-label,
.jp-footer__badges-row {
	position: relative;
	z-index: 3;
}

.jp-footer__content {
	z-index: auto;
	display: contents;
}

.jp-footer__brand-wrap,
.jp-footer__nav {
	position: relative;
	z-index: 3;
}

.jp-footer__rule {
	position: relative;
	z-index: 1;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	border-top: 0.5px solid rgba(255, 255, 255, 0.4);
}

.jp-footer--has-portrait .jp-footer__portrait-wrap {
	z-index: 2;
}

/* Mobile only — full-bleed lines (desktop/tablet unchanged) */
@media (max-width: 700px) {
	.jp-footer__badges::after {
		left: calc(-1 * var(--jp-footer-pad-x));
		transform: none;
		width: 100vw;
	}

	.jp-footer__rule {
		width: 100vw;
		max-width: none;
		margin-left: calc(-1 * var(--jp-footer-pad-x));
		margin-right: 0;
	}
}
