@import url("https://fonts.cdnfonts.com/css/general-sans");

:root {
  --dark-blue: #0d3041;
  --dark-blue-rgb: 13, 48, 65;
  --light-blue: #3d6a83;
  --white: #eef1f1;
  --dark-white: #e5e4de;
  --gray: #f2f2f2;
  --light-gray: #fafafa;
  --green: rgba(129, 255, 56, 0.781);
  --green-light: rgba(129, 255, 56, 0.932);
  --green-rgb: 129, 255, 56;
}

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

html {
  font-size: 62.5%;
  font-family: "General Sans", sans-serif;
  scroll-behavior: smooth;
}

.container {
  width: 114rem;
  margin: 0 auto;
}

/* ============= */
/* NAVIGATION */
/* ============= */

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav img {
  height: 10rem;
  transition: 0.3s;
}

.nav img:hover {
  transform: rotate(1.05deg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  font-size: 1.6rem;
}

.nav-list_link a:link,
.nav-list_link a:visited {
  text-decoration: none;
  color: var(--light-blue);
  font-weight: 500;
  transition: 0.3s;
}

.nav-list_link a:hover,
.nav-list_link a:active {
  color: var(--dark-blue);
}

/* ============= */
/* MAIN */
/* ============= */

.main {
  margin-top: 10rem;
  padding: 5rem 0;
  position: relative;

  display: grid;
  grid-template-columns: 3fr 1fr;
  align-items: center;
}

.main * {
  z-index: 1;
  position: relative;
}

.main img {
  height: 30rem;
  overflow: hidden;
  border-radius: 100%;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
}

.main::before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  max-width: 114rem;
  background: linear-gradient(
    to left,
    var(--dark-blue) 20%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0.2;
  filter: blur(60px);
  z-index: 0;
}
.header-text {
  padding-right: 10rem;
}

.header-text_title {
  font-size: 2.8rem;
  color: var(--dark-blue);
  margin-bottom: 2rem;
  font-weight: 600;
}

.header-text_subtitle {
  font-size: 1.8rem;
  margin-bottom: 4rem;
  font-weight: 400;
}

.header-text_buttons {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.header-text_button:link,
.header-text_button:visited {
  font-size: 1.6rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 400;
  transition: 0.3s;
}

.header-text_button-primary {
  background-color: var(--dark-blue);
  color: var(--gray);
  padding: 1rem 1.6rem;

  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-text_button-primary span {
  margin-top: -2px;
  transition: 0.3s ease;
}

.header-text_button-primary:hover {
  background-color: var(--light-blue);
}

.header-text_button-primary:hover span {
  transform: translateX(5px);
}

.header-text_button_secondary {
  color: var(--dark-blue);
}

.header-text_button_secondary:hover {
  color: var(--light-blue);
}

/* ============= */
/* ABOUT */
/* ============= */

.about {
  margin-top: 20rem;
  margin-bottom: 20rem;

  background: linear-gradient(
    to left,
    var(--light-blue) 20%,
    var(--dark-blue) 100%
  );
  padding: 5rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(var(--dark-blue-rgb), 0.2);
}

.about .section-title {
  display: flex;
  align-items: center;
  font-size: 2.4rem;
  color: var(--gray);
  margin-bottom: 3rem;
}

.about .section-title svg {
  width: 4rem;
  height: 4rem;
  margin-right: 1rem;
}

.about .about-text {
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--gray);
}

/* ============= */
/* OFFERS */
/* ============= */

.offers {
  margin-top: 20rem;
  margin-bottom: 20rem;
}

.offers .section-title {
  text-align: center;
  font-size: 2.4rem;
  color: var(--dark-blue);
}

.offers-cards {
  display: flex;
  justify-content: space-between;
  margin-top: 5rem;
  gap: 6rem;
}

.offer-card {
  border-radius: 1rem;
  padding: 2rem;
}

.offer-card svg {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
}

.offer-card:nth-child(-n + 2) {
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(var(--dark-blue-rgb), 0.2);
  padding: 2rem;
  transition: 0.3s ease;
}

.offer-card:nth-child(-n + 2):hover {
  box-shadow: 0 0 10px rgba(var(--dark-blue-rgb), 0.3);
  transform: scale(1.02);
}

.offer-card .offer-title {
  font-size: 1.8rem;
  color: var(--dark-blue);
  margin-bottom: 1rem;
  text-align: center;
}

.offer-card .offer-list {
  font-size: 1.6rem;
  line-height: 1.6;
  padding-left: 2rem;
}

.offer-card .offer-list li {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.offer-card.why-us {
  background-color: var(--green);
  transition: 0.6s ease;
}

.offer-card.why-us:hover {
  background-color: var(--green-light);
  box-shadow: 0 0 6px rgba(var(--green-rgb), 0.7);
}

/* ============= */
/* CONTACT */
/* ============= */

.contact {
  margin-top: 20rem;
  margin-bottom: 20rem;

  display: grid;
  grid-template-columns: 1fr 1fr;

  border: 2px solid var(--light-gray);
  box-shadow: 0 0 10px rgba(var(--dark-blue-rgb), 0.1);
  border-radius: 2rem;
  overflow: hidden;

  position: relative;
  height: 60rem;
}

.contact-title {
  position: absolute;
  opacity: 0.02;
  font-size: 6rem;
  font-weight: 700;
  letter-spacing: 10px;
  margin-left: 2rem;
  margin-top: 0.5rem;
}

.contact input,
.contact textarea,
.contact input::placeholder,
.contact textarea::placeholder {
  font-family: inherit;
  font-size: 1.6rem;
  background: none;
  outline: none;
  border: none;
}

.contact textarea {
  resize: none;
}

.contact textarea::-webkit-scrollbar {
  width: 1rem;
}

.contact textarea::-webkit-scrollbar-track {
  background: var(--gray);
  border-radius: 0.2rem;
}

.contact textarea::-webkit-scrollbar-thumb {
  background-color: var(--dark-blue);
  border-radius: 12px;
  border: 3px solid var(--gray);
}

.contact input,
.contact textarea {
  background-color: var(--light-gray);
  padding: 0.6rem 1rem;
  border-radius: 4px;
}

.contact .contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem;
  width: 100%;
}

.contact-form_inputs {
  display: flex;
  flex-direction: column;
}

.contact-form_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-form_input {
  display: flex;
  flex-direction: column;
}

.contact-form_label {
  margin-left: 0.3rem;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.contact-image {
  position: relative;
  max-height: 60rem;
}

.contact-image img {
  width: 100%;
  position: absolute;
  z-index: 0;
  filter: brightness(20%);
}

.contact-info {
  position: relative;
  color: white;

  display: flex;
  flex-direction: column;
  margin-top: 15.5rem;
  margin-left: 5rem;
  gap: 3rem;

  height: 100%;
}

.contact-info_title {
  font-size: 2.4rem;
  font-weight: 400;
}

.contact-info_options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info_option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.6rem;
  font-weight: 100;
}

.contact-info_option svg {
  width: 2rem;
  height: 2rem;
}

.contact-form_button {
  color: black !important;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 400;
  margin-top: 3rem;
  border: 1px solid var(--gray);
  border-radius: 2px;
  padding: 0.3rem;

  transition: 0.3s ease;

  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.contact-form_button:focus,
.contact-form_button:active {
  background-color: transparent;
  color: black !important;
  outline: none;
}

.contact-form_button svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: 0.3s ease;
  color: black !important;
}

.contact-form_button:hover {
  background-color: var(--dark-blue);
  color: var(--gray);
  cursor: pointer;
}

.contact-form_button:hover svg {
  transform: translateX(5px);
}

.error {
  color: #ff4d4f;
  font-size: 1.2rem;
  margin-top: 0.3rem;
  display: block;
}

#form-status {
  margin-top: 2rem;
  font-size: 1.4rem;
  text-align: center;
  transition: opacity 0.5s ease;
}
#form-status.success {
  color: #4caf50;
}
#form-status.error {
  color: #ff4d4f;
}

#form-status.fade-out {
  opacity: 0;
}

/* ============= */
/* FOOTER */
/* ============= */

.footer {
  background-color: var(--dark-blue);
  padding: 2rem 0;
  text-align: center;
  color: var(--gray);
  font-size: 1.4rem;
}

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

.footer .footer-image img {
  width: 5rem;
}

.footer-text {
  text-align: left;
  font-size: 1.4rem;
  font-weight: 400;
}

.footer-text strong {
  font-weight: 400;
}

.footer-text svg {
  width: 1rem;
  height: 1rem;
}

/* 1190px */
@media only screen and (max-width: 75em) {
  .container {
    width: 90%;
  }

  .main {
    margin-top: 1rem;
    padding: 5rem 0;
    position: relative;

    display: flex;
    flex-direction: column;
  }

  .main img {
    display: none;
  }
}

/* 1080px */
@media only screen and (max-width: 67.5em) {
  .contact {
    display: flex;
    flex-direction: column;

    height: 90rem;
  }

  .contact-form {
    margin-top: 10rem;
  }

  .contact-info {
    margin-top: none;
    margin-left: 1.2rem;
    justify-content: center;
    align-items: left;
    padding: 0;
    height: auto;
  }
}

/* 1000px */
@media only screen and (max-width: 62.5em) {
  .offers-cards {
    display: flex;
    flex-direction: column;
    margin-top: 5rem;
    gap: 6rem;
  }
}

/* 650px */
@media only screen and (max-width: 40.625em) {
  .nav img {
    margin-top: 0.2rem;
    height: 5rem;
  }

  .contact-form_row {
    display: flex;
    flex-direction: column;
  }

  .contact-form_input {
    width: 100%;
  }

  .contact .contact-form {
    padding: 1rem;
  }

  .contact-title {
    font-size: 4rem;
  }
}
