/* MAZ Health Concepts - Premium Dark Luxury Styles */

/* Base styles */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Custom gold gradient for text */
.gold-gradient-text {
  background: linear-gradient(135deg, #f0c27f 0%, #d4a017 50%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gold button hover effects */
.btn-gold {
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-gold:hover::before {
  left: 100%;
}

/* Service card shimmer on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212,160,23,0.05) 0%, transparent 50%, rgba(13,148,136,0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
  pointer-events: none;
}

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

/* Subtle pulse animation for accent elements */
@keyframes subtle-pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.pulse-accent {
  animation: subtle-pulse 3s ease-in-out infinite;
}

/* Smooth focus states for accessibility */
input:focus,
textarea:focus,
button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
}

/* Gold accent line animation */
@keyframes gold-line-expand {
  from {
    width: 0;
  }
  to {
    width: 6rem;
  }
}

.gold-line {
  animation: gold-line-expand 0.8s ease forwards;
}

/* Mobile menu slide animation */
@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

.mobile-menu.active {
  animation: slideIn 0.3s ease forwards;
}

.mobile-menu.closing {
  animation: slideOut 0.3s ease forwards;
}

/* Hamburger to X animation */
.menu-line {
  transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal animations (below fold only, progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal:nth-child(2) {
    transition-delay: 0.1s;
  }

  .reveal:nth-child(3) {
    transition-delay: 0.2s;
  }

  .reveal:nth-child(4) {
    transition-delay: 0.3s;
  }

  .reveal:nth-child(5) {
    transition-delay: 0.4s;
  }

  .reveal:nth-child(6) {
    transition-delay: 0.5s;
  }
}

/* Print styles */
@media print {
  .btn-gold,
  .mobile-menu,
  #menuBtn {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .gold-gradient,
  .gold-gradient-text {
    -webkit-text-fill-color: #b8860b;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card {
    border-width: 2px;
  }

  .btn-gold {
    border: 2px solid #d4a017;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .service-card:hover {
    transform: none;
  }

  .nav-link:hover::after {
    width: 0;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid #d4a017;
  outline-offset: 2px;
}

/* Loading state for form submission */
.form-loading {
  position: relative;
  pointer-events: none;
}

.form-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(11, 17, 32, 0.3);
  border-top-color: #0b1120;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
