/* CMG Lung & Sleep Specialists - Custom Styles */

/* Base adjustments */
body {
  background-color: #1a1a2e;
  color: #ffffff;
}

/* Smooth focus styles */
*:focus-visible {
  outline: 2px solid #D4A853;
  outline-offset: 2px;
}

/* Custom selection color */
::selection {
  background: rgba(123, 45, 59, 0.6);
  color: #ffffff;
}

/* Glass card subtle animation on load */
.glass-card {
  animation: cardAppear 0.6s ease-out forwards;
  opacity: 0;
}

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

.glass-card:not([style*="animation"]) {
  animation-delay: 0.1s;
}

/* Hero stat cards stagger */
.float-slow, .float-medium, .float-fast {
  will-change: transform;
}

/* Navbar active state */
nav a.active {
  color: #D4A853 !important;
}

/* Button ripple effect */
.cta-btn::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* 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='%23D4A853' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Subtle pattern overlay for sections */
section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(212, 168, 83, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Gold divider accent */
.gold-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #D4A853, transparent);
  opacity: 0.3;
}

/* Mobile menu backdrop blur */
.mobile-menu {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Map filter override for light mode */
.map-light {
  filter: invert(90%) hue-rotate(180deg) brightness(0.8) contrast(1.2) !important;
}

/* Print styles */
@media print {
  nav, .mobile-menu, #menuOverlay, .cta-btn, form { display: none; }
  body { background: white; color: black; }
  .glass-card { border: 1px solid #ddd; background: white; }
}

/* Additional responsive tweaks */
@media (max-width: 640px) {
  .font-display {
    line-height: 1.2;
  }
}
