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

ul,
a {
  text-decoration: none;
}

/* default styles */
:root {
  --green: #8db42f;
  --black: #282623;
  --grey: #516c7f;
  --white: #ffffff;
  --footer-bg: #eee;
  --heading-multiplier: 1;
  --text-multiplier: 1;
}

html {
  /* smooth scroll when a link is clicked */
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: #333;
  font-size: 62.5%;
}

/* declare text styles using calc() function and the multiplier */
h1 {
  font-size: calc(3em * var(--heading-multiplier));
  font-weight: 400;
}

h2 {
  font-size: calc(2.4em * var(--heading-multiplier));
  font-weight: 600;
  color: var(--grey);
}

h3 {
  font-size: calc(2em * var(--heading-multiplier));
  font-weight: 500;
}

h4 {
  font-size: calc(1.8em * var(--heading-multiplier));
  font-weight: 400;
}

h5 {
  font-size: calc(1.4em * var(--heading-multiplier));
  font-weight: 400;
}

h6 {
  font-size: calc(1.2em * var(--heading-multiplier));
  font-weight: 400;
}

a,
p,
li {
  font-size: calc(1.4em * var(--text-multiplier));
  font-weight: 400;
}

p,
li {
  line-height: 1.5;
}

.t-white {
  color: var(--white);
}

.t-green {
  color: var(--green);
}

.btn-primary {
  background-color: var(--green);
  color: var(--white);
  border-radius: 0.4em;
  padding: 12px 16px;
  text-align: center;
}

/* hero section */
.gradient-bg {
  background: linear-gradient(90deg, #112a49 0%, #516c7f 100%);
}

.hero-bg {
  background-image: url("../images/bg-cow.webp"), linear-gradient(90deg, #112a49 0%, #516c7f 100%);
  background-size: cover;
  background-position: left;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.hero-logo {
  max-width: 110px;
}

.hero-nav a {
  z-index: 999;
}

h1 {
  margin-bottom: 15px;
}

.hero-content-wrapper img {
  display: block;
  max-width: 150px;
  margin: 30px auto;
}

.hero-btn-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-bg-relative {
  display: none;
}

.hero-btn-group a {
  margin-bottom: 10px;
}

.hero-bg:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-bg h1,
h3,
a,
img {
  position: relative;
}

/* video section */
.video-section {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  margin-top: 40px;
}

.video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* monitoring section */
.monitoring-wrapper {
  display: flex;
  flex-direction: column;
}

.monitoring-content {
  margin-bottom: 40px;
}

.monitoring-img {
  max-width: 100%;
}

.monitoring-wrapper h2 {
  margin-bottom: 20px;
}

.monitoring-wrapper p,
.monitoring-wrapper a {
  margin-bottom: 30px;
}

/* benefits section */
.benefits {
  color: var(--white);
  padding: 40px 20px;
}

.benefits h2 {
  margin-bottom: 50px;
}

.container-benefits {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.benefits-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.benefits-item:last-child {
  margin-bottom: 50px;
}

.benefits-item p {
  text-align: center;
  margin-bottom: 10px;
}

/* experts section */
.experts-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.experts-form h2 {
  margin-bottom: 30px;
}

/* virtual fence section */
.virtualfence-wrapper {
  display: flex;
  flex-direction: column;
}

.virtualfence-wrapper img {
  margin: 0 auto;
  max-width: 70%;
}

.virtualfence-content {
  margin-bottom: 30px;
}

.virtualfence-content h2 {
  margin-bottom: 30px;
}

.virtualfence-content h3,
h4 {
  margin-bottom: 10px;
}

/* how to section*/
.how-to-wrapper {
  display: flex;
  flex-direction: column;
}

.how-to-wrapper img {
  order: 2;
  margin: 40px auto 0;
  max-width: 50%;
}

.how-to-content > h2 {
  margin-bottom: 30px;
}

.how-to-content > h3 {
  margin: 20px 0;
}

/* presale section */
.presale-wrapper {
  display: flex;
  flex-direction: column;
}

.presale-content h2 {
  margin-bottom: 30px;
}

.presale-content {
  margin-bottom: 30px;
}

.presale-content li {
  margin-left: 15px;
}

.presale-form h2 {
  margin-bottom: 30px;
}
/* presale section */

/* contact section */
.contact-wrapper {
  display: flex;
  flex-direction: column;
}

.contact-content {
  order: 2;
}

.contact-content img {
  max-width: 60%;
  margin-bottom: 10px;
}

.contact-content h5 {
  letter-spacing: 6px;
  font-weight: 500;
}

.contact-content h6 {
  margin-bottom: 20px;
}

/* Footer Section */
.footer {
  background-color: var(--footer-bg);
  /* margin-top: 70px; */
  text-align: center;
  font-size: 0.8em;
}

footer {
  background-color: var(--footer-bg);
}

footer img {
  margin: 0 auto;
  margin-bottom: 10px;
  max-width: 30%;
}

.footer-text {
  font-size: 1.4em;
}

/* responsive */
@media screen and (min-width: 550px) {
  :root {
    --heading-multiplier: 1.2;
    --text-multiplier: 1.2;
  }

  .hero-nav {
    margin-bottom: 70px;
  }

  .hero-content-wrapper {
    max-width: 650px;
  }

  .hero-content-wrapper img {
    margin: 30px 0;
  }

  .hero-btn-group {
    flex-direction: row;
    justify-content: start;
  }

  footer img {
    margin: 0 auto;
    margin-bottom: 10px;
    max-width: 15%;
  }
}

@media screen and (min-width: 800px) {
  .hero-logo {
    max-width: 145px;
  }

  /* monitoring section */
  .monitoring-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .monitoring-content {
    max-width: 600px;
  }

  .monitoring-img {
    max-width: 30%;
  }

  /* benefits */
  .container-benefits {
    flex-direction: row;
  }

  .benefits-item {
    width: 33.33%;
  }

  .virtual-fence {
    margin-bottom: 50px;
  }

  /* experts */
  .experts-wrapper {
    margin-top: 50px;
    margin-bottom: 50px;
    flex-direction: row;
    align-items: center;
  }

  .experts-wrapper img {
    width: 60%;
  }

  /* virtual fence */
  .virtualfence-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .virtualfence-wrapper img {
    width: 33%;
    margin: 0;
  }

  .virtualfence-content {
    max-width: 600px;
  }

  #benefits-virtual-fence .benefits a {
    margin-top: 100px;
  }

  /* how to */
  .how-to-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .how-to-wrapper img {
    order: 0;
    max-width: 23%;
    margin: 0;
  }

  .how-to-content {
    max-width: 600px;
  }

  /* presale */
  .presale-wrapper {
    flex-direction: row;
    justify-content: space-between;
    margin-top: 80px;
    margin-bottom: 80px;
  }

  .presale-content {
    max-width: 550px;
  }

  .presale-form {
    width: 45%;
  }

  .presale-form h2 {
    margin-bottom: 30px;
  }
  /* presale */

  /* contact */
  .contact-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 70px;
  }

  .contact-content {
    order: 0;
    align-self: flex-start;
  }

  .contact-content img {
    max-width: 40%;
  }

  .contact-content h5 {
    font-size: 1.4em;
    margin: 20px 0 10px;
  }

  .contact-content h6 {
    max-width: 300px;
    font-size: 1.4em;
  }
  .contact-form {
    width: 60%;
  }
}

@media screen and (min-width: 900px) {
  :root {
    --heading-multiplier: 1.6;
    --text-multiplier: 1.2;
  }

  .hero-content-wrapper {
    max-width: 700px;
  }

  footer img {
    margin: 0 auto;
    margin-bottom: 10px;
    max-width: 10%;
  }
}

@media screen and (min-width: 1200px) {
  .hero-bg {
    height: 100vh;
    background-image: none;
    background: linear-gradient(90deg, #112a49 0%, #516c7f 100%);
  }

  .hero-nav {
    margin-bottom: 40px;
  }

  .hero-bg-relative {
    display: inline;
    position: absolute;
    right: 0;
    top: 0;
    height: 100vh;
  }
}

.hide {
  display: none;
}
