/* ===== Custom Styles for Locust Hill ===== */

:root {
    --color-forest-50: #f2f7f0;
    --color-forest-100: #e3eddc;
    --color-forest-200: #c5dbb8;
    --color-forest-300: #9bbe8a;
    --color-forest-400: #6d9d56;
    --color-forest-500: #4a7a35;
    --color-forest-600: #375e28;
    --color-forest-700: #2c4b21;
    --color-forest-800: #233d1c;
    --color-forest-900: #1d3317;
    --color-offwhite-50: #faf9f7;
    --color-offwhite-100: #f5f4f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

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

/* Floating card animation */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

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

/* Scroll line animation */
@keyframes scroll-line {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-scroll-line {
    animation: scroll-line 1.5s ease-in-out infinite;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #2c4b21;
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* Scroll reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 0 rgba(44, 75, 33, 0.08);
}

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

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

::-webkit-scrollbar-thumb {
    background: #c5dbb8;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9bbe8a;
}

/* Selection color */
::selection {
    background: #c5dbb8;
    color: #1d3317;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #2c4b21;
    outline-offset: 2px;
}

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239bbe8a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Mobile menu transition */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Print styles */
@media print {
    nav, #contact, .floating-card, .animate-scroll-line {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .font-serif {
        color: #000;
    }
}
