:root {
  --color-primary: #5ec576;
  --color-secondary: #ffcb03;
  --color-tertiary: #ff585f;
  --color-primary-darker: #4bbb7d;
  --color-secondary-darker: #ffbb00;
  --color-tertiary-darker: #fd424b;
  --color-primary-opacity: #5ec5763a;
  --color-secondary-opacity: #ffcd0331;
  --color-tertiary-opacity: #ff58602d;
  --gradient-primary: linear-gradient(to top left, #39b385, #9be15d);
  --gradient-secondary: linear-gradient(to top left, #ffb003, #ffcb03);
}

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

html {
  box-sizing: border-box;
}

body {
  font-family: Poppins, sans-serif;
  font-weight: 300;
  color: #444;
  line-height: 1.9;
  background-color: #f3f3f3;
}

/* HEADER */

.header {
  padding: 0 30px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 150px;
  position: relative;
  border-top: 1px solid #ddd;
}

.header::after {
  content: "";
  background: url(img/pig-background.jpg) 50% 50% no-repeat;
  background-size: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -100;
}

.header__title {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  text-align: center;
}

h1 {
  font-size: 55px;
  line-height: 1.1;
  margin-bottom: 40px;
}

h4 {
  font-size: 24px;
  font-weight: 500;
}

.highlight {
  position: relative;
}

.highlight::after {
  display: block;
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.7;
  z-index: -1;
  transform: scale(1.07, 1.05) skewX(15deg);
  background-image: linear-gradient(to top left, #39b385, #9be15d);
}

.btn--text {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  font-size: 20px;
  font-family: inherit;
  font-weight: 500;
  color: var(--color-primary);
  border: none;
  padding-bottom: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.logo__learn-more {
  font-size: 36px;
  margin-top: -10px;
}

/* NAVIGATION */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  width: 100%;
  padding: 0 60px;
}

.nav.sticky {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1000;
}

.nav__logo {
  font-size: 64px;
  transition: all 0.3s;
  position: relative;
  color: #37383d;
}

.nav__links {
  display: flex;
  align-items: center;
  list-style: none;
}

.nav__item {
  margin-left: 40px;
}

.nav__link:link,
.nav__link:visited {
  font-size: 17px;
  font-weight: 400;
  color: inherit;
  text-decoration: none;
  display: block;
}

.nav__link--btn:link,
.nav__link--btn:visited {
  padding: 8px 25px;
  border-radius: 30px;
  background-color: var(--color-primary);
  color: #222;
  transition: all 0.3s;
}

.nav__link--btn:hover,
.nav__link--btn:active {
  color: inherit;
  background-color: var(--color-primary-darker);
  color: #333;
}

/* GENERAL ELEMENTS */

.section {
  padding: 150px 30px;
  border-top: 1px solid #ddd;
  transition: transform 1s, opacity 1s;
}

.section--hidden {
  opacity: 0;
  transform: translateY(80px);
}

.section__title {
  max-width: 800px;
  margin: 0 auto 80px auto;
}

.section__description {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.section__header {
  font-size: 40px;
  line-height: 1.3;
  font-weight: 500;
}

.btn {
  display: inline-block;
  background-color: var(--color-primary);
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  border: none;
  border-radius: 100px;
  padding: 12px 45px;
  cursor: pointer;
  transform: all 0.3s;
}

.btn:hover {
  background-color: var(--color-primary-darker);
}

p {
  color: #666;
}

img {
  transition: filter 0.5s;
}

.lazy-img {
  filter: blur(20px);
}

/* FEATURES */

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 0 120px;
}

.features__img {
  width: 100%;
}

.features__feature {
  align-self: center;
  justify-self: center;
  width: 70%;
  font-size: 15px;
}

.features__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-opacity);
  height: 55px;
  width: 55px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.features__icon svg {
  height: 25px;
  width: 25px;
  fill: var(--color-primary);
}

.features__header {
  font-size: 20px;
  margin-bottom: 10px;
}

/* OPERATIONS */

.operations {
  max-width: 1000px;
  margin: 120px auto 0 auto;
  background-color: #fff;
  border-radius: 30px;
}

.operations--shadow-1 {
  box-shadow: 10px 10px 30px var(--color-secondary-opacity);
}

.operations--shadow-2 {
  box-shadow: 10px 10px 30px var(--color-primary-opacity);
}

.operations--shadow-3 {
  box-shadow: 10px 10px 30px var(--color-tertiary-opacity);
}

.operations__tab-container {
  display: flex;
  justify-content: center;
}

.operations__tab {
  margin-right: 25px;
  transform: translateY(-50%);
  transition: transform 0.3s;
}

.operations__tab span {
  margin-right: 10px;
  font-weight: 600;
  display: inline-block;
}

.operations__tab--1 {
  background-color: var(--color-secondary);
}

.operations__tab--1:hover {
  background-color: var(--color-secondary-darker);
}

.operations__tab--3 {
  background-color: var(--color-tertiary);
  margin: 0;
}

.operations__tab--3:hover {
  background-color: var(--color-tertiary-darker);
}

.operations__tab--active {
  transform: translateY(-66%);
}

.operations__content {
  display: none;
  font-size: 17px;
  padding: 25px 70px 65px 70px;
}

.operations__content--active {
  display: grid;
  grid-template-columns: 70px 1fr;
  column-gap: 30px;
  row-gap: 5px;
}

.operations__header {
  font-size: 22px;
  font-weight: 500;
  align-self: center;
}

.operations__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  width: 70px;
  border-radius: 50%;
}

.operations__icon svg {
  height: 27px;
  width: 27px;
}

.operations__content p {
  grid-column: 2;
}

.operations__icon--1 {
  background-color: var(--color-secondary-opacity);
}
.operations__icon--2 {
  background-color: var(--color-primary-opacity);
}
.operations__icon--3 {
  background-color: var(--color-tertiary-opacity);
}
.operations__icon--1 svg {
  fill: var(--color-secondary-darker);
}
.operations__icon--2 svg {
  fill: var(--color-primary);
}
.operations__icon--3 svg {
  fill: var(--color-tertiary);
}

/* SLIDER */

.slider {
  max-width: 1000px;
  height: 500px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s;
}

.slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__btn {
  position: absolute;
  top: 50%;
  z-index: 10;
  border: none;
  background: none;
  color: #333;
  font-size: 40px;
  cursor: pointer;
}

.slider__btn--left {
  left: 6%;
  transform: translate(-50%, -50%);
}

.slider__btn--right {
  right: 6%;
  transform: translate(50%, -50%);
}

.dots {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.dots__dot {
  border: none;
  background-color: #b9b9b9;
  opacity: 0.7;
  height: 1rem;
  width: 1rem;
  border-radius: 50%;
  margin-right: 1.75rem;
  cursor: pointer;
  transition: all 0.5s;
}

.dots__dot:last-child {
  margin: 0;
}

.dots__dot--active {
  /* background-color: #fff; */
  background-color: #888;
  opacity: 1;
}

/* TESTIMONIALS */

.testimonial {
  width: 65%;
  position: relative;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -57px;
  left: -68px;
  line-height: 1;
  font-size: 200px;
  font-family: inherit;
  color: var(--color-primary);
  z-index: -1;
}

.testimonial__header {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 15px;
}

.testimonial__text {
  font-size: 17px;
  margin-bottom: 35px;
  color: #666;
}

.testimonial__author {
  margin-left: 30px;
  font-style: normal;
  display: grid;
  grid-template-columns: 65px 1fr;
  column-gap: 20px;
}

.testimonial__photo {
  grid-row: 1 / span 2;
  width: 65px;
  border-radius: 50%;
}

.testimonial__name {
  font-size: 17px;
  font-weight: 500;
  align-self: end;
  margin: 0;
}

.testimonial__location {
  font-size: 15px;
}

.section__title--testimonials {
  margin-bottom: 40px;
}

/* SIGN-UP */

.section--sign-up {
  background-color: #37383d;
  border-top: none;
  border-bottom: 1px solid #444;
  text-align: center;
  padding: 80px 30px;
}

.section--sign-up .section__header {
  color: #fff;
  text-align: center;
}

.section--sign-up .section__title {
  margin-bottom: 60px;
}

.section--sign-up .btn {
  font-size: 19px;
  padding: 20px 50px;
}

/* FOOTER */

.footer {
  padding: 30px 30px;
  background-color: #37383d;
}

.footer__nav {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.footer__item:not(:last-child) {
  margin-right: 40px;
}

.footer__link {
  font-size: 16px;
  color: #eee;
  text-decoration: none;
}

.footer__logo {
  font-size: 64px;
  color: var(--color-primary);
  margin: 0 auto;
  display: block;
}

.footer__copyright {
  font-size: 14px;
  color: #aaa;
  text-align: center;
}

.footer__copyright .footer__link {
  font-size: 14px;
}

/* MODAL */

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 600px;
  background-color: #f3f3f3;
  padding: 50px 60px;
  box-shadow: 0 40px 60px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.5s;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  transition: all 0.5s;
}

.modal__header {
  font-size: 32px;
  margin-bottom: 45px;
  line-height: 1.5;
}

.modal__form {
  margin: 0 30px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 25px;
}

.modal__form label {
  font-size: 17px;
  font-weight: 500;
}

.modal__form input {
  font-size: 17px;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.modal__form button {
  grid-column: 1 / span 2;
  justify-self: center;
  margin-top: 10px;
}

.btn--close-modal {
  font-family: inherit;
  color: inherit;
  position: absolute;
  top: 5px;
  right: 20px;
  font-size: 40px;
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  visibility: hidden;
  opacity: 0;
}

/* COOKIE MESSAGE */

.cookie-message {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  background-color: #fff;
  color: #bbb;
  font-size: 15px;
  font-weight: 400;
}
