/* ===== Custom Styles for Remax Executive Real Estate ===== */

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

/* Selection color */
::selection {
  background: #c9a84c;
  color: #061229;
}

/* Header scroll state */
#header {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(10, 31, 68, 0.08);
}

#header.scrolled .font-display,
#header.scrolled .text-navy-800 {
  color: #0a1f44;
}

/* Mobile menu */
.mobile-link {
  position: relative;
}

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

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

/* Service card hover lift */
.service-card {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #153d7a;
}

/* Form input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

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

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.25rem;
  }

  .service-card {
    padding: 1.5rem;
  }
}

/* Print styles */
@media print {
  #header,
  #contactForm,
  .mobile-menu-btn {
    display: none;
  }

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

  a {
    color: #000;
  }
}
