/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
  height: auto;
}

/*--------------- VARIABLES ---------------*/

:root {
  /* colors */
  --hue: 42;
  --hue-second: 13;
  /* HSL color mode */
  --base-color: hsl(var(--hue) 100% 46%);
  --base-color-second: hsl(var(--hue-second) 100% 35%);
  --base-color-alt: hsl(var(--hue) 85% 56%);
  --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%);

  /*header*/
  --header-height: 4.5rem;

  /*size fonts*/
  --font-title: 1.875rem;
  --font-logo: 1.31rem;
  --font-subtitle: 1rem;

  /*fonts*/
  --type-title-font: 'Poppins', sans-serif;
  --type-body-font: 'DM Sans', sans-serif;
}

/*--------------- BASE ---------------*/
html {
  scroll-behavior: smooth;
}

body {
  font: 400 1rem var(--type-body-font);
  color: var(--text-color);
  background-color: var(--body-color);
  -webkit-font-smoothing: antialiased;
}

.title {
  font: 700 var(--font-title) var(--type-title-font);
  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 var(--type-body-font);
  transition: background-color 0.3s;
}

.button:hover {
  background-color: var(--base-color-alt);
}

.divider-1 {
  height: 1px;
  background: linear-gradient(
    270deg,
    hsla(var(--hue-second), 100%, 35%, 1),
    hsla(var(--hue-second), 65%, 88%, 0.34)
  );
}

.divider-2 {
  height: 1px;
  background: linear-gradient(
    270deg,
    hsla(var(--hue-second), 65%, 88%, 0.34),
    hsla(var(--hue-second), 100%, 35%, 1)
  );
}

/*--------------- LAYOUT ---------------*/

.container {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.section {
  padding: calc(5rem + var(--header-height)) 0;
}

.section .title {
  margin-bottom: 1rem;
}

.section .subtitle {
  font-size: var(--font-subtitle);
}

.section header {
  margin-bottom: 4rem;
}

.section header strong {
  color: var(--base-color);
}

.section p span {
  color: var(--base-color);
}

#header {
  border-bottom: 1px solid #e4e4e4;
  margin-bottom: 2rem;
  display: flex;

  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  z-index: 100;
  width: 100%;
}

#header.scroll {
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.15);
}

/*--------------- LOGO ---------------*/

.logo {
  font: 700 var(--font-logo) 'Poppins', 'sans-serif';
  color: var(--title-color);
}

.logo span {
  color: var(--base-color);
}

.logo-alt span {
  color: var(--body-color);
}

/*--------------- NAVIGATION ---------------*/

nav {
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul li {
  text-align: center;
}

nav ul li a {
  transition: color 0.2s; /*transição de cores - especificado*/
  position: relative;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--base-color);
}

nav ul li a::after {
  content: '';
  width: 0;
  height: 2px;
  background-color: var(--base-color);

  position: absolute;
  left: 0;
  bottom: -1.5rem;

  transition: width 0.2s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav .menu {
  opacity: 0;
  visibility: hidden;
  top: -20rem;
  transition: 0.3s;
}

nav .menu ul {
  display: none;
}

/*mostrar menu*/
nav.show .menu {
  opacity: 1;
  visibility: visible;

  background: var(--body-color);
  height: 100vh; /*vh - viewport height(altura do dispositivo)*/
  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.5rem;
  cursor: pointer;
}

nav .icon-close {
  opacity: 0;
  visibility: hidden;

  position: absolute;
  top: -1.5rem;
  right: 1.5rem;
  transition: 0.3s;
}

nav.show div.icon-close {
  opacity: 1;
  visibility: visible;
  top: 1.5rem;
}

/*--------------- HOME ---------------*/

#home {
  overflow: hidden; /*overflow - transbordar -> deixa todo o conteúdo que passa do "limite" escondido(hidden)*/
}

#home .container {
  margin: 0;
}

#home .image {
  position: relative;
}


/*sudo element - elemento fantasma criado pelo css*/
#home .image::before {
  content: '';
  height: 100%;
  width: 100%;
  background-color: var(--base-color-second);
  position: absolute; /*absoluto dentro da página toda, não leva em consideração outros elementos*/
  top: -16.8%;
  left: 16.7%;
  z-index: 0; /*3° dimensão - profundidade | 1 é acima*/
}

#home .image img {
  position: relative;
  right: 2.93rem;
}

#home .image img,
#home .image::before {
  border-radius: 0.25rem;
}

#home .text {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  text-align: center;
}

#home .text h2 {
  margin-bottom: 1rem;
}

#home .text p {
  margin-bottom: 2rem;
}

/*--------------- ABOUT ---------------*/

#about {
  background-color: white;
}

#about .container {
  margin: 0;
}

#about .image {
  position: relative;
}

/*sudo element - elemento fantasma criado pelo css*/
#about .image::before {
  content: '';
  height: 100%;
  width: 100%;
  background-color: var(--base-color-second);
  position: absolute; /*absoluto dentro da página toda, não leva em consideração outros elementos*/
  top: -8.3%;
  left: -33%;
  z-index: 0; /*83° dimensão - profundidade | 1 é acima*/
}

#about .image img {
  position: relative;
}

#about .image img,
#about .image::before {
  border-radius: 0.25rem;
}

#about .text {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

#about .text {
  margin-bottom: 1rem;
}

/*--------------- SERVICES ---------------*/

.cards.grid {
  gap: 1.5rem;
}

.card {
  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;
}

.card i {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 5rem;
  color: var(--base-color);
}

.card .title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/*--------------- TESTIMONIALS ---------------*/

#testimonials {
  background: white;
}

#testimonials .container {
  margin-left: 0;
  margin-right: 0;
}

#testimonials header {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  margin-bottom: 0rem;
}

#testimonials blockquote {
  padding: 2rem;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
  border-radius: 0.25rem;
}

#testimonials blockquote p {
  position: relative;
  text-indent: 1.875rem;
  margin-bottom: 1.5rem;
  color: var(--title-color);
}

#testimonials blockquote p span {
  color: var(--base-color);
  font: 700 2.5rem serif;
  position: absolute;
  top: -0.375rem;
  left: -1.875rem;
}

#testimonials cite {
  display: flex;
  align-items: center;
  font-style: normal;
}

#testimonials cite img {
  width: 2rem;
  height: 2rem;
  object-fit: cover; /*coloca a imagem no tamanho do elemento | cover - cobrindo todo o espaço*/
  clip-path: circle();
  margin-right: 0.5rem;
}

/*swiper*/
.swiper-slide {
  height: auto;
  padding: 4rem 1rem;
}

.swiper-pagination-bullet {
  width: 0.625rem;
  height: 0.625rem;
}

.swiper-pagination-bullet-active {
  background: var(--base-color);
}

/*--------------- TESTIMONIALS ---------------*/

#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);
}

/*--------------- TESTIMONIALS ---------------*/

footer {
  background: var(--base-color);
}

footer.section {
  padding: 4rem 0;
}

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

footer .brand p {
  color: var(--text-color-light);
  margin-bottom: 0.75rem;
}

footer i {
  color: var(--text-color-light);
  font-size: 1.5rem;
}

footer .social {
  grid-auto-flow: column;
  width: fit-content;
}

footer .social a {
  transition: 0.3s;
  display: inline-block;
}

footer .social a:hover {
  transform: translateY(-8px);
}

/*Back to top*/

.back-to-top {
  background: var(--base-color);
  color: var(--text-color-light);
  font-size: 1.5rem;
  line-height: 0;

  position: fixed;
  right: 1rem;
  bottom: 1rem;

  padding: 0.75rem;
  clip-path: circle();

  visibility: hidden;
  opacity: 0;

  transition: 0.3s;
  transform: translateY(100%);
}

.back-to-top.show {
  visibility: visible;
  opacity: 1;

  transform: translateY(0);
}

/*--------------- RESPONSIVE ---------------*/

/*=======MEDIA QUERY=======*/

/* extra large devices: 1200 > */
@media (min-width: 1200px) {
  .container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 10rem 0;
  }

  .section header,
  #testimonials header {
    max-width: 32rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /*button*/
  .button{
    height: 3.125rem;
  }

  /*navigation*/
  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(--type-body-font);
  -webkit-font-smoothing: antialiased;
  }

  nav .menu ul li a.active {
    font-weight: bold;
    -webkit-font-smoothing: auto;
  }

  nav .icon-menu {
    display: none;
  }

  main {
    margin-top: var(--header-height);
  }

  /*home*/

  #home .container {
    grid-auto-flow: column;
    justify-content: space-between;
    margin: 0 auto;
  }

  #home .image img{
    height: 23.4375rem;
  }

  #home .image {
    order: 1;
  }

  #home .text {
    order: 0;
    max-width: 24rem;
    text-align: left;
  }

  #home .title{
    font: 700 1.875rem var(--type-title-font);
  }

  #home .text p {
    font: 400 1rem var(--type-body-font);
  }


  /*about*/
  #about .container {
    margin: 0 auto;
    grid-auto-flow: column;
  }


  /*services*/
  .cards{
    grid-template-columns: 1fr 1fr 1fr;
  }

  .card{
    padding-left: 3rem;
    padding-right: 3rem;
  }

  /*testimonials*/
  #testimonials .container {
    margin-left: auto;
    margin-right: auto;
  }


  /*contact*/
  #contact .container{
    grid-auto-flow: column;
    align-items: center;
  }

  #contact .text{
    max-width: 25rem;
  }

  
  /*footer*/
  footer.section{
    padding: 3.75rem 0;
  }

  footer .container{
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
  }

  footer .logo{
    font-size: 2.5rem;
  }

}

/* large devices: 1023px > */

@media (min-width: 1020px){

  .section {
    padding: 10rem 0;
  }

  /*home*/
  #home .container {
    grid-auto-flow: column;
    justify-content: space-between;
    margin: 0 auto;
  }

  #home .image {
    order: 1;
  }

  #home .text {
    order: 0;
    max-width: 24rem;
    text-align: left;
  }

  #home .title{
    font: 700 1.875rem var(--type-title-font);
  }

  #home .text p {
    font: 400 1rem var(--type-body-font);
  }
}

/* large devices: 992px > */
@media (min-width: 992px) {
  :root {
    --font-title: 2.25rem;
    --font-logo: 1.56rem;
    --font-subtitle: 1.125rem;
  }
}

/* medium devices: 600px > */
@media (min-width: 600px) {
  .section {
    padding: calc(8rem + var(--header-height)) 0;
  }
}
