/* DeliPet — tela com arte de marca */

.pets-module {
  --pets-maroon: #5d1016;
  --pets-maroon-deep: #3f0a0e;
  --pets-gold: #f0a83d;
  --pets-gold-hot: #ffc15a;
  position: relative;
  margin: 0;
  min-height: calc(100dvh - 7.5rem);
  padding: 0;
  animation: pets-fade-in 0.45s ease;
}

@keyframes pets-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pets-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-height: inherit;
  overflow: hidden;
  background: var(--pets-maroon);
  color: #fff;
}

.pets-stage__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.pets-stage__art {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.pets-stage__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 55%,
    rgba(63, 10, 14, 0.18) 68%,
    rgba(63, 10, 14, 0.7) 82%,
    rgba(63, 10, 14, 0.94) 100%
  );
}

.pets-stage__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  flex: 0 0 auto;
  margin-top: auto;
  /* Espaço para o botão flutuante de Telemedicina do footer */
  padding: 0 1rem calc(5.75rem + env(safe-area-inset-bottom, 0px));
}

/* Caixa compacta (~50% da altura anterior) */
.pets-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 0.28rem;
  width: min(88%, 18.5rem);
  height: fit-content;
  margin: 0 auto;
  padding: 0.45rem 0.85rem 0.55rem;
  border-radius: 14px;
  text-align: center;
  background:
    linear-gradient(
      165deg,
      rgba(93, 16, 22, 0.95) 0%,
      rgba(63, 10, 14, 0.93) 50%,
      rgba(32, 5, 8, 0.97) 100%
    );
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: pets-logo-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

@keyframes pets-logo-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pets-stage__tagline {
  margin: 0;
  max-width: 15rem;
  font-size: clamp(0.86rem, 3.2vw, 0.98rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.pets-stage__lead {
  margin: 0;
  max-width: 16.5rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}

.pets-stage__cta {
  width: 100%;
  margin-top: 0.2rem;
}

.pets-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.62rem 0.9rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--pets-gold-hot) 0%, var(--pets-gold) 100%);
  color: var(--pets-maroon-deep);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.pets-btn:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.pets-btn:active:not(:disabled) {
  transform: translateY(0);
}

.pets-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pets-empty {
  margin: 0.4rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: #ffe4e4;
  font-size: 0.8rem;
  line-height: 1.35;
}

.pets-toast {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1200;
  max-width: min(92vw, 22rem);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--pets-maroon-deep);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(63, 10, 14, 0.4);
  animation: pets-toast-in 0.3s ease;
}

@keyframes pets-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (min-width: 768px) {
  .pets-module {
    border-radius: 20px;
    overflow: hidden;
    min-height: min(78dvh, 720px);
  }

  .pets-stage__content {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }

  .pets-brand {
    width: min(48%, 20rem);
    padding: 0.55rem 1rem 0.65rem;
  }
}

@media (max-width: 380px) {
  .pets-stage__tagline {
    font-size: 0.84rem;
  }

  .pets-stage__lead {
    font-size: 0.74rem;
  }

  .pets-stage__content {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
}
