@import url("./defaults.css");
@import url("./typography.css");
@import url("./form.css");

/* Hero */
#hero {
  position: relative;
  width: 100%;
  display: flex;
  overflow: hidden;
  height: calc(100dvh - 64px);
  justify-content: flex-start;
  align-items: flex-end;
}

#hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

#hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(25, 43, 55, 0) 0%,
    var(--color-primary-dark) 107.66%
  );
  z-index: -1;
}

#hero-content {
  color: var(--color-primary-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 40px;
  z-index: 1;
}

#hero-content h1 {
  font-size: 2.5rem;
  line-height: 120%;
  font-weight: 600;
}
/* Contact us section */
#contact-us-section {
  background-color: var(--color-primary-light);
  padding-top: 56px;
  padding-bottom: 56px;
}

#contact-us-wrapper {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

#contact-us-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--color-primary-dark);
}

#contact-us-text p:not(#contact-us-body) {
  font-weight: bold;
}

#contact-us-text #contact-us-title svg {
  width: 40px;
  height: 29px;
}

.follow-text {
  font-weight: 600;
}

#follow-icons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.follow-button {
  border: 2px solid var(--color-primary-dark);
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  width: 48px;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.follow-button:hover {
  background-color: var(--color-bg-secondary);
}

.follow-button:focus {
  outline: 4px solid var(--color-bg-tertiary);
}

.follow-button:active {
  background-color: var(--color-primary-dark);
  color: var(--color-primary-light);
  outline: none;
}

.follow-button:active path {
  fill: var(--color-primary-light);
}

/* Tablet */
@media (min-width: 768px) {
  .follow-text {
    font-size: 1.25rem;
  }

  /* Hero */
  #hero-content {
    gap: 32px;
  }

  /* Contact us section */
  #contact-us-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  /* Contact us text */
  #contact-us-text {
    gap: 32px;
  }
  #contact-us-body {
    font-size: 1.536rem;
  }
  #contact-us-text #contact-us-title svg {
    width: 80px;
    height: 58px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  /* Spacing */
  .dava-padding {
    padding: 0 40px;
  }

  /* Hero */
  #hero {
    height: 640px;
    max-height: 640px;
  }

  #hero-content p {
    font-size: 1.889rem;
  }

  #hero-content h1 {
    font-size: 3.375rem;
  }

  #hero-content h1,
  #hero-content p {
    max-width: 864px;
  }

  /* Contact us */
  #contact-us-section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  #contact-us-wrapper {
    flex-direction: row;
    box-sizing: border-box;
  }
  #contact-us-form,
  #contact-us-text {
    width: calc(50% - 20px);
    height: 100%;
  }
}

/* Desktop XL */
@media (min-width: 1024px) {
  #hero {
    justify-content: center;
  }
}
