/* 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;
	box-sizing: border-box;
}
/* 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;
}



/* Theming */

:root{
    --white: #f9f9f9;
    --black: #36383F;
    --gray: #85888C;
	--butter: #f0c185;
} /* variables*/

a{
    text-decoration: none;
}

ul{
    list-style: none;
}

/* *******End Of Rest******* */

/* Layout */
body {
	font-size: 1.5em;
	background-color: var(--white);
	font-family:'EB Garamond', Georgia, Times, 'Times New Roman', serif
}
main {
	margin: 2em 0;
}
p {
	width: 80%;
	margin: 1em auto;
	line-height: 1.5em;
}
header {
	text-align: center;
	font-weight: 700;
	box-shadow: 1px 1px 5px 0px var(--gray);
	width: 100%;
	background: var(--butter);
	padding: 1.5em 0 0;
}

header img {
	margin-top: 1em;
}
/* Nav menu */
.nav{
	width: 100%;
	height: 100%;
	position: absolute;
	background-color: var(--butter);
	overflow: hidden;
	top: 50px;
	max-height: 0;
	transition: max-height .5s ease-out;
}
.menu a{
	display: block;
	padding: 10px;
	color: var(--white);
	font-size: 1em;
}
.menu a:hover{
	background-color: var(--gray);
}

/* Menu Icon */
.hamb{
	cursor: pointer;
	float: right;
	padding: 0px 20px;
}
/* Style label tag */
.hamb-line {
	background: var(--white);
	display: block;
	height: 2px;
	position: relative;
	width: 24px;
}
/* Style span tag */
.hamb-line::before, .hamb-line::after{
	background: var(--white);
	content: '';
	display: block;
	height: 100%;
	position: absolute;
	transition: all .2s ease-out;
	width: 100%;
}
.hamb-line::before{
	top: 5px;
}
.hamb-line::after{
	top: -5px;
}
.side-menu {
	display: none;
}
/* Hide checkbox */
/* Toggle menu icon */
.side-menu:checked ~ nav{
	max-height: 30%;
}
.side-menu:checked ~ .hamb .hamb-line {
	background: transparent;
}
.side-menu:checked ~ .hamb .hamb-line::before {
	transform: rotate(-45deg);
	top:0;
}
.side-menu:checked ~ .hamb .hamb-line::after {
	transform: rotate(45deg);
	top:0;
}
h1 {
	font-size: 1.8em;
	text-align: center;
	font-weight: 700;
	color: var(--black);
}
.biz h1 {
	color:var(--butter); 
	font-size: 3em;
}
.biz h1 + p {
	color:var(--butter); 
}
/* button style */
.button {
	display: inline-block;
	padding: 10px 25px;
	background-color: var(--butter);
	color: #000;
	text-decoration: none;
	border: 3px solid #ececec;;
	border-radius: 10px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
  }
/* header background image */
.hero {
	padding: 10em 0;
	background-image: url("./images/hero.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}
.hero .biz {
	width: 100%;
	background: rgba(0, 0, 0, 0.5);
	padding: 2em 0;
	text-align: center;
}
div.storetime {
	text-align: center;
	padding: 5px 0;
}

.about img {
	max-width: 800px;
	max-height: 550px;
	display: block;
	margin: 0 auto;
}
h2 {
	font-size: 1.8em;
	text-align: center;
	font-weight: 700;
	margin: 1em auto;
}

.accessibility {
	width: 100%;
	line-height: 1.5em;
}
.accessibility h1{
	color: var(--black);
	text-align: center;
	margin-bottom: 2em;
	font-size: 2em;
	text-decoration: underline;
}
.accessibility h2{
	font-weight: 500;
	width: 80%;
	text-align: left;
}
.accessibility ul {
	width: 75%;
	margin: 1em auto;
	line-height: 1.5em;
}
/* links */
a {
	text-decoration: none;
	padding-bottom: 1px;
}
a:link, a:visited {
	color: rgb(87, 61, 7);
}
a:hover {
	color: rgb(255, 255, 255);
}
a:active {
	color: rgb(255, 255, 255);
}
a:focus {
	background-color: transparent;
}

/* 404 error style */
body.error {
	background-color: var(--butter);
}
section.error {
	font-size: 1.5em;
	background-color: #fff;
	margin: 1em;
}
.error a {
	color: rgb(132, 101, 69);
	text-decoration: underline; 
} 
.error a:active {
	color: rgb(255, 255, 255);
}


section img, div img {
	max-width: 100%;
	width: 100%;
	height: auto;
}
figure {
	background-color: #f6f6f6;
	padding: 5% 5% 5%;
	text-align: center;
}
figure img {
	width: 80%;
	height: auto;
}
figcaption {
	width: 80%;
	margin: 1em auto;
}
.products {
	width: 80%;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin: 0 auto;
	place-items: center;
}
figure span {
	font-weight: 700;
	font-style: italic;
	color: #808080;
}
.chefs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

/* footer style */
footer {
	padding: 2em 0;
	background-color: var(--butter);
}
#contact {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2em;
	text-align: center;
}
#contact h3 {
	font-weight: 700;
}
#contact p {
	margin: 1em 0;
	font-size: .8em;
	width: 100%;
}
footer div#contact div:nth-last-child(1) p {
	padding-top: 1.5em;
  }


footer div#contact div:nth-last-child(1) p a {
	font-weight: 700;
	text-decoration: underline;
  }
  footer div#contact:last-of-type + p,
  footer div#contact:last-of-type + p + p{
	text-align: center;
	margin: 0 auto;
	font-size: .7em;
  }

/* form style */
form {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 80%;
	margin: 1.5em 2em;
}
form button {
	width: 100%;
	padding: 1em;
	margin: 1em 0;
	border: none;
	border-radius: 5px;
	background-color: var(--butter);
	color: rgb(87, 61, 7);
	font-weight: 700;
	font-size: 1em;
}
.map {
	display: flex;
	justify-content: center;
	align-items: center;
	padding-top: 2em;
}
form input, form textarea {
	width: 100%;
	padding: 1em;
	margin: 1em 0;
	border: 1px solid var(--butter);
	border-radius: 5px;
}
form legend {
	font-weight: 700;
	font-size: 1.2em;
}
.pastry {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 20px;;
 
}

/* Responsiveness */
@media (max-width: 960px) {
	.chefs, .products{
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: repeat(2, 1fr);
		gap: 20px;
   }
}
@media (max-width: 600px) {
	.chefs, #contact {
		grid-template-columns: repeat(1, 1fr);
		grid-template-rows: repeat(1, 1fr);
		gap: 20px;
   }
}

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

	#contact {
		flex-direction: row;
		justify-content: space-around;
		padding: 1em 10em;
   }
   .pastry {
	grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 960px) {
	.pastry {
		grid-template-columns: repeat(4, 4fr);
		gap: 10px;
		width: 80%;
    	margin: 1em auto
   }
}
/* Responsiveness */
@media (min-width: 768px) {
	.nav{
		max-height: none;
		width: auto;
		position: relative;
		float: right;
		width: fit-content;
		background-color: transparent;
		top: 0px;
   }

	.menu li{
		float: left;

   }
	.menu li a {
		padding: 10px 2em 0;
   }
	.menu a:hover{
		background-color: var(--white);
		color: var(--grey);
		border-radius: 2px;
   }
	.hamb{
		display: none;
   }
	form{
		width: 50%;
		margin: 1.5em auto;
		padding-top: 1em;
   }
	form button{
		width: 50%;
		margin: 1em auto;
   }

   section.error {
	margin: 6em 5em;
}
}
