/* =========================
   RESET / BASE
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #7e6960;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

/* =========================
   TITULOS
========================= */
h2 {
  margin: 15px 0;
  color: #7e6960;
  font-weight: 500;
  text-align: center;
}

/* =========================
   MODAL BASE
========================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 999;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   MODAL CONTENT
========================= */
.modal-content {
  background: #d5cabb;
  border-radius: 22px;
  padding: 32px 26px;
  max-width: 900px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;

  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.35s ease;
  box-shadow: 0 35px 80px rgba(0,0,0,0.45);
}

.modal.show .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* botão fechar */
.modal .close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 28px;
  cursor: pointer;
  color: #5e5e5e;
}
/* =========================
   BOTAO VOLTA
========================= */
.conta{
  background-color: #7e6960;
  margin-top: 0px;
  margin-left: -100px;
}
.backicon {
    width: 20px;
    height: 20px;
    margin-left: 100px;
}

.h2-professional{
  color: #d5cabb;
}

/* =========================
   MODAL TEXTOS
========================= */
#modalTitle {
  font-size: 22px;
  color: #464646;
  text-align: center;
}

.modal-description {
  margin: 12px auto 30px;
  max-width: 600px;
  text-align: center;
  font-size: 15px;
  color: #6b6b6b;
  line-height: 1.5;
}

/* =========================
   GALERIA
========================= */
.modal-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.modal-gallery img {
  width: 520px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  cursor: zoom-in;
  box-shadow: 0 25px 55px rgba(0,0,0,0.35);
  transition: transform .35s ease, box-shadow .35s ease;
}

.modal-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 35px 70px rgba(0,0,0,0.45);
}

/* =========================
   IMAGE VIEWER
========================= */
.image-viewer {
  background: transparent;
  padding: 0;
  max-width: 95vw;
  max-height: 95vh;
}

.image-viewer img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 20px;
  margin: auto;
  display: block;
  cursor: zoom-out;
}

#viewerProfessional {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: #d5cabb;
}

/* =========================
   FILTRO DE SERVIÇOS
========================= */
#servicesFilter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #d5cabb;
  border-radius: 30px;
  width: 350px;
  gap: 14px;
  margin:  0;
}

.button-link {
  width: 180px;
  height: 48px;
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: .5px;
}

.button-filter.active .button-link {
  background: #7e6960;
  color: #fff;
}

/* =========================
   GRID PROFISSIONAIS
========================= */
#professionalsContainer {
  width: 100%;
  max-width: 1200px;
  padding: 30px 20px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

/* =========================
   CARD PROFISSIONAL
========================= */
.professional-card {
  height: 340px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.professional-front {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 20%;
  position: relative;
}

/* sombra interna */
.professional-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.6),
    rgba(0,0,0,.2),
    transparent
  );
}

/* nome */
.professional-front::before {
  content: attr(data-name);
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  z-index: 2;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  width: 100%;
  background: #e9e1d6;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.site-footer h3 {
  font-weight: 500;
  letter-spacing: 1px;
  color: #7e6960;
}

.footer-tagline {
  font-size: 14px;
  color: #7e6960;
  margin: 10px 0 25px;
}

.footer-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-actions a {
  color: #7e6960;
  text-decoration: none;
  font-weight: 500;
}

.footer-copy {
  font-size: 12px;
  color: #a89c91;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 480px) {
  body{
    background-image: url("/imgs/bg-teste.png");
  }

  .modal-gallery img {
    max-width: 300px;
    border-radius: 16px;
  }

  #professionalsContainer {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .professional-card {
    height: 300px;
  }

  .professional-front::before {
    font-size: 16px;
  }
}
