@import url("reset.css");
@import url("https://fonts.googleapis.com/css2");
:root {
  --white: #ffffff;
  --description-gray: #7b8481;
  --title-dark-green: #23322d;
  --bg-main-light-green: #cafcc4;
  --bg-second-pink: #faf2ef;
  --border-gray: #d7dad9;
  /* FONTS */
  --font-inter: "Inter", Arial, sans-serif;
  --font-raleway: "Raleway", "Helvetica Neue", Helvetica, sans-serif;
}
.break {
  display: none; /* Hide the break on smaller screens */
}

.country-select .flag {background-image: url("../assets/images/flags.png");}
.selected-flag{
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  height: 53px !important;
}
.underline {
  text-decoration: underline;
}
.container {
  margin: 0 auto;
  max-width: 1278px;
  padding: 0 10px;
}

.title {
  font-size: 72px;
  color: var(--title-dark-green);
  font-weight: 500;
}

body {
  background-color: var(--white);
  color: var(--title-dark-green);
  font-family: var(--font-raleway);
  font-weight: 400;
  font-size: 16px;
}

/* MODAL */
.modal {
  display: none;
  align-items: center;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

/* Modal Content/Box */
.modal-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  border-radius: 25px;
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  max-width: 300px;
  justify-content: space-between;
}

.modal-content .buttons {
  align-items: flex-end;
}

/* HEADER */

.header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
}
.logo {
  transition: transform 0.5s ease-in-out;
  transform-origin: left center;
}

.logo:hover {
  transform: scaleX(1.2);
}
.header__nav {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 24px;
  color: var(--description-gray);
}

/* Hide the button in the nav on larger screens */
.header__nav .get-an-inquiry {
  display: none;
}

.nav__link:hover {
  color: var(--title-dark-green);
}

.btn {
  padding: 12px 16px;
  border-radius: 24px;
  cursor: pointer;
}

.get-an-inquiry {
  background-color: var(--bg-main-light-green);
  color: var(--title-dark-green);
}

.btn.learn-more {
  background-color: var(--white);
  color: var(--title-dark-green);
  border: 1px solid black;
}

.hamburger-menu {
  display: none;
  cursor: pointer;
}

.bar1,
.bar2,
.bar3 {
  width: 35px;
  height: 5px;
  border: 1px solid var(--description-gray);
  margin: 6px 0;
  transition: 0.4s;
}

/* HERO section */

.hero {
  margin-top: 69px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  /* margin-left: 80px;
  margin-right: 44px; */
}

.hero__title {
  color: var(--title-dark-green);
  font-size: calc(43px + (96 - 43) * ((100vw - 360px) / (1920 - 360)));
  font-weight: 500;
}

.hero__description {
  color: var(--description-gray);
  margin-top: 8px;
}

.hero__image {
  max-width: 380px;
}

.hero__buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.features {
  margin-top: 119px;
}
.features__title {
  text-align: center;
}
.features__title-lines {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.features__cards {
  margin-top: 40px;
  padding: 40px 72px;
  background: var(--bg-second-pink);
  border-radius: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}
.features__card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 190px;
  transition: all 0.3s ease-in-out;
}

.features__card:hover {
  transform: scale(1.2);
}

.features__card-row {
  display: flex;
  justify-content: space-between;
}
.features__card--title {
  color: var(--title-dark-green);
  font-size: 18px;
  font-weight: 700;
}
.card__logo {
  height: 24px;
  width: 24px;
}
.card__description {
  flex-grow: 1;
  color: var(--description-gray);
}

.card-get-in-touch {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* PRODUCTS SECTION */
.products__title-wrapper {
  margin-top: 100px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.products__title-left {
  display: flex;
  flex-direction: column;
}
.products__title {
}
.products__title-lines {
}
.products__title-right {
  display: flex;
  align-items: flex-end;
}
.products__title-desc {
  color: var(--description-gray);
}

/* PRODUCTS SECTION CARDS */

.product-card__content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-cards__second-row .product-card__content {
  max-width: 395px;
}

.product-cards__second-row .product-card__description {
  max-width: 285px;
}
.product-cards__second-row .product-card {
  flex: 1;
}

.product-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.product-card {
  height: 364px;
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--border-gray);
  border-radius: 60px;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  background-color: var(--title-dark-green);
}
.product-card:hover .product-card__title {
  color: var(--white);
}
.product-card__image--hover {
  display: none; /* Hide the hover image by default */
}

.product-card:hover .product-card__image {
  display: none; /* Hide the original image when the card is hovered */
}

.product-card:hover .product-card__image--hover {
  display: block; /* Show the hover image when the card is hovered */
}

.product-card__title {
  font-size: 40px;
  font-weight: 500;
  color: var(--title-dark-green);
}

.product-card__description,
.features__card--description {
  color: var(--description-gray);
}

.product-card__image {
  position: absolute;
  right: 0;
  bottom: 0;
}

.product-cards__second-row {
  display: flex;
  gap: 24px;
}

/* How to get started section */

.get-started {
  display: flex;
  flex-direction: column;
  margin-top: 6.25rem; /* 100px */
}

.get-started__title {
  font-weight: 500;
  font-size: 4.5rem; /* 72px */
  color: var(--title-dark-green);
  text-align: center;
}

.get-started__title-lines {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.get-started__steps {
  margin-top: 2.5rem; /* 40px */
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 16px */
}

.step {
  border-radius: 1.5rem; /* 24px */
  padding: 1.8125rem 1.875rem; /* 29px 0 29px 30px */
  font-size: 3.25rem; /* 52px */
  font-weight: 500;
  color: var(--title-dark-green);
}

.step--1 {
  background-color: #cafcc4;
}

.step--2 {
  background-color: #c4fcda;
}

.step--3 {
  background-color: #f4fcc4;
}

.step--4 {
  background-color: #23322d;
  color: var(--white);
}

/* GET in touch section */

.get-in-touch {
  margin-top: 100px;
}
.get-in-touch__wrapper {
  text-align: left;
}
.get-in-touch__title {
}
.form-wrapper {
  background-color: var(--bg-second-pink);
  border-radius: 32px;
  margin-top: 40px;
  padding: 48px 54px;
}

.form-wrapper input,
textarea,
select {
  width: 100%;
  padding: 16px;
  background-color: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 20px;
}

select:invalid  {
  color: var(--description-gray);
}

.form-wrapper input::placeholder,
textarea::placeholder,
select::placeholder,
select:invalid {
  color: var(--description-gray);
}

textarea {
  height: 132px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.btn--get-in-touch {
  margin-top: 32px;
  width: 100%;
  text-align: center;
  background-color: var(--bg-main-light-green);
}

/* FOOTER section */
.footer {
  padding: 32px 80px;
  margin-top: 100px;
  background-color: var(--title-dark-green);

  color: var(--white);
}

.footer__content-wrapper {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-links-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-links-title {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 500;
  color: var(--description-gray);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-docs-nav {
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 14px;
  gap: 6px;
  display: flex;
  flex-direction: column;
}

.footer-nav-link {
}

.footer-copyright {
  display: flex;
  gap: 75px;
  color: var(--description-gray);
  font-size: 10px;
  font-weight: 500;
  margin-top: 15px;
}

.footer-contact-info {
  max-width: 431px;
  display: flex;
  gap: 48px;
}

.footer-copyright-nav {
  display: flex;
  gap: 8px;
}

/* FOOTER right side */
.footer-right {
  max-width: 60%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-contact-row {
  display: flex;
  gap: 48px;
  justify-content: space-between;
}

.footer-contact-row img {
  height: 48px;
}

.footer-email,
.footer-address {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--description-gray);
}

.footer-contact-desc {
  font-size: 14px;
  font-weight: 500;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-btn {
  padding: 12px 32px;
  background-color: var(--bg-main-light-green);
  color: var(--title-dark-green);
}

.footer-socials-links {
  gap: 8px;
  display: flex;
}

@media (max-width: 768px) {
  .hero__description .break {
    display: none;
  }
}

@media (min-width: 768px) {
  .break {
    display: block; /* Show the break (force a line break) on larger screens */
  }
}

@media screen and (min-width: 1200px) {
  .step--1 {
    flex-basis: 60%;
    max-width: 60%;
  }

  .step--2 {
    flex-basis: 80%;
    max-width: 80%;
  }

  .step--3 {
    flex-basis: 90%;
    max-width: 90%;
  }

  .step--4 {
    flex-basis: 100%;
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .features__cards {
    padding: 40px 55px;
  }
  .features__card {
    height: initial;
  }

  .product-card {
    height: 380px;
  }

  .product-card:not(.product-card--full) .product-card__image {
    max-height: 260px;
  }

  .product-cards__second-row .product-card__description {
    max-width: 220px;
  }
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    color: black;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    flex-direction: column;
    display: none; /* Hide by default */
    z-index: 1;
  }
  .header__nav .get-an-inquiry {
    display: block;
  }
  .header .get-an-inquiry {
    display: none;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    z-index: 2;
  }

  /* Show the nav when the checkbox is checked */
  #toggle:checked ~ .header__nav {
    display: flex;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: -19px 20px 20px 0px gray;
  }

  /* Change the appearance of the hamburger menu when the checkbox is checked */
  #toggle:checked ~ #hamburger-menu .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
  }

  #toggle:checked ~ #hamburger-menu .bar2 {
    opacity: 0;
  }

  #toggle:checked ~ #hamburger-menu .bar3 {
    transform: translate(0, -11px) rotate(45deg);
  }

  .hero__image {
    max-width: 300px;
  }

  .features__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .features__card {
    height: 190px;
  }

  .product-card {
    height: 280px;
  }

  .product-card__title {
    font-size: 30px;
  }

  .product-cards__second-row {
    flex-direction: column;
  }

  .product-card:not(.product-card--full) .product-card__image,
  .product-card__image {
    width: 250px;
  }

  .product-cards__second-row .product-card {
    flex: initial;
  }

  .product-cards__second-row .product-card__content {
    width: 100%;
  }
  .product-cards__second-row .product-card__description {
    max-width: 100%;
  }

  /* .product-card__content,
  .product-cards__second-row .product-card__description {
    width: 100%;
  }

  .product-card__image,
  .product-card:not(.product-card--full) .product-card__image{
    width: 300px;
  } */

  .footer-contact-info {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .hero__left {
    text-align: center;
  }
  .hero__buttons {
    justify-content: center;
  }
  .hero__image {
    display: none;
  }

  .hero__title {
    font-size: 40px;
  }

  .get-started__title,
  .features__title {
    font-size: 3.5rem;
    text-align: center;
  }

  .get-in-touch__title {
    text-align: center;
  }

  .product-card__description,
  .product-cards__second-row .product-card__description {
    max-width: 200px;
  }

  .product-card:not(.product-card--full) .product-card__image,
  .product-card__image {
    width: 180px;
  }

  .features,
  .products__title-wrapper,
  .get-started,
  .get-in-touch,
  .footer {
    margin-top: 72px;
  }

  .features__cards {
    grid-template-columns: 1fr;
    padding: 30px 25px;
  }

  .products__title-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .product-card {
    height: auto;
  }

  .step {
    font-size: 1.25rem;
  }

  .form-wrapper {
    padding: 48px 27px;
  }

  .footer {
    padding: 32px 10px;
  }

  .footer-contact-row img {
    display: none;
  }

  .footer__content-wrapper {
    gap: 37px;
  }

  .footer-socials {
    flex-direction: column;
    gap: 20px;
  }
  .footer-copyright {
    gap: 40px;
  }
  .footer-nav-separator {
    display: none;
  }
}

@media (max-width: 375px) {
  .hero__title {
    font-size: 35px !important;
  }

  .product-card img {
    display: none;
  }

  .product-card:hover .product-card__image--hover {
    display: none;
  }
  .product-card__title {
    text-align: center;
    font-size: 27px;
  }
  .product-card__description,
  .product-cards__second-row .product-card__description {
    max-width: 100%;
    text-align: center;
  }
}
