/* ===== Base & Utilities ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ===== Navbar ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
  background: rgba(254, 253, 251, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}
.nav-logo-text { color: #1f2937; transition: color 0.3s; }
#navbar.scrolled .nav-logo-text { color: #1f2937; }

/* ===== Mobile Menu ===== */
.mobile-nav-link { border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.mobile-nav-link:hover { border-bottom-color: rgba(123, 45, 59, 0.2); }

/* ===== Service Cards ===== */
.service-card {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}
.service-card:hover { transform: translateY(-4px); }

/* ===== Gallery ===== */
.gallery-item {
  cursor: pointer;
  position: relative;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(123, 45, 59, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}
.gallery-item:hover::after { opacity: 1; }

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Stagger delays ===== */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf9f3; }
::-webkit-scrollbar-thumb { background: #d4a0aa; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7B2D3B; }

/* ===== Selection ===== */
::selection { background: rgba(123, 45, 59, 0.15); color: #3d121a; }

/* ===== Responsive tweaks ===== */
@media (max-width: 767px) {
  .font-serif { line-height: 1.15; }
}
</style>
