/* ═══════════════════════════════════════════════════════════════════════
   Sticky Subscribe Bar — Subtle bottom notification
   Appears after 40% scroll depth, dismissable, session-persistent
   ═══════════════════════════════════════════════════════════════════════ */

.asi-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.asi-sticky-bar.asi-sticky-visible {
  transform: translateY(0);
  pointer-events: all;
}

.asi-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.875rem 1.5rem;
  background: #0F1B2D;
  border-top: 1px solid rgba(184, 134, 11, 0.2);
  box-shadow: 0 -4px 24px rgba(15, 27, 45, 0.15);
}

.asi-sticky-text {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.asi-sticky-text strong {
  color: #B8860B;
  font-weight: 600;
}

.asi-sticky-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.asi-sticky-form input[type="email"] {
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.8125rem;
  outline: none;
  width: 220px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.asi-sticky-form input[type="email"]:focus {
  border-color: rgba(14, 165, 233, 0.5);
  background: rgba(255, 255, 255, 0.09);
}

.asi-sticky-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.asi-sticky-form button {
  padding: 0.5rem 1.125rem;
  border-radius: 6px;
  border: none;
  background: #B8860B;
  color: #0F1B2D;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.asi-sticky-form button:hover {
  background: #C99510;
}

.asi-sticky-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
  line-height: 1;
}

.asi-sticky-close:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile: stack vertically, hide text, show compact version */
@media (max-width: 768px) {
  .asi-sticky-inner {
    flex-direction: column;
    gap: 0.625rem;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
  }

  .asi-sticky-text {
    font-size: 0.8125rem;
    white-space: normal;
    text-align: center;
  }

  .asi-sticky-form {
    width: 100%;
  }

  .asi-sticky-form input[type="email"] {
    flex: 1;
    width: auto;
  }

  .asi-sticky-close {
    top: 0.5rem;
    right: 0.5rem;
    transform: none;
  }
}

/* Hide when subscribe section is in view (no double-prompting) */
.asi-sticky-bar.asi-sticky-hidden {
  transform: translateY(100%) !important;
}
