/* Graham Lang Realty - Custom Styles */

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out 0.2s forwards;
}
.animate-fade-up-delay-1 {
  animation: fadeUp 0.8s ease-out 0.4s forwards;
}
.animate-fade-up-delay-2 {
  animation: fadeUp 0.8s ease-out 0.6s forwards;
}
.animate-fade-up-delay-3 {
  animation: fadeUp 0.8s ease-out 0.8s forwards;
}
.animate-scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

/* Navbar scrolled state */
.nav-scrolled {
  background-color: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-scrolled .nav-logo-text {
  color: #ffffff;
}

.nav-scrolled .nav-logo-sub {
  color: rgba(255, 255, 255, 0.6);
}

.nav-scrolled .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: #c9a96e;
  color: #ffffff;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid #c9a96e;
  outline-offset: 2px;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.1) inset !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image placeholder hover effect */
.img-placeholder {
  position: relative;
  overflow: hidden;
}

.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(201, 169, 110, 0.05) 100%);
  transition: opacity 0.5s ease;
}

.img-placeholder:hover::after {
  opacity: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8f4ef;
}

::-webkit-scrollbar-thumb {
  background: #b5a597;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9a8a7c;
}

/* Page transition */
body {
  opacity: 0;
  animation: pageLoad 0.5s ease-out forwards;
}

@keyframes pageLoad {
  to { opacity: 1; }
}

/* Interior page hero */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #2d2d2d;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #f8f4ef, transparent);
}

/* Blog card hover */
.blog-card:hover .blog-image {
  transform: scale(1.05);
}

/* Property card */
.property-card:hover .property-image {
  transform: scale(1.05);
}

/* Listing badge */
.listing-badge {
  letter-spacing: 0.1em;
}
