/* =====================
   RESET
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* =====================
   TOKENS
   ===================== */
:root {
  --purple:       #822A81;
  --purple-dark:  #5E1E5C;
  --teal:         #00C2BF;
  --white:        #ffffff;

  --fs-form-ttl: 1.1vw;
  --fs-input:    0.85vw;
  --fs-address:  1.1vw;
}

body { font-family: "graphie", sans-serif; }

/* =====================
   ALTERNÂNCIA DESKTOP / MOBILE
   ===================== */
.mobile { display: none; }

@media (max-width: 768px) {
  .desktop { display: none; }
  .mobile  { display: block; }
}

/* =====================
   MOBILE
   ===================== */
.mobile {
  line-height: 0;
}

.m-hero,
.m-map,
.m-footer {
  position: relative;
  line-height: 0;
}

.mobile .mobile-bg {
  width: 100%;
  height: auto;
  display: block;
}

/* Sessão "Bairro do coração" + piscina */
.m-bairro {
  background: #5F1760;
  line-height: normal;
  text-align: center;
  padding-top: 9vw;
}

.m-bairro-txt {
  width: 84vw;
  height: auto;
  margin: 0 auto 7vw;
}

.m-bairro-pool {
  width: 100%;
  height: auto;
  display: block;
}

/* Mapa dentro do card branco (mobile) */
.mobile-mapa {
  position: absolute;
  top: 6.3%;
  left: 50%;
  transform: translateX(-50%);
  width: 64%;
  height: auto;
  z-index: 2;
  cursor: pointer;
}

/* Textos centralizados (sobre o espaço roxo) */
.mobile-copy {
  position: absolute;
  top: 73%;
  left: 0;
  width: 100%;
  line-height: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5vw;
}

.m-copy-eyebrow { width: 52vw; }
.m-copy-title   { width: 56vw; }
.m-copy-rooms   { width: 52vw; }
.m-copy-varanda { width: 30vw; }

.m-divider {
  display: block;
  width: 54vw;
  height: 0.4vw;
  background: rgba(255,255,255,0.55);
  margin: 1vw 0;
}

/* Sessão do formulário (bloco sólido) */
.m-form {
  background: #421740;
  padding: 8vw 7.65vw 10vw;
  line-height: normal;
}

.m-form-title {
  color: #fff;
  text-align: center;
  font-size: 6.2vw;
  font-weight: 700;
  margin-bottom: 6vw;
}

/* Campos do formulário */
.mobile-form {
  width: 100%;
  line-height: normal;
  display: flex;
  flex-direction: column;
  gap: 3.4vw;
}

.mobile-form .mensagem {
  min-height: 26vw;
}

.mobile-form input,
.mobile-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 3.6vw;
  font-weight: 400;
  padding: 3.4vw 4vw;
  border: none;
  border-radius: 2vw;
  background: #fff;
  color: #822A81;
  outline: none;
}

.mobile-form input::placeholder,
.mobile-form textarea::placeholder {
  color: #929292;
  font-family: "graphie", sans-serif;
  opacity: 1;
}

.mobile-form textarea { resize: none; }

.mobile-form button {
  margin-top: 2vw;
  width: 100%;
  height: 9.8vw;
  background: #00C2BF;
  color: #822A81;
  border: none;
  border-radius: 2.3vw;
  padding: 0;
  font-family: inherit;
  font-size: 3.8vw;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mobile-form button:hover { opacity: 0.88; }

/* Endereço (pin em cima do texto) */
.mobile-address {
  position: absolute;
  bottom: 40.5%;
  left: 50%;
  transform: translateX(-50%);
  line-height: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vw;
  z-index: 2;
}

.m-address-pin {
  width: auto;
  height: 6vw;
}

.mobile-address p {
  color: #fff;
  font-size: 4.6vw;
  font-weight: 400;
  white-space: nowrap;
}

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  line-height: 0;
}

.hero .banner {
  width: 100%;
  height: auto;
  display: block;
}

/* Logo dentro do triângulo branco */
.hero-logo {
  position: absolute;
  top: 9%;
  left: 46%;
  transform: translateX(-50%);
  width: 11vw;
  z-index: 2;
}

/* Selo no fim da foto das pessoas */
.hero-selo {
  position: absolute;
  top: 67%;
  left: 24%;
  transform: translate(-50%, -50%);
  width: 13vw;
  z-index: 2;
}

/* Textos centralizados */
.hero-copy {
  position: absolute;
  top: 56%;
  left: 52%;
  transform: translateX(-50%);
  z-index: 2;
  line-height: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5vw;
}

.copy-eyebrow { width: 18vw; }
.copy-title   { width: 20vw; }
.copy-rooms   { width: 19vw; }
.copy-varanda { width: 11vw; }

.divider {
  display: block;
  width: 19vw;
  height: 0.15vw;
  background: rgba(255,255,255,0.55);
  margin: 0.6vw 0;
}

/* Formulário à direita */
.form-card {
  position: absolute;
  top: 50%;
  right: 9.5vw;
  transform: translateY(-50%);
  z-index: 2;
  line-height: normal;
  width: 24vw;
  background: rgba(74, 22, 82, 0.78);
  border-radius: 1.6vw;
  padding: 4vw 2vw;
  display: flex;
  flex-direction: column;
  gap: 2vw;
}

.form-card h3 {
  color: var(--white);
  font-size: var(--fs-form-ttl);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.8vw;
}

.form-card input,
.form-card textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-input);
  font-weight: 400;
  padding: 0.7vw 0.9vw;
  border: none;
  border-radius: 0.4vw;
  background: var(--white);
  color: var(--purple);
  outline: none;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: #822A81;
  opacity: 1;
}

.form-card textarea { resize: none; }

.form-card button {
  align-self: center;
  margin-top: 0.8vw;
  background: #00C2BF;
  color: #822A81;
  border: none;
  border-radius: 999px;
  padding: 0.9vw 2.5vw;
  font-family: inherit;
  font-size: var(--fs-input);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.form-card button:hover { opacity: 0.88; }

/* =====================
   LOADING STATE DO BOTÃO (mobile + desktop)
   ===================== */
.contactForm button.is-loading,
.contactForm button[disabled] {
  pointer-events: none;
  opacity: 0.7;
}

.contactForm button.is-loading::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.6em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: -0.15em;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* =====================
   BAIRRO DO CORAÇÃO (desktop)
   ===================== */
.bairro {
  position: relative;
  overflow: hidden;
  background: #5F1760;
  padding: 4vw 0 4.5vw;
  text-align: center;
}

.bairro-inner {
  position: relative;
  z-index: 2;
}

.bairro-txt {
  width: 44vw;
  max-width: 659px;
  height: auto;
  margin: 0 auto;
}

.bairro-pool {
  width: 52vw;
  max-width: 740px;
  height: auto;
  margin: 2.5vw auto 0;
}

.bairro-cta {
  display: inline-block;
  margin-top: 2.6vw;
  background: #00C2BF;
  color: #822A81;
  border-radius: 999px;
  padding: 1.1vw 4vw;
  font-family: inherit;
  font-size: 1vw;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
}

.bairro-cta:hover { opacity: 0.88; }

/* Triângulos decorativos */
.bairro-tri-left,
.bairro-tri-right {
  position: absolute;
  height: auto;
  z-index: 1;
  mix-blend-mode: multiply;
}

.bairro-tri-left {
  left: 0;
  bottom: 9vw;
  width: 42vw;
}

.bairro-tri-right {
  right: 4vw;
  top: 60%;
  width: 26vw;
}

/* =====================
   LOCALIZAÇÃO
   ===================== */
.location {
  line-height: 0;
}

.sessao-wrap {
  position: relative;
  line-height: 0;
}

.location .sessao-2 {
  width: 100%;
  height: auto;
  display: block;
}

/* Endereço (pin em cima do texto) sobre a SESSAO-2 */
.address {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  line-height: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8vw;
  z-index: 2;
}

.address-pin {
  width: auto;
  height: 2vw;
}

.address p {
  color: #fff;
  font-size: 2.3vw;
  font-weight: 400;
  white-space: nowrap;
}

/* Mapa dentro do card (parte de cima) */
.mapa-overlay {
  position: absolute;
  top: 6%;
  left: 49%;
  transform: translateX(-50%);
  width: 37%;
  height: auto;
  z-index: 2;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}

.mapa-overlay:hover {
  filter: brightness(0.95);
  transform: translateX(-50%) scale(1.01);
}

/* =====================
   MODAL DO MAPA
   ===================== */
.map-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  line-height: normal;
}

.map-modal.is-open { display: flex; }

.map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.map-modal__content {
  position: relative;
  z-index: 1;
  width: min(900px, 95vw);
  height: min(600px, 80vh);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.map-modal__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #822A81;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.map-modal__close:hover { opacity: 0.85; }

/* "A 5 min do NorteShopping" dentro do retângulo branco (parte de baixo) */
.distancia-overlay {
  position: absolute;
  bottom: 34%;
  left: 49%;
  transform: translateX(-50%);
  width: 24%;
  z-index: 2;
}

.distancia-txt {
  width: 100%;
  height: auto;
  display: block;
}

/* Asterisco depois de SHOPPING */
.distancia-aster {
  position: absolute;
  top: 44%;
  right: -4%;
  color: #822A81;
  font-weight: 700;
  font-size: 2.2vw;
  line-height: 1;
}

/* "*Fonte Google Maps" pequeno e sem bold, abaixo */
.distancia-fonte {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 0.6vw;
  text-align: center;
  color: #7C376E;
  font-size: 0.7vw;
  font-weight: 400;
  line-height: normal;
}

/* Carro no espaço entre MIN e DO */
.distancia-carro {
  position: absolute;
  top: -38%;
  left: 51%;
  width: 29%;
  height: auto;
  z-index: 3;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: url('../img/Rectangle-roxo.png') center / cover no-repeat;
  background-color: var(--purple);
}

.footer img { width: 100%; display: block; }
