/* 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;
}

/* ========= END OF RESET ========= */

/* ========= STYLE GUIDE ========= */
/*
Header font-family: 'Steelfish', 'Arial Narrow', 'Helvetica Neue Condensed', sans-serif
Body font-family: 'Fira Sans Condensed', 'Roboto', 'Open Sans', sans-serif
Accent color: #be1a1a
*/

/* ========= STEELFISH FONT ========= */

/*REGULAR*/
@font-face {
    font-family: 'Steelfish';
    src: url(fonts/SteelfishRg-Regular.woff2) format('woff2'),
        url(fonts/SteelfishRg-Regular.woff) format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
} 

/*BOLD*/
@font-face {
    font-family: 'Steelfish';
    src: url(fonts/SteelfishRg-Bold.woff2) format('woff2'),
        url(fonts/SteelfishRg-Bold.woff) format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/*ITALIC*/
@font-face {
    font-family: 'Steelfish';
    src: url(fonts/SteelfishRg-Italic.woff2) format('woff2'),
        url(fonts/SteelfishRg-Italic.woff2) format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/*BOLD ITALIC*/
@font-face {
    font-family: 'Steelfish';
    src: url(fonts/SteelfishRg-BoldItalic.woff2) format('woff2'),
        url(fonts/SteelfishRg-BoldItalic.woff) format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

/*EXTRA BOLD*/
@font-face {
    font-family: 'Steelfish';
    src: url(fonts/SteelfishEb-Regular.woff2) format('woff2'),
        url(fonts/SteelfishEb-Regular.woff) format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/*EXTRA BOLD ITALIC*/
@font-face {
    font-family: 'Steelfish';
    src: url(fonts/SteelfishEb-Italic.woff2) format('woff2'),
        url(fonts/SteelfishEb-Italic.woff) format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}


/* ========= LAYOUT RULES, MOBILE FIRST ========= */
* {
    box-sizing: border-box;
}

body {
	font-family: 'Steelfish', 'Arial Narrow', 'Helvetica Neue Condensed', sans-serif;
	position: relative;
}

/*Background image*/
body::before {
    content: '';
    position: fixed;
    top: -10px;  
    left: -10px;
    right: -10px;
    bottom: -10px;
    width: calc(100% + 20px);  
    height: calc(100% + 20px);
    background-image: url('images/forest-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3; 
    z-index: -1;
}




 
/* ========= MENU/HEADER - MOBILE FIRST ========= */

header {
	margin-top: 0.5em;
}

section div {
	display: grid;
	grid-template-columns: 4fr 45px 40px;
	column-gap: 20px;
	max-width: 80%;
	max-height: 90%;
	margin: 0 auto;
}

section span {
	display: none;
}

section > div > img {
	max-width: 100%;
	padding: 3em 1em 0 1em;
}

section div a img {
	max-width: 45px;
	max-height: 45px;
}

section div a {
	margin: auto;

}

#menu-toggle {
	display: none;
} /* Menu icon subsitutes invisible checkbox */

section div label img {
	width: 40px;
	height: 40px;
	max-width: 40px;
	max-height: 40px;
}

section div label {
	margin: auto;
}

nav {
	display: none;
	background-color: black;
	color: white;
	margin: 1.5em auto 0;
	font-size: 1.6em;
	font-weight: bold;
	text-wrap-mode: nowrap;
}

nav ul {
	max-width: 80%;
	padding-left: 1em;
}

section div label img:hover {
	cursor: pointer;
}

#menu-toggle:checked ~ nav {
	display: block;
} /* When the menu icon is "checked", nav appears*/

#menu-toggle:checked ~ nav li {
	display: inline-block;
	padding: 1em 0.5em;
}

#menu-toggle:checked ~ nav ul {
	padding: 0 1em;
}





/* ========= HOME PAGE - MOBILE FIRST ========= */
main {
	margin: 0 auto;
	max-width: 80%;
}

main > * {
	max-width: 95%;
	margin: 0 auto;
}

span {
	display: block;
	margin: 2em auto 0;
	text-align: center;
	font-weight: 900;
	font-size: 4em;
	width: fit-content;	
}

span + span {
	margin-top: 0.5rem;
	margin-bottom: 2em;
	font-size: 3rem;
	font-weight: bold;
}

main img {
	display: block;
	margin: 0 auto;
	max-width: 80%;
	height: auto;
}

img + span {
	text-decoration: underline;
	margin-bottom: .5em;
}

h1 {
	font-weight: 900;
	font-size: 4rem;
	text-align: center;
	margin-top: 1em;
	margin-bottom: 0.5em;
	text-wrap: balance;
}

h2 {
	font-weight: 900;
	font-size: 3rem;
	text-wrap: balance;
}

p {
	font-size: 1.3rem;
	padding-top: 1rem;
	line-height: 1.5rem;
	font-family: 'Fira Sans Condensed', 'Roboto', 'Open Sans', sans-serif;
	text-wrap: balance;
}





/* ========= HOMEPAGE BRAND BUBBLES - MOBILE FIRST ========= */
#brands {
	display: block;
	max-width: 75%;
	margin: 0 auto;
}

#brands img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	margin-bottom: 1em;
	margin-top: 1.5em;
	background-color: white;
	box-shadow: 3px 3px 3px rgba(50, 50, 50, 0.4);
	border-radius: 50%;
	padding: 5%;
}

#brands img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
} /* Adding visual interest to the brand images (saw this in a YouTube video!) */





/* ========= FIND US PAGE - MOBILE FIRST ========= */
iframe {
	display: block;
    margin: 0;
	padding-bottom: 3rem;
	max-width: 100%;
}

a > p {
	font-family: 'Fira Sans Condensed', 'Roboto', 'Open Sans', sans-serif;
	font-size: 1.5rem;
} /* Resizing address */

a > p + p {
	padding: 0;
	margin: 0;
	line-height: 1.2rem;
} /* Removing spacing between the lines of the shop's address */

#find-us-wrapper > div > p:last-of-type {
	padding-top: 0;
} /* Removing spacing between email and phone */

/* Hours styling*/ 
#hours ul {
	display: block; 
}

#hours {
	font-family: 'Fira Sans Condensed', 'Roboto', 'Open Sans', sans-serif;
	font-size: 1.5rem;
	padding-top: 1rem;
	line-height: 1.5rem;
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 1em;
}

h2:last-of-type {
	margin-top: 2rem;
} /* Add a bit of distance between the address and Hours */





/* ========= ABOUT US PAGE - MOBILE FIRST ========= */
#about-us-wrapper img {
	display: block;
	margin-top: 2rem;
	margin-left: 0;
	max-width: 100%;
}

#about-us-wrapper > div > p:last-of-type, #about-us-wrapper > div > p:first-of-type {
	padding-top: 0;
}





/* ========= FOOTER - MOBILE FIRST ========= */
footer {
	background-color: white;
	color: black;
	font-family: 'Fira Sans Condensed', 'Roboto', 'Open Sans', sans-serif;
	align-items: start;
	padding: 2em 0;
	margin: 8em auto 2em;
}

footer div {
	max-width: 80%;
	display: grid;
	grid-template-columns: 150px 1fr;
	margin: 0 auto;
}

footer ul {
	display: flex;
	flex-direction: column;
	margin-top: 1em;
}

footer li {
	font-size: 1rem;
	line-height: 1.5rem;
}





/* ========= LINK RULES ========= */
/* Rules to enhance link hovering and link clicking */

a {
	color: #be1a1a;
}

a:hover, a:active  {
	text-decoration: none;
	cursor: pointer;
}

section span a {
    text-decoration: none;
}

section span a:hover, nav li a:hover {
    text-decoration: underline;
}

nav a {
	color: white;
	text-decoration: none;
}

nav a:active, nav a:hover {
	text-decoration: underline;
}

nav a:active {
	background-color: #be1a1a;
	padding: 0.5em;
}

.current a {
	background-color: #be1a1a;
	color: white;
	padding: 0.5em;
	text-decoration: none;
}

footer li a:active, header > span a:active {
	color: white;
	background-color:#be1a1a;	
}





/* ======= RESPONSIVE STYLING ======= */
/* Mid-size - brands grid becomes 2 columns, nav menu appears */
@media (min-width: 850px) {
	/* Brands grid adjustments */
	#brands {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1em;
	}
	
	#brands img {
		margin-bottom: 0;
	}

	/* Nav menu and header adjustments */
	nav {
		display: block;
	}

	nav li {
		display: inline-block; 
		padding: 0.9em;
	}

	/* Mini menu icons go away */
	header div label,
	#menu-toggle, header div a img {
		display: none;
	}

	/* Layout adjustments */
	h1 {
		text-align: left;
	}

	section span {
		display: block;
		font-size: 1.6em;
		position: absolute;
		top: 7.6em;
		right: 12%;
		text-align: right;
		color: black;
	}

}

/* Desktop-size - brands grid becomes 3 columns, nav menu stays aligned left, About Us content moves to side-by-side */
@media (min-width: 1100px) {
	/* Brands grid adjustments */
	#brands {
		grid-template-columns: 1fr 1fr 1fr;
	}

	/* Nav sizing adjustments */
	nav {
		text-align: left;
		max-width: 80%;
	}

	/* Photo of the founders will move up to be side-by-side with the About Us copy */
	#about-us-wrapper > div {
		display: block;
	}
	
	#about-us-wrapper {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	#about-us-wrapper img {
		margin-top: 0;
		margin-right: 0;
		margin-left: auto;
		max-width: 80%;
	}
}

/* Find Us page moves to side-by-side with the embedded Google Maps directions */
@media (min-width: 1210px) {
	#find-us-wrapper > div {
		display: block;
	}
	
	#find-us-wrapper {
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 4rem;
	}

	h2:nth-of-type(2) {
		padding-top: 3rem;
	}
}






