* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  font-family: "barge";
  background-color: #f1f9ed;
}

.hero-container {
  background-image: url("pics/pyrenees.bg.jpeg");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header {
  position: relative;
  width: 100%;
  padding: 1.5rem 2rem;
  box-sizing: border-box;
}

.heading {
  color: #fff;
  font-size: 7rem;
  margin: 0;
  text-align: center;
}

.nav-instagram {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 2rem;
  text-decoration: none;
  z-index: 10;
}

.logo {
  max-width: 50%;
  height: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

h2 {
  font-family: "neue-haas-grotesk-text", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.nav-instagram {
  text-decoration: none;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
  align-self: flex-start;
}

.nav {
  align-self: flex-start;
  width: max-content;
}

.nav-instagram svg {
  width: 4rem;
  height: 4rem;
}

.nav-instagram svg path {
  fill: #ffffff;
  transition: fill 0.2s ease;
}

.nav-instagram:hover svg path {
  fill: #677877;
}

/*****LOMAKE******/

.form-container {
  background-color: rgba(255, 255, 255, 0.503);
  border: 3px solid #0000008a;
  padding: 2.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 500px;
  margin: 8rem auto 2rem auto;
  text-align: center;
}

.form-container h2 {
  font-family: "neue-haas-grotesk-text", sans-serif;
  font-weight: 700;
  font-style: normal;
  margin-top: 0;
  font-size: 2rem;
  color: #333;
}

.join-1 {
  font-family: "neue-haas-grotesk-text", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: #333;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.join-2 {
  font-family: "neue-haas-grotesk-text", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #333;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.newsletter-form input[type="email"] {
  text-align: center;
  padding: 0.8rem 1rem;
  border: 2px solid #17201f;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
}

.newsletter-form input[type="email"]::placeholder {
  color: #17201f;
  font-size: 1.2rem;
  opacity: 1;
}

.newsletter-form button {
  background-color: #677877;
  color: #17201f;
  border: 2px solid #17201f;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.newsletter-form button:hover {
  background-color: #17201f;
  color: #fff;
  transform: scale(1.2);
}

.thanks,
.success {
  font-family: "neue-haas-grotesk-text", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: #333;
  font-size: 2rem;
}

/*******MEDIA*******/

@media (max-width: 1328px) {
  .heading {
    font-size: 6rem;
  }
}

@media (max-width: 1146px) {
  .header {
    padding: 2.5rem;
  }
}

@media (max-width: 965px) {
  .heading {
    font-size: 5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .form-container {
    width: 70%;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 2rem;
  }

  .heading {
    font-size: 4rem;
  }

  .nav-instagram {
    padding-right: 1rem;
  }
  .nav-instagram svg {
    width: 3rem;
    height: 3rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .form-container {
    width: 70%;
    padding: 1.5rem 1.2rem;
    margin: 5rem auto 2rem auto;
  }

  .join-1 {
    font-size: 1.6rem;
  }

  .join-2 {
    font-size: 1.4rem;
  }

  .newsletter-form {
    gap: 0.7rem;
    max-width: 100%;
  }

  .newsletter-form input[type="email"] {
    width: 100%;
    max-width: 250px;
    box-sizing: border-box;
  }

  .newsletter-form button {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 585px) {
  .hero-container {
    background-image: url("pics/pyrenees.bg.mb.try.jpg");
    background-size: cover;
    background-position: center;
    min-height: 100vh;
  }

  .heading {
    font-size: 3rem;
  }

  h2 {
    font-size: 1rem;
  }

  .nav-instagram svg {
    width: 2rem;
    height: 2rem;
  }

  .logo {
    max-width: 60%;
    height: auto;
    margin-top: 1rem;
  }

  .join-1 {
    font-size: 1.4rem;
  }

  .join-2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 445px) {
  .nav-instagram svg {
    width: 2rem;
    height: 2rem;
  }

  .join-1 {
    font-size: 1.5rem;
  }

  .join-2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 350px) {
  .heading {
    font-size: 3rem;
  }

  .form-container {
    width: 70%;
    padding: 1.5rem 1.2rem;
    margin: 3rem auto 2rem auto;
  }

  .join-1 {
    font-size: 1.2rem;
  }

  .join-2 {
    font-size: 1.1rem;
  }
}
