/* ============================================
   Roxie's Stonehouse Salon & Barbershop
   Custom Styles
   ============================================ */

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

/* Base */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav-fixed {
  transition: box-shadow 0.3s ease;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #841634;
  transition: width 0.3s ease;
}

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

/* Primary button */
.btn-primary {
  background: #841634;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid #841634;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: #a11538;
  border-color: #a11538;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(132, 22, 52, 0.3);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Outline light button */
.btn-outline-light {
  background: transparent;
  color: #f5a5b8;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(245, 165, 184, 0.5);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-light:hover {
  background: rgba(245, 165, 184, 0.1);
  border-color: #f5a5b8;
  color: #fad0d9;
  transform: translateY(-1px);
}

/* Service card */
.service-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e8e4dd;
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(132, 22, 52, 0.1);
  border-color: #fce7eb;
}

/* Gallery item */
.gallery-item {
  aspect-ratio: 5 / 6;
  cursor: default;
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Input fields */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e8e4dd;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #242019;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.input-field::placeholder {
  color: #b8afa3;
}

.input-field:focus {
  border-color: #c2204b;
  box-shadow: 0 0 0 3px rgba(194, 32, 75, 0.1);
}

/* Mobile menu */
.mobile-link {
  text-decoration: none;
}

/* Fade-in animations (progressive enhancement) */
.fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
  .fade-in.fade-in-up.visible {
    opacity: 1;
    transform: none;
  }
}

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

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

/* Map placeholder */
.map-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e8e4dd;
}

/* Subtle pattern overlay for sections */
.section-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(132, 22, 52, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
}

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

/* Selection color */
::selection {
  background: #fce7eb;
  color: #721631;
}
