/* ===== Custom Styles for Bow Mills Land Management ===== */

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

/* Base transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

.nav-scrolled .nav-text {
    color: #0a1628 !important;
}

.nav-scrolled #navbar .bg-gold-400 {
    background: #c9a227 !important;
}

/* Hero parallax-like effect */
#hero {
    background-attachment: fixed;
}

/* Service card hover */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Area card hover */
.area-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease;
}

.area-card:hover {
    transform: translateY(-4px);
}

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

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

/* Gold accent line animation */
@keyframes lineExpand {
    from { width: 0; }
    to { width: 4rem; }
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .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; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    #hero {
        background-attachment: scroll;
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #0a1628;
}

/* Image hover zoom */
.rounded-xl.overflow-hidden img,
.rounded-2xl.overflow-hidden img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rounded-xl.overflow-hidden:hover img,
.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

button:active, a:active {
    transform: scale(0.98);
}

/* Print styles */
@media print {
    nav, #contactForm, #successMessage, .scroll-indicator {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    #hero {
        min-height: auto;
        padding: 2rem 0;
        background: #fff !important;
        color: #000 !important;
    }

    #hero h1, #hero h2, #hero h3, #hero h4 {
        color: #0a1628 !important;
    }

    #hero p, #hero li {
        color: #333 !important;
    }
}
