/* Custom styles for Bryant Drive Apartments */

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

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

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Gradient backgrounds */
.gradient-hero {
    background: linear-gradient(135deg, #FAF9F6 0%, #E8F1ED 50%, #FF7E67/0.1 100%);
}

/* Card shadows */
.card-shadow {
    box-shadow: 0 10px 40px -10px rgba(45, 52, 54, 0.1);
}

.card-shadow:hover {
    box-shadow: 0 25px 50px -12px rgba(45, 52, 54, 0.2);
}

/* Text gradient */
.text-gradient-coral {
    background: linear-gradient(135deg, #FF7E67 0%, #E66A55 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image overlay effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(45, 52, 54, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

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

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

::-webkit-scrollbar-thumb {
    background: #FF7E67;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E66A55;
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 126, 103, 0.2);
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .bg-bryant-charcoal {
        background-color: #000000 !important;
    }
    
    .text-bryant-charcoal {
        color: #000000 !important;
    }
}

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .hero-pattern {
        background-size: 100% 100%;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Improve touch targets on mobile */
@media (max-width: 767px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Loading state for form submission */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
