/* Hero section */

.hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
  width: calc(100% - 4rem);
  margin-left: auto;
  margin-right: auto;
  background-color: var(--section-grey);
  border-radius: 1rem;
  padding-bottom: 16rem;
  overflow: hidden;
}

@media not all and (min-width: 640px) {
  .hero{
    padding: 2rem;
    padding-bottom: 16rem;
  }

  .hero h1{
    font-size: var(--font-m);
    width: 100%;
  }
}

.hero-text {
  /* width: 20rem; */
}

.cta-container {
  grid-template-columns: 1fr 1fr;
  width: 13rem;
}

.cta-container .cta,
.cta-container .cta-2 {
  width: 100%;
}

.hero .relative {
  z-index: 1;
}

.hero img {
  position: absolute;
  bottom: 0;
  height: initial;
  width: 25rem;
  z-index: 0;
}

@media not all and (min-width: 400px) {
  .hero{
    display: grid;
    grid-template-rows: auto auto;
    padding-bottom: 50vw;
  }
  .hero .hero-text {
    width: 100%;
  }
  .hero .hero-text p{
    width: 100%;  
  }
  .hero img {
    width: 160vw;
  }
}

/* @media not all and (min-width: 360px) {
  .hero{
    padding-bottom: 50vw;
  }
} */

.services {
  background-color: var(--section-grey);
  padding: 2rem;
}

.services-container {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 7.5rem 7.5rem 7.5rem;
  width: 85%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

@media not all and (min-width: 900px) {
  .services-container {
    width: calc(100% - 4rem);
  }
  .services {
    padding-left: 0;
    padding-right: 0;
  }
}

.services-container div {
  background-color: var(--white);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.services h2{
  width: 40ch;
}

@media not all and (min-width: 500px) {
  .services h2{
    width: calc(100% - 4rem);
  }
}

.services-container div p {
  font-size: 0.65rem;
  opacity: 0.75;
  margin-bottom: auto;
}

.services-container div p b {
  font-size: 0.65rem;
  opacity: 0.75;
}

.services div a {
  font-size: 0.55rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.services-container div:nth-child(2),
.services-container div:nth-child(8) {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.services-container div:nth-child(4),
.services-container div:nth-child(6) {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-container div:nth-child(5) {
  border: 1px solid var(--border);
}

.services-container div:nth-child(10) {
  display: none;
}

@media not all and (min-width: 700px) {
  .services-container {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 8.5rem;
  }
  .services-container div:nth-child(2),
  .services-container div:nth-child(8) {
    border-left: 0px solid var(--border);
    border-right: 0px solid var(--border);
  }
  .services-container div:nth-child(4),
  .services-container div:nth-child(3) {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .services-container div:nth-child(5),
  .services-container div:nth-child(6) {
    border-top: 0px solid var(--border);
  }

  .services-container div:nth-child(1) {
    border-right: 1px solid var(--border);
  }
  .services-container div:nth-child(3) {
    border-right: 1px solid var(--border);
  }
  .services-container div:nth-child(7),
  .services-container div:nth-child(8) {
    border-bottom: 1px solid var(--border);
  }
  .services-container div:nth-child(7) {
    border-right: 1px solid var(--border);
  }
  .services-container div:nth-child(9) {
    border-right: 1px solid var(--border);
  }
  .services-container div:nth-child(10) {
    display: flex;
  }
}

@media not all and (min-width: 500px) {
  .services-container {
    grid-template-columns: 1fr;
    grid-auto-rows: 8rem;
  }
  .services-container div:nth-child(1),
  .services-container div:nth-child(2),
  .services-container div:nth-child(9) {
    border-bottom: 1px solid var(--border);
  }
  .services-container div:nth-child(2),
  .services-container div:nth-child(8) {
    border-left: 0px solid var(--border);
    border-right: 0px solid var(--border);
  }
  .services-container div:nth-child(4),
  .services-container div:nth-child(3) {
    border-top: 0px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .services-container div:nth-child(5){
    border-right: 0px solid var(--border);
    border-left: 0px solid var(--border);
  }
  .services-container div:nth-child(5),
  .services-container div:nth-child(6) {
    border-top: 0px solid var(--border);
  }

  .services-container div:nth-child(1) {
    border-right: 0px solid var(--border);
  }
  .services-container div:nth-child(3) {
    border-right: 0px solid var(--border);
  }
  .services-container div:nth-child(7),
  .services-container div:nth-child(8) {
    border-bottom: 1px solid var(--border);
  }
  .services-container div:nth-child(7) {
    border-right: 0px solid var(--border);
  }
  .services-container div:nth-child(9) {
    border-right: 0px solid var(--border);
  }
  .services-container div:nth-child(10) {
    display: flex;
  }
}

@media not all and (min-width: 300px) {
  .services-container {
    grid-auto-rows: auto;
    display: flex;
    flex-direction: column;
  }}

.clients img {
  height: 2.5rem;
  filter: grayscale(100%);
  margin: auto;
}

@media not all and (min-width: 500px) {
  .clients img {
    height: 1.5rem;
  }
}

.clients img:nth-child(3) {
  height: 2.2rem;
}

@media not all and (min-width: 500px) {
  .clients{
    padding: 1rem;
  }
  .clients img {
    height: 1.5rem;
  }
  .clients img:nth-child(3) {
    height: 1.2rem;
  }
}


.why-choose-kaso {
  background-color: var(--section-grey);
  width: calc(100% - 4rem);
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
}

.why-choose-kaso .grid {
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 1rem;
}

@media not all and (min-width: 640px) {
  .why-choose-kaso{
    padding: 1rem;
  }
  .why-choose-kaso .grid{
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

.why-choose-kaso .grid div {
  background-color: var(--white);
  gap: 0.25rem;
  padding: 1rem;
  border-radius: var(--radius);
}

.why-choose-kaso .grid div p {
  font-size: 0.65rem;
  opacity: 0.75;
}

.why-choose-kaso .grid div h2 {
  font-weight: bold;
}

.subscribe {
  width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

@media not all and (min-width: 640px) {
  .subscribe {
    width: calc(100% - 4rem);
  }
}



.subscribe .grid {
  grid-template-columns: 1fr auto;
}

@media not all and (min-width: 360px) {
  .subscribe .grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .subscribe .grid .cta{
    width: 100%;
  }
}