/* Five Diamonds Recovery Housing — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #111827;
}
::-webkit-scrollbar-thumb {
  background: #7f1d1d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #991b1b;
}

/* Header scroll state */
#site-header.scrolled {
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reveal animations — progressive enhancement */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Hero text shadow for readability */
#hero h1,
#hero p {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Button focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #f87171;
  outline-offset: 2px;
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

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

/* Service card hover glow */
.group:hover .group-hover\:border-burgundy-500\/40 {
  border-color: rgba(244, 63, 94, 0.4);
}

/* Subtle gradient on why-us section */
#why-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top right, rgba(127, 29, 29, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Form input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #111827 inset !important;
  -webkit-text-fill-color: #fff !important;
}

/* Map section */
iframe[src*="google.com/maps"] {
  width: 100%;
  height: 350px;
  display: block;
}
