/* ============================================
   ML Real Estate — Custom Styles
   ============================================ */

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

/* Selection color */
::selection {
  background-color: #d9a5c4;
  color: #341421;
}

/* ============================================
   Navbar
   ============================================ */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(136, 56, 90, 0.08);
}

.nav-scrolled .nav-link {
  color: #88385a;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-link {
  position: relative;
}

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

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

/* ============================================
   Hero
   ============================================ */
#hero {
  position: relative;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
  will-change: transform, box-shadow;
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
  will-change: transform;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal[data-reveal] {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Form Focus Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #c77da8;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
  .font-serif {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}
