*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark-color: #2d2c2c;
  --purple-solid: #10809c;
  --purple-transparent: rgba(3, 23, 70, 0.7);
  --purple-transparent-alt: rgba(26, 3, 41, 0.5);
  --purple-light: #64d3f5;
  --yellow-solid: #ff5329;
  --gradient-color: linear-gradient(to right,
      var(--yellow-solid),
      var(--purple-light));
  --gradient-color-alt: linear-gradient(to right,
      var(--purple-light),
      var(--yellow-solid));
}

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  font-family: verdana;
  font-size: 1rem;
  color: var(--dark-color);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

section {
  padding: 5rem 0;
}

.header {
  width: 100%;
  height: 6rem;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--purple-transparent);
  z-index: 999;
}

.header.active {
  background-color: var(--purple-solid);
}


/*reusable styles*/

.container {
  width: 100%;
  max-width: 128rem;
  padding: 0 1.5rem;
  margin: 0 auto;
}

.form-btn {
  margin-top: 2.5rem;
  cursor: pointer;
}

.btn {
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  padding: .7rem 3.5rem;
  border: none;
  border-radius: .3rem;
  display: inline-flex;
  align-items: center;
}

.offer-btn {
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  padding: 0 1rem;
  border-radius: .39rem;
  display: inline-flex;
  align-items: center;
  animation: glow 2s  infinite linear;
  transition: .3s ease-in-out;
}

.offer-btn:hover{
  color: white!important;
}

@keyframes glow{
  0%{
    background-color: #f8a28c;
  }
  25%{
    background-color: #fd8061;
  }
  50%{
    background-color: #ff3300;
  }
  75%{
    background-color: #fd8061;
  }
  100%{
    background-color: #f8a28c;
  }
}

.btn-gradient {
  background-image: var(--gradient-color);
}

.btn-gradient:hover {
  background-image: var(--gradient-color-alt);
}

.dots {
  font-size: 2.4rem;
  margin-left: .5rem;
  opacity: .75;
}


.btn-purple {
  background-color: var(--purple-solid);
}

.btn-purple:hover {
  background-color: #56247f;
}




/*header syles - nav*/
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo h2 {
  max-width: 100%;
}

.logo .logo-icon{
  font-size: 1.8rem;
  color: white;
  font-family: cursive;
}

.hamburger-menu {
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  position: relative;
  z-index: 1500;
}

.hamburger-menu .fa-times {
  display: none;
}

.menu-open .hamburger-menu .fa-times {
  display: block;
}

.menu-open .hamburger-menu .fa-bars {
  display: none;
}

.nav-list {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60vh;
  background-color: var(--purple-solid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1400;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.6s;
}

.menu-open .nav-list {
  opacity: 1;
  transform: scale(1);
}

.nav-item:not(:last-child) {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: block;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 1rem;
}

/*hero-section*/

.hero {
  width: 100%;
  height: 100vh;
  background: url("./images/hero.jpg") center no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  background-color: var(--purple-transparent-alt);
  z-index: -1;
}

.main-heading {
  color: #fff;
  line-height: 1;
  text-shadow: 1px 1px 1rem rgba(0, 0, 0, 0.5);
  margin-bottom: 2.5rem;
}

.title {
  font-size: 4.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.subtitle {
  font-size: 3.6rem;
  font-weight: 300;
  font-family: "Courgette", cursive;
}


/*booking-section-styles*/

.booking {
  background-image: var(--gradient-color);
}

.book-form .input-group {
  margin-bottom: 1.5rem;
}

.book-form .input-group #check-in,
.book-form .input-group #check-out{
  padding: 0.632rem;
}

.book-form .input-group .options .selected{
  color: white!important;
}

.book-form .input-group .input,
.book-form .input-group .options
{
  background-color: transparent;
  border: 2px solid var(--purple-solid);
  border-radius: .3rem;
  padding: 1rem;
}

.input-label {
  display: block;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: #fff;
  font-weight: bold;
  margin-bottom: 1rem;
}

.input,
.options {
  outline: none;
  border: none;
  width: 100%;
  min-height: 3rem;
  font-weight: bold;
  color: #a5a5a5;
  letter-spacing: 2px;
  font-family: 'open sans', sans-serif;
  resize: none;
}



/* featured-hotels-section-styles */

.section-head {
  text-align: center;
  margin-bottom: 5rem;
}

.heading {
  display: block;
  font-size: 4rem;
  text-transform: uppercase;
}

.sub-heading {
  font-size: 1.7rem;
  font-family: 'Courgette', cursive;
  font-weight: 300;
  color: #a5a5a5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  grid-gap: 2.5rem;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.grid-item .image-wrap{
  width: 100%;
}

.featured-hotels::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--purple-transparent-alt);
  z-index: -1;
}

.featured-hotels {
  height: 35rem;
  color: #fff;
  padding: 1rem;
  position: relative;
  z-index: 0;
}

.hotel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
}

.hotel-name {
  font-size: 2.6rem;
}

.hotel-price {
  font-size: 1.8rem;
}

.hotel-rating {
  margin: 1rem 0 2.5rem;
}

.rating {
  color: var(--yellow-solid);
}


/* offer-section-styles */

.offer {
  background: linear-gradient(to right, rgba(250, 150, 44, .8), rgba(143, 80, 251, .8)), url("./images/five-star.jpg") bottom center no-repeat;
  background-size: cover;
}

.offer-content {
  background-color: #fff;
  text-align: center;
  padding: 5rem 1rem;
  position: relative;
}

.discount {
  background-color: var(--yellow-solid);
  position: absolute;
  font-weight: bold;
  top: 0;
  left: 0;
  padding: 1rem;
  text-transform: uppercase;
  outline: 2px solid var(--yellow-solid);
  outline-offset: .5rem;
}

.paragraph {
  color: #a5a5a5;
  margin: 2.5rem 0;
}

/* rooms-style */

.rooms {
  background-color: #f2f6f9;
}

.image-wrap {
  position: relative;
  height: 25rem;
}

.image-wrap:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--purple-transparent-alt);
}

.room-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-name {
  font-size: 1.9rem;
  background-color: var(--yellow-solid);
  color: #fff;
  padding: .5rem .8rem;
  position: absolute;
  left: 0;
  width: 100%;
  bottom: 0rem;
  z-index: 10;
}

.room-name::first-letter{
  text-transform: uppercase;
}

.room-price {
  display: block;
  font-size: 3.4rem;
  font-weight: bold;
  color: var(--purple-transparent);
}

.per-night {
  color: var(--dark-color);
  font-size: 1.5rem;
  font-weight: 300;
}

.rooms-btn {
  color: var(--dark-color);
  padding: 1rem;
  transition: color .5s;
  border: 1.8px solid var(--yellow-solid);
  border-radius: .33rem;
}

.rooms-btn:hover {
  color: white;
  background-color: var(--yellow-solid);
  transition: .3s ease-in-out;
}

/* contact-form-styles */

.contact-content {
  display: flex;
  justify-content: center;
}

.traveler-wrap {
  display: none;
}

.contact-form {
  width: 100%;
  background-image: var(--gradient-color);
  padding: 2.5rem;
}

.contact-form .input {
  display: block;
  background-color: transparent;
  color: #fff;
  font-weight: normal;
  border-bottom: 2px solid #fff;
  padding-left: 0;
}

.bar {
  display: block;
  position: relative;
}

.bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: var(--purple-light);
  transform: scaleX(0);
  transition: transform .5s;
  transform-origin: left;
  -webkit-transform: scaleX(0);
  -moz-transform: scaleX(0);
  -ms-transform: scaleX(0);
  -o-transform: scaleX(0);
}

.contact-form .input:focus+.bar::after {
  transform: scaleX(1);
  -webkit-transform: scaleX(1);
  -moz-transform: scaleX(1);
  -ms-transform: scaleX(1);
  -o-transform: scaleX(1);
}

/* footer-styles */

.footer {
  padding: 5rem 0;
  background-color: var(--purple-solid);
  color: #fff;
}

.fooer-content-brand {
  margin-bottom: 5rem;
}

.footer .paragraph {
  color: inherit;
  max-width: 75%;
  margin-top: 10px;
}
.footer .logo-icon{
  margin-bottom: 2rem;
}
.about-us{
  color: white;
  font-size: 2rem;
  border-bottom: 2.6px solid var(--yellow-solid);
}

.footer-heading {
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.social-media {
  display: flex;
  margin-top: 1rem;
}

.sm-link {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  margin-right: 1rem;
  transition: background-color .3s;
}

.sm-link:hover {
  background-color: var(--yellow-solid);
  color: white;
}

.sm-link i {
  margin: auto;
  font-size: 2rem;
}

/* media-queries */

@media screen and (min-width: 760px) {
  /* header section */

  .header {
    height: 6rem;
  }

  
.room-info-wrap{
  max-width: 38%;
}

  .header.active {
    height: 5rem;
  }

  /* hero section  */

  .title {
    font-size: 8rem;
  }

  /* contact section  */

  .contact-content {
    justify-content: space-between;
  }

  .traveler-wrap {
    display: block;
    flex: 0 0 50;
    margin-right: 3rem;
  }

  .traveler-wrap img {
    width: 100%;
  }

  .contact-form {
    flex: 0 0 50%;
    align-self: flex-start;
  }

  .input-group-wrap {
    display: flex;
  }

  .input-group-wrap .input-group {
    width: 50%;
    margin-right: 2rem;
  }

  .input-group-wrap .input-group:last-child {
    margin-right: 0;
  }


  /* footer section  */

  .footer-content {
    display: flex;
  }

  .fooer-content-brand {
    margin-bottom: 0;
    flex: 0 0 60%;
  }

  .footer .paragraph {
    margin-top: 2.5rem;
  }

  .footer-heading {
    margin-bottom: 5rem;
  }

  .social-media-wrap {
    flex: 0 0 40%;
    margin-left: 2.5rem;
  }


}

@media screen and (min-width: 1000px){
  section:not(.booking){
    padding: 10rem 0;
  }

  /* header section  */

  .hamburger-menu{
    display: none;
  }

  .nav-list{
    position: initial;
    width: initial;
    height: initial;
    background-color: transparent;
    flex-direction: row;
    justify-content: initial;
    opacity: 1;
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
}

.nav-item:not(:last-child){
  margin-right: 3rem;
  margin-bottom: 0;
}

.nav-link{
  font-size: 1.3rem;
  font-weight: normal;
  transition: color .5s;
  -webkit-transition: color .5s;
  -moz-transition: color .5s;
  -ms-transition: color .5s;
  -o-transition: color .5s;
}

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

/* hero section  */

.title{
  font-size: 12rem;
}

.subtitle{
  font-size: 4.5rem;
}

/* booking section  */

.book-form{
  display: flex;
  justify-content: space-between;
}

.book-form .input-group{
  margin-bottom: 0;
}

.book-form .input-group:first-child{
  flex: 0 0 20%;
}

.input,
.options{
  min-width: 10rem;
}


/* rooms section  */

.rooms-grid{
  grid-template-columns: repeat(auto-fit, minmax(40rem, 1fr));
  grid-gap: 8rem;
}

.featured-rooms{
  flex-direction: row;
  align-items: flex-start;
}

.rooms-info-wrap{
  margin-left: 1.5rem;
}

}

@media screen and (min-width: 1200px){
  .book-form .input-group:first-child{
    flex: 0 0 30%;
  }
}