/* ── Base & Typography ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #1B5E3B;
  color: #FDF9F0;
}

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

#navbar.scrolled {
  background-color: rgba(253, 249, 240, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(27, 94, 59, 0.08), 0 4px 24px rgba(27, 94, 59, 0.06);
}

.nav-link {
  position: relative;
}

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

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

/* ── Mobile Menu ── */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

.menu-line:last-child {
  transform-origin: center;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

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

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

/* ── Service Cards ── */
.service-card {
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ── Testimonial Cards ── */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(27, 94, 59, 0.1);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── CTA Section ── */
.cta-section:hover .cta-card {
  transform: translateY(-2px);
}

/* ── Custom Select ── */
select option {
  background: #0a2e1c;
  color: white;
  padding: 8px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #164d31;
}

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