/* Custom styles for Braxton Manor at Creekside */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040d1e;
}
::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* Selection */
::selection {
    background: #14b8a6;
    color: #040d1e;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero entrance animations */
@media (prefers-reduced-motion: no-preference) {
    #heroTag {
        opacity: 0;
        animation: slideInLeft 0.8s ease-out 0.3s forwards;
    }
    #heroHeadline {
        opacity: 0;
        animation: slideInUp 0.8s ease-out 0.5s forwards;
    }
    #heroSub {
        opacity: 0;
        animation: slideInUp 0.8s ease-out 0.7s forwards;
    }
    #heroCTA {
        opacity: 0;
        animation: slideInUp 0.8s ease-out 0.9s forwards;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(4, 13, 30, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .menu-line {
    background: #fff;
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu .mobile-link {
    opacity: 0;
    transform: translateY(10px);
}

#mobileMenu.open .mobile-link {
    animation: mobileLinkIn 0.4s ease-out forwards;
}

#mobileMenu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.4s; }

@keyframes mobileLinkIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu button animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Geometric pattern overlay */
.geometric-pattern {
    background-image: 
        linear-gradient(45deg, rgba(20, 184, 166, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(20, 184, 166, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(20, 184, 166, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(20, 184, 166, 0.03) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
}

/* Card hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Focus styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Print styles */
@media print {
    #navbar,
    #contactForm,
    .reveal {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
