/* ============================================
   HAHN MEDICAL PRACTICES — CUSTOM STYLES
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(45, 154, 170, 0.3);
  color: #f0f4f5;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0f11;
}
::-webkit-scrollbar-thumb {
  background: #2d3c40;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4a5b5f;
}

/* --- Navbar --- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #c9a84c, #eac055);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

#navbar.scrolled {
  background: rgba(6, 9, 10, 0.92);
  backdrop-blur-xl;
  border-bottom: 1px solid rgba(45, 60, 64, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Section Labels --- */
.section-label {
  letter-spacing: 0.2em;
}

/* --- Hero Animations --- */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 170, 170, 0.15) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
  bottom: 5%;
  left: -5%;
  animation: float-slow 10s ease-in-out infinite;
}

.hero-orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(45, 170, 170, 0.1) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation: pulse-glow 6s ease-in-out infinite;
}

/* Hero entrance animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-title {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-subtitle {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-ctas {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.hero-trust {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1s;
  opacity: 0;
}

/* --- Service Cards --- */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(45, 170, 170, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* --- Insurance Cards --- */
.insurance-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.insurance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45, 170, 170, 0.1);
}

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

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .hero-badge,
  .hero-title,
  .hero-subtitle,
  .hero-ctas,
  .hero-trust {
    animation: none;
    opacity: 1;
  }
  
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .hero-orb {
    animation: none;
  }
  
  .service-card:hover,
  .insurance-card:hover {
    transform: none;
  }
}

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

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

.mobile-nav-link {
  position: relative;
}

/* --- Gold Accent Divider --- */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
}

/* --- Focus Styles --- */
input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* --- Button Press Effect --- */
button:active,
a:active {
  transform: scale(0.98);
}

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