/*============ 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: 320;
  /* 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(336 70% 92%);

  /* font size */
  --title-font-size: 1.875rem;
  --subtitle-font-size: 1rem;
  --title-font: 'Poppins';
  --body-font: 'DM Sans';
}

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

body {
  font: 400 1rem var(--body-font), sans-serif;
  color: var(--text-color);
  background: var(--body-color);
  -webkit-font-smoothing: antialised;
}

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

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

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

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

/*============ 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(--subtitle-font-size);
}

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

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

#header {
  border-bottom: solid 1px #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);
}

/*============= LOGO ============*/
.logo {
  font: 700 1.56rem var(--title-font), sans-serif;
  color: var(--title-color);
}

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

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

/*========== NAVIGATION =========*/
nav {
  height: var(--header-height);
  /* rem → root element */
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

nav ul li {
  text-align: center;
}

nav ul li a {
  transition: color 0.3s;
  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: 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.2s;
}

nav .menu ul {
  display: none;
}

/* Show 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.5rem;
  cursor: pointer;
}

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

  position: absolute;
  top: -1.5rem;
  right: 1.5rem;

  transition: 0.2s;
}

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

/*============= HOME ============*/
#home {
  overflow: hidden;
}

#home .container {
  margin: 0;
}

#home .image {
  position: relative;
}

#home .image::before {
  content: '';
  height: 100%;
  width: 100%;
  background: var(--base-color-second);
  position: absolute;
  top: -16.8%;
  left: 16.8%;
  z-index: 0;
}

#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 h1 {
  margin-bottom: 1rem;
}

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

/*============= ABOUT ===========*/
#about {
  background: white;
}

#about .container {
  margin: 0;
}

#about .image {
  position: relative;
}

#about .image::before {
  content: '';
  height: 100%;
  width: 100%;
  background: var(--base-color-second);
  position: absolute;
  top: -8.3%;
  left: -33%;
  z-index: 0;
}

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

/*========== SERVICES ===========*/
/*Colocada Por EU*/
#services {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.cards .grid {
  gap: 1.5rem;
}

.card {
  padding: 3.625rem 2rem;
  background: #ffffff;
  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 .button {
  margin-top: 1rem;
}

.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: 0;
}

#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 {
  font: 700 3rem serif;
  position: absolute;
  top: -0.875rem;
  left: -1.875rem;
  color: var(--base-color);
}

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

#testimonials cite img {
  height: 2rem;
  width: 2rem;
  object-fit: cover;
  clip-path: circle();
  margin-right: 0.5rem;
}

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

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

/*========== CONTACT ============*/
#contact .grid {
  gap: 4rem;
}

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

/*=========== FOOTER ============*/
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 {
  font-size: 1.5rem;
  color: var(--text-color-light);
}

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

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

footer .social a:hover {
  transform: translateY(-5px);
  font-size: 2rem;
}

/* Back to home button */
.back-to-home {
  background: var(--base-color);
  color: var(--text-color-light);
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  font-size: 1.5rem;
  padding: 0.5rem;
  clip-path: circle();
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  transform: translateY(150%);
}

.back-to-home.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/*======== MEDIA QUERYS =========*/
/*
  Para dispositivos com resolução > 1200px
*/
@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 {
    height: 3.125rem;
  }

  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), sans-serif;
    -webkit-font-smoothing: antialised;
  }

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

  nav .icon-menu {
    display: none;
  }

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

  /* 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;
  }

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

  /* 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.25rem;
  }
}

/*
  Para dispositivos com resolução > 992px
*/
@media (min-width: 992px) {
  :root {
    --title-font-size: 2.25rem;
    --subtitle-font-size: 1.125rem;
  }

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

  /* 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;
  }

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

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

  /* 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.25rem;
  }
}

/*============= GALERIA ============*/
.antes-depois {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.antes,
.depois {
  text-align: center;
}

.antes img,
.depois img {
  width: min(100%, 250px);
  aspect-ratio: 3 / 4;
  border-radius: 0.25rem;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* IMG ZOOM WRAP */
.img-zoom-wrap {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: 0.25rem;
  overflow: hidden;
}

.img-ver-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
}

.img-zoom-wrap:hover .img-ver-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.img-ver-overlay span {
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 2px solid white;
  padding: 0.35rem 1.1rem;
  border-radius: 2rem;
  background: transparent;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s, transform 0.3s;
}

.img-zoom-wrap:hover .img-ver-overlay span {
  opacity: 1;
  transform: scale(1);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 0.5rem;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.antes p,
.depois p {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--base-color);
}

.testimonial-center {
  display: flex;
  justify-content: center;
  text-align: center;
}

.testimonial-center blockquote {
  max-width: 500px;
  margin: 0 auto;
}

/*============= GALERIA ============*/
.galeria-carousel .swiper-slide {
  padding: 0;
}

.galeria-carousel .swiper-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0.25rem;
}

.grid-4x4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.grid-4x4 img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.25rem;
}

.grid-4x4 .img-zoom-wrap {
  display: block;
  width: 100%;
}

.video-bg {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  border-radius: 0.25rem;
  margin-top: 2rem;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: white;
}

.video-overlay h2 {
  font-size: 2rem;
  text-align: center;
}

/*
  Para dispositivos com resolução < 992px (tablet)
*/
@media (max-width: 991px) {

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

  /* galeria */
  .grid-4x4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .galeria-carousel .swiper-slide img {
    height: 300px;
  }

  .grid-4x4 img {
    height: 160px;
  }

  .video-bg {
    height: 60vh;
  }

  .video-overlay h2 {
    font-size: 1.5rem;
  }
}

/*
  Para dispositivos com resolução < 762px (celular)
*/
@media (max-width: 762px) {

  /* general */
  .section {
    padding: calc(3rem + var(--header-height)) 0;
  }

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

  :root {
    --title-font-size: 1.5rem;
    --subtitle-font-size: 0.9rem;
  }

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

  .card {
    padding: 2.5rem 1.5rem;
  }

  .card i {
    font-size: 3.5rem;
  }

  /* galeria */
  .grid-4x4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .grid-4x4 img {
    height: 120px;
  }

  .galeria-carousel .swiper-slide img {
    height: 220px;
  }

  .video-bg {
    height: 40vh;
  }

  .video-overlay h2 {
    font-size: 1.2rem;
  }

  /* home */
  #home .text {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  #home .text h2 {
    font-size: 1.4rem;
  }

  #home .image::before {
    top: -10%;
    left: 10%;
  }

  /* about */
  #about .text {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  #about .image::before {
    left: -20%;
  }

  /* testimonials */
  .antes-depois {
    grid-template-columns: 1fr;
  }

  .antes img,
  .depois img {
    width: min(100%, 180px);
  }

  .testimonial-center blockquote {
    max-width: 100%;
    padding: 1.5rem;
  }

  /* contact */
  #contact .grid {
    gap: 2rem;
  }

  #contact .text h2 {
    font-size: 1.3rem;
  }

  .button {
    height: 3rem;
    padding: 0 1.5rem;
    font-size: 0.9rem;
  }

  /* footer */
  footer .container {
    text-align: center;
  }

  footer .social {
    margin: 0 auto;
  }
}