/* http://meyerweb.com/eric/tools/css/reset/ 
    v2.0 | 20110126
    License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, 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, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
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;
}
* {
	box-sizing: border-box;
}

/* End of reset */

:root {
    --black: #000000;
}

/* ---------- General Layout ---------- */

body {
    width: 100%;
    font-family: 'Questrial', sans-serif;
    color: var(--black);
}
footer {
    width: 100%;
    padding: 1em;
}
main, header {
	margin: 0 auto;
	max-width: 1500px;
}

/* ---------- Design ---------- */

.grid-container div {
	margin: 1em;
}

/* ---------- Mobile Menu ---------- */

nav[aria-label="primary"] {
    background-color: var(--black);
}
nav[aria-label="primary"] a {
    /* margin-top: 1em; */
    padding: .8em;
}
nav {
	margin-top: 2em;
}

/* menu toggle */
#menu-toggle {
	display: none;
}
.toggle {
	display: inline-block;
	width: auto;
	margin: 0;
	position: relative;
	padding-top: 10px;
	font-size: 1.2em;
	line-height: 1;
}
nav .toggle:hover, nav .toggle:active, nav .toggle:focus {
	cursor: pointer;
}
/* Shows menu */
#menu-toggle + .toggle + ul {
	display: none;
}
/* Hides menu */
#menu-toggle:checked + .toggle + ul {
	display: block;
}
/* Places menu text next to hamburger icon */
.toggle strong {
	position: absolute;
	display: block;
	width: 80vw;
	top: 12px;
	left: calc(6vw + 42px);
	color: var(--black);
}
/* Colour of menu text on hover */
.toggle:hover strong {
	color: var(--black);
}
/* Hamburger icon */
.toggle [class*='line-'] {
	background: var(--black);
	display: block;
	border-radius: 3px;
	height: 3px;
	width: 26px;
	margin: 0 0 6px 6vw;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-transition: .2s ease all;
	-moz-transition: .2s ease all;
	-o-transition: .2s ease all;
	transition: .2s ease all;
}
/* Hover for hamburger/X icon */
.toggle:hover [class*='line-'] {
	background:  var(--black);
}
/* Top line angles downwards when clicked */
#menu-toggle:checked + .toggle .line-top {
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
	-webkit-transform-origin: 0 0;
	-moz-transform-origin: 0 0;
	-o-transform-origin: 0 0;
	transform-origin: 0 0;
}
/* Hides middle line when changing to X */
#menu-toggle:checked + .toggle .line-mid {
	opacity: 0;
}
/* Bottom line angles upwards when clicked */
#menu-toggle:checked + .toggle .line-bot {
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
	-webkit-transform-origin: 0 90%;
	-moz-transform-origin: 0 90%;
	-o-transform-origin: 0 90%;
	transform-origin: 0 90%;
}

/* ---------- Mobile & desktop menu ---------- */

nav li {
	justify-content: center;
	padding: .5em;
}
nav li a {
	text-decoration: none;
	color: var(--black);
	font-size: min(15vw, 20px);
	color: #ffffff;
}
nav ul {
	text-align: left;
	margin: 2em 2em 4em 2em;
	background-color: var(--black);
}

/* ---------- Typography ---------- */

h1 {
	display: flex;
	justify-content: center;
	font-size: min(7vw, 60px);
	margin-top: .5em;
	font-family: "caveat", cursive;
}
h2 {
	display: flex;
	justify-content: center;
	font-size: min(8vw, 35px);
	margin: 0 auto;
	font-family: "caveat", cursive;
}
p {
	display: flex;
	justify-content: left;
	padding-top: 2em;
	font-size: min(7vw, 15px);
}

/* ---------- Specific Typography ---------- */

footer p {
	display: flex;
	justify-content: center;
	text-align: left;
	margin: 0 auto;
	margin: 1em 2em 2em 2em;
	padding: .5em;
	font-size: min(5vw, 15px);
}
figcaption {
	display: flex;
	justify-content: center;
	margin: 0 auto;
	padding-top: 1em;
}
.about p, h2~p {
	display: flex;
	width: min(80vw, 700px);
	line-height: 1.5;
	margin: 0 auto;
	padding: .5em;
}
.about p:first-of-type, h2~p:first-of-type {
	padding-top: 2em;
}

/* ---------- Contact Form ---------- */

.form-container {
    width: 80%;
    max-width: 720px;
    margin: 0 auto;
    padding: 3em 0 0 0;
}
label {
	display: block;
	margin-top: 1em;
}
input,
select,
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #000000;
    border-radius: 4px;
    box-sizing: border-box;
    margin: 8px 0 16px 0;
	/* Users can resize message box vertically */
    resize: vertical; 
}

/* ---------- Links ---------- */

a {
	text-decoration: none;
	color: var(--black);
}
#top a:visited {
	
}
#top a:hover {
	text-decoration: underline;
}
#top a:focus {
	
}
#top a:active {
	text-decoration: dotted;
}

/* ---------- Images ---------- */

img {
	display: flex;
	margin: 0 auto;
	justify-content: center;
	height: auto;
	width: min(80%, 600px);
}
.about img {
	display: flex;
	justify-content: center;
	height: auto;
	width: min(50%, 400px);
}
figure img {
	padding-top: 3em;
}
.about div {
	max-width: 57em;
}
.photo-logo {
	display: flex;
	margin: 0 auto;
	justify-content: center;
	height: auto;
	width: min(20%, 150px);
	padding-top: 1em;
}

/* ---------- Media Queries ---------- */
/* Medium screens - tablets */
@media all and (min-width: 940px) {
	.grid-container {
		display: grid;
		grid-gap: 0;
		grid-template-columns: repeat(2, 1fr);
		/* max-width: 900px; */
		justify-content: center;
		margin: 0 auto;
	}
	nav[aria-label="primary"] ul {
        display: flex;
        text-align: center;
        padding: 1em;
        height: 4.1em;
        font-size: min(7vw, 21px);
        background-color: var(--orange-colour);
    }
    /* Makes nav bar horizontal */
	nav ul li {
		display: inline;
	}
	nav ul li a:link {
		margin: 0;
		padding: 0;
		display: inline-block;
		text-align: center;
		position: relative;
	}
	nav li a {
		color: black;
	}
	nav ul {
		background-color: #ffffff;
		text-align: center;
	}
    /* show/hide mobile menu during desktop view*/	
	#menu-toggle + .toggle + ul, #menu-toggle:checked + .toggle + ul {
		display: block;
	}	
	#menu-toggle + .toggle, #menu-toggle:checked + .toggle {
		display: none;
	}
}

/* Larger screens - laptop/desktop */
@media all and (min-width: 1260px) {
	.grid-container, .about div {
		display: grid;
		grid-gap: 0;
		grid-template-columns: repeat(2, 1fr);
		/* max-width: 900px; */
		justify-content: center;
		margin: 0 auto;
	}
	.about img {
		display: flex;
		justify-content: center;
		height: auto;
		/* width: min(50%, 400px); */
	}
}

/* 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;
    }
}
/* Smooth scrolling IF user doesn't have a preference due to motion sensitivities */
@media screen and (prefers-reduced-motion: no-preference) {
    html {
    scroll-behavior: smooth;
    }
}