/* ==========================================================================
   ADAXE Custom Concentric Gold Cursor
   Matches user design: Solid gold inner dot with concentric outer gold ring
   ========================================================================== */

/* Hide default cursor on desktop devices with fine pointers */
@media (hover: hover) and (pointer: fine) {
  body.custom-cursor-active,
  body.custom-cursor-active a,
  body.custom-cursor-active button,
  body.custom-cursor-active input,
  body.custom-cursor-active select,
  body.custom-cursor-active textarea,
  body.custom-cursor-active label,
  body.custom-cursor-active [role="button"],
  body.custom-cursor-active summary,
  body.custom-cursor-active .test-video,
  body.custom-cursor-active .chip,
  body.custom-cursor-active .cats li,
  body.custom-cursor-active .btn {
    cursor: none !important;
  }
}

/* Outer Ring & Inner Dot Wrappers */
.custom-cursor-ring,
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100000000;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

/* Inner Solid Dot (Exact match to screenshot) */
.custom-cursor-dot {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  margin-left: -4px;
}

.custom-cursor-dot-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gold, #d9ae64);
  box-shadow: 0 0 8px rgba(217, 174, 100, 0.45);
  transform: scale(1);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.1, 1),
              background-color 0.22s ease,
              box-shadow 0.22s ease;
}

/* Outer Concentric Ring (Exact match to screenshot) */
.custom-cursor-ring {
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
}

.custom-cursor-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--gold, #d9ae64);
  background: transparent;
  box-shadow: 0 0 12px rgba(217, 174, 100, 0.18), inset 0 0 6px rgba(217, 174, 100, 0.05);
  transform: scale(1);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.1, 1),
              border-color 0.22s ease,
              background-color 0.22s ease,
              box-shadow 0.22s ease,
              opacity 0.22s ease;
}

/* Active Visible State */
.custom-cursor-ring.is-visible,
.custom-cursor-dot.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Hover State: Expanded gold ring with ambient aura */
.custom-cursor-ring.is-hover .custom-cursor-ring-inner {
  transform: scale(1.45);
  border-color: var(--gold-hi, #f3d791);
  background: rgba(217, 174, 100, 0.09);
  box-shadow: 0 0 20px rgba(217, 174, 100, 0.38), inset 0 0 10px rgba(217, 174, 100, 0.12);
}

.custom-cursor-dot.is-hover .custom-cursor-dot-inner {
  transform: scale(0.8);
  background: var(--gold-hi, #f3d791);
  box-shadow: 0 0 12px rgba(243, 215, 145, 0.65);
}

/* Click / Mousedown Press State */
.custom-cursor-ring.is-active .custom-cursor-ring-inner {
  transform: scale(0.88);
  border-color: var(--gold-hi, #f3d791);
  background: rgba(217, 174, 100, 0.22);
  box-shadow: 0 0 14px rgba(217, 174, 100, 0.5);
}

.custom-cursor-dot.is-active .custom-cursor-dot-inner {
  transform: scale(1.25);
  background: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.8);
}

/* Over Text Inputs & Textareas */
.custom-cursor-ring.is-text .custom-cursor-ring-inner {
  transform: scale(0.5);
  opacity: 0.45;
  border-color: var(--muted, #a9a59d);
}

.custom-cursor-dot.is-text .custom-cursor-dot-inner {
  transform: scale(0.85);
  background: var(--ivory, #efebe4);
  box-shadow: 0 0 6px rgba(239, 235, 228, 0.4);
}

/* Disable on touch devices and mobile screens */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .custom-cursor-ring,
  .custom-cursor-dot {
    display: none !important;
  }
}

/* ==========================================================================
   ADAXE Floating WhatsApp Button (Mobile & Desktop)
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.1, 1), box-shadow 0.25s cubic-bezier(0.2, 0.7, 0.1, 1), bottom 0.35s cubic-bezier(0.2, 0.7, 0.1, 1);
  text-decoration: none;
  animation: waPulse 3s infinite ease-in-out;
}

@keyframes waPulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0);
  }
}

.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.65), 0 4px 12px rgba(0, 0, 0, 0.45);
  animation: none;
}

.wa-float:active {
  transform: scale(0.95);
}

.wa-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.wa-float-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #141416;
  color: #efebe4;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(239, 235, 228, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-float-tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #141416;
}

.wa-float:hover .wa-float-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Mobile & Touch Screen Positioning */
@media (max-width: 820px) {
  .wa-float {
    width: 52px;
    height: 52px;
    right: 18px;
    bottom: 20px;
  }
  .wa-float-tooltip {
    display: none !important;
  }
  /* When bottom dock is showing, smoothly fade out wa-float so there is zero clutter */
  .mbar.show ~ .wa-float {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.5) !important;
  }
}

/* ==========================================================================
   ADAXE Mobile Bottom Action Dock (Premium Floating Capsule)
   ========================================================================== */
.mbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  pointer-events: none;
  padding: 0 16px calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateY(130%);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.mbar.show {
  transform: translateY(0);
}

.mbar-wrap {
  pointer-events: auto;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  background: rgba(239, 235, 228, 0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(176, 125, 28, 0.32);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 16px 38px -10px rgba(45, 35, 20, 0.18), 0 4px 14px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mbar-wa {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.mbar-wa:active {
  transform: scale(0.92);
}

.mbar-wa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.mbar-wa-pulse {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #25d366;
  border: 2px solid #efebe4;
  box-shadow: 0 0 8px #25d366;
}

.mbar-cta {
  flex: 1;
  min-height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e4bf79 0%, #b07d1c 55%, #8b6a2e 100%);
  color: #120e04;
  font-family: var(--f-display, 'Syne', system-ui, sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(176, 125, 28, 0.35);
  box-shadow: 0 6px 20px -4px rgba(176, 125, 28, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.mbar-cta:hover {
  filter: brightness(1.04);
}

.mbar-cta:active {
  transform: scale(0.97);
}

.mbar-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.mbar-cta:hover svg {
  transform: translateX(3px);
}

@media (max-width: 820px) {
  .mbar {
    display: flex;
  }
}

@media (max-width: 360px) {
  .mbar {
    padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .mbar-wrap {
    padding: 5px 6px 5px 10px;
    gap: 8px;
  }
  .mbar-wa {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  .mbar-cta {
    min-height: 40px;
    font-size: 0.88rem;
  }
}
