/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
  background: rgba(128, 62, 38, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: width 0.25s ease, left 0.25s ease;
}
.nav-link:hover::after {
  width: 60%;
  left: 20%;
}

/* ========== HERO GRADIENT ========== */
.hero-gradient {
  background: linear-gradient(135deg, #8A3D27 0%, #C0603A 35%, #D4A95C 70%, #E8D4A3 100%);
}

/* ========== HERO BLOBS ========== */
.hero-blob {
  animation: blobFloat 8s ease-in-out infinite;
}
.hero-blob-2 {
  animation-delay: -3s;
  animation-duration: 10s;
}
.hero-blob-3 {
  animation-delay: -5s;
  animation-duration: 12s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* ========== SERVICE CARDS ========== */
.service-card {
  opacity: 1;
  transform: translateY(0);
}

/* ========== MOBILE MENU ========== */
#mobileMenu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu-link {
  display: block;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf5eb; }
::-webkit-scrollbar-thumb { background: #d4a95c; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #c0603a; }

/* ========== SELECTION ========== */
::selection { background: #f3b8a5; color: #56281c; }
