/* Variables. */
:root {
  --main-clr: #249170;
  --login-bg: #322653;
  --subheading-bg: #ffe17b;
  --login-btn-bg: #dcd88b;
  --white: #f7f7f7;
  --black: #2c3333;
}

/* Scroll animation. */
.hidden {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-100%);
  transition: all 1s;
}

.show {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

/* Header section. */
.header {
  position: relative;
  background-color: var(--main-clr);
  height: 9.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4.8rem;
  margin: 1.2rem 1.2rem 0 1.2rem;
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
}

.logo {
  height: 2.4rem;
}

.button-mobile-nav {
  border: none;
  background: none;
  cursor: pointer;
  display: none;
}

.icon-mobile-nav {
  width: 4.8rem;
  height: 4.8rem;
  color: var(--white);
}

.icon-mobile-nav[name="close-outline"] {
  display: none;
}

.main-nav-list {
  list-style: none;
  display: flex;
  gap: 4.8rem;
}

.main-nav-link:link,
.main-nav-link:visited {
  display: inline-block;
  text-decoration: none;
  color: var(--white);
  font-size: 1.6rem;
  transition: all 0.3s;
}

.main-nav-link:hover,
.main-nav-link:active {
  color: var(--black);
}

.cta-btn:link,
.cta-btn:visited {
  display: inline-block;
  text-decoration: none;
  color: var(--black);
  font-size: 1.6rem;
  font-weight: 500;
  background-color: var(--white);
  padding: 1.2rem 2.4rem;
  border-radius: 1rem;
  transition: all 0.3s;
}

.cta-btn:hover,
.cta-btn:active {
  background-color: var(--black);
  color: var(--white);
}

/* Hero section. */
.section-hero {
  background-color: var(--main-clr);
  padding: 4.8rem 0 9.6rem 0;
  margin: 0 1.2rem;
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
}

.hero {
  max-width: 130rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 9.6rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.hero-text-box {
  position: relative;
}

@keyframes slideInFromLeft {
  0% {
    filter: blur(5px);
    transform: translateX(-100%);
  }

  100% {
    filter: blur(0);
    transform: translateX(0);
  }
}

.hero-text-box .heading-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/underline.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  top: 8.2rem;
  left: 32rem;
  width: 9.6rem;
  height: 9.6rem;
}

.hero-text-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/arrow.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 12rem;
  height: 12rem;
  top: 27.2rem;
  left: 49.2rem;
}

.hero-text-box .heading-primary {
  color: var(--white);
  margin-bottom: 3.2rem;
}

.hero-description {
  font-size: 2rem;
  line-height: 1.6;
  color: var(--white);
  opacity: 90%;
  margin-bottom: 4.8rem;
}

.hero-buttons {
  display: flex;
  gap: 2.4rem;
}

.hero-button:link,
.hero-button:visited {
  display: inline-block;
  text-decoration: none;
  background-color: var(--white);
  color: var(--black);
  padding: 1.8rem 3.6rem;
  border-radius: 1rem;
  font-size: 1.6rem;
  font-weight: 500;
  transition: all 0.3s;

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

.hero-button:hover,
.hero-button:active {
  background-color: var(--black);
  color: var(--white);
}

.hero-button-icon {
  width: 2.2rem;
  height: 2.2rem;
}

.hero-login-box {
  background: var(--black);
  border-radius: 2rem;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px,
    rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

@keyframes slideInFromBottom {
  0% {
    filter: blur(5px);
    transform: translateY(100%);
  }

  100% {
    filter: blur(0);
    transform: translateY(0);
  }
}

.login-form {
  padding: 6.4rem;
}

.login-form-header {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 4.2rem;
}

.login-form-header h3 {
  font-size: 2.6rem;
  color: var(--white);
}

.login-form-header p {
  font-size: 1.6rem;
  opacity: 75%;
  color: var(--white);
}

.login-form-body {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.login-form-body label {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.4rem;
  color: var(--white);
}

.login-form-body input {
  width: 100%;
  padding: 2.2rem;
  font-size: 1.6rem;
  font-family: inherit;
  color: inherit;
  border: none;
  border-radius: 1rem;
}

.login-form-body button {
  padding: 2.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  border: none;
  border-radius: 1rem;
  background-color: var(--login-btn-bg);
  color: var(--black);
  cursor: pointer;
  transition: all 0.3s;
}

.login-form-body button:hover {
  background-color: var(--subheading-bg);
  color: var(--black);
}

/* Features section. */
.section-features {
  padding: 9.6rem 0;
}

.section-features .heading-secondary {
  color: var(--black);
  margin-bottom: 6.4rem;
}

.section-features .container:last-child {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
}

.feature {
  padding: 3.2rem;
  border-radius: 1.2rem;
  box-shadow: 0 1.2rem 4.8rem rgba(0, 0, 0, 0.1);
  transition: all 0.4s;
}

.feature:hover {
  transform: translateY(-1.2rem);
  box-shadow: 0 2.4rem 6.4rem rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 2.4rem;
  height: 2.4rem;
  padding: 1.6rem;
  border-radius: 0.6rem;
  margin-bottom: 3.2rem;
}

.feature-icon-orange {
  background-color: #fff5e6;
  color: #fcab2d;
}

.feature-icon-green {
  background-color: #e5f8e8;
  color: #38ca42;
}

.feature-icon-purple {
  background-color: #eceefd;
  color: #6176f2;
}

.feature .heading-tertiary {
  margin-bottom: 1.6rem;
}

.feature-description {
  font-size: 1.6rem;
  line-height: 1.5;
  opacity: 60%;
}

/* Intro section. */
.section-introduction {
  padding: 9.6rem 0;
}

.introduction {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 9.6rem;
}

.introduction-text-box {
  color: var(--black);
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.introduction-description {
  font-size: 1.8rem;
  line-height: 1.6;
  opacity: 75%;
}

.introduction-image {
  width: 100%;
}

.section-introduction .introduction:first-child {
  margin-bottom: 16rem;
}

/* Testimonials section. */
.section-testimonials {
  padding: 9.6rem 0;
}

.section-testimonials .heading-secondary {
  color: var(--black);
  margin-bottom: 6.4rem;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2.4rem;
  row-gap: 3.2rem;
}

.testimonial {
  padding: 3.2rem;
  border-radius: 1.2rem;
  box-shadow: 0 1.2rem 4.8rem rgba(0, 0, 0, 0.1);
  transition: all 0.4s;
}

.testimonial:hover {
  transform: translateY(-1.2rem);
  box-shadow: 0 2.4rem 6.4rem rgba(0, 0, 0, 0.1);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.author-image {
  width: 5.6rem;
  height: 5.6rem;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid var(--black);
}

.stars-component {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.author-name {
  font-size: 1.8rem;
  color: var(--black);
}

.star-icon {
  color: #fdbd33;
  width: 1.4rem;
  height: 1.4rem;
}

.testimonial-body {
  margin-top: 1.6rem;
}

.author-comment {
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--black);
}

.published-date {
  font-size: 1.4rem;
  opacity: 60%;
  color: var(--black);
  margin-top: 1.8rem;
}

/* CTA section. */
.section-cta {
  padding: 9.6rem 0 12.8rem 0;
}

.container-cta {
  padding: 0 3.2rem;
}

.section-cta .container {
  max-width: 113.6rem;
  background-color: var(--main-clr);
  padding: 9.6rem 3.2rem;
  border-radius: 2.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.8rem;
}

.cta-text-box {
  grid-column: 1 / span 2;
  text-align: center;
}

.cta-buttons {
  grid-column: 1 / span 2;
  justify-self: center;
  display: flex;
  gap: 3.2rem;
}

.section-cta h2 {
  color: var(--white);
}

/* Footer section. */
.footer {
  background-color: var(--black);
  padding: 12.8rem 0;
  border-top: 1px solid #eee;
}

.footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr;
  column-gap: 6.4rem;
  row-gap: 9.6rem;
}

.logo-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: block;
  margin-bottom: 3.2rem;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 2.4rem;
}

.social-icon {
  color: var(--white);
  width: 2.4rem;
  height: 2.4rem;
  transition: all 0.3s;
}

.social-icon:hover {
  color: #b2b2b2;
}

.copyright {
  color: var(--white);
  opacity: 60%;
  font-size: 1.2rem;
  line-height: 1.4;
  margin-top: auto;
}

.contacts {
  font-style: normal;
  font-size: 1.4rem;
  line-height: 1.4;
  color: #b2b2b2;
}

.address {
  margin-bottom: 2.4rem;
}

.footer-heading {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 3.2rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.footer-link:link,
.footer-link:visited {
  text-decoration: none;
  font-size: 1.4rem;
  color: #b2b2b2;
  transition: all 0.3s;
}

.footer-link:hover,
.footer-link:active {
  color: rgb(230, 230, 230);
}
