/*Google Fonts*/
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/*Variables CSS*/
:root{
  --header-height: 3.5rem;
  /*Colors*/
  --first-color: rgba(217, 4, 41, 1);
  --first-color-alt: rgba(239, 35, 60, 1);
  --second-color: rgba(217, 4, 41,.6);
  --second-color-alt: rgba(239, 35, 60, .6);
  --beige-color: #d5b895;
  --beige-color-light: #faf0dc;
  --beige-color-alt: #c19770;
  --brown-color: #a6785b;
  --title-color: #2b2d42;
  --white-color: #edf2f4;
  --body-color: rgba(141, 153, 174, 1);
  --container-color: rgba(141, 153, 174, .6);
  --border-color: whitesmoke;
  /*Font and Typography*//*.5rem = 8px|1rem = 16px...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Chakra Petch", sans-serif;
  --biggest-font-size: 1.875rem;
  --big-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: 8.3rem;
  --smallest-font-size: .75rem;
  /*Font Weight*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  /*z-index*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*Responsive Typogrpahy*/
@media screen and (width>=1150px){
  :root{
    --biggest-font-size: 4rem;
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 875rem;
    --smaller-font-size: .813rem;
  }
}

/*Base*/
*{
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html{
  scroll-behavior: smooth;
}

body, input, button{
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body{
  background-color: var(--body-color);
  color: var(--title-color);
}

input, button{
  background: none;
  border: none;
  outline: none;
}

h1, h2, h3, h4{
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-bold);
  line-height: 120%;
}

ul{
  list-style: none;
}

a{
  text-decoration: none;
}

img{
  display: block;
  max-width: 100%;
  height: auto;
}

/*Reusable CSS Classes*/
.container{
  max-width: 1120px;
  margin-inline: 1rem;
}

.grid{
  display: grid;
  gap: 1.5rem;
}

.section{
  padding-block: 2.5rem 1rem;
}

.section-title{
  text-align: center;
  font-size: var(--big-font-size);
  margin-bottom: 1.5rem;
}

.main{
  overflow: hidden;
}

/*Header and Nav*/
.header{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: 10;
  transition: background-color .4s, box-shadow .4s;
}

.nav{
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo{
  color: var(--white-color);
  font-family: var(--second-font);
  font-weight: var(--font-bold);
  transition: color .4s;
  padding: 10px 0 0 20px;
  font-size: 2rem;
}

.nav-toggle{
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color .4s;
  float: right;
  padding: 5px 10px 0 0;
}

/*Navigation for mobile devices*/
  .nav-menu{
    position: fixed;
    top: 0;
    right: -120%;
    background-color: var(--body-color);
    width: 100%;
    height: 100%;
    box-shadow: -8px 0 16px hsla(0, 0%, 0%, .15);
    padding: 7rem 0 2rem 2rem;
    z-index: 100;
    transition: right .4s;
  }
  
  button.nav-toggle{
    color:var(--white-color);
  }

.nav-list{
  display: flex;
  flex-direction: column;
  row-gap: 3.5rem;
}

.nav-link{
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}

.nav-link:hover{
  color: var(--first-color);
}

.nav-button{
  background-color: var(--second-color);
  padding: 1rem 2rem;
  border-radius: 5rem;
  display: inline-flex;
  transition: background-color .4s;
  color: var(--beige-color-light);
}

.nav-button:hover{
  background-color: var(--second-color-alt);
  color: var(--beige-color-light);
}

.nav-close{
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color:var(--title-color);
  cursor: pointer;
}

.nav-toggle{
  color: var(--title-color);
}

/*Show menu*/
.show-menu{
  right: 0;
}

/*Change Header Styles*/
.scroll-header{
  background-color: var(--body-color);
  box-shadow: 0 8px 16px hsla(0, 0%, 0%, .15);
}

.scroll-header :is(.nav-logo, .nav-toggle){
  color: var(--title-color);
}

/*Home Section*/
.home{
  position: relative;
  overflow: hidden;
  z-index: 0;
  padding-bottom: 50px;
}

.home-bg, .home-shadow{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.home-bg{
  object-fit: cover;
  object-position: center;
}

.home-shadow{
  background: linear-gradient(180deg,
  rgba(251, 50, 50, .1), rgba(251, 100, 50, .9));
}

.home-container{
  height: 100%;
  place-items: center;
  padding-top: 2.5rem;
}

.home-data{
  z-index: 0;
  text-align: center;
}

.home-logo{
  width: 200px;
  margin-inline: auto;
  margin-bottom: 1rem;
  border-radius: .5rem;
}

.home-title{
  color: var(--white-color);
  font-size: var(--biggest-font-size);
}

.home-description{
  color:var(--white-color);
  margin-block: 1rem 3rem;
}

.button{
  display: inline-flex;
  background-color: var(--first-color);
  color: var(--beige-color-light);
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  border-radius: .5rem;
  transition: background-color .4s;
}

.button:hover{
  background-color:var(--first-color-alt);
}

/*About Section*/
.about{
  background-color: var(--brown-color)
}

.about-container{
  row-gap: 4rem;
  padding-bottom: 2.5rem;
}

.about .section-title{
  color: var(--white-color);
}

.about-description{
  color: var(--white-color);
  text-align: center;
  margin-bottom: 3rem;
  padding-left: 1rem;
  padding-right: 1rem;
  
}

.about-info{
  display: flex;
  justify-content: center;
  column-gap: 4.5rem;
}

.about-number{
  color: var(--first-color);
  font: var(--font-bold) var(--h1-font-size), var(--second-font);
  margin-bottom: .5rem;
}

.about-subtitle{
  font-size: --small-font-size;
  color: var(--beige-color-light);
}

.about-img{
  width: 320px;
  border-radius: 1.5rem;
  justify-self: center;
}

/*Collection Section*/
.work{
background-color: var(--beige-color);
}

.work-container{
  row-gap: 2rem;
}

.work-description{
  text-align: left;
}

.work-img, .work-card{
  width: 250px;
}

article img{
  border-radius: 1.5rem;
}

/*swiper Class*/
.work-swiper{
  width: 100%;
  border-radius: 1.5rem;
}

.work-data{
  padding-bottom: 7rem;
}

.work .swiper-pagination-fraction{
  font-weigt:var(--font-semi-bold);
  bottom: 3rem;
}

.work .swiper-navigation-icon{
  display: none;
}

.work :is(.swiper-button-pre, .swiper-button-next){
  top: initial;
  left: initial;
  bottom: .5rem;
  width: initial;
  height: initial;
  margin: initial;
  color: var(--title-color);
  font-size: 1.5rem;
}

/*Service & Price Section*/
.service{ 
  background-color: --beige-color;
}

.service-container{
  row-gap: 4rem;
  padding-bottom: 2.5rem;
}

.service .sectioon-title{
  margin-bottom: 3rem;
}

.service-prices{
  display: grid;
  row-gap: 1rem;
}

.service-plan{
  display: flex;
  justify-content: space-between;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--beige-color-alt);
}

.service-plan:last-child{
  border-bottom: none;
}

.service-name{
  font-size: var(--h3-font-size);
  font-weight: --font-medium;
}

.service-price{
  font: var(--font-medium) var(--h3-font-size) var(--second-font);
}

.service-swiper{
  background-color: var(--first-color);
  border-radius: 1.5rem;
  padding: 2rem 1rem;
  color: var(--beige-color-light);
}

.service-testimonial-description{
  margin-bottom: 2rem;
}

.service-testimonial-name{
  font-size: var(--normal-font-size);
}

/*Swiper Class*/
.service-swiper{
  width: 100%;
}

/*COntact Section*/
.contact-container{
  row-gap: 2rem;
  padding-bottom: 1.5rem;
}

.contact-map{
  width: 100%;
  height: 100%;
  justify-self: center;
  border-radius: 1.5rem;
  overflow: hidden;
}

.contact-data{
  text-align: center;
}

.contact-description{
  margin-bottom: 2.5rem;
}

.contact-content{
  display: grid;
  row-gap: 3rem;
}

.contact-card{
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
  padding: 1rem;
  border-bottom: 1px solid var(--beige-color-alt);
}

.contact-card:last-child{
  border-radius: none;
}

.contact-icon{
  width: 40px;
  height: 40px;
  background-color: var(--title-color);
  border-radius: .75rem;
  color: var(--white-color);
  font-size: 1.5rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.contact-grid{
  display: grid;
  row-gap: .5rem
}

.contact-title{
  font-size: var(--h2-font-size);
}

.contact-address{
  font-style: initial;
  color: var(--white-color);
}

.contact-address :is(span, a){
  display: block;
  color: var(--white-color);
}

.contact-adress a{
  color: var(--white-color);
}

.contact-adress a:hover{
  color: var(--beige-color-alt);
}

/*Footer*/
footer {
  background: var(--brown-color);
  padding: 15px 23px;
  color: var(--white-color);
  text-align: center;
}

footer span a {
  color: var(--second-color-alt);
  text-decoration: none;
}

footer span a:hover {
  text-decoration: underline;
}

/*For Small Screens*/
@media (width <= 350px){
  .contact-map{
    width: 100%;
  }
}

/*For Medium devices*/
@media (width >= 540px){
  .home-container, .about-container, .service-container, .contact-container{
    grid-template-columns: 400px;
    justify-content: center;
  }
  
  .work-data{
    width: 400px;
    margin-inline: auto;
  }
}

/* For Large Devices*/
@media (width >= 650px){
  .container{
    margin-inline: auto;
  }
  
  .section{
    padding-block: 7rem 5rem;
  }
  
  .nav{
    height: calc(var(--header-height) + 2rem);
  }
  
  .nav-list{
    display: flex;
    align-items: center;
    gap: 4rem;
  }
  
  .nav-link{
    color: var(--white-color);
  }
  
  .nav-button{
    color: var(--title-color);
  }
  
  .nav-menu{
    width: 300px;
    padding: 3.5rem 1rem 0 1rem;
  }
  
  /*Change header Style*/
  .scroll-header .nav-link{
    color: var(--title-color);
  }
  
  .home{
    height: 870px;
  }
  
  .home-container{
    grid-template-columns: 665px;
  }
  
  .home-logo{
    width: 150px;
  }
  
  .home-description{
    margin-bottom: 4rem;
  }
  
  .about-container{
    grid-template-columns: 500px 480px;
    align-items: center;
    column-gap:8rem;
    padding-block: 3rem;
  }
  
  .about-img{
    width: 500px;
    order: -1;
  }
  
  .about-data .section-title{
    text-align: initial;
  }
  
  .about-description{
    margin-bottom: 4rem;
    text-align: initial;
  }
  
  .about-info{
    justify-content: initial;
  }
  
  .about-number{
    font-size: var(--big-font-size);
    margin-bottom: 1rem;
  }
  
  .about-subtitle{
    font-size: var(--h3-font-size);
  }
  
  .work{
    padding-bottom:2rem;
  }
  
  .work-container{
    grid-template-columns: 200px 740px;
    column-gap: 5rem;
    padding: 2rem;
  }
  
  .work-data{
    width: initial;
    padding-bottom: 12rem;
  }
  
  .work-data .section-title, .work-description, .work .swiper-pagination{
    text-align: initial;
  }
  
  .work-img, .work-card{
    width: 150px;
 }
 
 .service-container{
   grid-template-columns: repeat(2, 350px);
   align-items:center;
   column-gap: 6rem;
   padding-top: 2rem;
 }
 
 .service-swiper{
   order: -1;
   padding: 3rem;
 }
 
 .service-testimonial-description{
   margin-bottom: 2rem;
 }
 
 .service-testimonial-name{
  font-size: var(--h3-font-size); 
 }
 
 .service-data .section-title{
   text-align: initial;
 }
 
 .service-prices{
   row-gap: 1.5rem;
 }
 
 .contact-container{
   grid-template-columns: 155px 320px ;
   column-gap: 4.5rem;
   align-items: center;
   padding-top: 1rem;
 }
 
 img.contact-map{
   display: none;
 }
 
 .contact-data, .contact-data .section-title{
   text-align: initial;
 }
 
 .contact-description{
   margin-bottom: 3.5rem;
 }
 
 .contact-title{
   font-size: var(--h3-font-size);
 }
}