/* Heritage Crossing Penthouse - Custom Styles */

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

/* Custom selection color */
::selection {
  background: #d4a843;
  color: #0d0b0a;
}

/* Gold gradient text effect */
.gold-gradient-text {
  background: linear-gradient(135deg, #f5d98e 0%, #d4a843 50%, #b88a2e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gold shimmer animation */
.gold-shimmer {
  background: linear-gradient(90deg, #d4a843 0%, #f5d98e 50%, #d4a843 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hero image overlay */
.hero-image-container {
  position: relative;
  overflow: hidden;
}

.hero-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13,11,10,0.3) 0%, transparent 60%);
  pointer-events: none;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #f5d98e, #d4a843);
  transition: width 0.3s ease;
}

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

/* Card hover effect */
.card-hover {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(212, 168, 67, 0.1);
}

/* Scroll reveal animation - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile menu transitions */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
  max-height: 0;
  opacity: 0;
}

#mobile-menu:not(.hidden) {
  max-height: 400px;
  opacity: 1;
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #d4a843;
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: #0d0b0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4a843, #b88a2e);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f5d98e, #d4a843);
}

/* Ensure all text is readable */
.text-sand-100,
.text-sand-200,
.text-sand-300 {
  color: inherit;
}

/* Button hover effects */
button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(212, 168, 67, 0.3);
}

/* Image loading placeholder */
img {
  background: linear-gradient(90deg, #131110 0%, #1a1715 50%, #131110 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

img.loaded {
  animation: none;
  background: none;
}
