/* ===== Custom Styles for Haven Medical Office ===== */

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

/* Selection color */
::selection {
  background-color: rgba(201, 168, 76, 0.3);
  color: #f0f4ff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070F1E;
}
::-webkit-scrollbar-thumb {
  background: #1a2d4a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C9A84C;
}

/* Base utility for reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure content is visible even without JS */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Navbar transition */
#navbar {
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background-color: rgba(4, 9, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 45, 74, 0.5);
}

/* Hero gradient overlay refinement */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 9, 20, 0.6) 0%,
    rgba(4, 9, 20, 0.4) 40%,
    rgba(4, 9, 20, 0.5) 70%,
    rgba(4, 9, 20, 1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

#hero > .relative {
  position: relative;
  z-index: 2;
}

/* Gold accent line */
.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #C9A84C, #E5C158);
  border: none;
  margin: 0;
}

/* Service card hover effect */
.group:hover .group-hover\:bg-amber-500\/20 {
  background-color: rgba(201, 168, 76, 0.2);
}

/* Testimonial card hover */
.reveal:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transition: border-color 0.4s ease;
}

/* Button focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}

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

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

/* Subtle gold shimmer on hero headline */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Ensure map container maintains aspect */
iframe {
  width: 100%;
  height: 350px;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
  .font-serif {
    line-height: 1.15;
  }
}
