/* Eagles Landing Apartments - Custom Styles */

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background-color: #F26030;
  color: white;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #9B9EAD;
}

/* Leaf pattern background */
.leaf-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5C30 5 20 15 20 30C20 40 25 50 30 55C35 50 40 40 40 30C40 15 30 5 30 5Z' fill='%23F26030' fill-opacity='0.04'/%3E%3C/svg%3E");
}

/* Mobile menu animation */
#mobile-menu {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

#mobile-menu:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

/* Form success animation */
#form-success {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#form-success.hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

#form-success:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll reveal animations */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

/* Smooth image loading */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent layout shift on images */
img {
  object-fit: cover;
}

/* Print styles */
@media print {
  nav,
  #mobile-menu,
  .reveal {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
  }
}
