/*!
 * Creatiq theme — Subscribe pre-footer band styles (COMPACT)
 * Authored:  2026-08-12 by Hermes per Chairman request (msg #429, 08-12 21:00Z)
 * Replaces:  2026-08-11 verbose styles
 * Aesthetic: single-line subscribe strip — email field + button on one row,
 *             minimal vertical footprint. Brand purple gradient preserved.
 *             ~64px desktop / ~56px mobile (vs. ~480-600px before).
 * Typography: DM Sans (matches existing form inputs).
 * Contrast:   white-on-purple exceeds WCAG AA (4.5:1).
 * Variables:  --brand-purple #8B5CF6, --bg-elevated #14141C
 * Backout:    drop <link> from default.hbs or rm this file. Restore 2026-08-11 version.
 */

.subscribe-band--compact {
  position: relative;
  padding: 14px 0;
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0.04) 50%, rgba(139, 92, 246, 0.08)),
    linear-gradient(180deg, #0d0d14 0%, #14141c 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.18);
  border-bottom: 1px solid rgba(139, 92, 246, 0.18);
  color: #fff;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

.subscribe-band--compact .subscribe-band__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  text-align: left;
}

.subscribe-band--compact .subscribe-band__heading {
  /* a11y text — visually hidden but accessible to screen readers */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.subscribe-band--compact .subscribe-band__form {
  display: block;
  width: 100%;
  margin: 0;
}

.subscribe-band--compact .subscribe-band__row {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: stretch;
}

.subscribe-band--compact .subscribe-band__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 18px;
  font-size: 15px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: #fff;
  background: rgba(20, 20, 28, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.30);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subscribe-band--compact .subscribe-band__input::placeholder {
  color: rgba(250, 250, 252, 0.45);
}

.subscribe-band--compact .subscribe-band__input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.subscribe-band--compact .subscribe-band__btn {
  flex: 0 0 auto;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: #fff;
  background: #8B5CF6;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.subscribe-band--compact .subscribe-band__btn:hover,
.subscribe-band--compact .subscribe-band__btn:focus {
  background: #7C3AED;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
  outline: none;
}

.subscribe-band--compact .subscribe-band__msg {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  display: none;
}

.subscribe-band--compact .subscribe-band__msg:not([hidden]) {
  display: block;
}

.subscribe-band--compact .subscribe-band__msg--success {
  color: #a5e6c2;
}

.subscribe-band--compact .subscribe-band__msg--error {
  color: #ff8b8b;
}

.subscribe-band--compact .subscribe-band__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile: stack email + button vertically (single column, but still compact) */
@media (max-width: 600px) {
  .subscribe-band--compact .subscribe-band__row {
    flex-direction: row;
    gap: 8px;
  }
  .subscribe-band--compact .subscribe-band__input {
    padding: 11px 14px;
    font-size: 14px;
  }
  .subscribe-band--compact .subscribe-band__btn {
    padding: 11px 18px;
    font-size: 14px;
  }
}

/* Reduced motion: disable hover transitions */
@media (prefers-reduced-motion: reduce) {
  .subscribe-band--compact .subscribe-band__input,
  .subscribe-band--compact .subscribe-band__btn {
    transition: background 0.15s ease;
  }
}

/* Legacy class fallback (in case the verbose 2026-08-11 styles are still cached) */
.subscribe-band .subscribe-band__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
