/* -------------------------------- */
/* Custom properties                */
/* -------------------------------- */

:root {
	/* colors */
	--clr-dark: 250 20% 17%;
	--clr-light: 251 75% 80%;
	--clr-white: 0 0% 100%;

	/* type */
	--fs-900: clamp(5rem, 10vw + 1rem, 9.375rem);
	--fs-800: clamp(4rem, 8vw + 1rem, 8rem);
	--fs-700: 3.5rem;
	--fs-600: 2rem;
	--fs-500: 1.5rem;
	--fs-400: 1.125rem;
	--fs-300: 1rem;
	--fs-200: 0.875rem;

	/* font families */
	--ff-serif: "Bellefair", serif;
	--ff-sans-cond: "Barlow Condensed", sans-serif;
	--ff-sans-normal: "Barlow", sans-serif;

	/* media query sizes */
	/* Currently environment variables cannot be used in media queries */
	/* so this section is for reference only */
	--mq-mobile-portrait: 320px;
	--mq-mobile-landscape: 480px;
	--mq-ipad-portrait: 768px;
	--mq-ipad-landscape: 1024px;
	--mq-desk-hd: 1920px;

	/* icons */
	--icon-r-arrow: "";
	--icon-l-arrow: "";
	--icon-close-menu: "";
	--icon-open-menu: "";
}

@media (min-width: 35em) {
	:root {
		--fs-900: clamp(5rem, 8vw + 1rem, 7rem);
		--fs-800: clamp(3rem, 6vw + 1rem, 5rem);
		--fs-700: 2.5rem;
		--fs-600: 1.5rem;
		--fs-400: 1rem;
	}
}

@media (min-width: 45em) {
	:root {
		--fs-800: 6.25rem;
		--fs-700: 3.5rem;
		--fs-600: 2rem;
		--fs-400: 1.125rem;
	}
}

/* -------------------------------- */
/* Reset                            */
/* -------------------------------- */

/* https://piccalil.li/blog/a-modern-css-reset/ */

/* Box sizing */

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

/* Reset Margins */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
picture {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
	font-weight: 300;
}
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
	list-style: none;
}

/* Set core body defaults */
body {
	font-family: var(--ff-sans-normal);
	font-size: var(--fs-300);
	background-color: hsl(var(--clr-dark));
	color: hsl(var(--clr-white) / 0.75);
	min-height: 100vh;
	text-rendering: optimizeSpeed;
	line-height: 1.5;
	display: grid;
	grid-template-rows: min-content 1fr;
}

/* Make images easier to work with */
img,
picture {
	max-width: 100%;
	display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
	font: inherit;
}

/* required to allow hover on li elements*/
ul li a {
	display: block;
}

p a {
	color: hsl(var(--clr-light));
	text-decoration: none;
}

p a:hover {
	color: hsl(var(--clr-white));
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* -------------------------------- */
/* Utility classes                  */
/* -------------------------------- */

.flex {
	display: flex;
	gap: var(--gap, 1rem);
}

.grid {
	display: grid;
	gap: var(--gap, 1rem);
}

/* .d-block {
	display: block;
} */

.flow > * + * {
	margin-top: var(--flow-space, 2rem);
}

.container {
	padding-inline: 2em;
	margin-inline: auto;
	max-width: 80rem;
}

.grid-container {
	display: grid;
	place-content: center;
	padding-inline: 1rem;
}

/* Tablet Layout */
@media (min-width: 45rem) {
	.grid-container {
		grid-template-columns:
			minmax(2rem, 1fr)
			minmax(14rem, 50rem)
			minmax(14rem, 50rem)
			minmax(2rem, 1fr);
		column-gap: var(--container-gap, 2rem);
	}

	.grid-container > *:first-child {
		grid-column: 2;
	}

	.grid-container > *:last-child {
		grid-column: 3;
	}
}

.half-col {
	max-width: 33%;
	min-width: 500px;
}

.third-col {
	max-width: 25%;
	min-width: 400px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-to-content {
	background: hsl(var(--clr-dark));
	color: hsl(var(--clr-white));
	padding: 0.5em 1em;
	margin-inline: auto;
	transform: translateY(-100%);
	transition: transform 250ms ease-in;
}

.skip-to-content:focus {
	transform: translateY(0);
}

/* colors */

.bg-dark {
	background-color: hsl(var(--clr-dark));
}
.bg-accent {
	background-color: hsl(var(--clr-light));
}
.bg-white {
	background-color: hsl(var(--clr-white));
}

.text-dark {
	color: hsl(var(--clr-dark));
}
.text-accent {
	color: hsl(var(--clr-light));
}
.text-white {
	color: hsl(var(--clr-white));
}

/* typography */

.ff-serif {
	font-family: var(--ff-serif);
}
.ff-sans-cond {
	font-family: var(--ff-sans-cond);
}
.ff-sans-normal {
	font-family: var(--ff-sans-normal);
}

.letter-spacing-1 {
	letter-spacing: 4.75px;
}
.letter-spacing-2 {
	letter-spacing: 3.7px;
}
.letter-spacing-3 {
	letter-spacing: 2.35px;
}

.uppercase {
	text-transform: uppercase;
}

.fs-900 {
	font-size: var(--fs-900);
}
.fs-800 {
	font-size: var(--fs-800);
}
.fs-700 {
	font-size: var(--fs-700);
}
.fs-600 {
	font-size: var(--fs-600);
}
.fs-500 {
	font-size: var(--fs-500);
}
.fs-400 {
	font-size: var(--fs-400);
}
.fs-300 {
	font-size: var(--fs-300);
}
.fs-200 {
	font-size: var(--fs-200);
}

.fs-900,
.fs-800,
.fs-700,
.fs-600 {
	line-height: 1.1em;
}

.numbered {
	margin-inline-end: 10px;
	font-family: var(--ff-sans-cond);
	font-size: var(--fs-500);
	text-transform: uppercase;
}

.numbered span {
	margin-right: 0.5em;
	font-weight: 700;
	color: hsl(var(--clr-light) / 0.35);
}

.m-y {
	margin-top: 2em;
	margin-bottom: 1em;
}

.m-y-2 {
	margin-top: 1em;
	margin-bottom: 0.5em;
}

/* -------------------------------- */
/* Components                       */
/* -------------------------------- */
.logo {
	height: 64px;
	width: 64px;
}

.large-button {
	position: relative;
	display: grid;
	z-index: 1;
	place-items: center;
	padding: 0 2em;
	aspect-ratio: 1;
	border-radius: 50%;
	text-decoration: none;
}

.large-button::after {
	content: "";
	position: absolute;
	z-index: -1;
	background: hsl(var(--clr-white) / 0.15);
	width: 100%;
	height: 100%;
	border-radius: 50%;
	opacity: 0;
	transition: opacity 500ms linear, transform 750ms ease-in-out;
}

.large-button:hover::after,
.large-button:focus::after {
	opacity: 0.75;
	transform: scale(1.5);
}

/* primary-header */

.logo {
	margin: 1rem clamp(1.5rem, 5vw, 3.5rem);
}

.primary-header {
	justify-content: space-between;
	align-items: center;
}

.primary-navigation {
	--gap: clamp(1rem, 4vw, 8rem);
	--underline-gap: 1.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
	background: hsl(var(--clr-dark) / 0.75);
}

.primary-navigation a {
	text-decoration: none;
}

.primary-navigation a > span {
	font-family: var(--ff-sans-cond);
	font-weight: 700;
	margin-right: 0.5em;
	color: hsl(var(--clr-light) / 0.35);
}

.mobile-nav-toggle {
	display: none;
}

@media (min-width: 45em) {
	.primary-navigation {
		padding-inline: clamp(3rem, 20vw, 8rem);
	}
}

@supports (backdrop-filter: blur(1rem)) {
	.primary-navigation {
		background: hsl(var(--clr-white) / 0.02);
		backdrop-filter: blur(1rem);
	}
}

@media (max-width: 45em) {
	.primary-navigation {
		--gap: 2em;
		--underline-gap: 0.5rem;
		position: fixed;
		z-index: 1000;
		inset: 0 0 0 50%;

		list-style: none;
		padding: 3rem 2rem;
		margin: 0;
		flex-direction: column;
		transform: translateX(100%);
		transition: transform 300ms ease-in-out;
	}

	.primary-navigation[data-visible="true"] {
		transform: translate(0);
	}

	.mobile-nav-toggle {
		display: block;
		position: absolute;
		z-index: 2000;
		right: 1.5rem;
		top: 1rem;
		background: transparent;
		background-image: url(../svg/icon-hamburger.svg);
		background-repeat: no-repeat;
		width: 2rem;
		aspect-ratio: 1;
		border: 0;
	}

	.mobile-nav-toggle[aria-expanded="true"] {
		background-image: url(../svg/icon-menu-close.svg);
	}

	.primary-navigation.underline-indicators > a.active {
		border: 0;
	}
}

.underline-indicators li * {
	padding: var(--underline-gap, 1rem) 0;
	border-bottom: 0.2rem solid hsl(var(--clr-white) / 0);
}

.underline-indicators li *:hover,
.underline-indicators li *:focus {
	border-color: hsl(var(--clr-light) / 0.5);
}

.underline-indicators li > *.active {
	border-color: hsl(var(--clr-light) / 1);
}

/* Tabs */

.tab-list {
	display: flex;
	--gap: 1.5rem;
}

.tab-indicators > button {
	display: inline-block;
	padding: var(--underline-gap, 1rem) 0;
	border: 0;
	border-bottom: 0.2rem solid hsl(var(--clr-white) / 0);
}

.tab-indicators a {
	color: hsl(var(--clr-light));
	text-decoration: none;
}
.tab-indicators > a:hover,
.tab-indicators > a:focus {
	border-color: hsl(var(--clr-light) / 0.5);
}

.tab-indicators > .active,
.tab-indicators > [data-active="true"] {
	border-color: hsl(var(--clr-light) / 1);
}

.active {
	display: block;
}

.running-text p {
	margin-top: 1em;
	text-align: justify;
}
/* -------------------------------- */
/* Page Specific                    */
/* -------------------------------- */

/* home */
.home {
	background-position: bottom center;
	background-image: url(../png/seed-background.png);
	background-repeat: no-repeat;
	background-blend-mode: overlay;
}

@media (max-width: 480px) {
}
@media (max-width: 767px) {
}
@media (max-width: 1024px) {
}
@media (max-width: 1280px) {
}
@media (min-width: 1281px) {
}

/* events */
.numbered-title {
	font-size: var(--fs-500);
	font-family: var(--ff-sans-cond);

	color: --clr-white;
	text-transform: uppercase;
}

.numbered-title span {
	color: hsl(var(--clr-light) / 0.25);
	margin-right: 1.5rem;
	font-weight: bold;
}

.page-grid {
	display: grid;
	place-content: center;
	padding-inline: 1rem;
	grid-template-columns:
		minmax(2rem, 1fr)
		minmax(14rem, 50rem)
		minmax(2rem, 1fr);
	column-gap: var(--container-gap, 2rem);
}

.page-grid > * {
	grid-column: 2;
}

.content > * {
	display: none;
}
.content > .active {
	display: block;
	height: 50rem;
}
.content h3 {
	font-family: var(--ff-serif);
	font-size: var(--fs-600);
	color: hsl(var(--clr-white));
	letter-spacing: 3.7px;
	text-transform: uppercase;
}

/* products */

.gallery {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 1em;
}

.item {
	position: relative;
	width: 8em;
	color: hsl(var(--clr-light));
	aspect-ratio: 1;
	background-size: cover;
	padding: 8em 0 0;
	border-radius: 50%;
	overflow: hidden;
}

.item-content {
	position: absolute;
	height: 100%;
	width: 100%;
	padding: 1em;
	background: linear-gradient(
		hsl(0 0% 0% / 0),
		hsl(0 0% 0% / 0.4) 10%,
		hsl(0 0% 0% / 1)
	);
}

.item h2 {
	font-family: var(--ff-sans-cond);
	font-size: var(--fs-500);
	color: hsl(var(--clr-white));
	font-weight: normal;
	text-transform: uppercase;
	margin: 0;
	padding: 0;
	line-height: 1;
}

.item p {
	margin: 0;
	padding: 0;
	line-height: 1.5;
	font-size: 0.85em;
	color: var(--clr-neutral-100);
}

.button {
	display: block;
	padding: 0 1em;
	margin-left: 5em;
	height: fit-content;
	width: fit-content;
	color: black;
	background-color: rgba(256, 0, 0, 30%);
	text-decoration: none;
	border-radius: 20px;
	object-position: right bottom;
}

.button:hover {
	color: hsl(var(--clr-neutral-100));
	background-color: red;
}

.card {
	color: var(--clr-neutral-100);
	background-image: url(assets/img/card-background.jpg);
	padding: 1em;
}

/* Contact */

#contact-motives > * {
	margin-top: 1em;
}

.motivation {
	display: grid;
	grid-template-areas:
		"hdr btn"
		"txt btn";
	border-top: 1px solid hsl(var(--clr-light) / 0.25);
	padding-top: 1em;
}

.motivation:last-of-type {
	border-bottom: 1px solid hsl(var(--clr-light) / 0.25);
	padding-bottom: 1em;
}

.motivation h4 {
	grid-area: hdr;
}

.motivation p {
	grid-area: txt;
	width: 80%;
}

.motivation button {
	grid-area: btn;
	width: 2em;
	aspect-ratio: 1;
	background-image: url(../svg/icon-r-arrow.svg);
	background-color: transparent;
	margin-left: auto;
	border: 0;
	opacity: 50%;
}

.motivation button:hover {
	opacity: 100%;
}

.form.hidden {
	display: none;
}

form *.hidden {
	display: none;
}

/* Contact Us Form */

form {
	width: 28em;
	padding: 0;
	margin: auto;
}

fieldset {
	margin: auto;
	padding: 1em 2em;
	background-color: hsl(var(--clr-light) / 0.25);
	border: solid 1px hsl(var(--clr-light));
	border-radius: 6px;
	min-width: 25em;
}

legend {
	font-family: var(--ff-sans-cond);
	font-size: var(--fs-500);
	color: hsl(var(--clr-light));
	padding: 0 0.25em;
}

label {
	display: block;
	margin-top: 1em;
	color: hsl(var(--clr-light));
}

.checks label {
	margin-top: 0;
}

label:first-of-type {
	margin-top: 0;
}

input {
	padding: 0.5em;
}

input[type="email"],
input[type="text"] {
	width: 100%;
}

textarea {
	min-height: 8em;
	min-width: 100%;
	padding: 0.5em;
}

.checks {
	margin-bottom: 1em;
}

.checks p {
	margin-bottom: 0;
	color: hsl(var(--clr-light));
}

input[type="checkbox"] + label,
input[type="radio"] + label {
	display: inline-block;
	padding-top: 0;
	margin-top: 0;
}

input[type="radio"] {
	margin-left: 1.75em;
	margin-right: 0;
}

input[type="radio"]:first-of-type {
	margin-left: 0;
}

.bt-btn {
	margin: 1em auto;
	text-align: right;
	width: 100%;
}

button[type="submit"],
.file-upload {
	background-color: hsl(var(--clr-light));
	border: 0;
	padding: 0.5em 1em;
	border-radius: 6px;
	filter: drop-shadow(3px 1px 4px #363434);
}

button[type="submit"]:hover {
	background-color: hsl(var(--clr-white));
}

/* Contact Address */

.contact-address {
	text-align: center;
	margin: auto;
	padding-top: 1em;
	border-top: 1px solid hsl(var(--clr-light) / 0.25);
}

/* Join Us Form */
.upload {
	display: flex;
	justify-content: space-between;
}

.custom-file-upload {
	background-color: hsl(var(--clr-light));
	border: 0;
	padding: 0.5em 1em;
	border-radius: 6px;
	filter: drop-shadow(3px 1px 4px #363434);
	border: 1px solid #ccc;
	display: inline-block;
	padding: 6px 12px;
	cursor: pointer;
}

input[type="file"] {
	display: none;
}

.deselect button {
	background-color: hsl(var(--clr-dark) / 0.25);
	pointer-events: none;
}
