/* 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 */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap"); /* import font */

:root{
    --white: #f9f9f9;
    --black: #36383F;
    --gray: #85888C;
} /* 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);
	top: 0;
	width: 100%;
	background: rgb(240, 193, 133);
	padding-top: 10px;
	padding-bottom: 10px;
}
.logo{
	display: inline-block;
	color: var(--white);
	font-size: 45px;
	margin-left: 10px;
}
/* Nav menu */
.nav{
	width: 100%;
	height: 100%;
	position: fixed;
	background-color: rgb(240, 193, 133);
	overflow: hidden;
}
.menu a{
	display: block;
	padding: 10px;
	color: var(--white);
	font-size: 1em;
}
.menu a:hover{
	background-color: var(--gray);
}
.nav{
	max-height: 0;
	transition: max-height .5s ease-out;
}
/* Menu Icon */
.hamb{
	cursor: pointer;
	float: right;
	padding: 20px 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: 100%;
}
.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: 3em;
}
h1, h1 + p{
	color:rgb(240, 193, 133) 
}

/* header background image */
.hero {
	padding: 10em 0;
	background-image: url("./images/hero.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}
.hero article {
	width: 100%;
	background: rgba(0, 0, 0, 0.5);
	padding: 2em;
}
section h2{
	margin: 1em auto;
	font-weight: 700;
	text-align: center;
}
.about img {
	max-width: 800px;
	max-height: 550px;
	display: block;
	margin: 0 auto;
}
h2 {
	font-size: 1.8em;
	text-align: center;
	font-weight: 700;
}
/* 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: rgb(132, 101, 69);
}
section 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: rgb(240, 193, 133);
}
.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%;
}

/* 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: rgb(240, 193, 133);
	color: rgb(87, 61, 7);
	font-weight: 700;
	font-size: 1em;
}
.map {
	display: flex;
	justify-content: center;
	align-items: center;
}
form input, form textarea {
	width: 100%;
	padding: 1em;
	margin: 1em 0;
	border: 1px solid rgb(240, 193, 133);
	border-radius: 5px;
}
form legend {
	font-weight: 700;
	font-size: 1.2em;
}
.pastry {
	display: grid;
	grid-template-columns: repeat(1);
 
}

/* 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;
   }
}
/* Responsiveness */
@media (min-width: 768px) {
	.nav{
		max-height: none;
		top: 0;
		position: relative;
		float: right;
		width: fit-content;
		background-color: transparent;
   }
	.menu li{
		float: left;

   }
	.menu li a {
		padding-right: 5em;
   }
	.menu a:hover{
		background-color: transparent;
		color: var(--gray);
   }
	.hamb{
		display: none;
   }
	form{
		width: 50%;
		margin: 1.5em auto;
		padding-top: 1em;
   }
	form button{
		width: 50%;
		margin: 1em auto;
   }
	.pastry {
		grid-template-columns: repeat(4, 4fr);
		gap: 10px;
		width: 80%;
    	margin: 1em auto
   }
}
