/* CSS Reset - minimal, modern reset to normalize browser defaults */
/* Keep this small and predictable so existing styles continue to work */

@import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

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

html,
body {
	scroll-behavior: smooth;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
/* 
body,
html {
	overflow-x: hidden;
} */

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

form,
fieldset {
	border: 0;
}

button,
input,
select,
textarea {
	font: inherit; /* match font with body */
	background: none;
	color: inherit;
}

ul[role='list'],
ol[role='list'],
ul,
ol {
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

/* Sensible defaults for reduced motion */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

:root {
	--accent: #0b6b6b;
	--muted: #6b6b6b;
	--bg: #fafafa;
	--card: #ffffff;
	--glass: rgba(0, 100, 12, 0.1);
	--green: #13a600;
	--nav-height: 72px; /* approximate nav height used to calculate hero full-viewport */
	--font-primary: 'Montserrat', sans-serif, system-ui, -apple-system, 'Segoe UI',
		Roboto, 'Helvetica Neue', Arial;
	--font-secondary: 'Cabin', sans-serif, system-ui, -apple-system, 'Segoe UI',
		Roboto, 'Helvetica Neue', Arial;
	--top-height: 120px;
	--between-height: 80px;
	--gap: 24px;
}

body {
	margin: 0;
	font-family: var(--font-primary);
	background: var(--bg);
	color: #141414;
	line-height: 1.4;
}

.wrapper {
	--body-padding: 20px;
	max-width: min(calc(1280px + var(--body-padding) * 2), 92vw);
	margin-inline: auto;
	padding: 0 var(--body-padding);
	position: relative; /* ensure stacking context for sticky nav */
}

/* nav / hero */
.nav {
	position: fixed;
	z-index: 100;
	width: 100%;
	backdrop-filter: blur(34px);
	background: var(--glass);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	transition: background-color 200ms, height 200ms;
}

.nav-dark {
	background-color: rgba(21, 110, 4, 0.66);
}

.nav-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: var(--nav-height);
	color: #fff; /* always white */
	text-shadow: 0 1px 12px rgba(15, 51, 0, 0.6); /* strong shadow for readability */
}

.nav .brand {
	font-weight: 700;
	letter-spacing: 1px;
	font-size: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-shadow: 0 1px 12px rgba(15, 51, 0, 0.6);
}
.brand img {
	height: 54px;
	margin-right: 8px;
	color: black;
}

.nav .links {
	display: flex;
	gap: 2rem;
	font-size: 1.25rem;
	font-family: var(--font-secondary);
	letter-spacing: 1.5px;
	font-weight: 400;
}

/* Mobile hamburger button */
.nav-toggle {
	background: transparent;
	border: 0;
	display: none; /* visible only on small screens */
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
	width: 76px;
	height: 48px;
	align-items: center;
	z-index: 111;
	scale: 0.8;
}
.nav-toggle:focus {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.hamburger-bar {
	display: block;
	height: 2px;
	width: 20px;
	background: #fff;
	border-radius: 2px;
	transition: transform 200ms;
}

/* Mobile menu (hidden by default) */
.mobile-menu {
	position: absolute;
	left: 0;
	right: 0;
	top: var(--nav-height);
	/* keep in flow but hidden to allow CSS transitions */
	visibility: hidden;
	opacity: 0;
	transform: translateY(-8px);
	transition: transform 260ms ease, opacity 240ms ease,
		visibility 1ms linear 260ms;
	z-index: 110;
	pointer-events: none;
	padding: 0 20px;
	height: 100dvh;
}
.mobile-menu[aria-hidden='false'] {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
	transition: transform 260ms ease, opacity 240ms ease;
	pointer-events: auto;
}
.mobile-links {
	display: grid;
	background: #209500;
	padding: 80px 40px;
	border-radius: 24px 0 24px 24px;
	position: relative;
	gap: 44px;
}

.mobile-links::after {
	content: '';
	position: absolute;
	background: #209500;
	width: 76px;
	aspect-ratio: 1;
	top: -48px;
	right: 0px;
	z-index: -1;
	border-radius: 24px 24px 0 0;
}
.mobile-links a {
	color: #fff;
	font-size: 1.25rem;
}

.mobile-links > li > a {
	font-family: var(--font-secondary);
}

.sub-nav-links {
	display: grid;
	gap: 1rem;
	margin-top: 1.5rem;
}
.sub-nav-link a {
	font-size: 1rem;
	font-weight: 500;
	color: #141414;
}

.sub-nav-link span {
	opacity: 40%;
}

.nav:has(.nav-toggle[aria-expanded='true']) {
	height: 100%;
}

/* .nav-active-menu {
	box-shadow: none;
	height: 100%;
	background-color: rgba(15, 51, 0, 0.49);
} */

/* animate hamburger to X when expanded */
.nav-toggle {
	transition: transform 200ms ease;
}
.nav-toggle[aria-expanded='true'] .hamburger-bar:nth-child(1) {
	transform: translateY(12px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .hamburger-bar:nth-child(2) {
	opacity: 0;
	transform: scaleX(0.1);
}
.nav-toggle[aria-expanded='true'] .hamburger-bar:nth-child(3) {
	transform: translateY(-4px) rotate(-45deg);
}

.hero {
	align-items: center;
	position: relative;
	height: 100dvh;
	overflow: hidden;
	color: white;
}
.hero h1 {
	margin: 0;
	font-size: clamp(28px, 6vw + 1rem, 96px);
	line-height: 1;
	letter-spacing: -3%;
	font-weight: 500;
}

.hero i {
	font-style: normal;
	font-weight: normal;
	font-size: clamp(24px, 5vw + 0.5rem, 48px);
	line-height: normal;
}

.hero p {
	margin-top: 60px;
	max-width: 56ch;
	font-size: 1.25rem;
	letter-spacing: 1%;
}

.hero {
	align-items: center;
	position: relative;
	height: 100dvh;
	left: 0;
	right: 0;
	width: 100%;
	overflow: hidden;
	color: white;
}

.hero-video {
	position: absolute;
	inset: 0; /* top:0; right:0; bottom:0; left:0 */
	width: 100%;
	height: 100%;
	object-fit: cover; /* cover the hero area */
	z-index: 1;
	pointer-events: none;
}

.hero-content {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center; /* center title + subtitle vertically */
	height: 100%;
	text-align: center; /* center text lines */
	/* subtle overlay to ensure text contrast */
}
.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(158, 142, 0, 0.169) 0%,
		rgb(40 65 0) 70%
	);
	pointer-events: none;
	z-index: 2;
	mix-blend-mode: overlay;
}

/* ensure headings and paragraphs in the hero are centered */
.hero h1,
.hero p {
	text-align: center;
}

/* place CTA fixed to the bottom of the hero area (inside hero-content) */
.cta {
	color: white;
	position: absolute;
	bottom: clamp(18px, 3.5vh, 48px);
	z-index: 3;
}

/* Reduced motion: don't autoplay video, fall back to poster image */
@media (prefers-reduced-motion: reduce) {
	.hero-video {
		display: none;
	}
	.hero-content {
		background: linear-gradient(
				180deg,
				rgba(0, 0, 0, 0) 0%,
				rgba(0, 0, 0, 0.6) 70%
			),
			url('./assets/hero/hero-image.webp');
		background-size: cover;
		background-position: center;
	}
}

.cta .btn {
	color: white;
	border: 0;
	padding: 14px 24px;
	font-size: 1.5rem;
	font-weight: 300;
	cursor: pointer;
	display: grid;
	align-items: center;
	text-decoration: none;
	font-family: var(--font-secondary);
}

.icon {
	font-family: var(--font-secondary);
}

.sillicon {
	padding-block: var(--top-height);
	display: grid;
}

.sillicon-title {
	font-size: 3rem;
	font-weight: normal;
	font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
}

.sillicon-title em {
	font-weight: 300;
	font-style: normal;
}

.sillicon-text {
	margin-top: var(--between-height);
	display: grid;
	grid-template-columns: 7fr 5fr;
	align-items: start;
	gap: 60px;
}

.sillicon-text.text-em {
	text-wrap: nowrap;
}

.text-em {
	font-style: normal;
	font-weight: 300;
	font-size: clamp(20px, 2vw + 0.5rem, 40px);
	line-height: 117%;
}

.sillicon-text > div {
	display: grid;
	gap: 12px;
	max-width: 37ch;
	font-family: var(--font-secondary);
}
.sillicon > p {
	line-height: 126%;
}

.silicon-header {
	margin-top: var(--top-height);
	display: grid;
	grid-template-columns: 2fr 3fr 7fr;
	gap: var(--gap);
	font-family: var(--font-secondary);
}

.title-life {
	font-size: 1rem;
	color: var(--green);
}
.silicon-header p {
	max-width: 25ch;
}

/* articles */
.sillicon-cards {
	margin-top: 3rem;
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(2, minmax(0, 520px));
}
.plasma {
	padding-top: var(--top-height);
	padding-bottom: 2rem;
	background-color: #e6e5e2;
}
.plasma-cards {
	margin-top: var(--between-height);
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, minmax(0, 520px));
	justify-content: end;
}
.card {
	background: var(--card);
	padding: 18px;
	border-radius: 24px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: relative;
	isolation: isolate;
	height: clamp(420px, 95dvh, 800px);
	overflow: hidden;
}

.card-inside {
	position: relative;
	display: grid;
	padding: 18px;
	border-radius: 24px 0 24px 24px;
	background-color: #fafafa;
	z-index: 1;
}

.plasma-cards .card-inside {
	background-color: #e6e5e2;
}

.plasma-cards .tag {
	background-color: #fafafa;
}

.plasma-cards .learn-more {
	background-color: #fafafa;
	border: none;
}

.card-inside li {
	list-style-type: '+   ';
	margin-left: 1.5rem;
}

.tag {
	font-size: 12px;
	padding: 10px 18px;
	border-radius: 24px 24px 0 0;
	z-index: -1;
	width: max-content;
	align-self: flex-end;
}

.card-crops .tag {
	background-color: #d6ded5;
}

.card-humans .tag {
	background-color: #c3d4e2;
}

.card-pets .tag {
	background-color: #ffd8b2;
}
.card-animals .tag {
	background-color: #d9c8b7;
}

.card-plasmasorb img {
	rotate: 180deg;
}
.card-greenfarming img {
	scale: 1.5;
	object-position: 20% 50%;
	/* rotate: 90deg; */
}

.card-humans img {
	object-position: 40% 0%;
	transform-origin: center;
	/* rotate: 15deg; */
	scale: 1.6;
}

.card img {
	position: absolute;
	height: 100%;
	width: 100%;
	z-index: -1;
	inset: 0;
	border-radius: 8px;
	object-fit: cover;
}
.card h3 {
	margin-top: 18px;
	font-size: 1.75rem;
	font-weight: medium;
	line-height: 110%;
}

.card p {
	margin-top: 32px;
	line-height: 130%;
	max-width: 45ch;
	font-family: var(--font-secondary);
}

.card h4 {
	font-size: 0.75rem;
	font-weight: normal;
	opacity: 0.6;
	mix-blend-mode: multiply;
	margin-top: 32px;
}

.card ul {
	margin-top: 8px;
}

.card li {
	font-size: 0.875rem;
	font-family: var(--font-secondary);
}

.learn-more {
	margin-top: 32px;
	padding: 8px 12px;
	cursor: pointer;
	border-radius: 24px;
	font-weight: 600;
}

.card-crops .learn-more {
	background-color: #d6ded5;
	border: none;
}
.card-animals .learn-more {
	background-color: #d9c8b7;
	border: none;
}
.card-pets .learn-more {
	background-color: #ffd8b2;
	border: none;
}
.card-humans .learn-more {
	background-color: #c3d4e2;
	border: none;
}

.our-team {
	padding-top: var(--top-height);
}

.nanomix-group {
	margin-top: var(--between-height);
	display: grid;
	align-items: stretch;
}

.team-images {
	margin-top: var(--between-height);
	display: grid;
	grid-template-columns: 8fr 4fr;
	align-items: stretch;
	gap: var(--gap);
	flex: 1;
}

.team-images img:nth-child(1) {
	grid-row: span 2;
}

.nanomix-group img {
	width: 100%;
	object-fit: cover;
	display: block;
	border-radius: 12px;
}

.group-text {
	display: grid;
	grid-template-columns: 3fr 4fr 5fr;
	align-items: end;
	gap: var(--gap);
	grid-auto-rows: auto;
	align-content: start;
	height: 100%;
}

.group-text h3 {
	font-weight: 700;
	font-size: 1rem;
	color: var(--green);
}

.group-text > div > p {
	margin-top: 16px;
}

.group-text p {
	max-width: 35ch;
	font-family: var(--font-secondary);
}

.why-us-container {
	background-color: #e6e5e2;
	padding-block: 60px;
	margin-top: 45px;
}

.why-us {
	margin-top: var(--between-height);
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 24px;
}

.why-us h3 {
	font-size: 2rem;
	font-weight: normal;
}

/* Partners section */
.partners {
	padding: 48px 0 80px;
}
.partners-grid {
	margin-top: 24px;
	display: grid;
	grid-template-columns: repeat(6, auto);
	gap: 18px;
	align-items: center;
	justify-items: center;
}

.partners-grid img {
	height: 150px;
}

.partners h3 {
	font-size: 2rem;
	font-weight: normal;
}

@media (max-width: 1100px) {
	.partners-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 520px) {
	.partners-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

/* Contact / Discover styles */
.discover {
	padding-block: var(--top-height) var(--between-height);
	background: #e6e5e2;
	position: relative;
	overflow: hidden;
}

.discover h2 {
	position: relative;
	z-index: 1;
}
.discover::after {
	content: '';
	position: absolute;
	background: url(./assets/logos/logo-white-footer.svg) no-repeat center/contain;
	opacity: 0.5;
	width: clamp(500px, 80vw, 700px);
	aspect-ratio: 1;
	top: 0;
	right: 0;
	z-index: 0;
}
.contacts {
	position: relative;
	margin-top: var(--top-height);
	display: grid;
	grid-template-columns: 2fr 10fr;
	z-index: 2;
	gap: var(--gap);
	align-items: start;
}

.contacts h3 {
	font-size: 14px;
	font-family: var(--font-secondary);
}

/* .contact-info {
	margin-left: -24px;
} */
.contact-name {
	font-size: 2em;
	line-height: 100%;
	margin-bottom: 16px;
}
.contact-phone {
	font-variant: tabular-nums;
}
.contact-email a {
	color: var(--accent);
	text-decoration: none;
}

.copyright {
	margin-top: var(--top-height);
	position: relative;
	z-index: 1;
	font-size: 12px;
}

.team-cards {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(4, 1fr);
}

@media (width < 1280px) {
	.why-us {
		grid-template-columns: 1fr;
	}
}

.team-card {
	font-size: 14px;
	padding: 48px 24px;
	border-radius: 24px;
	position: relative;
}

.team-card::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 95px;
	aspect-ratio: 1;
	z-index: -1;
}

.team-card:nth-child(1)::after {
	background: url('./assets/why-us-icons/proven-technology.svg') no-repeat
		center/contain;
}
.team-card:nth-child(2)::after {
	background: url('./assets/why-us-icons/multiple-revenue-streams.svg')
		no-repeat center/contain;
}
.team-card:nth-child(3)::after {
	background: url('./assets/why-us-icons/sustainability-focus.svg') no-repeat
		center/contain;
}
.team-card:nth-child(4)::after {
	background: url('./assets/why-us-icons/market-leadership.svg') no-repeat
		center/contain;
}

@media (width < 1200px) {
	.team-cards {
		grid-template-columns: 1fr 1fr;
	}
}

.team-card h4 {
	font-size: 20px;
	color: var(--green);
}
.team-card p {
	margin-top: 24px;
	font-family: var(--font-secondary);
	font-size: 14px;
	max-width: 30ch;
}

.achievements {
	margin-top: var(--between-height);
	display: grid;
	grid-template-columns: 5fr 2fr 5fr;
	gap: var(--gap);
}

.achievements .text-em {
	max-width: 30ch;
}

.achievements h4 {
	justify-self: end;
	color: var(--green);
	font-family: var(--font-secondary);
}

.achievements-text {
	display: grid;
	gap: 16px;
	max-width: 45ch;
	font-family: var(--font-secondary);
}
.achievements-text strong {
	color: var(--green);
}

/* modal */
.modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(4, 8, 12, 0.5);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 28px;
	z-index: 1200;
}
.modal-backdrop.active {
	display: flex;
}
.modal {
	background: #fff;
	max-width: 900px;
	width: 100%;
	border-radius: 12px;
	max-height: 90vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.modal header {
	padding: 18px 20px;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.modal .content {
	padding: 18px 20px;
	overflow: auto;
}
.close {
	background: transparent;
	border: 0;
	font-size: 16px;
	cursor: pointer;
	color: var(--muted);
}
.modal h2 {
	margin: 0;
}
.modal .scroll-body {
	max-height: 60vh;
	overflow: auto;
	padding-right: 6px;
}

/* helper classes */
.modal .muted-note {
	margin-top: 18px;
	color: var(--muted);
}
.modal .scroll-spacer {
	height: 280px;
}
.modal .scroll-spacer.small {
	height: 260px;
}

/* responsive */
@media (max-width: 880px) {
	:root {
		--top-height: 80px;
		--between-height: 40px;
		--gap: 16px;
	}
	.hero p {
		max-width: 100%;
		font-size: 0.95rem;
	}

	/* compact nav for phones: allow wrapping and smaller gaps */

	.nav {
		height: 72px;
	}

	.nav .links {
		gap: 10px;
		font-size: 13px;
		flex-wrap: wrap;
	}
	/* show hamburger */
	.nav-toggle {
		display: flex;
	}
	/* hide desktop links when mobile menu is used */
	.nav .links {
		display: none;
	}

	.mobile-links {
		padding: 62px;
	}

	.mobile-links::after {
		top: -62px;
	}

	/* call-to-action: full width on very small screens */
	.btn {
		width: 100%;
		justify-content: center;
		padding: 12px 16px;
		font-size: 15px;
	}

	/* reposition small arrow hint */
	.hero .arrow-hint {
		bottom: 8px;
		font-size: 18px;
	}

	/* mini section stacks vertically */
	.mini {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	.mini .title {
		font-size: 18px;
	}

	.sillicon-text {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	/* single-column article list, tighter cards */
	.sillicon-cards {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.silicon-header {
		grid-template-columns: 2fr auto auto;
	}
	.plasma-cards {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.card {
		padding: 16px;
	}
	.card h3 {
		font-size: 16px;
	}
	.card p,
	.mini p {
		font-size: 0.95rem;
	}

	.group-text {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.team-cards {
		grid-template-columns: 1fr 1fr;
		/* place-items: center; */
	}

	.achievements {
		grid-template-columns: max-content 1fr;
	}

	.achievements .text-em {
		grid-column: span 2;
	}

	/* ensure modal is usable on small screens */
	.modal {
		max-width: 96vw;
		margin: 0 2vw;
		border-radius: 10px;
	}
	.modal .scroll-body {
		max-height: 55vh;
	}

	/* reduce modal paddings */
	.modal header {
		padding: 14px 16px;
	}
	.modal .content {
		padding: 14px 16px;
	}
}

/* extra-tight phones */
@media (max-width: 530px) {
	:root {
		--nav-height: 60px;
	}

	.nav {
		height: 60px;
	}
	.nav .brand {
		font-size: 16px;
	}

	.mobile-links {
		padding: 40px;
	}

	.mobile-links::after {
		top: -48px;
	}

	.brand img {
		height: 34px;
	}
	.nav .links {
		font-size: 12px;
		gap: 8px;
	}
	.cta .btn {
		padding: 10px 12px;
		font-size: 14px;
	}

	.hero p {
		font-size: 0.875rem;
		max-width: 30ch;
		margin-top: 40px;
	}
	.mini .title {
		font-size: 16px;
	}

	.silicon-header {
		grid-template-columns: 1fr;
	}

	.team-cards {
		grid-template-columns: 1fr;
		place-items: center;
	}
	.team-card {
		padding: 24px;
	}
	.nanomix-group {
		grid-template-columns: 1fr;
		place-items: center;
	}
	.group-text {
		display: grid;
		grid-template-columns: 1fr;
	}

	.team-images {
		grid-template-columns: 1fr 1fr;
	}
	.team-images img:nth-child(1) {
		grid-row: span 1;
		grid-column: span 2;
	}

	.team-card p {
		max-width: 100%;
	}

	.achievements {
		grid-template-columns: 1fr;
	}
	.achievements h4 {
		justify-self: start;
	}

	.achievements .text-em {
		grid-column: span 1;
	}

	.achievements-body {
		grid-template-columns: 1fr;
	}
	.contacts {
		grid-template-columns: 1fr;
	}
}

.animate-from-left {
	opacity: 0;
	transform: translateX(-50px);
	transition: opacity 600ms ease, transform 600ms ease;
}

.animate-from-bottom {
	opacity: 0;
	transform: translateY(50px);
	transition: opacity 600ms ease, transform 600ms ease;
}
.animate {
	opacity: 1;
	transform: translateY(0);
}

.card:nth-child(1),
.card:nth-child(3),
.team-card:nth-child(1) {
	transition-delay: 0ms;
}
.card:nth-child(2),
.card:nth-child(4),
.team-card:nth-child(2) {
	transition-delay: 100ms;
}
.team-card:nth-child(3) {
	transition-delay: 200ms;
}
.team-card:nth-child(4) {
	transition-delay: 300ms;
}

.animate-from-bottom:nth-child(1) {
	transition-delay: 0ms;
}
.animate-from-bottom:nth-child(2) {
	transition-delay: 100ms;
}
.animate-from-bottom:nth-child(3) {
	transition-delay: 200ms;
}
.animate-from-bottom:nth-child(4) {
	transition-delay: 300ms;
}

@media (prefers-reduced-motion: reduce) {
	.animate-on-scroll {
		transition: none;
	}
}
