/* REMAX + Robozin — customizações sobre Bootstrap */
:root {
  --remax-blue: #0066b3;
  --remax-blue-dark: #005a9e;
  --remax-dark: #1a1a2e;
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--remax-dark);
}

/* Cores REMAX nos botões e badge */
.btn-primary,
.bg-primary {
  background: linear-gradient(135deg, var(--remax-blue), var(--remax-blue-dark)) !important;
  border-color: var(--remax-blue) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--remax-blue-dark), #004a82) !important;
  border-color: var(--remax-blue-dark) !important;
  box-shadow: 0 6px 20px rgba(0, 102, 179, 0.35);
}

.bg-primary.bg-opacity-10 {
  background: rgba(0, 102, 179, 0.12) !important;
}

.text-primary {
  color: var(--remax-blue) !important;
}

/* Logo no navbar */
.logo-remax-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* Banner hero com imagem de fundo */
.hero-banner {
  min-height: 70vh;
  background-image: url("https://datalakephoenixdev.blob.core.windows.net/cms-uploads/bt557v2c318qgd906d2y1pxb/attachments/own93somvucvf2rwusg8ndw6-home-imagem-2.max.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-banner-overlay {
  background: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.hero-banner-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-banner-btn {
  background: #fff !important;
  color: var(--remax-blue) !important;
  border-color: #fff !important;
}

.hero-banner-btn:hover {
  background: #f0f0f0 !important;
  color: var(--remax-blue) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* Animação para mensagens interativas dos mockups */
.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intro section (gradiente) */
.intro-section {
  background: linear-gradient(160deg, #e8eef5 0%, #fff 50%);
}

/* Cards com hover */
.card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
}

/* CTA section (fundo azul REMAX) */
.cta-section {
  background: linear-gradient(135deg, var(--remax-blue), var(--remax-blue-dark));
}

.cta-section .btn-light:hover {
  background: #f0f0f0 !important;
  color: var(--remax-blue) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* ----- Mockups de celular (O que é o Robozin) — mesmo tamanho fixo ----- */
.phone-mockup,
.phone-mockup-android {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  flex-shrink: 0;
  margin: 0 auto;
  background: #334155;
  border-radius: 2rem;
  padding: 8px;
  border: 4px solid #475569;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.phone-screen,
.phone-mockup-android .phone-screen {
  background: #0f172a;
  border-radius: 1.5rem;
  overflow: hidden;
  height: 480px;
  min-height: 480px;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Celulares sempre lado a lado (nunca empilhados) quando visíveis */
.phones-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

/* Extra small (<576px): celulares ocultos */
@media (max-width: 575.98px) {
  .phones-col {
    display: none !important;
  }
}

/* Small (≥576px e <768px): celulares ocultos */
@media (min-width: 576px) and (max-width: 767.98px) {
  .phones-col {
    display: none !important;
  }
}

/* Medium (≥768px) e Large (≥992px): celulares visíveis embaixo do texto, com espaço */
@media (min-width: 768px) {
  .phones-col {
    display: flex !important;
  }
}

/* Extra large (≥1200px): texto à esquerda, celulares à direita; celulares um pouco mais finos */
@media (min-width: 1200px) {
  .phone-mockup,
  .phone-mockup-android {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    padding: 6px;
    border-width: 3px;
    border-radius: 1.75rem;
  }
  .phone-screen,
  .phone-mockup-android .phone-screen {
    height: 450px;
    min-height: 450px;
    max-height: 450px;
    border-radius: 1.35rem;
  }
}

/* Extra extra large (≥1400px): manter celulares no tamanho padrão */
@media (min-width: 1400px) {
  .phone-mockup,
  .phone-mockup-android {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    padding: 8px;
    border-width: 4px;
    border-radius: 2rem;
  }
  .phone-screen,
  .phone-mockup-android .phone-screen {
    height: 480px;
    min-height: 480px;
    max-height: 480px;
    border-radius: 1.5rem;
  }
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 10;
}

.phone-camera {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #000;
  border-radius: 50%;
  border: 1px solid #334155;
  z-index: 10;
}

.phone-header {
  padding: 38px 16px 12px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.phone-logo {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.phone-status {
  font-size: 10px;
  color: #94a3b8;
}

.phone-chat {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 220px;
  background: #0b141a;
}

.phone-chat-pro {
  min-height: 240px;
}

.phone-chat .msg {
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.35;
  position: relative;
}

.phone-chat .msg-time {
  font-size: 9px;
  color: #94a3b8;
  display: block;
  text-align: right;
  margin-top: 4px;
}

.phone-chat .btn-outline-light {
  border-color: #64748b;
  color: #94a3b8;
}

.phone-chat .btn-outline-light:hover {
  border-color: #94a3b8;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

.msg-sent {
  background: linear-gradient(135deg, var(--remax-blue), var(--remax-blue-dark));
  color: #fff;
  align-self: flex-end;
  border-top-right-radius: 4px;
}

.msg-received {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  align-self: flex-start;
  border-top-left-radius: 4px;
}

.msg-waiting {
  background: #1e293b;
  color: #94a3b8;
  align-self: center;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
}

.msg-card.msg-received {
  padding: 10px 12px;
}

.phone-contact-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 10px;
  align-self: flex-start;
  width: 100%;
  max-width: 95%;
}

.phone-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.phone-input-area {
  padding: 10px 12px 14px;
  border-top: 1px solid #1e293b;
  background: #0f172a;
  flex-shrink: 0;
}

.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: #64748b;
  border-radius: 999px;
  opacity: 0.5;
}

.phone-pill {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #64748b;
  border-radius: 999px;
  opacity: 0.5;
}

/* Footer */
.footer {
  background: var(--remax-dark);
  color: #fff;
}

.footer a:hover {
  color: #fff;
  opacity: 0.9;
}

/* Responsivo */
@media (max-width: 768px) {
  .hero-banner {
    min-height: 60vh;
  }

  .hero-banner-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
}

@media (max-width: 576px) {
  .hero-banner .btn-lg {
    width: 100%;
  }
}
