/* Ajustes de acabamento: mantém a identidade, refinando a escala e adicionando a galeria clínica. */
:root {
  --whatsapp: #426b4a;
}

.desktop-only {
  display: inline;
}

.button {
  gap: 10px;
  min-height: 52px;
  border-radius: 4px;
  letter-spacing: .01em;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(41, 45, 35, 0.12);
}

.button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b9d9ad;
  flex: 0 0 auto;
}

.button.light::before {
  background: var(--whatsapp);
}

.button span {
  display: none;
}

.compact {
  min-height: 44px;
}

.photo-footer a {
  width: auto;
  height: auto;
  padding: 11px 15px;
  border-radius: 3px;
  font: 600 11px/1 "DM Sans", sans-serif;
  letter-spacing: .05em;
}

.service a,
.text-link,
.review-invite > span:last-child {
  color: var(--olive);
}

.featured a {
  color: #eef0df;
}

/* Botão Redondo Flutuante de WhatsApp (Padrão Plugin) */
.floating,
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  border: none;
  padding: 0;
  min-height: auto;
}

.floating:hover,
.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.22);
}

.floating svg,
.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.wa-online-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border: 2px solid #25D366;
  border-radius: 50%;
}

.wa-tooltip {
  position: absolute;
  right: 68px;
  background: rgba(35, 39, 30, 0.94);
  color: #fffefa;
  font: 600 12px/1 "DM Sans", sans-serif;
  padding: 7px 12px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.floating:hover .wa-tooltip,
.floating-whatsapp:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Enquadramento fotográfico */
.experience .space-photo img {
  object-position: 67% center;
}

/* Tipografia e espaçamentos do Hero (máximo 2 linhas) */
.hero h1 {
  font: 500 clamp(36px, 4.2vw, 52px) / 1.15 var(--serif);
  letter-spacing: -1px;
  margin: 0 0 22px;
}

.hero h1 .hero-line {
  display: block;
}

.hero .lead {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ==========================================================================
   SEÇÃO ANTES E DEPOIS (CASOS CLÍNICOS)
   ========================================================================== */
.cases {
  background: var(--paper);
  border-top: 1px solid var(--line);
  position: relative;
}

.cases-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  align-items: center;
}

.filter-btn {
  appearance: none;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 10px 18px;
  font: 500 13px/1 "DM Sans", sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  border-color: var(--olive);
  color: var(--olive);
}

.filter-btn.active {
  background: var(--dark);
  color: #fffefa;
  border-color: var(--dark);
}

.filter-btn span {
  font-size: 11px;
  opacity: 0.8;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(41, 45, 35, 0.08);
}

.case-card.hidden {
  display: none;
}

.case-img-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #555d49;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.case-img-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}

.case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #555d49;
  display: block;
  transition: transform 0.35s ease;
}

.case-card:hover .case-img-wrap img {
  transform: scale(1.025);
}

.case-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font: 600 10px/1 "DM Sans", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 3px;
  background: rgba(246, 244, 237, 0.95);
  color: var(--dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.case-zoom-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  font: 500 11px/1 "DM Sans", sans-serif;
  padding: 6px 11px;
  border-radius: 4px;
  background: rgba(35, 39, 30, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fffefa;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s, transform 0.2s;
}

.case-zoom-btn:hover {
  background: rgba(35, 39, 30, 0.98);
  transform: scale(1.04);
}

.case-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-step {
  font: 600 11px/1.4 "DM Sans", sans-serif;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: block;
}

.case-content h3 {
  font: 500 19px/1.3 var(--serif);
  color: var(--ink);
  margin: 0 0 10px;
}

.case-content p {
  font: 400 14px/1.6 "DM Sans", sans-serif;
  color: var(--muted);
  margin: 0 0 18px;
  flex: 1;
}

.case-action {
  font: 600 13px/1.2 "DM Sans", sans-serif;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  transition: gap 0.2s, color 0.2s;
}

.case-action:hover {
  gap: 9px;
  color: var(--dark);
}

/* Card de Conversão Rápida */
.conversion-card {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.conversion-card-inner {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  align-items: flex-start;
}

.conv-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(238, 240, 223, 0.12);
  color: #b9d9ad;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.conv-badge {
  font: 600 10px/1 "DM Sans", sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #b9d9ad;
  margin-bottom: 10px;
  display: block;
}

.conversion-card h3 {
  color: #fffefa;
  font: 500 21px/1.3 var(--serif);
  margin: 0 0 12px;
}

.conversion-card p {
  color: #d1d5bf;
  font: 400 14px/1.6 "DM Sans", sans-serif;
  margin: 0 0 20px;
}

.conv-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
  background: #fffefa;
  color: var(--dark);
}

.conv-btn:hover {
  background: var(--cream);
}

.conv-subtext {
  font-size: 11px;
  color: #a4a895;
  text-align: center;
  width: 100%;
  display: block;
}

.cases-disclaimer {
  margin-top: 36px;
  padding: 16px 20px;
  background: var(--cream);
  border-left: 3px solid var(--olive);
  border-radius: 4px;
}

.cases-disclaimer p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 15, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.05);
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: #555d49;
}

.lightbox-caption {
  color: #eef0df;
  font: 500 14px/1.5 "DM Sans", sans-serif;
  text-align: center;
  margin-top: 14px;
}

/* ==========================================================================
   RESPONSIVIDADE E AJUSTES MOBILE
   ========================================================================== */
@media (max-width: 1050px) {
  .hero h1 {
    font-size: clamp(34px, 4vw, 44px);
    letter-spacing: -1px;
  }
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .desktop-only {
    display: none;
  }

  .hero {
    padding-top: 32px;
    padding-bottom: 36px;
    padding-left: 4.5%;
    padding-right: 4.5%;
    gap: 28px;
  }

  .hero > div:first-child,
  .hero .rating-small,
  .hero .photo-footer {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(25px, 7.2vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.6px;
    margin: 0 auto 16px;
  }

  .hero h1 .hero-line {
    display: block;
    white-space: nowrap;
  }

  .hero h1 em {
    display: inline;
  }

  .hero .lead {
    font-size: 15px;
    line-height: 1.55;
    margin: 0 auto 22px;
    max-width: 380px;
  }

  .hero .eyebrow {
    font-size: 11px;
    letter-spacing: 1.8px;
    margin: 0 0 14px;
  }

  .hero .button {
    justify-content: center;
    width: min(100%, 340px);
    margin-left: auto;
    margin-right: auto;
  }

  .hero .rating-small {
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
  }

  .hero-art {
    align-items: center;
  }

  .hero-photo {
    width: min(100%, 420px);
  }

  .stamp {
    top: 0;
    right: -4px;
    width: 96px;
    height: 96px;
  }

  .stamp strong {
    font-size: 32px;
  }

  .photo-footer {
    width: min(100%, 420px);
    gap: 16px;
  }

  .photo-footer a {
    flex: 0 0 auto;
  }

  .floating,
  .floating-whatsapp {
    width: 52px;
    height: 52px;
    bottom: 18px;
    right: 18px;
  }

  .floating svg,
  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }

  .wa-tooltip {
    display: none;
  }

  /* Seção Antes e Depois no mobile */
  .cases {
    padding: 60px 6%;
  }

  .cases-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cases-filter::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
    padding: 8px 14px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-content {
    padding: 20px;
  }

  .conversion-card-inner {
    padding: 24px 20px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(23px, 6.6vw, 28px);
    line-height: 1.16;
    letter-spacing: -0.5px;
  }

  .hero h1 .hero-line {
    display: block;
    white-space: nowrap;
  }

  .hero .button {
    font-size: 13px;
    padding: 15px 18px;
  }

  .photo-footer > span {
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 21px;
  }
}
