/** Base */

@font-face {
  font-family: gilroy-regular;
  src: url(../fonts/Gilroy-Regular.ttf);
}

@font-face {
  font-family: gilroy-medium;
  src: url(../fonts/Gilroy-Medium.ttf);
}

@font-face {
  font-family: gilroy-bold;
  src: url(../fonts/Gilroy-ExtraBold.ttf);
}

:root {
  --fRegular: gilroy-regular;
  --fMedium: gilroy-medium;
  --fBold: gilroy-bold;
}

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

html {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

::selection {
  color: #75bf7a;
  background-color: #407644;
}

/** Menu */

.container {
  max-width: 95rem;
  margin: 0 auto;
  padding: 1rem;
}

.nav {
  height: 2rem;
  padding-block: 1rem;
  margin: 3rem 0 1.3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-name {
  display: flex;
  align-items: center;
  font-size: 25px;
  font-family: var(--fBold);
  color: #538b3a;
}

.logo {
  object-fit: cover;
  max-width: 5rem;
  transform: translateY(-10px);
}

.menu {
  list-style: none;
  font-family: var(--fMedium);
  font-size: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
}

.menu__item {
  cursor: pointer;
  transition: transform 0.2s;
}

.menu__item:hover {
  transform: translateY(-0.4rem);
  border-bottom: 2px solid #75bf7a;
}

.menu__item:last-child {
  background-color: #75bf7a;
  padding: 0.7rem 2rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.4s;
}

.menu__item:last-child:hover {
  background-color: #fff;
  outline: 2px solid #75bf7a;
}

.menu__item:last-child a {
  color: #fff;
}

.menu__item:last-child:hover a {
  color: #75bf7a;
}

.menu__link {
  text-decoration: none;
  color: #222;
}

#icons {
  display: none;
}

#icons svg:first-child {
  display: none;
}

.imenu {
  display: none;
}

svg.hamber-icon {
  width: 1.5rem;
  cursor: pointer;
  fill: #3a7b1d !important;
}

.active {
  font-family: var(--fBold);
}

/** Main - Top Header */

main {
  background-color: #fafafa;
}

.top-header {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap-reverse;
}

.top-header__left {
  flex-basis: 50%;
  display: flex;
  padding-top: 6rem;
  flex-direction: column;
  justify-content: space-between;
}

.header-title {
  width: 33rem;
  line-height: 70px;
  font-size: 50px;
  margin-bottom: 1rem;
  font-family: var(--fBold);
  color: transparent;
  -webkit-text-stroke: 1px #407644;
  position: relative;
  transition: 0.5s;
}

.header-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  left: 0.3rem;
  width: 100%;
  color: #75bf7a;
  overflow: hidden;
  transition: 0.5s;
}

.header-title:hover::after {
  inset: 0;
}

.header-title:hover {
  -webkit-text-stroke: 1.5px #407644;
}

.header-content {
  width: 31rem;
  font-size: 22px;
  font-family: var(--fMedium);
  color: #999;
}

.btns {
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  width: 10rem;
  padding: 0.7rem 0;
  background-color: #047053;
  color: #fff;
  border: 2px solid transparent;
  border-radius: 0.4rem;
  font-size: 22px;
  font-family: var(--fBold);
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 1rem;
}

.btn:hover {
  background-color: #fff;
  color: #000;
  border: 2px solid #000;
}

.btn svg {
  width: 1.7rem;
  fill: #fff;
}

.btn:first-child svg {
  width: 1.5rem;
  fill: #fff;
}

.btn:hover svg {
  fill: #000;
}

.top-header__right {
  flex-basis: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-img {
  object-fit: cover;
}

/** Main - Contact */

.contact {
  background-color: #75bf7a;
  padding: 2.5rem 3rem;
  margin: 4rem 0 6rem 0;
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.contact__text {
  color: #fff;
  font-size: 25px;
  font-family: var(--fMedium);
}

.input-box {
  width: 53rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact__input {
  width: 32rem;
  padding: 0.7rem 1rem;
  font-size: 22px;
  font-family: var(--fMedium);
  border: 3px solid transparent;
  outline: none;
  border-radius: 0.4rem;
  transition: 0.2s;
}

.contact__input:focus {
  border: 3.5px solid #407644;
}

.contact__input::placeholder {
  color: #bdbdbd;
  font-size: 20px;
}

.contact__btn {
  width: 15rem;
  padding: 0.7rem 0;
  background-color: #333;
  color: #fff;
  border: 2px solid transparent;
  border-radius: 0.4rem;
  font-size: 22px;
  font-family: var(--fBold);
  cursor: pointer;
  transition: 0.3s;
}

.contact__btn:hover {
  background-color: #fff;
  color: #000;
  border: 2px solid #000;
}

/** Main - Works */

.works {
  text-align: center;
}

.title {
  text-align: center;
  font-size: 35px;
  font-family: var(--fBold);
  padding: 2rem;
}

.green {
  color: #75bf7a;
}

.desc {
  max-width: 38rem;
  margin: 0 auto;
  color: #999;
  font-size: 22px;
  font-family: var(--fMedium);
}

.wrapper {
  width: 85%;
  margin: 7rem auto 0 auto;
  display: grid;
  grid-template-rows: 1rem repeat(2, minmax(1fr, max-content)) 1rem;
  grid-template-columns: repeat(auto-fit, 1fr);
  gap: 2.5rem;
  justify-content: center;
}

.content-box {
  text-align: left;
}

.content-box:nth-child(1),
.content-box:nth-child(4) {
  text-align: right;
}

.content-box__img {
  animation: fade 1.4s ease-in-out infinite alternate;
}

@keyframes fade {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.2;
  }
}

.content-box__title {
  font-size: 25px;
  margin: 0.5rem 0;
  font-family: var(--fBold);
}

.content-box__text {
  color: #999;
  font-size: 20px;
  font-family: var(--fMedium);
}

.box1 {
  grid-row: 2 / 3;
  grid-column: 1 / 2;
}

.box2 {
  grid-row: 2 / 3;
  grid-column: 3 / 4;
}

.box3 {
  width: 30rem;
  grid-row: 1 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone {
  animation: shark 0.7s linear infinite;
}

@keyframes shark {
  0% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(1deg);
  }

  50% {
    transform: rotate(0);
  }

  75% {
    transform: rotate(-1deg);
  }

  100% {
    transform: rotate(0);
  }
}

.box4 {
  grid-row: 3 / 4;
  grid-column: 1 / 2;
}

.box5 {
  grid-row: 3 / 4;
  grid-column: 3 / 4;
}

.dot {
  margin-top: 2.5rem;
  width: 5rem;
  object-fit: cover;
}

/** Main - Benefits */

.benefits {
  margin: 4rem 0 6rem 0;
}

.cards {
  padding: 1rem;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(15, 1fr);
  row-gap: 2rem;
}

.card {
  background-color: #fff;
  padding: 1.5rem 3rem;
  border-radius: 0.4rem;
  outline: 2px solid transparent;
  outline-offset: 0.4rem;
  box-shadow: 0px 0px 10px #edededcc;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: space-between;
  align-items: center;
  transition: outline 0.1s;
}

.card:hover {
  outline: 2px solid #407644;
}

.card * {
  transition: 0.5s;
}

.card:hover * {
  scale: 1.05;
}

.card:nth-child(1) {
  grid-row: 1 / 2;
  grid-column: 2 / 13;
}

.card:nth-child(2) {
  grid-row: 2 / 3;
  grid-column: 4 / 15;
}

.card:nth-child(3) {
  grid-row: 3 / 4;
  grid-column: 2 / 13;
}

.card-content {
  width: max-content;
  height: 7rem;
  display: flex;
  align-items: center;
  align-self: end;
}

.card__title {
  font-family: var(--fMedium);
  font-size: 25px;
}

.card__num {
  padding-right: 1rem;
  color: #75bf7a;
  font-size: 50px;
  font-family: var(--fMedium);
}

.card__text {
  width: max-content;
  height: max-content;
  line-height: 1.7rem;
  color: #aaa;
  font-size: 20px;
  font-family: var(--fMedium);
  align-self: start;
  grid-row: 2 / 3;
  grid-column: 1 / 2;
}

.card__img {
  max-width: 250px;
  max-height: 230px;
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  justify-self: end;
}

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

.card2 .card-content {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
}

.card2 .card__text {
  grid-row: 2 / 3;
  grid-column: 2 / 3;
}

.card2 .card__img {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}

/** Footer */

.footer {
  margin: 4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.list {
  width: max-content;
  list-style: none;
}

.list__item {
  font-size: 22px;
  color: #999;
  padding: 0.5rem 0;
  font-family: var(--fMedium);
}

.list__item:first-child {
  color: #000;
  font-size: 25px;
  font-family: var(--fMedium);
}

.btns-footer {
  max-width: 85%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-f {
  padding: 0.7rem 0;
  background-color: #000;
  color: #fff;
  border-radius: 0.4rem;
  font-family: var(--fBold);
  cursor: pointer;
  transition: 0.3s;
}

.icon-f {
  color: #fff;
  padding-right: 1.2rem;
  transition: 0.3s;
}

.btn-f:hover {
  background-color: #fff;
  color: #000;
}

.btn-f:hover .icon-f {
  color: #000;
}

.copy-right {
  text-align: center;
  border-top: 2px solid #eee;
  font-size: 22px;
  font-family: var(--fMedium);
  color: #75bf7a;
  padding: 1.5rem 0 0.7rem 0;
}
