/* ============================================================
   Bravo Line Technical Services LLC — supplementary styles
   Tailwind (CDN) handles utility classes; this file covers
   font smoothing, scrollbar, select arrow, and small details
   that aren't easily expressed with default Tailwind utilities.
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Figtree', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-display {
  font-family: 'Bricolage Grotesque', sans-serif;
}

/* Custom select arrow (matches dark theme, since native arrows look odd on dark backgrounds) */
select#field-service {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237A8294' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select#field-service option {
  background-color: #1C2236;
  color: #EDE8DF;
}

/* Scrollbar styling (dark theme) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0B0F1C;
}
::-webkit-scrollbar-thumb {
  background: #2A3148;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C9A44A;
}

/* Smooth header background transition is handled via JS toggling classes */
#site-header.scrolled {
  background-color: rgba(11, 15, 28, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3), 0 10px 10px -5px rgba(0,0,0,0.3);
}

/* Disabled state for submit button while sending */
#submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #C9A44A;
  outline-offset: 2px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
