h1,
h2 {
  font-family: "Libre Baskerville", serif;
  margin: 0;
}
h1 {
  font-size: 96px;
  color: #fff;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
h2 {
  color: #e3001b;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 30px;
}
h3 {
  font-family: "Libre Franklin", sans-serif !important;
  color: #000;
  font-size: 24px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: normal !important;
}
p {
  margin: 0;
}
.btn {
  background-color: var(--primary);
  min-height: 52px;
  padding-inline: 16px;
  min-width: 200px;
  color: #fff !important;
  border-radius: 5px;
  transition: transform 0.2s ease-in-out;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 1px 1px 8px 0px rgba(0, 0, 0, 0.25);
}
.btn.green {
  background: #26d360;
  box-shadow: 1px 1px 8px 0px rgba(0, 0, 0, 0.25);
  padding-inline: 11px;
}
.anchor {
  display: block;
  height: 50px;
  margin-top: -50px;
  visibility: hidden;
}
a,
button {
  transition: transform 0.2s ease-in-out;
}
.btn img {
  width: initial;
}
.btn:enabled:hover,
a:hover,
button:enabled:hover {
  transform: scale(1.03);
}
.btn:disabled {
  cursor: default;
  opacity: 0.75;
  box-shadow: none;
}
.btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}
.card {
  background-color: #fff;
  color: #000;
  box-shadow: 2px 2px 9px 0px rgba(0, 0, 0, 0.25);
  border-radius: 5px;
  padding: 32px;
}

.home {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.home .home-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: center;
  height: 100vh;
  flex-direction: column;
  z-index: 1;
}

.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    181.4% 123.54% at 19.79% 6.04%,
    rgba(23, 23, 23, 0) 0%,
    rgba(23, 23, 23, 0.45) 31.73%,
    rgba(23, 23, 23, 0.73) 57.32%
  );
  z-index: -1;
}
.home video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.home .home-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}
.home .home-img img {
  height: 100%;
}
.home .home-description {
  color: #fff;
  font-family: "Libre Baskerville", serif;
  font-size: 50px;
  font-style: italic;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 18px;
}

@media screen and (max-width: 992px) {
  h1 {
    font-size: 64px;
    text-align: center;
    width: 100%;
  }
  h2 {
    font-size: 36px;
  }
  h3 {
    font-size: 18px;
  }
  .home .home-description {
    font-size: 32px;
    text-align: center;
    width: 100%;
  }
  .home .home-content > .btn {
    align-self: center;
    width: 100%;
    max-width: 440px;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 32px;
  }
  h3 {
    font-size: 16px;
    font-weight: 700;
  }
  .home .home-content {
    align-items: center;
  }
  .home .home-description {
    font-size: 20px;
  }
  .btn {
    min-height: 48px;
    min-width: 180px;
  }
}
@media screen and (max-width: 768px) {
  .home .home-content > .btn {
    min-width: auto;
    width: 100%;
    max-width: auto;
  }
}

.about {
  margin-top: 28px;
  margin-bottom: 64px;
}
.about .container {
  display: flex;
  gap: 40px;
  flex-direction: row-reverse;
}
.about .about-profile {
  flex: 1;
  transition: transform 0.5s ease-out;
}
.about .about-profile img {
  border-radius: 15px;
  min-height: 100%;
}
.about .about-content {
  flex: 1;
  padding: 90px 30px;
}
.about .about-name {
  color: #8e8d8d;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-top: 10px;
  margin-bottom: 50px;
}
.about p:not(.about-name) {
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 24px;
}
@media screen and (max-width: 768px) {
  .about {
    margin-block: 0;
  }
  .about .container {
    display: flex;
    flex-direction: column;
    margin-inline: 0;
  }
  .about .about-profile {
    margin-top: 0;
    width: 100vw;
    margin-left: -32px;
    position: relative;
  }
  .about .about-profile::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 35.4%,
      rgba(255, 255, 255, 0.54) 50.9%,
      rgba(255, 255, 255, 0.97) 70.4%,
      #fff 100%
    );
  }
  .about .about-profile img {
    border-radius: 0;
  }
  .about .about-content {
    margin-top: -55%;
    z-index: 1;
    transform: translateY(-10%);
    padding-inline: 0;
  }
}

.services {
  margin-top: -100px;
  position: relative;
  padding-block: 50px;
}
.services .services-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 85px);
  z-index: -1;
  background-image: url(../assets/services.jpeg);
  background-size: cover;
  background-attachment: fixed;
  background-position: top;
  background-repeat: no-repeat;
}
.services .services-bg img {
  object-position: top;
}
.services h2 {
  text-align: center;
}
.services .services-content {
  display: grid;
  grid-gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
.services .services-content img {
  max-height: 80px;
  object-fit: contain;
  width: fit-content;
}
.services h3 {
  margin-block: 15px 10px;
}
.services .card {
  flex: 1 1 0;
}
@media screen and (max-width: 992px) {
  .services .services-content {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .services {
    margin-top: -150px;
  }
  .services h2 {
    text-align: left;
  }
  .services .services-bg {
    display: none;
  }

  .services .services-content {
    grid-template-columns: repeat(1, 1fr);
  }
}

.testimonials {
  padding-block: 50px;
}
.testimonials-img {
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
}
.testimonials-img video {
  width: 100%;
}
.testimonials .testimonials-content {
  display: flex;
  gap: 20px;
}
.testimonials .testimonials-content .card {
  flex: 1;
  position: relative;
  transition: transform 0.2s ease-in-out;
}
.testimonials .testimonials-content .card:hover {
  transform: scale(1.03);
}
.testimonials .testimonials-content .card::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 30px;
  width: 100%;
  height: calc(100% - 60px);
  background-image: url(../assets/quote.svg);
  background-repeat: no-repeat;
  background-position: right;
  background-size: contain;
  z-index: 0;
}
.testimonials .testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 100px;
  position: relative;
  z-index: 1;
}
.testimonials .testimonial-name {
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  padding-block: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.testimonials .testimonial-text {
  position: relative;
  z-index: 1;
}
.testimonials .testimonial-name img {
  width: 22px;
  height: 22px;
}
@media screen and (max-width: 992px) {
  .testimonials .testimonials-content {
    flex-direction: column;
  }
}

.contact {
  padding-block: 150px 50px;
  position: relative;
}
.contact .contact-bg {
  position: absolute;
  top: 40%;
  right: -10%;
  width: 50%;
  z-index: -1;
  transform: rotate(180deg);
}
.contact .contact-card {
  border-radius: 15px;
  box-shadow: 3px 2px 14.6px 0px rgba(0, 0, 0, 0.25);
  display: flex;
  overflow: hidden;
  background-color: #fff;
}
.contact .contact-card > * {
  flex: 1;
  width: 50%;
}
.contact .contact-card > img {
  object-position: left;
}
.contact .contact-content {
  padding: 50px;
}
.contact .contact-content h2 {
  margin-bottom: 64px;
}
.contact .contact-content a {
  color: #000;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  display: flex;
  gap: 16px;
  align-items: center;
}
.contact .contact-content a img {
  width: 35px;
  height: 35px;
}
.contact .contact-red {
  color: var(--primary);
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.contact .contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 132px;
}
.contact .btn {
  width: -webkit-fill-available;
}
.contact .contact-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.contact .contact-social img {
  width: 40px !important;
  height: 40px !important;
}
@media screen and (max-width: 992px) {
  .contact .contact-card {
    flex-direction: column-reverse;
  }
  .contact .contact-card > * {
    width: 100%;
  }
  .contact .contact-content a {
    font-size: 20px;
  }
  .contact .contact-links {
    margin-bottom: 64px;
  }
}
@media screen and (max-width: 768px) {
  .contact .contact-content a {
    font-size: 12px;
    gap: 6px;
  }
  .contact .contact-links {
    margin-bottom: 40px;
  }
  .contact .contact-red {
    font-size: 18px;
  }
  .contact .contact-content a img {
    width: 18px;
    height: 24px;
  }
}

.footer {
  background-color: var(--secondary);
  margin-top: 50px;
  padding-block: 40px;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}
.footer .footer-left {
  display: flex;
  gap: 54px;
  align-items: center;
}
.footer .footer-left > a > img {
  max-height: 116px;
  object-fit: contain;
  width: fit-content;
}
.footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer .footer-links-row {
  display: flex;
  gap: 30px;
}
.footer .footer-link {
  display: flex;
  gap: 24px;
}
.footer .footer-links-item {
  color: rgba(0, 0, 0, 0.5);
  position: relative;
}
.footer .footer-links-item:not(:last-of-type)::after {
  content: "|";
  position: absolute;
  top: 0;
  right: -12px;
}
.footer .footer-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
.footer .footer-back-top {
  width: 24px;
  height: 24px;
}
.footer .footer-srvc {
  display: flex;
  gap: 4px;
  align-items: center;
  text-decoration: underline;
}
@media screen and (max-width: 992px) {
  .footer .container {
    flex-direction: column;
    gap: 16px;
  }
  .footer .footer-left > a > img {
    max-height: 90px;
  }
  .footer .footer-back-top {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .footer .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }
  .footer .footer-left > a {
    align-self: center;
  }
  .footer .footer-links-row {
    flex-direction: column;
    gap: 8px;
  }
  .footer .footer-links {
    gap: 16px;
  }
  .footer .footer-link {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }
  .footer .footer-links-item:not(:last-of-type)::after {
    content: none;
  }
}

.email {
  padding-block: 150px;
}
.email .container {
  display: flex;
  gap: 64px;
  justify-content: space-between;
  align-items: center;
}
.email .email-title {
  flex: 1;
  color: #000;
  font-family: "Libre Baskerville", serif;
  font-size: 48px;
}
.email .email-form {
  flex: 1;
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 10px;
  width: 100%;
}
.email .email-form .btn {
  min-width: auto;
  width: 33%;
}
.email .email-form input {
  width: 100%;
  border: 0;
  color: rgba(0, 0, 0, 0.45);
  font-family: "Libre Franklin";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  border-radius: 5px;
  background-color: #fff;
}
.email .email-form input:focus {
  outline: 2px solid rgba(0, 0, 0, 0.45);
}
.email .btn.loading {
  position: relative;
}
.email .btn.loading::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  top: 50%;
  left: 50%;
  border: 5px solid transparent;
  border-radius: 100%;
  box-shadow: 2px 1px 2px #fff;
  animation: loading-spin 1s infinite linear;
}
@keyframes loading-spin {
  0% {
    transform: translate(-50%, -50%) rotateZ(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotateZ(360deg);
  }
}
.email .email-success,
.email .email-error,
.email.success .email-form,
.email.error .email-form {
  display: none;
}
.email.error .email-error,
.email.success .email-success {
  display: block;
  flex: 1;
  font-size: 24px;
  font-weight: 700;
}
.email-success {
  color: #26d360;
}
.email-error {
  color: var(--primary);
}
@media screen and (max-width: 992px) {
  .email .container {
    flex-direction: column;
  }
}
