/* Custom styles for SIGMA PHONE Repairs FLINT */

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

/* Selection color */
::selection {
  background: rgba(232, 115, 90, 0.3);
  color: #FAF7F4;
}

/* Subtle grain texture overlay for the body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Hero image parallax-like effect on scroll */
.hero-grid > div:nth-child(2) img {
  transition: transform 0.1s linear;
}

/* Card gradient on hover */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(232, 115, 90, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card:hover::after {
  opacity: 1;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #E8735A;
  outline-offset: 2px;
}

/* Mobile menu animation for hamburger */
#menuBtn.active #bar1 {
  transform: translateY(5px) rotate(45deg);
}
#menuBtn.active #bar2 {
  opacity: 0;
}
#menuBtn.active #bar3 {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.5rem;
}

/* Nav background transition on scroll */
.nav-scrolled {
  background: rgba(26, 26, 26, 0.98) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* CTA section pattern animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Loading state for buttons */
button:active {
  transform: scale(0.98);
}
