/* Base & Typography */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(240, 120, 91, 0.2);
  color: #1a1a1a;
}

/* Navigation */
.nav {
  background: transparent;
  color: #f6f6f6;
}

.nav.scrolled {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #f6f6f6;
}

.nav-link {
  color: rgba(246, 246, 246, 0.7);
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link:hover {
  color: #f6f6f6;
}

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

.nav-logo-text {
  color: #f6f6f6;
}

/* Mobile Menu */
.mobile-menu-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.2s; }

/* Service Cards */
.service-card {
  transition: background-color 0.5s ease;
}

/* Scroll Reveal */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* Staggered reveal delays */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Form */
select option {
  background: #f6f6f6;
  color: #2d2d2d;
}

/* Mobile menu button */
#menu-btn span {
  background: currentColor;
}

#menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active span:nth-child(2) {
  opacity: 0;
}

#menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 6px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

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