/* FirstFix TV — custom overrides (minimal; Tailwind handles the rest) */

/* Reusable form control (used by modal + contact + quick-book forms) */
.form-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d4d8e0;            /* charcoal-200 */
  background: #fff;
  padding: 0.7rem 0.95rem;
  font-size: 0.95rem;
  color: #23262f;                       /* charcoal-900 */
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: #aeb4c2; }
.form-input:focus {
  outline: none;
  border-color: #f97316;                /* brand-500 */
  box-shadow: 0 0 0 4px rgba(249,115,22,0.14);
}
/* native select arrow */
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23636d83' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}
/* JustValidate error styling */
.form-input.just-validate-error-field {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
}
.just-validate-error-label {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.35rem;
  display: block;
}

/* Scroll-reveal: hidden until .is-visible is added by IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: .08s; }
.reveal[data-reveal-delay="2"] { transition-delay: .16s; }
.reveal[data-reveal-delay="3"] { transition-delay: .24s; }
.reveal[data-reveal-delay="4"] { transition-delay: .32s; }
.reveal[data-reveal-delay="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .animate-marquee, .animate-marquee-rev, .animate-floaty, .animate-pulse-ring { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Pause marquee on hover */
.marquee-track:hover { animation-play-state: paused; }

/* Accordion smooth height */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq-panel > div { overflow: hidden; }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }

/* Lock scroll when overlay open */
body.overflow-locked { overflow: hidden; }

/* utility: header height matcher */
.h-18 { height: 4.5rem; }

/* hide scrollbar on horizontal scrollers */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
