:root {
  --red: #b33030;
  --green: #27ae60;
  --white: #f7f7f7;
  --yellow: #f7ca3e;
  --blue: #192a56;
  --box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

/* poppins */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Poppins-Regular.ttf') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Poppins-Medium.ttf') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Poppins-Bold.ttf') format('woff2');
}

* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  text-transform: capitalize;
  transition: all 0.2s linear;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  /* scroll-behavior: smooth; */
}

body {
  background: #f7f7f7;
}

/* .heading {
  text-align: center;
  text-transform: uppercase;
  color: #777;
  font-size: 3rem;
  padding-bottom: 2rem;
}

.sub-heading {
  text-align: center;
  color: var(--green);
  font-size: 2rem;
  padding-bottom: 1rem;
} */

/* header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  padding: 1rem 5%;
  box-shadow: 0 0.5rem 1 rem rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.btn {
  margin-top: 3rem;
  display: inline-block;
  font-size: 1.7rem;
  color: #fff;
  background: var(--blue);
  border-radius: 0.5rem;
  cursor: pointer;
  padding: 0.8rem 3rem;
}

.btn:hover {
  background: var(--green);
  letter-spacing: 0.1rem;
}

.logo img {
  height: 5rem;
}

.navbar a {
  font-size: 1.75rem;
  padding: 0.5rem 1rem;
  color: var(--white);
}

.navbar a.hover,
.navbar a.active {
  color: var(--red);
}

.icon .menu-bar {
  font-size: 3rem;
  cursor: pointer;
  color: var(--white);
  display: none;
}

.icon .menu-bar:hover,
.icon .menu-bar:active {
  color: var(--red);
}

.container-img img {
  width: 100%;
  object-fit: cover;
  padding-top: 7.25rem;
  border: 1px solid black;
}

/* footer */
footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 2rem;
  background: #000;
  padding: 2rem 5%;
  margin-top: 1rem;
}

.container-box h3 {
  font-size: 2rem;
  color: var(--yellow);
  padding: 0.25rem 0;
  font-weight: normal;
}

.container-box p {
  font-size: 1.5rem;
  color: #eee;
  padding: 0.5rem 0rem;
}

.container-box p i {
  padding-right: 0.75rem;
  color: var(--yellow);
}

.container-box .email {
  text-transform: none;
}

.container-ops {
  display: grid;
  grid-template-columns: 15rem 1fr;
}

/* carousel */
.slide {
  /* padding - top right bottom left */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 12rem 4rem 8rem 12rem;
  /* padding: 7.5rem 3rem 1.5rem 3rem; */
}

.slide .content {
  flex: 1 1 40rem;
}

.slide .image {
  flex: 1 1 50rem;
}

.slide .image img {
  width: 75%;
}

.slide .content span {
  color: var(--green);
  font-size: 3rem;
  font-weight: 500;
}

.slide .content h3 {
  color: var(--black);
  font-size: 5rem;
  padding-top: 0.75rem;
}

.slide .content p {
  color: var(--light-color);
  font-size: 2.2rem;
  padding: 0.25rem 0;
  line-height: 1.5;
}

/* prev and next */
.home .prev,
.home .next {
  /* background: blue; */
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 6px 12px;
  /* color: #777; */
  color: blue;
  font-weight: bold;
  font-size: 24px;
  transition: all 0.6s ease;
  border-radius: 50%;
  /* border-radius: 0 3px 3px 0; */
  /* user-select: none; */
}

.home .prev:hover,
.home .next:hover {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
}

.home .prev {
  left: 5px;
}

.home .next {
  right: 5px;
}

/* dots nav */
.dots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.dots-container .dot {
  cursor: pointer;
  margin: 5px;
  width: 20px;
  height: 20px;
  color: #333;
  border-radius: 50%;
  background-color: #dfd6ce;
}

.dots-container .dot.active {
  border: 2px solid green;
}

/* section menu */
.menu {
  padding: 2rem 9%;
}

.menu p {
  color: var(--green);
  font-size: 3rem;
  font-weight: 500;
  padding-bottom: 1rem;
}

.box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 1.5rem;
}

.box-container .box {
  background: #fff;
  border: 0.1rem solid rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
}

.box-container .box .image {
  height: 25rem;
  width: 100%;
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
}

.box-container .box .image img {
  height: 100%;
  width: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
}

.box-container .box .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.box-container .box .content h3 {
  color: var(--black);
  font-size: 2.5rem;
}

.box-container .box p {
  color: var(--light-color);
  font-size: 1.75rem;
  padding: 1.5rem 2.5rem 2.5rem;
  line-height: 1.5;
}

.box-container .box .content .price {
  color: var(--green);
  font-size: 2.5rem;
}

/* media queries */
@media (max-width: 500px) {
  html {
    font-size: 40%;
  }
  footer {
    padding-left: 3rem;
  }

  .slide {
    padding: 9rem 2rem 4rem 6rem;
  }

  .slide .image img {
    padding-left: 5rem;
  }

  .box-container .box .image {
    height: 30rem;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 55%;
  }
  header {
    padding: 1rem 3rem;
  }

  .slide .image img {
    /* width: 75%; */
    padding-left: 5rem;
  }

  .icon .menu-bar {
    display: inline-block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }
  .navbar.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }

  .navbar a {
    display: block;
    font-size: 1.75rem;
    padding: 1.25rem 5rem;
    border-top: 0.1rem solid #555;
    background: #000;
  }
  footer {
    padding-left: 3rem;
  }
}

@media (max-width: 800px) {
  html {
    font-size: 55%;
  }
  header {
    padding: 1rem 3rem;
  }
  footer {
    padding-left: 3rem;
  }
  .slide {
    padding: 9rem 2rem 4rem 6rem;
  }

  .slide .image img {
    padding-left: 8rem;
  }
}
