/* Alger Oil & Propane — Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Base text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background-color: rgba(212, 168, 75, 0.3);
  color: #f5f0f7;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1A1020;
}
::-webkit-scrollbar-thumb {
  background: #3d183d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #542154;
}

/* Scroll reveal animations */
.reveal-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-item[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal-item[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal-item[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal-item[data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal-item[data-reveal-delay="5"] { transition-delay: 0.5s; }
.reveal-item[data-reveal-delay="6"] { transition-delay: 0.6s; }

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

/* Navbar glass effect */
#navbar.scrolled {
  background: rgba(26, 16, 32, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(212, 168, 75, 0.08), 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service card hover glow */
.group:hover .group-hover\:shadow-amber-350-10 {
  box-shadow: 0 0 30px rgba(212, 168, 75, 0.1);
}

/* Mobile menu transitions */
#mobile-menu {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gold shimmer effect on CTA buttons */
button[type="submit"]:hover,
a[href="tel:4107780600"].group {
  position: relative;
  overflow: hidden;
}

button[type="submit"]:hover::after,
a[href="tel:4107780600"].group::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

button[type="submit"]:hover::after,
a[href="tel:4107780600"].group::after {
  left: 100%;
}

/* Form select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4A84B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline x1='6' y1='9' x2='12' y2='15' x3='18' y3='9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Map pin pulse */
@keyframes pinPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 168, 75, 0.5);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(212, 168, 75, 0);
  }
}

.animate-pulse {
  animation: pinPulse 2s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .font-serif {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}
