:root {
  --clr-primary-900: #03030d;
  --clr-primary-800: #080a26;
  --clr-primary-700: #0d123f;
  --clr-primary-600: #151c65;
  --clr-primary-500: #1a237e;
  --clr-primary-200: #babdd8;
  --clr-primary-100: #e8e9f2;

  --clr-accent-900: #7a1f00;
  --clr-accent-500: #ff5722;
  --clr-accent-400: #ff794e;
  --clr-accent-300: #ff9a7a;
  --clr-bg-500: #f5f5f5;
  --clr-bg-700: #939393;
  --clr-bg-800: #626262;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  transition: background-color 0.3s, border 0.3s;
}
html {
  font-size: 62.5%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
body {
  transition: color 0.3s, background-color 0.3s;
  font-size: 1.6rem;
  display: grid;
  place-items: center;
  background-color: var(--clr-bg-500);
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

*:disabled {
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  hyphens: auto;
}
img {
  display: block;
  max-width: 100%;
}
.container {
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  /* align-items: center; */
}
section {
  width: 100%;
  padding: 0 6rem;
}
.hero {
  background: var(--clr-primary-500);
  color: var(--clr-bg-500);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 10%;
  clip-path: ellipse(100% 55% at 48% 44%);
}
.hero-section {
  display: flex;
  align-items: center;
  /* gap: 3.2rem; */
  justify-content: space-between;
  & > * {
    width: 50%;
  }
}
.hero-sub-heading {
  font-size: 1.8rem;
}
.btn {
  border: none;
  background: none;
  border-radius: 0.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 1rem 2rem;
}
.btn-outline {
  outline: 1px solid var(--clr-accent-500);
  color: var(--clr-accent-500);
  transition: outline 200ms ease, color 200ms ease, background 0.2 ease;
  &:hover {
    background: var(--clr-bg-500);
    color: var(--clr-accent-500);
  }
}
.get-link {
  outline: 1px solid var(--clr-accent-500);
  color: var(--clr-bg-500);
  background-color: var(--clr-accent-500);
  transition: outline 200ms ease, color 200ms ease, background 0.2 ease;
  &:hover {
    background: var(--clr-bg-500);
    color: var(--clr-accent-500);
  }
}
.hero-left-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8rem;
}
.heading-1 {
  font-size: 4rem;
  user-select: none;
}
.highlight {
  display: inline-block;
  font-style: italic;
  color: var(--clr-accent-500);
  transition: transform 300ms ease-in, scale 200ms ease;
  &:hover {
    scale: 1.2;
    transform: translateY(-10%);
  }
}
.hero-top-left-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3.6rem;
}
.hero-bottom-left-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-right-wrapper {
  overflow: hidden;
  display: grid;
  position: relative;
  place-items: center;
  & .hero-img {
    object-fit: cover;
    /* height: 50%; */
    width: 60%;
    border-radius: 2rem;
  }
  &::before {
    /* transform: rotate(45deg); */
    position: absolute;
    content: "";
    background-image: url(assets/pattern.png);
    box-shadow: 0px 0px 20rem 12rem var(--clr-primary-500) inset;
    background-size: cover;
    background-position: center;
    inset: 0;
    z-index: -1;
  }
}
.feature-item {
  width: 100%;
  flex-basis: 20rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  background: var(--clr-primary-600);
  padding: 1rem;
  white-space: nowrap;
  border-radius: 1rem;
  & svg {
    width: 4rem;
    height: 4rem;
  }
}
.text-center {
  text-align: center;
}
.heading-2 {
  font-size: 3.6rem;
}
.heading-3 {
  font-size: 1.8rem;
  font-weight: 500;
}
.how-it-work-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.8rem;
  padding-bottom: 4rem;
  flex-wrap: wrap;
}
.how-it-work-wrapper {
  width: 100%;
  color: var(--clr-primary-900);
  /* display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4rem; */

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 4rem;
}
.short-text {
  max-width: 32ch;
}
.how-it-work-item {
  position: relative;
  min-height: 14rem;
  border: 1px solid var(--clr-primary-500);
  padding: 0.8rem 2rem;
  border-radius: 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  & svg {
    fill: var(--clr-primary-500);
    height: 4rem;
    width: 4rem;
  }
  &:nth-of-type(1):after {
    color: var(--clr-primary-500);
    content: "1";
    position: absolute;
    top: -1rem;
    left: 2rem;
    /* padding: 2rem; */
    font-size: 5rem;
    opacity: 0.2;
    font-weight: 700;
    /* background: red; */
  }
  &:nth-of-type(2):after {
    color: var(--clr-primary-500);
    content: "2";
    position: absolute;
    top: -1rem;
    left: 2rem;
    /* padding: 2rem; */
    font-size: 5rem;
    opacity: 0.2;
    font-weight: 700;
    /* background: red; */
  }
  &:nth-of-type(3):after {
    color: var(--clr-primary-500);
    content: "3";
    position: absolute;
    top: -1rem;
    left: 2rem;
    /* padding: 2rem; */
    font-size: 5rem;
    opacity: 0.2;
    font-weight: 700;
    /* background: red; */
  }
  &:nth-of-type(4):after {
    color: var(--clr-primary-500);
    content: "4";
    position: absolute;
    top: -1rem;
    left: 2rem;
    /* padding: 2rem; */
    font-size: 5rem;
    opacity: 0.2;
    font-weight: 700;
    /* background: red; */
  }
}
.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.8rem;
  padding-bottom: 4rem;
}
.testi-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6rem;
}
.testi-row {
  box-shadow: 1rem 0 5rem 1rem #ddd;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border-radius: 0.4rem;
  border: 1px solid var(--clr-primary-500);
  & img {
    width: 18rem;
    object-fit: cover;
    border-radius: 50%;
  }
}
.testi-text {
  max-width: 56ch;
  font-weight: 700;
  color: var(--clr-bg-800);
}
.about-us {
  padding: 0;
}
.about-us-card {
  position: relative;
  & img {
    filter: brightness(80%);
  }
}
.overlay {
  color: var(--clr-bg-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: flex-start;
  gap: 4rem;
  padding-bottom: 2rem;
  text-align: center;
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
  height: 40%;
  background: rgba(168, 56, 22, 0.4);
  clip-path: url(#myCurve);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(6.9px);
  /* border: 1px solid rgba(106, 106, 106, 0.32); */
}
/* .about-us-desc {
  position: absolute;
  top: 0;
  background-color: blue;
} */
header {
  position: relative;
  border-bottom: 1px solid #555555;
  padding: 0.8rem 0 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  & #checkbox,
  & label {
    display: none;
  }
  & label {
    z-index: 5;
  }

  & nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.8rem;

    & a {
      border-radius: 0.4rem;
      padding: 0 1.2rem;
      &:hover {
        background: var(--clr-primary-600);
        text-decoration: underline;
        font-style: italic;
      }
    }
  }
}
.big-font {
  font-size: 6.4rem !important;
  letter-spacing: 2px;
}
.about-us-desc {
  font-size: 2.4rem !important;
}
.about-text-highlight {
  color: var(--clr-accent-500);
  font-weight: 700;
}
.badge {
  margin-top: 2rem;
  background-color: var(--clr-accent-500);
  color: var(--clr-bg-500);
  font-weight: 700;
  border-radius: 0.4rem;
  padding: 0.4rem 2rem;
}
.cta-section {
  margin-top: 4rem;
  display: grid;
  place-items: center;
}
.cta-wrapper {
  position: relative;
  padding: 4rem;
  max-width: 120rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 0.4rem;
  align-items: center;
  justify-items: center;
  /* justify-content: center; */
  overflow: hidden;
  overflow: hiddne;
  gap: 4rem;
  color: var(--clr-bg-500);
  background-color: var(--clr-accent-900);
  box-shadow: 1rem 1rem #3f281f;
  & img {
    width: 80%;
    border-radius: 0.8rem;
    object-fit: cover;
  }
}
/* border-left: 2px solid#3f281f; */
.contact-form {
  width: 100%;
  align-self: start;
  position: relative;
  & form {
    width: 100%;
    margin-top: 4rem;
    display: flex;
    /* align-items: flex-start; */
    justify-content: center;
    gap: 4rem;
    flex-direction: column;
  }
  /* &::after {
    position: absolute;
    content: "";
    width: 0.4rem;
    height: 100vh;
    top: -10rem;
    right: 0;
    background-color: #3f281f;
  } */
}
.divider {
  position: absolute;
  content: "";
  width: 0.4rem;
  height: 100rem;
  top: -10rem;
  right: 50%;
  background-color: #3f281f;
}
.form-row {
  display: grid;
  width: 80%;
  grid-template-columns: 1fr 1fr 1fr;
  /* gap: 2rem; */
  & input {
    appearance: none;
    border: none;
    outline: none;
    padding: 0.4rem 1rem;
    border-radius: 0.4rem;
    color: var(--clr-primary-700);
    grid-column: 2/-1;
  }
}
.submit-btn {
  align-self: start;
  border: 1px solid var(--clr-bg-500);
  &:hover {
    background: var(--clr-bg-500);
    color: #3f281f;
  }
}
footer {
  margin-top: 6.4rem;
  color: var(--clr-bg-500);
  background: var(--clr-primary-500);
  display: grid;
  padding: 1rem 6rem;
  grid-template-columns: repeat(3, 1fr);
}
.footer-left,
.footer-middle,
.footer-right,
.social-wrapper,
.footer-nav-wrapper,
.footer-nav-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
}
.footer-sub-heading {
  font-weight: 700;
}
@media only screen and (max-width: 68em) {
  html {
    font-size: 50%;
  }
  .overlay {
    gap: 1rem;
  }
}
@media only screen and (max-width: 50.75em) {
  header {
    flex-direction: row-reverse;
    & label {
      display: initial;
    }
    & nav {
      transition: transform 0.4s ease;
      transform: translateY(-100%);
      display: none;
    }
    &:has(#checkbox:checked) nav {
      position: absolute;
      top: 0;
      right: 0;
      flex-direction: column;
      display: flex;
      background-color: var(--clr-primary-600);
      padding: 1rem 4rem 1rem 2rem;
      align-items: flex-start;
      transform: translateY(0);
      & a {
        transition: transform 0.4s ease;
        &:first-of-type {
          margin-top: 4rem;
        }
        &:hover {
          transform: translateX(-2rem);
        }
      }
    }
  }
  .overlay {
    padding: 0.2rem 2rem;
    height: 100%;
    justify-content: center;
    top: 0;
    clip-path: unset;
    gap: 0.4rem;
  }
  .big-font {
    font-size: 5rem !important;
  }
  .about-us-desc {
    font-size: 1.6rem;
  }
  .hero-section {
    flex-direction: column;
    gap: 4rem;
    & > * {
      width: 100%;
    }
  }
  .hero-top-left-wrapper {
    align-items: center;
  }
  .hero-bottom-left-wrapper {
    justify-content: center;
  }
}
@media only screen and (max-width: 40em) {
  section {
    padding: 0 1rem;
  }
  .testi-wrapper,
  .how-it-work-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .form-row {
    width: 100%;
  }
  .cta-wrapper {
    padding: 2rem;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr min-content;
    height: 100%;
    & img {
      width: 100%;
      height: 50%;
    }
  }
  .divider {
    display: none;
  }
  .heading-1 {
    text-align: center;
  }
}
@media only screen and (max-width: 31.5em) {
  .how-it-work-wrapper {
    grid-template-columns: 1fr;
  }
  .feature-item {
    flex-basis: 100%;
  }
  footer {
    width: 100%;
    padding: 1rem;
  }
}
