/* ===== Custom Styles for Kim Harrison Real Estate ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf8f3;
}
::-webkit-scrollbar-thumb {
  background: #d9d0c3;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #bfb4a3;
}

/* Selection color */
::selection {
  background: #f9d0d9;
  color: #6e172d;
}

/* ===== Reveal Animations ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Staggered delays for sibling elements */
.reveal-up:nth-child(2) { transition-delay: 100ms; }
.reveal-up:nth-child(3) { transition-delay: 200ms; }
.reveal-up:nth-child(4) { transition-delay: 300ms; }

/* ===== Navbar Scrolled State ===== */
.navbar-scrolled {
  background: rgba(254, 253, 251, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(168, 40, 71, 0.08);
}

.navbar-scrolled .font-serif {
  color: #6e172d !important;
}

/* ===== Mobile Menu Transitions ===== */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

.mobile-menu-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ===== Hero Image Hover ===== */
.rounded-\[2rem\]:hover .shadow-2xl {
  transition: box-shadow 0.4s ease;
}

/* ===== Service Card Tilt Effect ===== */
.group:hover {
  transform: translateY(-4px);
}

.group {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Button Ripple Effect ===== */
button, a {
  position: relative;
  overflow: hidden;
}

/* ===== Testimonial Cards ===== */
.bg-burgundy-700\/50 {
  backdrop-filter: blur(8px);
}

/* ===== Form Focus States ===== */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(196, 64, 96, 0.15);
}

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

.absolute.-bottom-6.-left-6 {
  animation: float 4s ease-in-out infinite;
}

/* ===== Pulse Dot ===== */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.animate-pulse {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ===== Gradient Text Utility ===== */
.text-gradient {
  background: linear-gradient(135deg, #a82847, #e8708f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 0;
    transform: translateY(20px);
  }
  .reveal-left,
  .reveal-right {
    transform: translateX(0);
  }
}

/* ===== Print Styles ===== */
@media print {
  header, #contact, footer {
    display: none;
  }
  body {
    background: white;
  }
}
