/* Custom styles for Julies Tanning and Ratical Hair Stylz */

/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

/* Base font settings */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Playfair Display italic for accents */
.font-display em,
.font-display i {
  font-style: italic;
}

/* Selection color */
::selection {
  background: #f9c4b0;
  color: #6b2719;
}

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

/* Image loading placeholder */
img {
  background-color: #f5d9ae;
}

/* Subtle gradient overlay for hero images */
.img-zoom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(61, 50, 41, 0.08));
  pointer-events: none;
  border-radius: inherit;
}

/* Navbar glass effect on scroll */
#navbar.scrolled {
  background: rgba(253, 248, 244, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(61, 50, 41, 0.07);
}

/* Mobile menu animation */
#mobile-menu {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Mobile menu link hover */
.mobile-link {
  transition: color 0.3s ease;
}

/* Scroll reveal base state (visible by default for progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service card image area */
.service-card .card-image {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .card-image {
  transform: scale(1.03);
}

/* CTA button ripple effect */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.btn-primary:hover::after {
  opacity: 1;
}

/* Footer hover underline */
footer a {
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #f4a080;
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

/* Decorative floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Pulse dot for location badge */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.animate-pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Gradient animation for text */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-text {
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

/* Gallery hover overlay */
.img-zoom {
  position: relative;
}

.img-zoom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(224, 85, 40, 0.0) 0%, rgba(224, 85, 40, 0.05) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.img-zoom:hover::before {
  opacity: 1;
}

/* Testimonial card hover */
.testimonial-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(61, 50, 41, 0.1);
}

/* Contact form focus states */
input:focus,
textarea:focus,
select:focus {
  border-color: #e05528 !important;
  box-shadow: 0 0 0 3px rgba(224, 85, 40, 0.1) !important;
}

/* Select dropdown arrow */
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239a8878' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

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

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

::-webkit-scrollbar-thumb {
  background: #e0a75c;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #cc8f44;
}

/* Reduced motion */
@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;
  }
}
