/* ===== Custom Styles for C.R.A. Real Estate ===== */

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

/* Navbar Scroll Effect */
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(30, 58, 95, 0.08);
}

/* Navigation Links */
.nav-link {
  position: relative;
}

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

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

/* Mobile Links */
.mobile-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}

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

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

/* Hero Image Hover */
#hero .group:hover img {
  transform: scale(1.02);
}

/* Service Cards */
.group:hover .group-hover\:-translate-y-1 {
  transform: translateY(-4px);
}

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

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

/* Neighborhood Cards */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Intersection Observer 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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Floating Card Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-card {
  animation: float 4s ease-in-out infinite;
}

/* Gold Gradient Text */
.text-gold-gradient {
  background: linear-gradient(135deg, #c9a84c, #b8943f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #8faecf;
}

/* Selection */
::selection {
  background: rgba(201, 168, 76, 0.2);
  color: #1e3a5f;
}

/* Focus Visible */
*:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .font-serif {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  #hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }
}

/* Print Styles */
@media print {
  #navbar,
  #mobile-menu,
  .reveal {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}
