/* ============================================================
   Bas Airco Service — custom styles
   Tailwind covers most of the styling; this file adds polish:
   - smooth scroll
   - subtle reveal animations
   - header scrolled-state styling
   ============================================================ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

/* Header transition between top of page and scrolled */
#site-header {
  background-color: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
}

#site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: rgba(226, 232, 240, 0.7);
}

/* Selection */
::selection {
  background: #40bafb;
  color: white;
}

/* Custom scrollbar (subtle, cool tones) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border: 3px solid #f8fafc;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #40bafb;
}

/* Fade-in-up reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form focus ring polish (Tailwind already does most) */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

/* Decorative subtle grid for hero (optional flourish) */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(14, 165, 233, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 165, 233, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Reduce motion respectfully */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
