/* 
  Be Blunt Hair Studio — Custom Styles
  Additional overrides and micro-interactions
  (Most styling is handled via Tailwind + index.html <style>)
*/

/* Ensure smooth rendering on all devices */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background: rgba(74, 229, 172, 0.3);
  color: #f0fdf4;
}

/* Focus visible for keyboard nav */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Image lazy loading fade */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* Subtle hover on service cards */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover::before {
  transform: scaleX(1);
}

/* Navbar scroll behavior */
nav.scrolled {
  background: rgba(10, 16, 28, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Smooth anchor scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Print styles */
@media print {
  nav, .mobile-menu, #menuBtn { display: none !important; }
  body { background: white; color: black; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
