* {
  box-sizing: border-box;
}

:root {
  --fundo: #968c88;
  --texto: #fffaf7;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--fundo);
}

body {
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

.pagina {
  width: 100%;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--fundo);
}

.cartao {
  position: relative;
  width: min(100%, 1080px);
  line-height: 0;
  overflow: hidden;
  background: var(--fundo);
}

picture,
.capa {
  display: block;
  width: 100%;
}

.capa {
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.area-link {
  position: absolute;
  z-index: 50;
  display: block;
  pointer-events: auto;
  border-radius: 22px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.20);
}

.area-link:focus-visible {
  outline: 4px solid #ffffff;
  outline-offset: -4px;
}

.area-link:active {
  background: rgba(255, 255, 255, 0.10);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/*
  CELULAR VERTICAL — arte original 1080 × 1920
  Coordenadas medidas diretamente nos quatro botões da arte enviada.
*/
.imoveis {
  left: 18.519%;
  top: 61.042%;
  width: 62.963%;
  height: 5.938%;
}
.whatsapp {
  left: 18.519%;
  top: 68.958%;
  width: 62.963%;
  height: 5.990%;
}
.email {
  left: 18.519%;
  top: 77.135%;
  width: 62.963%;
  height: 5.938%;
}
.instagram {
  left: 18.519%;
  top: 85.052%;
  width: 62.963%;
  height: 5.938%;
}

/*
  TABLET VERTICAL — arte original 1535 × 2048
*/
@media (orientation: portrait) and (min-width: 600px) {
  .cartao {
    width: min(100%, 1535px);
  }

  .imoveis {
    left: 25.863%;
    top: 58.643%;
    width: 48.860%;
    height: 6.152%;
  }
  .whatsapp {
    left: 25.863%;
    top: 66.895%;
    width: 48.860%;
    height: 6.104%;
  }
  .email {
    left: 25.863%;
    top: 75.293%;
    width: 48.860%;
    height: 6.104%;
  }
  .instagram {
    left: 25.863%;
    top: 83.496%;
    width: 48.860%;
    height: 6.152%;
  }
}

/*
  TABLET HORIZONTAL — arte original 2048 × 1535
*/
@media (orientation: landscape) and (pointer: coarse) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .pagina {
    width: 100vw;
    height: 100svh;
    min-height: 0;
    align-items: center;
  }

  .cartao {
    width: min(100vw, calc(100svh * 2048 / 1535));
    max-width: 2048px;
    aspect-ratio: 2048 / 1535;
  }

  .capa {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .imoveis {
    left: 72.119%;
    top: 59.414%;
    width: 24.658%;
    height: 5.668%;
  }
  .whatsapp {
    left: 72.119%;
    top: 66.840%;
    width: 24.658%;
    height: 5.537%;
  }
  .email {
    left: 72.119%;
    top: 74.332%;
    width: 24.658%;
    height: 5.603%;
  }
  .instagram {
    left: 72.119%;
    top: 81.694%;
    width: 24.658%;
    height: 5.603%;
  }
}

/*
  NOTEBOOK E DESKTOP — arte original 1920 × 1080
*/
@media (orientation: landscape) and (pointer: fine) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .pagina {
    width: 100vw;
    height: 100svh;
    min-height: 0;
    align-items: center;
  }

  .cartao {
    width: min(100vw, calc(100svh * 16 / 9));
    max-width: 1920px;
    aspect-ratio: 16 / 9;
  }

  .capa {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .imoveis {
    left: 71.302%;
    top: 49.722%;
    width: 25.052%;
    height: 7.593%;
  }
  .whatsapp {
    left: 71.302%;
    top: 59.722%;
    width: 25.052%;
    height: 7.593%;
  }
  .email {
    left: 71.302%;
    top: 69.907%;
    width: 25.052%;
    height: 7.593%;
  }
  .instagram {
    left: 71.302%;
    top: 79.815%;
    width: 25.052%;
    height: 7.593%;
  }
}

.install-app {
  position: fixed;
  z-index: 80;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  width: auto;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(89, 79, 72, 0.82);
  color: rgba(255, 255, 255, 0.95);
  font: 600 11px/1 Arial, Helvetica, sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0.84;
}

.install-app:hover {
  opacity: 1;
}

.install-app:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.install-app:active {
  transform: scale(0.97);
}

@media (max-width: 599px) {
  .install-app {
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 5px 8px;
    font-size: 10px;
  }
}

.aviso-js {
  position: fixed;
  inset: auto 12px 12px;
  z-index: 90;
  margin: 0;
  padding: 12px;
  background: #fff;
  color: #111;
  text-align: center;
}
