/* Custom styles for America Bertsch Real Estate */

:root {
    --gold-400: #d4a84b;
    --gold-500: #c9952e;
    --burgundy-950: #3f0c0c;
    --dark-950: #050505;
    --dark-900: #0a0a0a;
    --dark-850: #0d0d0d;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar transitions */
nav.scrolled {
    background: rgba(5, 5, 5, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 149, 46, 0.1);
}

nav.scrolled .text-gray-400 {
    color: #9ca3af !important;
}

/* Hero text animation - only for below-fold content */
.hero-content {
    opacity: 1;
    transform: none;
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Property cards */
.property-card {
    position: relative;
}

.property-card .property-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.property-card:hover .property-overlay {
    opacity: 1;
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
    transition: transform 0.5s ease, border-color 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 149, 46, 0.2);
}

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Selection color */
::selection {
    background: rgba(201, 149, 46, 0.3);
    color: #fff;
}

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

::-webkit-scrollbar-track {
    background: var(--dark-950);
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 149, 46, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 149, 46, 0.5);
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 1;
    transform: none;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(201, 149, 46, 0.2);
}

/* Image loading placeholder */
img {
    background-color: var(--dark-900);
}

/* Subtle gold accent line on section dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(201, 149, 46, 0.2) 50%, transparent 100%);
}

/* Button hover glow effect */
button:hover,
a:hover {
    box-shadow: 0 0 30px rgba(201, 149, 46, 0.15);
}

/* Decorative gold corner accents */
.gold-corner {
    position: relative;
}

.gold-corner::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid rgba(201, 149, 46, 0.3);
    border-right: 2px solid rgba(201, 149, 46, 0.3);
}

/* Stat counter animation */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #contact-form button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
