/* Base & utilities */
html {
  scroll-behavior: smooth;
}

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

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(254, 252, 246, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

.navbar-scrolled .nav-link {
  color: #1B4332 !important;
}

.navbar-scrolled .nav-text {
  color: #1B4332 !important;
}

/* Mobile menu */
#mobile-menu.open {
  transform: translateY(0) !important;
}

#mobile-menu.closed {
  transform: translateY(-100%);
}

/* Menu animation */
.menu-line.active:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-line.active:nth-child(2) {
  opacity: 0;
}

.menu-line.active:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 24px;
}

/* Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* Scroll reveal */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Default state for revealable elements — visible by default */
.revealable {
  opacity: 1;
  transform: translateY(0);
}

/* Service card hover */
.service-card:hover {
  transform: translateY(-4px);
}

/* Testimonial card hover */
.testimonial-card:hover {
  transform: translateY(-4px);
}

/* Gallery item */
.gallery-item {
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.5s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #7fb88e;
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid #1B4332;
  outline-offset: 2px;
}

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

  .animate-marquee {
    animation: none;
  }
}
