
/********************/
/* Header */
/********************/

.main-header{
	display: flex;
	align-items: center;
	justify-content: space-between;
	/* because we want this header to be sticky.so fixes its height */
	height: 9.6rem;
	padding: 0 4.8rem;
	background: #fae5d3;
	position: relative;
}

/********************/
/* Navigation */
/********************/

.main-nav-list{
	list-style-type: none;
	display: flex;
	gap: 4.8rem;
	align-items: center;
}

.main-nav-link:link,.main-nav-link:visited{
	display: inline-block;
	text-decoration: none;
	color: #333;
	font-size: 1.8rem;
	font-weight: 500;
	transition: all 0.3s;
}

.main-nav-link:hover,.main-nav-link:active{
	color:#e67e22;
}

.main-nav-link.nav-cta:link,.main-nav-link.nav-cta:visited{
	background: #e67e22;
	color: #fff;
	padding: 1.2rem 2.4rem;
	border-radius: 9px;
}

.main-nav-link.nav-cta:hover,.main-nav-link.nav-cta:active{
	background: #cf711f;
}

.mobile-nav-btn{
	display: none;
	border: none;
	background: none;
	cursor: pointer;
}

.mobile-nav-icon{
	width: 4.8rem;
  height: 4.8rem;
  color: #333;
}

.mobile-nav-icon[name="close-outline"]{
	display: none;
}

.sticky .main-header{
	position: fixed;
	top: 0;
	bottom: 0;
	width: 100%;
	height: 8rem;
	padding-top: 0;
	padding-bottom: 0;
	z-index: 999;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.03);
}

.sticky .hero {
	margin-top: 9.6rem;
}

/********************/
/* Hero Section */
/********************/

.hero{
	background: #fae5d3;
	padding: 4.8rem 0 9.6rem 0;
}

.hero-section{
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: 130rem;
	margin:0 auto;
	align-items: center;
	gap:9.6rem;
	padding: 0 3.2rem;
}

.hero-desc{
	font-size:2rem;
	margin-bottom: 4.8rem;
	line-height: 1.6;
}

.delivered-meals{
	display: flex;
	align-items: center;
	gap:1rem;
	margin-top: 8rem;
}

.delivered-cstmr-img{
	display: flex;
	align-items: center;
}

.delivered-cstmr-img img{
	width: 4.2rem;
	height: 4.2rem;
	border: 3px solid #fae5d3;
	border-radius: 50%;
	margin-right: -1.6rem;
}

.delivered-cstmr-img img:last-child{
	margin:0;
}

.delivery-text{
	font-size: 1.8rem;
	font-weight: 600;

}

.hero-img{
	width: 100%;
}

/********************/
/* Featured Section */
/********************/

.section-featured{
	padding: 4.8rem 0 3.2rem 0;
}

.heading-featured-in{
  text-transform: uppercase;
  font-size: 1.4rem;
  color: #888;
  margin-bottom: 2.4rem;
  letter-spacing: 0.75px;
  font-weight: 500;
  text-align: center;
}

.logo-container {
	display: flex;
	align-items: center;
	justify-content: space-around;
}

.logo{
	height: 3.2rem;
	filter: brightness(0); /* to make the image completely black */
	opacity: 50%;
}

/********************/
/* How it works Section */
/********************/

.section-how{
	padding: 9.6rem 0;
}

.step-img{
	width: 35%;
}

.step-number{
	font-size:8.6rem;
	margin-bottom:1.2rem;
	color:#ddd;
	font-weight: 600;
}

.step-description{
	font-size:1.8rem;
	line-height: 1.8;
}

.step-img-box{
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

/* using pseudo element here to not full the html document with extra divs */  

.step-img-box::before,.step-img-box::after{
	content: '';
	display: block; /* to make it a block element */
	border-radius: 50%;
	position: absolute;
	top:50%;
	left: 50%;
	transform: translate(-50%,-50%);
}

.step-img-box::before{
	width: 60%;
	padding-bottom: 60%; /* we can't make height 60% here so we set a padding of 60% to make a square */
	z-index: -2;
	background: #fdf2e9;
}

.step-img-box::after{
	width: 45%;
	padding-bottom: 45%;
	background: #fae5d3;
	z-index: -1;
}

/********************/
/* Meals Section */
/********************/

.section-meals{
	padding: 9.6rem 0;
}

.meal{
	box-shadow: 0 2.4rem 4.8rem rgba(0,0,0,0.075);
	border-radius: 11px;
	overflow: hidden;
	transition: all .4s;
}

.meal:hover{
/*	transform: scale(1.1);*/ /* this is for scale effect */
	transform: translateY(-1.2rem);
	box-shadow: 0 3.2rem 6.4rem rgba(0,0,0,0.06);
}

.meal-content {
	padding: 3.2rem 4.8rem 4.8rem 4.8rem;
}

.meal-img{
	width: 100%;
}

.meal-tags {
	margin-bottom: 1.6rem;
	display: flex;
	gap: 0.4rem;
}

.tag{
	display: inline-block;
	font-size: 1.2rem;
  letter-spacing: 0.75px;
  color:#333;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
}

.meal-title{
	font-size:2.4rem;
	margin-bottom: 3.2rem;
	line-height: 1.2;
	font-weight: 600;
	color: #333;
}

.meal-attributes{
	list-style-type: none;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.meal-attribute{
	font-size: 1.8rem;
	display: flex;
	align-items: center;
}

.meal-attribute span{
	margin-left: 1.2rem;
}

.attribute-icon{
	width: 2rem;
	height: 2rem;
	color: #e67e22;
}

.all-recipes{
	font-size: 1.8rem;
	text-align: center;
}

/********************/
/* Testimonials Section */
/********************/

.section-testimonials{
	background: #fae5d3;
	display: grid;
	grid-template-columns: 55fr 45fr;
	align-items: center;
}

.testimonials-container{
	padding: 9.6rem
}

.testimonials{
	display: grid;
	grid-template-columns: 1fr 1fr;
	row-gap: 4.8rem;
	column-gap: 8rem;
}

.testimonial-img{
	width: 6.4rem;
	border-radius: 50%;
	margin-bottom: 1.2rem;
/*	border: 1px solid #e67e22;*/
}

.testimonial-text{
	font-size: 1.8rem;
	margin-bottom: 1.6rem;
	line-height: 1.8;
}

.testimonial-name{
	font-size: 1.6rem;
	color: #6f6f6f;
	font-weight: 600;
/*	text-transform: uppercase;*/
	line-height: 1.2;
}

.gallery{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.6rem;
	padding: 1.6rem;
}

.gallery-item{
	overflow: hidden;
}

.gallery-item img{
	display: block;
	width: 100%;
	transition: all 0.3s;
}

.gallery-item img:hover{
	transform: scale(1.1);
}

/********************/
/* Pricing Section */
/********************/

.section-pricing{
	padding: 9.6rem 0;
}

.pricing-plan{
	padding: 4.8rem;
	border-radius: 11px;
	width: 75%;
}

.pricing-plan--starter{
	justify-self: end;
	box-shadow: inset 0 0 0 2px #fdf2e9;
}

.pricing-plan--complete{
	background: #fdf2e9;
	position: relative;
	overflow: hidden;
}

.pricing-plan--complete::after{
	content: "Best value";
	top: 6%;
	right: -11%;
	position: absolute;
	color: #333;
	background: #ffd43b;
	padding: 0.8rem 4.8rem;
	border-radius: 4px;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.4rem;
	transform: rotate(45deg);
}

.plan-name{
	text-transform: uppercase;
	font-size: 2rem;
	font-weight: 600;
	color: #cf711f;
	letter-spacing: 0.75;
	margin-bottom: 3.2rem;
}

.plan-header{
	margin-bottom: 4.8rem;
}

.plan-price{
	font-size: 6.4rem;
	font-weight: 600;
	color: #333;
	margin-bottom: 1.6rem;
}

.plan-text{
	font-size: 1.6rem;
	line-height: 1.6;
	color: #6f6f6f;
}

.price {
	font-size: 3rem;
	font-weight: 500;
	margin-right: 0.8rem;
}

.btn-sign-up {
	text-align: center;
	margin-top: 4.8rem;
}

.plan-details{
	font-size: 1.6rem;
	line-height: 1.6rem;
	text-align: center;
}

.feature-icon{
	width: 3rem;
	height: 3rem;
	margin-bottom: 3.2rem;
	color: #e67e22;
	background: #fdf2e9;
	border-radius: 50%;
	padding: 1.4rem;
}

.feature-title{
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1.6;
	color: #333;
	margin-bottom: 1.6rem;
}

.feature-desc{
	font-size: 1.8rem;
	line-height: 1.8;
}

/****************************/
/* CTA section */
/****************************/

.section-cta{
	padding: 4.8rem 0 12.8rem;
}

.cta-grid{
	display: grid;
	/* 2/3 = 66.6% and 1/3 = 33.3% */
	grid-template-columns: 2fr 1fr;
/*	gap: 4.8rem;*/
/*	background: #e67e22; (instead of using background color, we can set the color by gradiant)*/
	background-image: linear-gradient(to right bottom, #eb984e, #e67e22);
	box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.15);
/*	padding: 4.8rem;*/
	border-radius: 11px;
	overflow: hidden;
}

.cta-text-box{
	padding: 4.8rem 6.4rem 6.4rem 6.4rem;
	color: #45260A;
}

.cta-grid .heading-secondary{
	color: inherit;
	margin-bottom: 3.2rem;
}

.cta-text{
	font-size: 1.8rem;
	line-height: 1.8;
	margin-bottom: 4.8rem;
}

.cta-img-box{
	/* in css file, we are in css folder. so to render an image, we have to come out 
	from the css folder first. then have to go to the img folder, so we put .. first. */
	background-image: linear-gradient(to right bottom, rgba(235, 151, 78, 0.35), rgba(230, 125, 34, 0.35)), url('../img/eating.jpg');
	background-position: center;
	background-size: cover;
}

.cta-form{
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 3.2rem;
	row-gap: 2.4rem;
}

.cta-form label{
	display: block;
	font-size: 1.6rem;
	margin-bottom: 1.2rem;
	font-weight: 500;
}

.cta-form input,.cta-form select{
	font-size: 1.8rem;
	font-family: inherit;
	color: inherit;
	border: none;
	padding: 1rem;
	border-radius: 5px;
	background: #fdf2e9;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	width: 100%;
}

.cta-form input::placeholder{
	color: #aaa;
}

/* this is to change the blue border of focused element */
.cta-grid *:focus{
	outline: none;
	box-shadow: 0 0 0 0.6rem rgba(253, 242, 233, 0.5);
}

/*****************/
/* FOOTER */
/*****************/

.footer{
	padding: 12.8rem 0;
	border-top: 1px solid #eee;
}

.grid--footer{
	grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr;
}

.footer-heading{
	font-size:1.8rem;
	margin-bottom: 3.2rem;
	line-height: 1.2;
	font-weight: 500;
}

.logo-col{
	display: flex;
	flex-direction: column;
}

.footer-logo{
	display: block;
	margin-bottom: 3.2rem;
}

.social-links{
	list-style-type: none;
	display: flex;
	align-items: center;
	gap: 2.4rem;
}

.social-icon{
	width: 2.4rem;
	height: 2.4rem;
}

.copyright{
	font-size: 1.4rem;
	line-height: 1.6;
	color: #767676;
	margin-top: auto; /* it is the property of the flexbox to adjust the margin accordingly. */
}

.contact-info{
	font-size: 1.6rem;
	line-height: 1.6;
	font-style: normal;
	color: #767676;
}

.address{
	margin-bottom: 2.4rem;
}

.footer-nav{
	list-style-type: none;
	display: flex;
	flex-direction: column;
	gap: 2.4rem;
}

.footer-link:link,.footer-link:visited{
	text-decoration: none;
	font-size: 1.6rem;
	color: #767676;
	transition: all 0.3s;
}

.footer-link:hover,.footer-link:active{
	color: #555;
}


