/* ===== CUSTOM STYLES ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Header scroll state */
#header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu transition */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}
#mobileMenu.hidden {
  animation: slideUp 0.25s ease-in forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    max-height: 500px;
  }
  to {
    opacity: 0;
    max-height: 0;
  }
}

/* Service card hover effect */
.service-card {
  position: relative;
}

/* Area card */
.area-card {
  cursor: pointer;
}

/* Back to top button */
#backToTop.visible {
  opacity: 1;
  pointer-events: all;
  translate: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .service-card,
  .area-card,
  #backToTop,
  a,
  button {
    transition: none;
  }
  .service-card:hover,
  .area-card:hover {
    translate: 0;
  }
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  #header,
  #backToTop,
  .fixed {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
