*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #fefdf8;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-playfair { font-family: 'Playfair Display', Georgia, serif; }
.font-inter { font-family: 'Inter', sans-serif; }

/* Navbar */
#navbar {
  background: rgba(254, 253, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile Menu */
#mobileMenu {
  background: rgba(254, 253, 248, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-menu-link {
  display: block;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-link:hover {
  color: #064e3b;
  transform: translateX(8px);
}

/* Reveal Animations */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger children */
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.2s; }
.reveal-up:nth-child(4) { transition-delay: 0.3s; }

/* Service cards hover */
.group:hover .group-hover\:rotate-1 {
  transform: rotate(1deg);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fefdf8; }
::-webkit-scrollbar-thumb { background: #064e3b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #045432; }

/* Selection */
::selection { background: #064e3b; color: #fefdf8; }

/* Button focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid #064e3b;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth image loading */
img {
  opacity: 1;
  transition: opacity 0.4s ease;
}

img[data-src] {
  opacity: 0;
}

/* Print */
@media print {
  #navbar, #mobileMenu, .reveal-up, .reveal-left, .reveal-right { display: none; }
  body { background: white; }
}
