/*Importing resources*/
/*********************/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');





/* Base styles for the website */
/*******************************/
:root {

	/*Colors*/
	--color-primary: #faf9f6;
	--color-warm: #f2efe9;
	--color-heading: #00332f;
	--color-text: #2a2d2d;
	--color-secondary: #606464;
	--color-border: #e1ddd5;
	--color-accent: #7fd6d6;
	--color-accent-dark: #63c4c4;
	--color-eigen: #d6897f99;
	--color-compassie: #9f7fd699;
	--container: 1200px;

	/*Padding and margins*/
	--space-8: 0.5em;
	--space-16: 1em;
	--space-32: 2em;
	--space-40: 2.5em;
	--space-64: 4em;
	--space-80: 5em;
	--space-120: 7.5em;
	--radius-8: 0.5em;
	--radius-16: 1em;

	/*Font*/
	--font-family: 'Open Sans', sans-serif;
	--font-size-heading-1: clamp(2rem, 4vw, 3rem);
	--font-size-heading-2: 2em;
	--font-size-heading-3: 1.5em;
	--font-size-text: 1.125em;
	--font-size-small: 1em;
	--font-size-tiny: 0.875em;
	--font-weight-bold: 700;
	--font-weight-semibold: 600;
	--font-weight-normal: 400;

	/*images*/
	--image-portrait-width: 300px;
	--image-portrait-height: 300px;
	--image-portrait-width-small: 200px;
	--image-portrait-height-small: 200px;
	--image-icon-width: 20px;
	--image-icon-height: 20px;
}





/*placeholders*/
/**************/
.placeholder-image { 
	display: grid; 
	flex: 0 0 260px; 
	aspect-ratio: 1; 
	place-items: center; 
	padding: 16px; 
	background: #535353; 
	color: white; 
	font-size: 20px; 
	font-weight: 700; 
}






/*Styling for the entire page*/
/*****************************/

/*Styling for large containers*/
* { 
	box-sizing: border-box; 
}

html { 
	scroll-behavior: smooth; 
}

body {
	margin: 0;
	display: flex;
	min-height: 100vh;
	flex-direction: column;
	background: var(--color-primary);
	color: var(--color-text);
	font-family: var(--font-family);
	font-size: var(--font-size-text);
	line-height: 1.6;
}

main {
	flex: 1;
}


/*Here we make sure all the content on the page is centered and properly alligned with the rest of the content*/
.container { 
	width: min(var(--container), calc(100% - 10em)); 
	margin-inline: auto; 
}


/*Styling for headings and text*/
h1, h2, h3 { 
	margin: 0;
	color: var(--color-heading); 
	line-height: 1.1; 
}

h1 { 
	font-size: var(--font-size-heading-1); 
	font-weight: var(--font-weight-bold); 
}

h2 { 
	font-size: var(--font-size-heading-2); 
	font-weight: var(--font-weight-bold); 
}

h3 { 
	font-size: var(--font-size-heading-3); 
	font-weight: var(--font-weight-bold); 
}

p { 
	margin: 0; 
}

a { 
	color: inherit; 
}


/*styling for buttons*/
.button { 
	display: inline-flex; 
	align-items: center; 
	gap: var(--space-8); 

	padding: var(--space-16) var(--space-24, 24px); 
	border-radius: var(--radius-8); 

	background: var(--color-accent); 
	color: var(--color-heading); 

	font-size: var(--font-size-small); 
	font-weight: var(--font-weight-semibold); 
	text-decoration: none;

	transition: background-color 180ms ease, transform 180ms ease; 
}


/*styling for icons in lists*/
li img { 
	width: var(--image-icon-width); 
	height: var(--image-icon-height); 
}


.button:hover, .button:focus-visible { 
	background: var(--color-accent-dark); 
	transform: translateY(-2px); 
}


/*Styling for hover and focus styles of all links that aren't logo's*/
nav ul a:hover, 
nav ul a:focus-visible,
footer nav a:hover,
footer nav a:focus-visible,
footer address a:hover,
footer address a:focus-visible {
	color: var(--color-heading);
	text-decoration: underline;
	text-underline-offset: 0.25em;
}





/*Styling for the header and navigation bar*/
/*******************************************/
header {
	background: var(--color-primary);
}

header menu {
	display: flex;
	align-items: center;
	justify-content: space-between;

	height: 4em;

	margin-bottom: 0;
	margin-top: 0;

	padding-inline-start: 0;
}

header menu > a {
	display: block;
	width: auto;
	height: 100%;
	padding: var(--space-8);
}

header img {
	display: block;
	width: 100%;
	height: 100%;

	object-fit: contain;
}


/*Styling for the navigation links*/
nav ul {
	display: flex;
	align-items: stretch;
	height: 100%;

	gap: 0;
	margin: 0;
	padding: 0;

	list-style: none;

	font-size: var(--font-size-text);
	font-weight: var(--font-weight-bold);
}

nav ul li {
	display: flex;
}

nav ul a {
	display: flex;
	align-items: center;
	padding-inline: var(--space-16);
	text-decoration: none;
}

nav {
	align-self: stretch;
}

nav input,
nav label {
	display: none;
}


/*skip to content link*/
body > a {
	position: absolute;
	left: 16px;
	top: 0;
	padding: var(--space-8) var(--space-16);
	background: var(--color-heading);
	color: white;
	transform: translateY(-120%);
	z-index: 10;
}

body > a:focus {
	transform: translateY(0);
}


/*Styling for indicating which page is active*/
nav ul li.active {
	background: var(--color-warm);
}





/*Styling for sections*/
/**********************/
section:nth-of-type(odd) {
	background: var(--color-warm);
}

section:nth-of-type(even) {
	background: var(--color-primary);
}

/*Giving structure to the content within a section without compromising the background*/
section > * {
	display: flex;
	align-items: center;
	gap: var(--space-64);
	padding-block: var(--space-120);
}

figure {
	margin: 0;
}





/*Footer Styling*/
/****************/

/*General footer styling*/
footer {
	background: var(--color-warm);

	border-top: 1px solid var(--color-border);
	box-shadow: 0 var(--space-8) var(--space-16) rgba(0, 0, 0, .12);
}

footer > .container {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr;
	align-items: center;
	justify-items: center;

	gap: var(--space-16);
	padding-block: var(--space-8);
}


/*Styling for the logo in the footer*/
footer div > a {
	display: block;

	height: 4em;
	width: auto;
}

footer div > a img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}


/*The lines between the links and logo*/
footer div > span {
	width: 3px;
	height: 100%;
	border-radius: 2px;
	background: var(--color-secondary);
}


/*Styling for the contact and navigation links in the footer*/
footer nav ul,
footer address {
	display: grid;
	gap: var(--space-8);
	margin: 0;
	padding: 0;
	list-style: none;
	font-style: normal;
}

footer nav a,
footer address > a {
	color: var(--color-heading);
	font-size: var(--font-size-tiny);
	font-style: normal;
	text-decoration: none;
}

footer nav a {
	padding-inline: 0;
	font-weight: var(--font-weight-semibold);
}

footer address {
	gap: var(--space-16);
}

footer address a {
	display: flex;
	align-items: center;
	gap: var(--space-8);
	white-space: nowrap;
}

footer address img {
	width: var(--image-icon-width);
	height: var(--image-icon-height);
}





/*Styling for a focused element*/
/*******************************/
:focus-visible { 
	outline: 3px solid var(--color-heading); 
	outline-offset: 4px; 
}





/*Change styling depending on screen width*/
/******************************************/
@media (width < 72em) {
	/*All changes made to the root when the screen gets too small.*/
	:root {
		--container: 100vw;
	}
}

@media (width < 48em) {
	/*All changes made to the root when the screen gets too small.*/
	:root {
		/*images*/
		--image-portrait-width: 300px;
		--image-portrait-height: 300px;
		--image-icon-width: 20px;
		--image-icon-height: 20px;
	}

	/*Changes made to the general layout*/
	section > * {
		flex-direction: column;
		gap: var(--space-32);
		padding-block: var(--space-80);
	}

	body {
		overflow-x: hidden;
	}

	/*placeholder*/
	.placeholder-image { 
		align-self: center; 
		flex-basis: 220px; 
		width: 220px; 
	}


	/*entire page*/
	.container { 
		width: min(var(--container), calc(100% - 32px));

		align-items: flex-start; 
		flex-direction: column; 
		padding-block: 64px;
	}


	/*Navigation bar*/
	header menu.container {
		min-height: auto;
		gap: var(--space-16);
		flex-direction: row;
		align-items: center;
		flex-wrap: nowrap;
		padding-block: var(--space-16);
		position: relative;
	}

	header menu > nav {
		align-self: center;
		width: 44px;
		height: 44px;
	}

	header menu > nav > label {
		display: block;
		width: 44px;
		height: 44px;
		cursor: pointer;
	}

	header menu > nav > label img {
		width: 24px;
		height: 24px;
		margin: 10px;
	}

	header menu > nav ul {
		position: absolute;
		top: 100%;
		right: 0px;
		z-index: 2;
		display: none;
		flex-direction: column;
		width: 180px;
		height: auto;
		gap: 0;
		border: 1px solid var(--color-border);
		background: var(--color-primary);
		box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
	}

	header menu > nav > input:checked ~ ul {
		display: flex;
	}

	header menu > nav li {
		display: block;
	}

	header menu > nav a {
		display: block;
		padding: var(--space-16);
		white-space: nowrap;
		font-size: var(--font-size-small);
	}

	header menu > a {
		padding: 0;
	}

	/*Footer*/
	footer > .container {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: var(--space-32);
		padding-block: var(--space-32);
	}

	footer div > span {
		width: 80%;
		height: 3px;
	}
}






/*Style changes for when the used prefers reduced motion*/
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; }
}