/* ===== CUSTOM STYLES ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F5F5DC;
}
::-webkit-scrollbar-thumb {
  background: #047857;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #065f46;
}

/* ===== NAVIGATION ===== */
#site-header {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#site-header.scrolled {
  background: rgba(245, 245, 220, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(4, 120, 87, 0.08);
}

.nav-link {
  position: relative;
}

/* Mobile menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

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

.menu-line {
  transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.5rem;
}

/* ===== HERO SHAPES ===== */
.hero-shape {
  animation: float 6s ease-in-out infinite;
}

.shape-1 { animation-delay: 0s; }
.shape-2 { animation-delay: -2s; }
.shape-3 { animation-delay: -4s; }
.shape-4 { animation-delay: -1s; }
.shape-5 { animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

/* ===== SERVICE CARDS ===== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #047857, #34d399, #047857);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* ===== LISTING CARDS ===== */
.listing-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.listing-card:hover {
  transform: translateY(-6px);
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .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; }
}

/* ===== BACK TO TOP ===== */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* ===== FORM INPUTS ===== */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* ===== GEOMETRIC ACCENT DECORATIONS ===== */
.geo-accent {
  position: absolute;
  pointer-events: none;
}

/* ===== COUNTER ANIMATION ===== */
.counter {
  display: inline-block;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-shape {
    display: none;
  }

  h1 {
    font-size: 2.75rem !important;
  }

  .listing-card:hover {
    transform: none;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #047857;
  outline-offset: 2px;
  border-radius: 4px;
}
