/* ============================================
   First Cash Business — Custom Styles
   Beyond Tailwind utilities
   ============================================ */

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom range slider track styling */
.firstcash-range {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.firstcash-range::-webkit-slider-runnable-track {
  height: 8px;
  background: linear-gradient(to right,
    #0E4D2A 0%,
    #0E4D2A var(--progress, 50%),
    #EEF0F4 var(--progress, 50%),
    #EEF0F4 100%);
  border-radius: 9999px;
}

.firstcash-range::-moz-range-track {
  height: 8px;
  background: linear-gradient(to right,
    #0E4D2A 0%,
    #0E4D2A var(--progress, 50%),
    #EEF0F4 var(--progress, 50%),
    #EEF0F4 100%);
  border-radius: 9999px;
}

.firstcash-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  background: white;
  border: 4px solid #0E4D2A;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -9px;
  box-shadow: 0 4px 12px rgba(14, 77, 42, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.firstcash-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 18px rgba(14, 77, 42, 0.5);
}

.firstcash-range::-webkit-slider-thumb:active {
  transform: scale(1.25);
}

.firstcash-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  background: white;
  border: 4px solid #0E4D2A;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(14, 77, 42, 0.35);
  transition: transform 0.15s ease;
}

.firstcash-range::-moz-range-thumb:hover { transform: scale(1.15); }

/* Floating animations */
@keyframes firstcash-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes firstcash-float-delay {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.animate-float { animation: firstcash-float 4s ease-in-out infinite; }
.animate-float-delay { animation: firstcash-float-delay 4s ease-in-out infinite 1s; }

/* FAQ smooth open */
details[open] summary ~ * { animation: firstcash-faq-open 0.3s ease-out; }

@keyframes firstcash-faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

details > summary::-webkit-details-marker { display: none; }
details > summary { list-style: none; }

/* Selection */
::selection { background: #D4AF37; color: #0E4D2A; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F7F8FA; }
::-webkit-scrollbar-thumb { background: #7FB390; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #4A8E63; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* WordPress core */
.alignwide { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

/* Elementor page templates support */
.elementor-page.elementor-page header#site-header,
.elementor-page.elementor-page footer#site-footer {
  display: none;
}

/* Comment form basic */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #DDE2EA;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
