/* Reset básico para não ter margens estranhas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Identidade Sam Costa */
  --bg-main: #efe5d6;
  --bg-soft: #f8f2ea;
  --bg-secondary: #e2d3c3;

  --text-main: #3a2921;
  --text-secondary: #6f5b4d;
  --text-muted: #8b7768;

  --brand-brown: #3a2921;
  --brand-brown-light: #513a2e;

  --brand-gold: #d5b878;
  --brand-gold-strong: #d9b900;

  --brand-lilac: #cdb6e8;

  --border-color: #b9a795;
}

.great-vibes-regular {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-style: normal;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  z-index: 0;
}

header {
  position: fixed;
  width: 100%;
  background: var(--bg-soft);
  padding: 0;
  text-align: left;
  z-index: 3500;
  box-shadow: 0 2px 8px rgb(58 41 33 / 12%);
}

/* Hamburger Menu */
#hamburger-menu {
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: 3000;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#hamburger-menu span {
  width: 30px;
  height: 3px;
  background: var(--brand-brown);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  transform-origin: center;
}

#mobile-nav.active + #hamburger-menu span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#mobile-nav.active + #hamburger-menu span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

#mobile-nav.active + #hamburger-menu span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

body:has(#mobile-nav.active) #hamburger-menu span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body:has(#mobile-nav.active) #hamburger-menu span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

body:has(#mobile-nav.active) #hamburger-menu span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Menu lateral */
#mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 150px;

  background: var(--bg-soft);

  transform: translateX(100%);
  transition: transform 0.3s ease;

  z-index: 2500;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: -4px 0 15px rgb(58 41 33 / 10%);
}

#mobile-nav.active {
  transform: translateX(0);
}

h1 {
  font-family: "Great Vibes", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding: 10px;
  bottom: 0;
  color: var(--brand-brown);
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

nav a {
  text-decoration: none;
  color: var(--brand-brown);
  font-weight: bold;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--brand-gold);
}

section {
  padding: 20px;
  max-width: 600px;
  margin: auto;
}

#main-img {
  padding-top: 100px;
}

.logo {
  border-style: none;
}

.logo img {
  padding: 5px;
  padding-left: 10px;
  border-style: none;
  height: 90px;
  width: auto;
}

.image {
  max-width: 100%;
  box-shadow: 0 4px 10px rgb(58 41 33 / 10%);
  height: auto;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.carousel-wrapper {
  position: relative;
}

.carousel-container {
  width: 100%;
  max-width: 600px;
  height: 460px;
  margin: auto;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.carousel {
  display: flex;
  width: 300%;
  height: 460px;
  animation: slide 15s linear infinite;
  animation-play-state: running;
}

.carousel picture {
  display: block;
  width: 33.3333%;
  height: 460px;
  flex-shrink: 0;
}

.carousel picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-wrapper h2 {
  color: var(--bg-soft);
  font-weight: 700;
  text-shadow: 2px 3px 8px rgb(0 0 0 / 70%);
}

.carousel:hover {
  animation-play-state: paused;
}

.rounded {
  border-radius: 20px;
}

#reviews {
  width: 100%;
  height: auto;
  background: var(--bg-soft);
}

#g-reviews {
  margin-top: 40px;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(0);
  }

  33% {
    transform: translateX(-33.33%);
  }

  58% {
    transform: translateX(-33.33%);
  }

  66% {
    transform: translateX(-66.66%);
  }

  90% {
    transform: translateX(-66.66%);
  }

  100% {
    transform: translateX(0);
  }
}

.cta-overlay {
  position: absolute;
  bottom: 0;
  left: 0;

  width: 100%;
  height: auto;

  padding: 40px;
  padding-bottom: 55px;

  background: linear-gradient(
    to top,
    rgb(58 41 33 / 85%),
    rgb(58 41 33 / 20%),
    transparent
  );

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;

  color: var(--text-main);

  z-index: 2;
}

.desktop-highlight {
  display: flex;
  flex-direction: column;
}

#excelencia {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  border-radius: 30px 40px 0 0;
  margin-top: -39px;
  z-index: 2;
  background-color: var(--bg-main);
  padding-bottom: 40px;
  gap: 10px;
}

#porque {
  width: 100%;
  margin: 0;
  padding: 0;
}

.btn-cta {
  margin-top: 10px;
  background-color: var(--brand-brown);
  color: var(--bg-soft);
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.btn-cta:hover {
  background-color: var(--brand-brown-light);
  transform: translateY(-1px);
  /* width: fit-content; */
  /* align-self: center; */
}

#servicos {
  background-color: var(--bg-soft);
}

#servicos ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  list-style: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.5s ease,
    opacity 0.3s ease,
    margin-top 0.5s ease;
  margin-top: 0;
}

#servicos ul.active {
  max-height: 2000px;
  opacity: 1;
  margin-top: 20px;
}

#servicos li {
  background: var(--bg-secondary);
  color: var(--text-main);

  padding: 15px;
  border-radius: 8px;
  text-align: center;

  border: 1px solid rgb(185 167 149 / 40%);
}

#toggle-servicos {
  display: block;
  margin: 20px auto 0;
  padding: 12px 24px;

  border: none;
  border-radius: 8px;

  background-color: var(--brand-brown);
  color: var(--bg-soft);

  cursor: pointer;

  font-size: 1rem;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

#toggle-servicos:hover {
  background-color: var(--brand-brown-light);
  transform: translateY(-1px);
}

#toggle-servicos {
  display: block;
  margin: 20px auto 0;
  padding: 12px 24px;

  border: none;
  border-radius: 8px;

  background-color: #f0cd97;
  cursor: pointer;

  font-size: 1rem;
}

.btn-contato {
  margin-top: 10px;

  background-color: var(--brand-brown);
  color: var(--bg-soft);

  padding: 10px 20px;

  border-radius: 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.btn-contato svg {
  width: 1.2em;
  height: 1.2em;

  margin-right: 8px;

  fill: currentcolor;
}

.btn-contato:hover {
  background-color: var(--brand-brown-light);
  transform: translateY(-1px);
}

.map-container {
  width: 100%;
  max-width: 800px;

  margin: 0 auto;

  border-radius: 15px;
  overflow: hidden;

  box-shadow: 0 4px 15px rgb(58 41 33 / 12%);
}

@media (width >= 600px) {
  .map-container {
    height: 300px;
  }
}

#contato ul {
  list-style: none;
}

footer {
  padding: 20px;

  text-align: center;

  background-color: var(--brand-brown);
  color: var(--bg-soft);
}

#back-to-top {
  display: none;
}
