/* Ivexa Pharma — one-page landing */

:root {
	--ivexa-navy: #12183a;
	--ivexa-navy-mid: #1a237e;
	--ivexa-navy-deep: #0c1028;
	--ivexa-gold: #c4a86a;
	--ivexa-gold-soft: rgba(196, 168, 106, 0.45);
	--ivexa-white: #ffffff;
	--ivexa-font-sans: "Montserrat", system-ui, -apple-system, sans-serif;
	--ivexa-font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	/* ~55% / 45% split */
	--ivexa-hero-col-left: 55fr;
	--ivexa-hero-col-right: 45fr;
	/* Navy panel diagonal (right edge of left column) */
	--ivexa-hero-slant: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

.ivexa-pharma-body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--ivexa-navy);
	color: var(--ivexa-white);
	font-family: var(--ivexa-font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.ivexa-main {
	margin: 0;
}

/* ----- Hero ----- */

.ivexa-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	overflow: hidden;
	display: grid;
	grid-template-columns: var(--ivexa-hero-col-left) var(--ivexa-hero-col-right);
	grid-template-rows: minmax(100dvh, auto);
}

/* Full-bleed lab photo + tint (behind both columns) */
.ivexa-hero__bg {
	grid-column: 1 / -1;
	grid-row: 1;
	position: relative;
	min-height: 0;
	z-index: 0;
}

.ivexa-hero__photo {
	position: absolute;
	inset: 0;
	background-color: var(--ivexa-navy-deep);
	background-image: var(--ivexa-hero-image, none);
	background-size: cover;
	background-position: 58% center;
}

.ivexa-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		95deg,
		var(--ivexa-navy) 0%,
		var(--ivexa-navy) 38%,
		rgba(18, 24, 58, 0.55) 50%,
		rgba(18, 24, 58, 0.12) 62%,
		transparent 76%
	);
	pointer-events: none;
}

/* Left column: copy only */
.ivexa-hero__content {
	grid-column: 1;
	grid-row: 1;
	position: relative;
	z-index: 2;
	align-self: stretch;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: clamp(1.5rem, 4vh, 2.75rem) clamp(1.25rem, 4vw, 2.5rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: clamp(0.45rem, 1.2vh, 0.85rem);
	background: var(--ivexa-navy);
	clip-path: var(--ivexa-hero-slant);
	box-shadow: 14px 0 40px rgba(0, 0, 0, 0.2);
}

.ivexa-hero__kicker {
	flex-shrink: 0;
	margin: 0;
	font-size: clamp(0.62rem, 0.8vw + 0.5rem, 0.75rem);
	font-weight: 300;
	letter-spacing: 0.42em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9);
}

.ivexa-hero__head {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 0;
	padding: clamp(0.15rem, 0.6vh, 0.35rem) 0;
	margin: 30px 0;
}

.ivexa-hero__title {
	margin: 0;
	font-family: var(--ivexa-font-serif);
	font-size: clamp(1.75rem, 1.8vw + 1rem, 3.1rem);
	font-weight: 400;
	font-style: normal;
	line-height: 1.08;
	letter-spacing: 0.02em;
	max-width: 15ch;
}

.ivexa-hero__title-line {
	display: block;
}

.ivexa-hero__title-line--accented {
	position: relative;
	margin-top: 0.02em;
	padding-bottom: 0.28em;
	color: var(--ivexa-white);
}

.ivexa-hero__title-accent {
	font-weight: 500;
	font-style: italic;
	letter-spacing: 0.01em;
}

.ivexa-hero__scribble {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: min(11.5em, 72vw);
	height: 0.42em;
	max-width: 280px;
	transform: translateX(-50%) rotate(-0.65deg);
	color: rgba(255, 255, 255, 0.93);
	opacity: 0.96;
}

.ivexa-hero__scribble-path {
	vector-effect: non-scaling-stroke;
}

.ivexa-hero__contact {
	flex-shrink: 0;
	margin: 0;
	font-size: clamp(0.78rem, 0.3vw + 0.72rem, 0.88rem);
	font-weight: 400;
	letter-spacing: 0.07em;
}

.ivexa-hero__email {
	display: inline-block;
	padding: 0.15rem 0.35rem;
	margin: 0 -0.35rem;
	color: var(--ivexa-white);
	text-decoration: none;
	border-bottom: 1px solid var(--ivexa-gold-soft);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.ivexa-hero__email:hover,
.ivexa-hero__email:focus-visible {
	color: var(--ivexa-gold);
	border-bottom-color: var(--ivexa-gold);
	outline: none;
}

/* Right column: logo over photo */
.ivexa-hero__panel-right {
	grid-column: 2;
	grid-row: 1;
	position: relative;
	z-index: 2;
	min-height: 0;
	pointer-events: none;
}

.ivexa-hero__brand {
	pointer-events: auto;
	display: flex;
	justify-content: center;
	padding-top: clamp(1.75rem, 5.5vh, 3.25rem);
	padding-left: clamp(0.75rem, 2vw, 1.25rem);
	padding-right: clamp(0.75rem, 2vw, 1.25rem);
}

.ivexa-hero__logo {
	width: min(220px, 38vw);
	max-width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 4px 32px rgba(0, 0, 0, 0.35));
}

/* ----- Page 1 — logo in navy column ----- */

.ivexa-hero__panel-right--empty {
	pointer-events: none;
}

/* Full-width rows so the logo can sit at the right (near the diagonal), while copy stays centred via text-align. */
.ivexa-hero--layout-1 .ivexa-hero__content {
	align-items: stretch;
}

.ivexa-hero--layout-1 .ivexa-hero__brand {
	flex-shrink: 0;
	align-self: stretch;
	width: 100%;
	max-width: 100%;
	padding: 0;
	padding-right: clamp(0.5rem, 2vw, 1.25rem);
	margin: 0;
	margin-bottom: 100px;
	display: flex;
	justify-content: flex-end;
	box-sizing: border-box;
}

.ivexa-hero--layout-1 .ivexa-hero__logo {
	width: min(300px, 46vw);
	filter: drop-shadow(0 3px 22px rgba(0, 0, 0, 0.22));
}

.ivexa-hero--layout-1 .ivexa-hero__kicker {
	margin: 0;
}

.ivexa-hero--layout-1 .ivexa-hero__head {
	padding-block: clamp(0.1rem, 0.5vh, 0.3rem);
}

/* Page 2 — logo in navy (upper), photo column kept for split */
.ivexa-hero--layout-2 .ivexa-hero__content {
	align-items: stretch;
}

.ivexa-hero--layout-2 .ivexa-hero__brand {
	flex-shrink: 0;
	align-self: stretch;
	width: 100%;
	max-width: 100%;
	margin: 0;
	margin-bottom: clamp(1rem, 3vh, 2rem);
	padding: 0;
	display: flex;
	justify-content: center;
	box-sizing: border-box;
}

.ivexa-hero--layout-2 .ivexa-hero__logo {
	width: min(280px, 48vw);
	filter: drop-shadow(0 3px 22px rgba(0, 0, 0, 0.22));
}

/* ----- Optional editor content ----- */

.ivexa-page-content {
	background: var(--ivexa-navy-deep);
	padding: clamp(2rem, 5vw, 4rem) 1.5rem 4rem;
}

.ivexa-page-content__inner {
	max-width: 40rem;
	margin: 0 auto;
}

.ivexa-page-content__inner > *:first-child {
	margin-top: 0;
}

.ivexa-page-content__inner a {
	color: var(--ivexa-gold);
}

.ivexa-page-content--standalone {
	min-height: 40vh;
	padding-top: clamp(3rem, 8vw, 5rem);
}

.ivexa-page-title {
	font-family: var(--ivexa-font-serif);
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 500;
	margin: 0 0 1.5rem;
}

.ivexa-main--page {
	padding-top: 0;
}

/* ----- Tablet ----- */

@media (max-width: 1100px) and (min-width: 721px) {
	:root {
		--ivexa-hero-slant: polygon(0 0, 100% 0, 84% 100%, 0 100%);
	}

	.ivexa-hero__title {
		font-size: clamp(1.55rem, 2.2vw + 0.85rem, 2.5rem);
		max-width: 16ch;
	}

	.ivexa-hero__overlay {
		background: linear-gradient(
			95deg,
			var(--ivexa-navy) 0%,
			var(--ivexa-navy) 34%,
			rgba(18, 24, 58, 0.58) 48%,
			rgba(18, 24, 58, 0.14) 60%,
			transparent 74%
		);
	}

	.ivexa-hero__logo {
		width: min(200px, 36vw);
	}
}

/* ----- Mobile: navy first, then photo + logo ----- */

@media (max-width: 720px) {
	:root {
		--ivexa-hero-slant: none;
	}

	.ivexa-hero {
		position: relative;
		display: flex;
		flex-direction: column;
		min-height: unset;
		grid-template-columns: unset;
		grid-template-rows: unset;
	}

	.ivexa-hero__bg {
		order: 2;
		grid-column: unset;
		grid-row: unset;
		position: relative;
		flex: 0 0 auto;
		min-height: min(52vh, 26rem);
	}

	.ivexa-hero__photo {
		background-position: center center;
	}

	.ivexa-hero__overlay {
		display: none;
	}

	.ivexa-hero__content {
		order: 1;
		grid-column: unset;
		grid-row: unset;
		width: 100%;
		min-height: min(52vh, 26rem);
		clip-path: none;
		box-shadow: none;
		padding: clamp(1.5rem, 5vw, 2.25rem) 1.5rem clamp(1.5rem, 5vw, 2.25rem);
		justify-content: center;
		gap: clamp(0.5rem, 1.8vw, 0.85rem);
	}

	.ivexa-hero__head {
		flex: 0 0 auto;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 0;
		padding: clamp(0.1rem, 0.6vh, 0.35rem) 0;
		margin: 30px 0;
	}

	.ivexa-hero__title {
		font-size: clamp(1.5rem, 5vw + 0.45rem, 2.1rem);
		max-width: 18ch;
	}

	.ivexa-hero__contact {
		margin: 0;
		padding: 0;
	}

	.ivexa-hero__email {
		min-height: 44px;
		min-width: 44px;
		line-height: 44px;
		padding: 0 0.5rem;
	}

	.ivexa-hero--layout-1 .ivexa-hero__panel-right--empty,
	.ivexa-hero--layout-2 .ivexa-hero__panel-right--empty {
		display: none;
	}

	.ivexa-hero--layout-1 .ivexa-hero__logo,
	.ivexa-hero--layout-2 .ivexa-hero__logo {
		width: min(300px, 78vw);
		filter: drop-shadow(0 3px 20px rgba(0, 0, 0, 0.25));
	}
}

@media (max-width: 380px) {
	.ivexa-hero__kicker {
		letter-spacing: 0.32em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ivexa-hero__email {
		transition: none;
	}
}
