/* Variaveis */
:root {
  --header-height: 4.5rem;

  /* colors - light mode (default) */
  --hue: 38;
  --base-color: #ab8550;
  --base-color-second: #000000;
  --base-color-alt: #c39d86;
  --title-color: #000000;
  --text-color: #2c2c2c;
  --text-color-light: #fefefe;
  --body-color: #fefefe;
  --border-color: rgba(0, 0, 0, 0.1);
  --card-background: #f8dbd3;
  --header-background: #fefefe;
  --footer-background: var(--base-color);

  /* fonts -- */
  --title-font-size: 1.85rem;
  --subTitle-font-size: 1rem;

  --title-fonts: "Poppins", sans-serif;
  --body-fonts: "DM Sans", sans-serif;
}

/* Dark mode colors */
.dark-mode {
  --base-color: #ab8550;
  --base-color-second: #fefefe;
  --base-color-alt: #c39d86;
  --title-color: #fefefe;
  --text-color: #e1e1e1;
  --text-color-light: #fefefe;
  --body-color: #121212;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-background: #1e1e1e;
  --header-background: #1a1a1a;
  --footer-background: #1a1a1a;
}

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

a {
  text-decoration: none;
}
ul {
  list-style: none;
}
.button {
  background: var(--base-color);
  color: var(--text-color-light);
  padding: 1rem;
  border-radius: 0.25rem;
  transition: background 0.3s;
}
.button:hover {
  background: var(--base-color-alt);
}
span {
  color: var(--base-color);
}
img {
  width: 100%;
  height: auto;
}

/* ******** base **** */

html {
  scroll-behavior: smooth;
}

body {
  font: 400 1rem var(--body-fonts);
  background-color: var(--body-color);
  color: var(--text-color);
  -webkit-font-smoothing: auto;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.title {
  font: 700 var(--title-font-size) var(--title-fonts);
  color: var(--title-color);
  transition: color 0.3s;
}
.divider-1 {
  height: 3px;

  background: linear-gradient(
    270deg,
    hsla(var(--hue), 36%, 57%, 1) 0%,
    hsla(var(--hue), 65%, 88%, 0.34) 100%
  );
}

/*  ******* Layouy ******* */

.container {
  margin: 0 1.5rem;
}
.grid {
  display: grid;
  gap: 2rem;
}
.section {
  padding: calc(4rem + var(--header-height)) 0;
}
.section header {
  margin-bottom: 0rem;
}
.section .subtitle {
  font-size: var(--subtitle-font-size);
  color: var(--text-color);
  transition: color 0.3s;
}

.section .title {
  margin-bottom: 1rem;
}
/* ****** header *****/
#Header {
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  background-color: var(--header-background);

  width: 100%;
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  transition: background-color 0.3s, border-color 0.3s;
}
#Header.scroll {
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.8);
}

/* **** logo */
.logo {
  font: 700 1.31rem var(--title-fonts);
  color: var(--title-color);
}
.logo span {
  color: var(--base-color);
}
.logo-alt span {
  color: var(--body-color);
}
/* **** navegation */
nav {
  height: 4.5rem;
  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,
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;
}

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

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 */
nav .icon-close {
  visibility: hidden;
  opacity: 0;

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

  transition: 0.2s;
}
nav.show div.icon-close {
  visibility: visible;
  opacity: 1;
  top: 1.5rem;
}
.toggle {
  color: var(--base-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ****** Sections **** */
main {
}
#Home {
  overflow: hidden;
}
#Home .section {
  padding-top: 0;
}
#Home .container {
  margin: 0;
  gap: 3rem;
}
#Home .img img {
  position: relative;
  right: 2.93rem;
}
#Home .img {
  position: relative;
}
#Home .img::before {
  content: "";
  height: 100%;
  width: 100%;
  background-color: var(--base-color);
  position: absolute;
  top: -5.8%;
  left: -20.8%;
  z-index: 0;
}
@media (max-width: 768px) {
  #Home .img {
    display: none;
  }
}

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

#Home .text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 1.5rem;
  text-align: center;
}

/* ****** About */

#About {
  background: white;
}
#About .img img {
  position: relative;
}
#About .img {
  position: relative;
}
#About .img::before {
  content: "";
  height: 100%;
  width: 100%;
  background-color: var(--base-color-second);
  position: absolute;
  top: -8.3%;
  left: 33%;
  z-index: 0;
}
@media (max-width: 768px) {
  #About .img::before {
    display: none;
  }
}
#About .img img,
#About .img::before {
  border-radius: 0.25rem;
}

.divider-2 {
  height: 3px;

  background: linear-gradient(
    270deg,
    hsla(var(--hue), 65%, 88%, 0.34),
    hsla(var(--hue), 36%, 57%, 1)
  );
}

/* ***Serviços */
.cards.grid {
  gap: 1.5rem;
}

.card {
  min-width: 200px;
  text-align: center;
  padding: 3.65rem 2rem;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.8);
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  transition: background-color 0.3s, border-color 0.3s;
}

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

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

/* ****** testemonials */

#Testemonials {
  background: white;
  display: block;
}
#Testemonials {
  margin-left: 0;
  margin-right: 0;
}
#Testemonials header {
  margin-bottom: 0;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}
#Testemonials blockquote {
  padding: 2rem;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.4);
  border-radius: 0.5rem;
}
#Testemonials blockquote p {
  position: relative;
  text-indent: 1.85rem;
  margin-bottom: 1.5rem;
  color: var(--title-color);
}

#Testemonials blockquote p span.span {
  font: 700 2.5rem serif;
  position: absolute;
  top: -0.375rem;
  left: -1.85rem;
}
#Testemonials cite {
  display: flex;
  align-items: center;
  font-style: normal;
}
#Testemonials cite img {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  clip-path: circle();

  margin-right: 0.5rem;
}

/* **** swiprer */
.swiper {
  padding: 4rem 1rem;
}
.swipe-slide {
  height: auto;
}
.swiper-pagination-bullet {
  width: 0.75rem;
  height: 0.75rem;
}
.swiper-pagination-bullet-active {
  background: var(--base-color);
}

.link {
  color: var(--base-color);
  text-decoration: underline;
}
.link:hover {
  color: var(--title-color);
  text-decoration: underline;
}

/* *** contact */

#Contact .text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
#Contact .text p {
  margin-bottom: 2rem;
}
#Contact .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 1rem 2rem;
}

#Contact .button i,
#Contact ul.grid li i {
  font-size: 1.3rem;
  margin-right: 0.5rem;
}
#Contact ul.grid {
  gap: 1rem;
}
#Contact ul.grid li i {
  color: var(--base-color);
}

/* *** contact */
#footer {
  background-color: var(--footer-background);
  transition: background-color 0.3s;
}
#footer.section {
  padding: 4rem;
}

#footer .brand .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 .socials {
  grid-auto-flow: column;
  width: fit-content;
}

/* responsive *****/

@media (min-width: 1200px) {
  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-fonts);
  }
  nav .menu ul li a.active {
    font-weight: bold;
  }
  nav .icon-menu {
    display: none;
  }

  .section {
    padding: 10rem;
  }
  main {
  }
  /* home */
  .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  #Home .container {
    grid-auto-flow: column;
    justify-content: space-between;
    gap: 4rem;
  }
  #Home .img {
    order: 0;
  }
  #Home .text {
    order: 1;
  }
  #Home .text p {
    margin-bottom: 3rem;
  }
  #Home .text {
    padding-top: 0;
  }

  /* sobre */
  #About .container {
    grid-auto-flow: column;
    justify-content: space-between;
  }
  #About .img img,
  #About .img::before {
    border-radius: 0.25rem;
  }
  #About .img::before {
    left: 20%;
  }
  #About .img {
    order: 1;
  }
  #About .text {
    order: 0;
  }
  /* sevices */
  #Services header {
    text-align: center;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
  }
  #Services .cards {
    grid-auto-flow: column;
    width: fit-content;
  }

  /* testemonial */
  #Testemonials header {
    text-align: center;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
  }

  /* contact */
  #Contact .container {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #Contact .text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }
  #Contact .links {
    margin: 0;
  }

  /* footer */
  #footer .section {
    padding: 3.75rem 0;
  }
  #footer .container {
    grid-auto-flow: column;
    justify-content: space-between;
  }

  #footer .brand {
    margin-left: 0;
    margin-right: 0;
  }
  #footer .socials {
    align-items: center;
  }
}

@media (min-width: 992px) {
  :root {
    --title-font-size: 2.25rem;
    --subtitle-font-size: 1.125rem;
  }
  .text {
  }
}

/* Adicione um botão de toggle para o modo dark */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--base-color);
  color: var(--text-color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* Adicione transições suaves para todos os elementos */
body,
#Header,
.card,
#footer,
.title,
.subtitle {
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Ajuste para as sections no modo dark */
.dark-mode section {
  background-color: var(--body-color) !important;
}

/* Especificamente para as sections que tinham background white */
.dark-mode #About,
.dark-mode #Testemonials {
  background: var(--body-color);
}

/* Ajuste para os divisores no modo dark */
.dark-mode .divider-1,
.dark-mode .divider-2 {
  background: linear-gradient(
    270deg,
    var(--base-color) 0%,
    rgba(171, 133, 80, 0.15) 100%
  );
}

/* Ajuste para garantir que todos os cards mantenham o background correto */
.dark-mode .card {
  background-color: var(--card-background);
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.3);
}

/* Ajuste para os depoimentos */
.dark-mode #Testemonials blockquote {
  background-color: var(--card-background);
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.3);
}
