
/* CSS RESET ===================================================== */

html, body, button, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, hr, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, main, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: top;
}

body {
	line-height: 1;
}

ol,
ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

img,
video {
	width: 100%;
	height: auto;
}


/* BASE ===================================================== */

html {
	font-size: clamp(9px, 0.575vw, 10px); /* starts at 1600px ends at 1440px */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	--chocolate: rgb(33, 18, 24);
	--moss: rgb(168, 146, 34);
	--tint-ecru: rgb(243, 239, 228);
	--white: rgb(255, 255, 255);
	--chocolate-tint: rgba(33, 18, 24, 0.8);
}

body {
	font-family: belarius-sans-wide, sans-serif;
	font-variant-ligatures: common-ligatures;
	color: var(--tint-ecru);
	background-color: var(--chocolate);
	text-size-adjust: none;
	-webkit-text-size-adjust: none;
	-moz-text-size-adjust: none;
	-ms-text-size-adjust: none;
	text-rendering: optimizeLegibility;
}

.call-to-action,
h1,
h2,
.intro p,
.value p,
.quantity,
.quantity input {
	font-family: larken, serif;
	font-weight: 500;
}

a:link, a:visited { color: var(--tint-ecru); text-decoration: none; }
a:hover, a:active { color: var(--moss); text-decoration: none; }

/* body::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 1000%;
	background-image: url('images/grid.svg');
	background-size: 3rem 3rem;
	background-position: center top;
	z-index: 9999;
	pointer-events: none;
} */

.wrapper {
	max-width: 162rem;
	padding: 0 6rem;
	margin: 0 auto;
}

.grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-gap: 4.5rem;
}


/* HEADER ===================================================== */

header {
	color: var(--chocolate);
	background-color: var(--tint-ecru);
}

.shopping-basket-wrapper {
	display: flex;
	justify-content: flex-end;
}

.shopping-basket-wrapper img {
	width: 2.4rem;
	padding-top: 0.6rem;
}

.header-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	width: 24rem;
	padding-bottom: 2rem;
}

.nav-button {
	display: none;
}

nav ul {
	display: flex;
}

nav ul li {
	font-size: 1.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1em;
	padding-left: 2rem;
}

nav a:link, nav a:visited { color: var(--chocolate); }
nav a:hover, nav a:active { color: var(--chocolate); border-bottom: 1px solid var(--chocolate); }

nav a[aria-current] {
	border-bottom: 1px solid var(--chocolate);
}


/* BANNER AND CALL TO ACTION ===================================================== */

.banner {
	color: var(--white);
	background-color: var(--moss);
	font-size: 1.8rem;
	line-height: 2rem;
	padding: 2rem;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.call-to-action {
	color: var(--chocolate);
	background-color: var(--moss);
	font-size: 4.5rem;
	line-height: 1em;
	padding: 1em 0 1.333333333333333em 0;
	text-align: center;
	text-transform: uppercase;
}

.banner a:link, .banner a:visited { color: var(--white); }
.banner a:hover, .banner a:active { color: var(--chocolate); }

.call-to-action a:link, .call-to-action a:visited { color: var(--white); }
.call-to-action a:hover, .call-to-action a:active { color: var(--chocolate); }


/* MAIN ===================================================== */

.row {
	padding: 6rem 0;
}

.row-heading {
	padding-top: 9rem;
}

.row-extra-padding {
	padding: 12rem 0;
}

main .row:last-of-type {
	padding-bottom: 21rem;
}

.column {
	grid-column: span 6;
	align-content: center
}

 .column-align-start {
	align-content: start;
 }

.column-center {
	grid-column: 4 / span 6;
}

.row-ecru {
	color: var(--chocolate);
	background-color: var(--tint-ecru);
}

.row-ecru a:link, .row-ecru a:visited { color: var(--chocolate); }
.row-ecru a:hover, .row-ecru a:active { color: var(--moss); }

.row-ecru p a:link, .row-ecru p a:visited, .row-ecru p a:hover, .row-ecru p a:active { border-bottom: 1px solid; }


/* TYPOGRAPHY ===================================================== */

h1 {
	text-transform: uppercase;
	font-size: 8rem;
	line-height: 1.125em;
	text-align: center;
	color: var(--tint-ecru);
}

.location {
	color: var(--moss);
}

h2 {
	font-size: 2.8rem;
	line-height: 3rem;
	padding: 3rem 0;
}

h3 {
	font-size: 1.8rem;
	line-height: 3rem;
}

h4,
h5,
h6 {
	color: pink;
}

p {
	font-size: 1.8rem;
	line-height: 3rem;
	padding-bottom: 3rem;
}

.intro p {
	font-size: 3.6rem;
	line-height: 1.25em;
	font-weight: 400;
	padding-bottom: 4.5rem;	
	text-align: center;
}

main ul {
	list-style-type: disc;
	list-style-position: outside;
	padding: 0 0 3rem 2em;
}

main ol {
	list-style-type: decimal;
	list-style-position: outside;
	padding: 0 0 3rem 2em;
}

main li {
	font-size: 1.8rem;
	line-height: 3rem;
}

main li p {
	padding-bottom: 0;
}

main p a:link, main p a:visited, main p a:hover, main p a:active { border-bottom: 1px solid; }

.intro p a:link, .intro p a:visited { color: var(--white); border-bottom: 1px solid; }
.intro p a:hover, .intro p a:active { color: var(--moss); border-bottom: 1px solid; }

figcaption {
	font-size: 1.6rem;
	line-height: 2rem;
	padding-top: 1rem;
}


/* CARDS ===================================================== */

.card {
	color: var(--chocolate);
	background-color: var(--tint-ecru);
	text-align: center;
	grid-column: span 4;
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 4;
	grid-gap: 0;
	padding-bottom: 3rem;
}

.card-four-columns {
	grid-column: span 3;
}

.link-wrapper {
	display: contents;
}

.link-wrapper:hover {
	color: var(--moss);
}

.link-wrapper:hover .button {
	color: var(--chocolate);
}

.card a:link, .card a:visited { color: var(--chocolate); }
.card a:hover, .card a:active { color: var(--moss); }

.card h2,
.card p {
	padding-right: 3rem;
	padding-left: 3rem;
}

.text-for-link {
	font-weight: 700;
	padding-top: 6rem;
	padding-bottom: 0;
}

.card ul {
	list-style-type: none;
	list-style-position: inside;
	padding: 0 3rem 3rem 3em;
}

.button {
	display: inline-block;
	padding: 2rem 3rem;
	font-size: 1.5rem;
	line-height: 2rem;
	color: var(--white);
	background-color: var(--moss);
	text-transform: uppercase;
	cursor: pointer;
	margin: 3rem 0;
	justify-self: center;
}

button.button {
	margin: 3rem 1.5rem 0 0;
	min-width: 18.75rem; /* Set the minimum width */
	box-sizing: border-box;
}

.button:link, .button:visited { color: var(--white) !important; }
.button:hover, .button:active { color: var(--chocolate) !important; }


/* FOOTER ===================================================== */

footer {
	padding-top: 6rem;
}

footer p {
	border-top: 1px solid var(--tint-ecru);
	padding-top: 1.4rem;
	grid-column: span 6;
}

footer img {
	padding-top: 9rem;
}

.smallprint {
	font-size: 1.4rem;
	line-height: 2rem;
	border-top: none;
	padding-top: 12rem;
}


/* HOMEPAGE ===================================================== */

.hero-video {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
	background-image: url("images/poster.jpg");
	background-size: cover;
	background-position: center;
}

.video-embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.video-embed iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	aspect-ratio: 16 / 9;
}

.hero-title {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 3rem 0 12rem 0;
	box-sizing: border-box;
}

.hero-title h1 {
	font-size: 13vw;
	line-height: 0.9em;
	letter-spacing: -0.04em;
	text-align: center;
}

.homepage-shop-headings p {
	padding: 6rem 0 0 0;
}

.value {
	grid-column: span 3;
	display: grid;
	align-items: center;
	justify-items: center;
	grid-template-areas: "content";
}

.value img {
	grid-area: content;
	opacity: 0.25;
	width: 75%;
}

.value p {
	grid-area: content;
	font-size: 3rem;
	line-height: 1em;
	padding-bottom: 0;
	text-transform: uppercase;
	text-align: center;
}


/* ABOUT ===================================================== */

.sdg picture {
	grid-column: span 3;
}


/* PRODUCT PAGE ===================================================== */

.price {
	font-size: 2.4rem;
}

details {
	padding-bottom: 3rem;
}

details:first-of-type {
	margin-top: 6rem;
}

summary {
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 2rem;
	cursor: pointer;
	border-top: 1px solid var(--tint-ecru);
	padding: 1rem 0 3rem 0;
}

.details {
	margin-top: 9rem;
	border-top: 1px solid var(--tint-ecru);
	padding: 2.9rem 0 3rem 0;
}

summary:hover {
	color: var(--moss);
}

.table-product-info {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.8rem;
	line-height: 3rem;
	margin-bottom: 3rem;
}

.checkbox-alignment {
	align-items: baseline;
}

.linked-cards-container {
	grid-template-columns: 1fr 1fr;
}

.linked-cards-container .card {
	grid-column: span 1;
}


/* CAROUSEL ===================================================== */

.slideshow-container {
	position: relative;
	margin-bottom: 3rem;
}

.mySlides {
	display: none;
}

.prev, .next {
	cursor: pointer;
	position: absolute;
	top: 45%;
	padding: 16px;
	color: var(--white);
	font-size: 3rem;
	transition: 0.6s ease;
	user-select: none;
}

.prev {
	left: 0;
}

.next {
	right: 0;
}

.prev:hover, .next:hover {
	color: var(--white);
	background-color: var(--chocolate-tint);
}

.fade {
	animation-name: fade;
	animation-duration: 1s;
}

@keyframes fade {
	from {opacity: .4}
	to {opacity: 1}
}


/* E-COMMERCE STYLES ===================================================== */

.product {
	display: none;
}

.product.active {
	display: block;
}

button:disabled {
	opacity: 0.6;
	pointer-events: none;
}

.options {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.options p input {
	display: none
}

.options p label {
	display: block;
	padding: 4px 16px;
	border: 2px solid var(--moss);
}

.options p input:checked + label {
	background: var(--moss);
	color: var(--chocolate)
}

.notify label {
	display: block;
	font-size: 1.8rem;
	line-height: 3rem;
}


/* EMAIL NOTIFICATIONS AND NEWSLETTER ===================================================== */

.fields {
	display: flex;
	max-width: 400px;
}

.fields.email-subscription-centered {
	margin: 0 auto;
}

.fields input[type="email"] {
	padding-left: 1.5rem;
	border: none;
	width: 100%;
}

.fields .button {
	margin: 0;
}

input::placeholder,
textarea::placeholder {
	font-size: 1.6rem;
	color: var(--chocolate);
	opacity: 0.5;
}

input,
textarea {
	font-size: 1.6rem;
	color: var(--chocolate);
}


/* QUANTITY SELECTOR ===================================================== */

.quantity {
	user-select: none;
	display: inline-flex;
	align-items: center;
	font-size: 2.8rem;
	line-height: 6rem;
	color: var(--chocolate);
	background-color: var(--tint-ecru);
	margin: 1.5rem 0;
	padding: 0 1.5rem;
}

.quantity .click {
	cursor: pointer;
}

/* For Chrome, Safari, Edge, and Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* For Firefox */
input[type="number"] {
	-moz-appearance: textfield;
}

.quantity input {
	font-size: 2.4rem;
	text-align: center;
	background: none;
	border: none;
	margin: 0;
	padding: 0 0.5rem;
}


/* JOURNAL ===================================================== */

.tags {
	display: flex;
	list-style: none;
	padding: 0 0 3rem 0;
}

.tags li {
	padding: 0 2rem 0 0;
}

.tags a:link, .tags a:visited { color: var(--tint-ecru); }
.tags a:hover, .tags a:active { color: var(--tint-ecru); border-bottom: 1px solid var(--tint-ecru) }

.underline {
	border-bottom: 1px solid var(--tint-ecru);
}

.journal-button {
	text-align: center;
}

.journal-button .button {
	margin: 0;
}


/* MAP ===================================================== */

.map-container {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.map {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.map-pins {
	font-size: 1.6rem;
	line-height: 2rem;
	padding-bottom: 0;
}

.buy-button {
	display: flex;
    box-sizing: border-box;
    margin-right: auto;
    width: 188px;
    min-height: 58px;
    align-items: center;
    justify-content: center;
	padding: 16px;
}


/* RESPONSIVE ===================================================== */

@media screen and (max-width:1400px) {

	.card-four-columns {
		grid-column: span 4;
	}

	.selected-cards .card:last-child {
		display: none;
	}
}

@media screen and (max-width:1020px) {

	.nav-button {
		font-family: belarius-sans-wide, sans-serif;
		display: block;
		cursor: pointer;
		color: var(--chocolate);
		background: none;
		font-size: 1.8rem;
	}

	.nav-button:after {
		content: "MENU";
	}

	body.nav-shown .nav-button:after {
		content: "CLOSE";
	}

	nav  {
		display: none;
		background-color: var(--chocolate);
		padding: 0 6rem;
	}

	body.nav-shown main,
	body.nav-shown footer {
		display: none;
	}

	body.nav-shown nav {
		display: block;
		position: absolute;
		top: 15rem;
		left: 0;
		right: 0;
		min-height: calc(100vh - 12rem);
	}

	nav ul {
		padding: 3rem 0 9rem 0;
		display: block;
	}

	nav ul li {
		font-family: larken, serif;
		font-weight: 500;
		letter-spacing: -0.02em;
		font-size: clamp(5rem, 15vw, 12rem);
		padding-left: 0;
		text-align: center;
	}

	nav a:link, nav a:visited { color: var(--tint-ecru); }
	nav a:hover, nav a:active { color: var(--moss); border-bottom: none; }
	
	nav a[aria-current] {
		border-bottom: none;
	}

	.grid {
		grid-gap: 3rem;
	}

	.card {
		grid-column: span 6;
	}

	.selected-cards .card:nth-last-child(2) {
		display: none;
	}

	.column {
		grid-column: 3 / span 8;
		align-content: start
	}

	.column-center {
		grid-column: 3 / span 8;
	}

	.value {
		grid-column: span 6;
	}

	.value img {
		width: 50%;
	}

	.hero-image {
		background-image: url("images/forest-1000.jpg"); 
	}
}

@media screen and (max-width:800px) {

	.grid {
		grid-column-gap: 1rem;
	}

	.column {
		grid-column: 1 / span 12;
	}

	.column-center {
		grid-column: 1 / span 12;
	}

	footer p {
		grid-column: 1 / span 12;
	}
}

@media screen and (max-width:700px) {

	.wrapper,
	nav {
		padding: 0 3rem;
	}

	.card {
		grid-column: span 12;
	}

	.linked-cards-container .card {
		grid-column: span 2;
	}

	h1 {
		font-size: 5rem;
	}

	.intro p {
		font-size: 2.8rem;
	}

	.call-to-action {
		font-size: 3.6rem;
	}
}

@media screen and (max-width:600px) {

	.value {
		grid-column: span 12;
		padding-bottom: 6rem;
	}

	.value img {
		width: 40%;
	}

	.sdg picture {
		grid-column: span 4;
	}

	.row-extra-padding {
		padding: 6rem 0;
	}

	.tags {
		display: block;
	}
}