/* Custom CSS Variables */
:root {
  --primary: #DFFF00; /* Lime green */
  --accent: #4B3621;  /* Dark brown */
  --background: #fdfdf9; /* Off white */
}

/* Base Styles */
body {
  background-color: var(--background);
  color: #222;
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

/* Navigation Styles */
.nav-link {
  position: relative;
  color: #374151;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

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

/* Section spacing and animations */
section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section {
  background-image: url('assets/Salon.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.text-shadow-high-blur {
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
}

.text-shadow-mobile-prominent {
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.9);
}

/* Button Hover Effects */
.btn-primary {
  background-color: var(--primary);
  color: var(--accent);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #c7e600;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(223, 255, 0, 0.3);
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Service Tabs */
.service-content {
  position: relative;
  min-height: 400px;
}

.service-card {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.service-card.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: slideIn 0.4s ease forwards;
}

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

/* Service Tab Buttons */
.service-tab {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-tab.active {
  background-color: var(--primary);
  color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.05);
}

.service-tab:not(.active):hover {
  background-color: var(--primary);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Pricing Table Styles */
.price-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 0;
  transition: all 0.2s ease;
}

.price-item:hover {
  background-color: rgba(223, 255, 0, 0.05);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 0.5rem;
}

/* Contact Section Enhancements */
.contact-info-item {
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.contact-info-item:last-child {
  border-bottom: none;
}

/* Map Container */
.map-container {
  position: relative;
  overflow: hidden;
}

.map-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 49%, rgba(223, 255, 0, 0.1) 50%, transparent 51%);
  pointer-events: none;
  z-index: 1;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Loading Animation for Images */
.loading-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Mobile Menu Animation */
#mobile-menu {
  transition: max-height 0.3s ease-out, opacity 0.2s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobile-menu.show {
  max-height: 500px; /* Large enough to fit content */
  opacity: 1;
}

#mobile-menu-btn svg {
  pointer-events: none;
}

#mobile-menu-btn {
  cursor: pointer;
}

/* Focus States for Accessibility */
button:focus,
a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  header,
  footer,
  .service-tab,
  button {
    display: none;
  }
  
  section {
    page-break-inside: avoid;
  }
  
  .service-card {
    display: block !important;
    opacity: 1 !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary: #000000;
    --accent: #ffffff;
    --background: #ffffff;
  }
  
  .service-tab.active {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Grayscale Map Styling */
.grayscale-map iframe {
  transition: filter 0.3s ease;
}

/* Stylist Card Image Enhancements */
.stylist-image {
  position: relative;
  overflow: hidden;
}

.stylist-image img {
  transition: transform 0.3s ease;
}

.stylist-image:hover img {
  transform: scale(1.05);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a2a18;
} 