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

body {
  font-family: "Roboto", sans-serif;
  background-color: rgb(255, 254, 250);
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 500;
  color: #84472a;
  padding-bottom: 0.5rem;
  letter-spacing: 0.1rem;
}

p,
span {
  color: #605849;
  font-weight: 400;
}

button {
  border-radius: 5rem;
  padding: 0.5rem 1.5rem;
  border: none;
  font-family: "roboto";
  font-weight: 500;
  cursor: pointer;
}

.dark-bg-btn {
  background-color: #4e3326;
  color: white;
}

.dark-bg-btn:hover {
  background-color: #4e332699;
  transition: 0.4s;
}

.margin {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.white {
  color: white;
}

.border-radius {
  border-radius: 1rem;
}

#hero,
#about,
#destinations {
  margin-bottom: 3rem;
}

/* header section */

header {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.logo {
  font-family: "Lobster", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: white;
}

#menu-desktop ul {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.242);
  background-color: rgba(255, 255, 255, 0.242);
  backdrop-filter: blur(10px);
  border-radius: 5rem;
  padding: 0.7rem 0.2rem;
}

.navlinks {
  color: white;
  border-radius: 5rem;
  padding: 0.5rem 2rem;
}

header li a:hover {
  color: #5e574a;
  background-color: rgba(255, 255, 255, 0.718);
  transition: 0.4s;
}

.login {
  font-size: 1rem;
  background-color: rgb(238, 236, 231);
}

.login:hover {
  background-color: rgba(255, 255, 255, 0.619);
  transition: 0.4s;
}

#menu-btn,
#menu-tray,
#close-btn {
  display: none;
}

/* hero section */

.slides {
  position: absolute;
  inset: 0;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.slides img.active {
  opacity: 1;
}

#hero {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0 3rem;
  transition: background-image 0.8s ease-in-out;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

#hero h1 {
  font-size: 4rem;
  font-weight: 500;
  z-index: 1;
  text-align: center;
  line-height: 4rem;
  margin-bottom: 1rem;
}

#hero p {
  font-size: 1.5rem;
  font-weight: 300;
  color: white;
  z-index: 1;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-btns-wrapper {
  display: flex;
  gap: 1rem;
  z-index: 1;
}

.hero-btns-wrapper a {
  font-size: 1.4rem;
  font-weight: 500;
  background-color: #d9d2c3;
  padding: 0.9rem 3rem;
  border-radius: 5rem;
}

.hero-btns-wrapper a {
  color: #582a14;
}

.hero-btns-wrapper a:hover {
  background-color: white;
  transition: 0.8s;
}

/* about section */

.about {
  margin-bottom: 4rem;
}

#about {
  padding-top: 3rem;
}

.subtitle {
  font-size: 2rem;
  font-weight: 500;
  color: #582a14;
  margin-bottom: 1.5rem;
}

h3 {
  color: #582a14;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.features-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.features-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid #d6c4bc;
  border-radius: 0.5rem;
  padding: 2rem;
}

.icon {
  padding: 0.5rem;
  margin-bottom: 1rem;
  background-color: #ce7e5a;
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.features-card i {
  font-size: 1.5rem;
  color: white;
}

.features-card h3 {
  margin-bottom: 1rem;
}

.explore {
  margin-top: 2.5rem;
}

.explore-body {
  margin-bottom: 2rem;
}

.category-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.category-img-container {
  height: 450px;
  position: relative;
  border: none;
  background: none;
  padding: 0;
}

.category-img-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 1rem;
}

.category-img-container:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 5;
  transition: 0.4s;
}

.category-img-container img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.category-img-container span {
  color: white;
  text-transform: uppercase;
  font-size: 1.5rem;
  font-weight: 500;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  border: none;
  background: none;
}

.view-more-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* destinations section */

#destinations {
  padding-top: 2rem;
}

.destination-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.destination-img-container {
  height: 450px;
  position: relative;
}

.destination-img-container::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  border-radius: 1rem;
}

.destination-img-container img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.days {
  position: absolute;
  left: 20px;
  top: 15px;
  color: white;
  border: 1px solid white;
  border-radius: 5rem;
  padding: 0.5rem 0.7rem;
  background-color: rgba(0, 0, 0, 0.182);
  backdrop-filter: blur(10px);
}

.fa-star {
  color: rgb(252, 212, 34);
}

.rating {
  position: absolute;
  right: 20px;
  top: 15px;
  color: white;
  border: 1px solid white;
  border-radius: 5rem;
  padding: 0.5rem 0.7rem;
  background-color: rgba(0, 0, 0, 0.182);
  backdrop-filter: blur(10px);
}

.fa-location-dot {
  color: #863e1d;
}

.location {
  position: absolute;
  left: 15px;
  bottom: 90px;
  color: white;
  border: 1px solid white;
  border-radius: 5rem;
  padding: 0.5rem 1rem;
  color: rgb(255, 255, 255);
  background-color: rgba(255, 255, 255, 0.347);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.description {
  position: absolute;
  left: 15px;
  bottom: 15px;
  right: 15px;
  color: rgba(255, 255, 255, 0.767);
  line-height: 1rem;
  z-index: 1;
  font-size: 14px;
}

.booking {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.package-name {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.price {
  font-weight: 700;
  color: #582a14;
}

.booking button {
  background-color: #d9d2c3;
  border: 2px solid #d9d2c3;
  color: #4e3326;
  padding: 0.3rem 1rem;
}

.booking button:hover {
  background-color: #f4f1ec;
  border: 2px solid #4e3326;
  transition: 0.4s;
}

/* contact section */

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: url(../images/contact_bg.jpg) bottom no-repeat;
  background-size: cover;
  padding: 5rem 3rem;
  height: auto;
  position: relative;
}

.contact-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
}

.contact-wrapper .subtitle {
  margin-bottom: 1rem;
}

.contact-wrapper .para {
  color: #342d20;
  margin-bottom: 1rem;
  z-index: 1;
}

.contact-btns-wrapper {
  display: flex;
  gap: 0.7rem;
}

.contact-btns-wrapper button {
  color: #2f2e2b;
  background-color: rgba(255, 255, 255, 0.812);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.contact-wrapper form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 6vw, 3rem);
  background-color: rgb(252, 251, 248);
  z-index: 1;
}

.contact-wrapper form label {
  margin-bottom: 0.5rem;
}

.contact-wrapper form input {
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  border-radius: 5rem;
  border: 1px solid #2f2e2b;
}

.contact-wrapper form textarea {
  margin-bottom: 1.2rem;
  border-radius: 1rem;
  border: 1px solid #2f2e2b;
}

.contact-wrapper form textarea::placeholder {
  padding: 0.5rem;
  font-family: "Roboto", sans-serif;
}

.contact-wrapper form button {
  padding: 0.8rem;
}

/* footer */

footer {
  display: flex;
  justify-content: space-between;
  padding: 4rem;
}

footer h3 {
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  gap: 5rem;
  margin-bottom: 2rem;
}

.footer-nav li {
  margin-bottom: 1rem;
}

.footer-nav a {
  color: #605849;
}

.newsletter-wrapper p {
  margin-bottom: 1rem;
}

.newsletter-wrapper form {
  position: relative;
  border: 2px solid #582a14;
  border-radius: 5rem;
  padding: 0.2rem;
  margin-bottom: 2rem;
}

.newsletter-wrapper input {
  padding: 0.5rem;
  border-radius: 5rem;
  border: none;
  width: 100%;
}

.newsletter-wrapper button {
  position: absolute;
  right: 0.15rem;
}

.copyright-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright-wrapper p {
  color: #582a14;
  margin-bottom: 0.5rem;
}

.social-media-icons {
  display: flex;
  justify-content: end;
  gap: 1rem;
  font-size: 1.2rem;
}

.social-media-icons a {
  color: #582a14;
}

/* media queries */

@media (max-width: 1227px) {
  .destination-cards-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  .location {
    bottom: 60px;
  }
}

@media (max-width: 1024px) {
  .features-cards-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  .location {
    bottom: 70px;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
  }
  .footer-nav {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .login,
  #menu-desktop {
    display: none;
  }
  #menu-btn {
    display: block;
  }
  #menu-tray.hidden {
    display: none;
  }
  .no-scroll {
    overflow: hidden;
    height: 100vh;
  }
  #menu-tray .menu-logo {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: #d9d2c3;
    font-family: "Lobster", sans-serif;
  }
  #menu-tray {
    display: block;
    text-align: center;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 0;
    height: 100vh;
    width: 100%;
    background-color: rgba(73, 42, 42, 0.892);
    z-index: 9999;
    overflow: hidden;
  }
  #menu-tray ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    width: 100%;
  }
  #menu-tray ul li {
    width: 90%;
    border-top: 1px solid #d9d2c3;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #menu-tray ul li a {
    color: #d9d2c3;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin: 1rem;
    background: none;
    border: none;
    border-radius: 0.3rem;
    width: 100%;
    font-weight: 500;
  }
  #menu-tray ul li:not(:last-child):hover {
    color: #4e3326;
    background-color: #d9d2c373;
    border-radius: 0.3rem;
    transition: 0.4s;
  }
  .login-mobile {
    border-radius: 0.3rem;
    width: 90%;
    font-size: 1.5rem;
    padding: 1rem;
    color: #d9d2c3;
    outline: 3px solid #d9d2c3;
    background: none;
  }
  .login-mobile:hover {
    color: #4e3326;
    background-color: #d9d2c373;
    transition: 0.4s;
  }
  #close-btn {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    color: #d9d2c3;
    background: none;
    display: block;
    z-index: 9999;
  }
  #hero h1 {
    font-size: 3rem;
  }
  #hero p {
    font-size: 1.2rem;
  }
  .hero-btns-wrapper {
    gap: 1rem;
  }
  .hero-btns-wrapper a {
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .features-cards-wrapper {
    grid-template-columns: 1fr;
  }
  .category-wrapper {
    grid-template-columns: 1fr;
  }
  .destination-cards-wrapper {
    grid-template-columns: 1fr;
  }
  .location {
    bottom: 80px;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-btns-wrapper {
    flex-direction: column;
    gap: 0rem;
  }
  footer {
    flex-direction: column;
  }
  .footer-nav {
    gap: 2rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .copyright-wrapper {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 349px) {
  .location {
    bottom: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
