/*======== RESET ========*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
  height: auto;
}

/*========  VARIABLES  ========*/
:root {
  --header-height: 4.5rem;

  /* colors */
  --hue: 159;
  /* HSL color mode */
  --base-color: hsl(var(--hue) 36% 57%);
  --base-color-second: hsl(var(--hue) 65% 88%);
  --base-color-alt: hsl(var(--hue) 57% 53%);
  --title-color: hsl(var(--hue) 41% 10%);
  --text-color: hsl(0 0% 46%);
  --text-color-light: hsl(0 0% 98%);
  --body-color: hsl(0 0% 98%);

  --subtitle-font-size: 1rem;

  --title-font: 'Poppins', sans-serif;
  --body-font: 'DM Sans', sans-serif;
}

/*========  BASE ======== */
html {
  scroll-behavior: smooth;
}

body {
  font: 400 1rem 'DM Sans', sans-serif;
  color: var(--text-color);
  background: var(--body-color);
  -webkit-font-smoothing: antialiased;
}

.title {
  font: 700 1.875rem 'Poppins', sans-serif;
  color: var(--title-color);
  -webkit-font-smoothing: auto;
}

.button {
  background-color: var(--base-color);
  color: var(--text-color-light);
  height: 3.5rem;
  /* display: inline-flex; */
  /* align-items: center; */
  padding: 0 2rem;
  border-radius: 0.25rem;
  font: 500 1rem 'DM Sans', sans-serif;
  transition: background 0.3s;
}

.button:hover {
  background: var(--base-color-alt);
}

.divider-1 {
  height: 1px;
  background: linear-gradient(
    270deg,
    hsla(var(--hue), 36%, 57%, 1),
    hsla(var(--hue), 65%, 88%, 0.34)
  );
}

.divider-2 {
  height: 1px;
  background: linear-gradient(
    270deg,
    hsla(var(--hue), 65%, 88%, 0.34),
    hsla(var(--hue), 36%, 57%, 1)
  );
}

/*========  LAYOUT ======== */
.container {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.section {
  padding: 5rem 0;
}

.section .title {
  margin-bottom: 1rem;
}

.section .subtitle{
  font-size: var(--subtitle-font-size);
}

.section header {
  margin-bottom: 4rem;
}

.section header strong {
  color: var(--base-color);
}

#header {
  border-bottom: 1px solid #e4e4e4;
  margin-bottom: 2rem;
  display: flex;

  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: var(--body-color);
  width: 100%;
}

#header.scroll {
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.15);
}

main {
  margin-top: calc(var(--header-height) + 2rem);
}

/*========  LOGO ========*/
.logo {
  font: 700 1.31rem 'Poppins', sans-serif;
  color: var(--title-color);
}

.logo span {
  color: var(--base-color);
}

/*========  NAVIGATION ========*/
nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

nav ul li {
  text-align: center;
}

nav ul li a {
  transition: color 0.2s;
  position: relative;
}

nav ul li a:hover {
  color: var(--base-color);
}

nav ul li a::after {
  content: '';
  width: 0%;
  height: 2px;
  background: var(--base-color);

  position: absolute;
  left: 0;
  bottom: -1.5rem;

  transition: width 0.2s;
}

nav ul li a:hover::after {
  width: 100%;
}

nav .menu {
  opacity: 0;
  visibility: hidden;
  top: -20rem;
  transition: 0.2s;
}

nav .menu ul {
  display: none;
}

/* Mostrar menu */
nav.show .menu {
  opacity: 1;
  visibility: visible;

  background: var(--body-color);

  height: 100vh;
  width: 100vw;

  position: fixed;
  top: 0;
  left: 0;

  display: grid;
  place-content: center;
}

nav.show .menu ul {
  display: grid;
}

nav.show ul.grid {
  gap: 4rem;
}

/* toggle menu */
.toggle {
  color: var(--base-color);
  font-size: 1.2rem;
  cursor: pointer;
}

nav .close {
  visibility: hidden;
  opacity: 0;

  position: absolute;
  top: -1.5rem;
  right: 1.5rem;

  transition: 0.2s;
}

nav.show div.close {
  visibility: visible;
  opacity: 1;
  top: 1.5rem;
}

/*======== HOME ========*/
#home {
  overflow: hidden;
}

#home .container {
  margin: 0;
}

#home{
  padding: 0 0 3rem;
}

#home .text {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  text-align: center;
}

#home .text h1 {
  margin-bottom: 1rem;
}

#home .text p {
  margin-bottom: 2rem;
}

#home .button{
  display: inline-flex;
  align-items: center;
}

/*======== ABOUT ========*/
#about {
  background: white;
}

#about .container {
  margin: 0;
}


#about .text {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

/*========  SERVICES ========*/
#services{
  margin-top: -2rem;
}

#services header p{
  margin-bottom: 2rem;
}

#services .cards.grid {
  gap: 1.5rem;
}

#services .cards {
  padding: 3.625rem 2rem;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 0.25rem solid var(--base-color);
  border-radius: 0.25rem 0.25rem 0 0;
  text-align: center;
}

#services .cards .image-card {
  margin-bottom: 1.5rem;
  width: auto;
}

#services .cards .title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}



/*========  TESTIMONIALS ========*/
#teams{
  background: #ffffff;
}

#teams .container{
  margin-left: auto;
  margin-right: auto;
}

#teams header{
  margin-bottom: 0;
  /* margin-left: 1.5rem;
  margin-right: 1.5rem; */
}

#teams blockquote{
  padding: 2rem;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
  border-radius: 0.25rem;
}

#teams blockquote p{
  position: relative;
  text-indent: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--title-color);
}

#teams blockquote p span{
  font: 700 2rem serif;
  color: var(--base-color);

  position: absolute;
  top: -0.2rem;
  left: -1.3rem
}

#teams cite{
  display: flex;
  align-items: center;
  font-style: normal;
  color: var(--text-color);
}

#teams cite img{
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  clip-path: circle();
  margin-right: 0.5rem;
}

/* swiper */
.swiper-slide{
  height: auto;
  padding: 2rem 1rem;
}

.swiper-pagination-bullet,
.swiper-pagination-bullet-active{
  background: var(--base-color);
}

/*========  CONTACT ========*/

#contact .grid{
  gap: 4rem;
}

#contact .text p{
  margin-bottom: 2rem;
}

#contact .button i,
#contact ul li i{
  font-size: 1.5rem;
  margin-right: 0.625rem;
}

#contact ul.grid{
  gap: 2rem;
}

#contact ul li{
  display: flex;
  align-items: center;
}

#contact ul li i{
  color: var(--base-color);
}


#contact .forms .form{
  margin-bottom: 1rem;
  width: 100%;
}

#contact input{
  width: 100%;
  height: 2rem;
  color: var(--text-color);
}

#contact .forms button{
  width: 100%;
  height: 2rem;
  border: none;
}

/*========  FOOTER ========*/
footer{
  background-color: var(--base-color);
}

footer  .logo{
  display: inline-block;
  margin-bottom: 1.5rem;
}

footer .logo span{
  color: var(--text-color-light);
}

footer .brand p{
  color: var(--text-color-light);
  margin-bottom: 0.75rem;
} 

footer .social i,
footer ul li i{
  font-size: 1.5rem;
  margin-right: 0.625rem;
}

footer .button i,
footer ul li i{
  font-size: 1.5rem;
  margin-right: 0.625rem;
  color: white;
}

footer ul.grid{
  gap: 2rem;
}

footer ul li{
  display: flex;
  align-items: center;
}

footer ul li i{
  color: white;
}

footer strong{
  color: white;
}



/*========  BACK TO TOP ========*/
.back-to-top{
  background-color: var(--base-color);
  color: var(--text-color-light);

  position: fixed;
  right: 1rem;
  bottom: 1rem;

  padding: 0.8rem;
  clip-path: circle(); 

  font-size: 1.5rem;
  line-height: 0;

  visibility: hidden;
  opacity: 0;

  transition: 0.3s;
  transform: translate(100%);
}

.back-to-top.show{
  visibility: visible;
  opacity: 1;
  transform: translate(0);
}

@media(min-width: 890px){
  .container{
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
  }
  .section{
    padding: 8rem 0;
  }

  .section header{
    max-width: 32rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .button{
    height: 3.125rem;
  }

  /*========  NAV ========*/
  nav .menu{
    opacity: 1;
    visibility: visible;
    top: 0;
  }

  nav .menu ul{
    display: flex;
    gap: 2rem;
  }

  nav .menu ul li a.title{
    font: 400 1rem var(--body-font);
  }

  nav .open{
    display: none;
  }

  /*========  HOME ========*/

  #home .container{
    grid-auto-flow: column;
    /* width: fit-content; */
    justify-content: space-between;
    margin: 0 auto;
  }

  #home .image{
    order: 1;
    position: relative;
  }

  #home .text{
    margin-top: auto;
    margin-bottom: auto;
    order: 0;
    max-width:  24rem;
    text-align: left;
  }

  #home .image img {
    position: relative;
    right: -4rem;
    top: -2rem;
  }
  
  #home .image::before {
    content: '';
    height: 100%;
    width: 100%;
    background: var(--base-color-second);
    position: absolute;
    top: 3%;
    left: 14.7%;
    z-index: 0;
  }
  
  #home .image img,
  #home .image::before {
    border-radius: 0.25rem;
  }

  /*========  ABOUT ========*/
  #about .container{
    margin: 0 auto;
    grid-auto-flow: column;
  }

  #about .image {
    position: relative;
    right: 5rem;
    top: -2rem;
  }
  
  #about .image::before {
    content: '';
    height: 100%;
    width: 100%;
    background: var(--base-color-second);
    position: absolute;
    top: -8.3%;
    left: -4%;
    z-index: 0;
  }
  
  #about .image img {
    position: relative;
  }
  
  #about .image img,
  #about .image::before {
    border-radius: 0.25rem;
  }

  /*========  SERVICES ========*/
  .cardss{
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
  }

  .cards{
    margin-right: 1rem;
  }

  /*========  CONTACT ========*/
  #contact .container{
    display: flex;
    justify-content: space-around;

  }

  #contact .text{
    max-width: 25rem;
  }

  #contact .forms{
    width: 22rem;
  }

  /*========  CONTACT ========*/
  footer .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}