/* ============================================
   HERO MOCKUP — 3D Screens (Google + WhatsApp)
   Pure CSS · Lightweight · 60fps
   ============================================ */

/* ── 3D Scene Container ── */
.hero__mockup-scene {
  perspective: 1200px;
  perspective-origin: 50% 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}

/* ── Depth Layer: Floating blur shapes (Layer 3) ── */
.hero__mockup-scene::before,
.hero__mockup-scene::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.hero__mockup-scene::before {
  width: 180px;
  height: 180px;
  background: rgba(37, 211, 102, 0.12);
  top: 10%;
  right: 5%;
}

.hero__mockup-scene::after {
  width: 140px;
  height: 140px;
  background: rgba(0, 109, 47, 0.08);
  bottom: 5%;
  left: 10%;
}


/* ── Phone Frame (Shared) ── */
.mockup-phone {
  position: relative;
  z-index: 1;
  width: 220px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  border: 2px solid rgba(0, 0, 0, 0.06);
}

/* ── Screen 1: Google Search ── */
.mockup-phone--google {
  transform: rotateY(-8deg) rotateX(3deg);
  animation: heroFloat 4s ease-in-out infinite;
}

/* ── Screen 2: WhatsApp Chat ── */
.mockup-phone--whatsapp {
  transform: rotateY(5deg) rotateX(2deg);
  animation: heroFloat 4s ease-in-out 0.8s infinite;
}


/* ════════════════════════════════════════════
   GOOGLE SEARCH MOCKUP UI
   ════════════════════════════════════════════ */

.gm-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.gm-search-bar__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.gm-search-bar__icon svg {
  width: 100%;
  height: 100%;
  fill: #4285f4;
}

.gm-search-bar__input {
  flex: 1;
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--color-on-surface);
  font-weight: var(--weight-medium);
  background: none;
  border: none;
  outline: none;
  line-height: 1.4;
}

.gm-tabs {
  display: flex;
  gap: 0;
  padding: 0 12px;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
}

.gm-tab {
  padding: 8px 10px;
  font-size: 10px;
  font-family: var(--font-body);
  color: #5f6368;
  border-bottom: 2px solid transparent;
  font-weight: var(--weight-medium);
}

.gm-tab--active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
}

/* Local Pack result */
.gm-local-result {
  padding: 14px 12px;
  background: #fff;
}

.gm-local-result__map {
  width: 100%;
  height: 60px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
  border-radius: 8px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.gm-local-result__map::after {
  content: '📍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
}

.gm-local-result__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.gm-local-result__item:last-child {
  border-bottom: none;
}

.gm-local-result__rank {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 10px;
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.gm-local-result__info {
  flex: 1;
  min-width: 0;
}

.gm-local-result__name {
  font-size: 11px;
  font-family: var(--font-body);
  color: var(--color-on-surface);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.gm-local-result__name--highlight {
  color: var(--color-primary);
}

.gm-local-result__stars {
  font-size: 10px;
  color: #fbbc04;
  letter-spacing: -1px;
  line-height: 1;
}

.gm-local-result__meta {
  font-size: 9px;
  color: #5f6368;
  font-family: var(--font-body);
  line-height: 1.4;
}

/* First result highlighted */
.gm-local-result__item--top {
  background: rgba(0, 109, 47, 0.04);
  border-radius: 8px;
  padding: 10px 8px;
  border: 1px solid rgba(0, 109, 47, 0.1);
}


/* ════════════════════════════════════════════
   WHATSAPP CHAT MOCKUP UI
   ════════════════════════════════════════════ */

.wa-mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #075e54;
  color: #fff;
}

.wa-mock-header__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: var(--weight-bold);
  color: #fff;
  flex-shrink: 0;
}

.wa-mock-header__info {
  flex: 1;
}

.wa-mock-header__name {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  font-family: var(--font-body);
  line-height: 1.2;
}

.wa-mock-header__status {
  font-size: 9px;
  opacity: 0.8;
  font-family: var(--font-body);
}

.wa-mock-body {
  background: #ece5dd;
  padding: 16px 12px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.02) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

.wa-mock-bubble {
  max-width: 85%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-family: var(--font-body);
  line-height: 1.5;
  position: relative;
}

.wa-mock-bubble--sent {
  background: #dcf8c6;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  color: var(--color-on-surface);
}

.wa-mock-bubble--received {
  background: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  color: var(--color-on-surface);
}

.wa-mock-bubble__time {
  font-size: 8px;
  color: #667781;
  text-align: right;
  margin-top: 4px;
}

.wa-mock-bubble__check {
  color: #53bdeb;
  font-size: 8px;
  margin-left: 2px;
}

/* Typing indicator */
.wa-mock-typing {
  display: flex;
  gap: 3px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 8px;
  align-self: flex-start;
  width: fit-content;
}

.wa-mock-typing__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #90a4ae;
  animation: typingBounce 1.2s ease-in-out infinite;
}

.wa-mock-typing__dot:nth-child(2) { animation-delay: 0.15s; }
.wa-mock-typing__dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* WhatsApp input bar */
.wa-mock-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f0f0f0;
}

.wa-mock-input__field {
  flex: 1;
  padding: 6px 10px;
  border-radius: 18px;
  background: #fff;
  font-size: 10px;
  font-family: var(--font-body);
  color: #667781;
  border: none;
}

.wa-mock-input__send {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-mock-input__send svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}


/* ════════════════════════════════════════════
   3D KEYFRAMES
   ════════════════════════════════════════════ */

@keyframes heroFloat {
  0%, 100% { transform: var(--mockup-base-transform) translateY(0); }
  50%      { transform: var(--mockup-base-transform) translateY(-6px); }
}

/* Attention shift: subtle nudge every 5s toward CTA */
@keyframes heroAttentionShift {
  0%, 85%, 100% { transform: var(--mockup-base-transform) translateY(0) translateX(0); }
  90%           { transform: var(--mockup-base-transform) translateY(-2px) translateX(-4px); }
  95%           { transform: var(--mockup-base-transform) translateY(0) translateX(0); }
}

/* Base transforms set as CSS custom properties */
.mockup-phone--google {
  --mockup-base-transform: rotateY(-8deg) rotateX(3deg);
}

.mockup-phone--whatsapp {
  --mockup-base-transform: rotateY(5deg) rotateX(2deg);
}


/* ════════════════════════════════════════════
   VISUAL FLOW: Mockup → CTA
   ════════════════════════════════════════════ */

.hero__flow-arrow {
  display: none;
}

@media (min-width: 1024px) {
  .hero__flow-arrow {
    display: block;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    opacity: 0.4;
    animation: flowPulse 3s ease-in-out infinite;
  }

  @keyframes flowPulse {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
    50%      { opacity: 0.6; transform: translateX(-50%) translateY(4px); }
  }
}


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

/* Mobile: stacked, reduced */
@media (max-width: 767px) {
  .hero__mockup-scene {
    gap: var(--space-md);
    padding: var(--space-lg) 0 var(--space-md);
  }

  .mockup-phone {
    width: 155px;
    border-radius: 18px;
  }

  .mockup-phone--google {
    transform: rotateY(-4deg) rotateX(2deg);
    --mockup-base-transform: rotateY(-4deg) rotateX(2deg);
  }

  .mockup-phone--whatsapp {
    transform: rotateY(3deg) rotateX(1deg);
    --mockup-base-transform: rotateY(3deg) rotateX(1deg);
  }

  .gm-local-result__map {
    height: 40px;
  }

  .wa-mock-body {
    min-height: 120px;
    padding: 10px 8px;
  }

  .hero__mockup-scene::before {
    width: 120px;
    height: 120px;
  }

  .hero__mockup-scene::after {
    width: 90px;
    height: 90px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .mockup-phone {
    width: 190px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .mockup-phone {
    width: 240px;
  }

  .hero__mockup-scene {
    gap: var(--space-xl);
  }
}


/* ════════════════════════════════════════════
   ACCESSIBILITY
   ════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .mockup-phone--google,
  .mockup-phone--whatsapp {
    animation: none;
  }

  .wa-mock-typing__dot {
    animation: none;
    opacity: 0.6;
  }

  .hero__flow-arrow {
    animation: none;
    opacity: 0.4;
  }
}
