/* ===== Custom Styles for Seth Lawrence Realtor ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ===== Navbar ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(253, 249, 240, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(27, 94, 32, 0.08);
}

.nav-link {
  position: relative;
}

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

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

#navbar.scrolled .nav-link {
  color: #5C554A;
}

#navbar.scrolled .nav-link:hover {
  color: #1B5E20;
}

/* Mobile menu */
.mobile-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #dceee0;
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ===== Hero Floating Cards ===== */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.card-1 {
  animation-delay: 0s;
}

.card-2 {
  animation-delay: -2s;
}

.card-3 {
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ===== Section Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Service Cards Hover ===== */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #82c482;
}

/* ===== Selection ===== */
::selection {
  background: #dceee0;
  color: #1B5E20;
}

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

/* ===== Responsive tweaks ===== */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }
}

/* ===== Print styles ===== */
@media print {
  #navbar, .floating-card, .animate-pulse {
    display: none;
  }
}
