/* Custom styles for Mark Thoburn LRG Realty */

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

/* Clip diagonal for hero */
.clip-diagonal {
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
}

/* Navigation transitions */
.nav-text {
    transition: color 0.3s ease;
}

.nav-subtitle {
    transition: color 0.3s ease;
}

.nav-btn span {
    transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-nav-link {
    transition: all 0.3s ease;
}

/* Hero animations */
.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
}

/* Reveal animations - progressive enhancement */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

nav.scrolled .nav-text {
    color: #1a1a1a !important;
}

nav.scrolled .nav-subtitle {
    color: #a21d3f !important;
}

nav.scrolled .nav-link {
    color: #2d2d2d !important;
}

nav.scrolled .nav-btn span {
    background: #1a1a1a !important;
}

nav.scrolled .mobile-nav-link {
    color: #1a1a1a !important;
}

/* Mobile menu open */
.mobile-menu-open #mobile-menu {
    transform: translateX(0);
}

.mobile-menu-open #menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open #menu-toggle span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open #menu-toggle span:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Button hover effects */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(162, 29, 63, 0.1);
}

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

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

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

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

/* Selection color */
::selection {
    background: #fce7eb;
    color: #3d0a16;
}

/* Print styles */
@media print {
    nav,
    #back-to-top,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
}

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
    .clip-diagonal {
        clip-path: none;
        opacity: 0.3;
    }
    
    .hero-badge {
        margin-bottom: 4px;
    }
    
    #hero h1 {
        font-size: 3rem;
    }
    
    #hero h1 span {
        font-size: 3.5rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 8px !important;
    }
    
    .stats > div {
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        padding-bottom: 8px !important;
    }
    
    .stats > div:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
}

/* Reduced motion */
@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;
    }
}
