/* Custom styles for Bellfam Enterprises */

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

/* Selection color */
::selection {
    background-color: rgba(45, 102, 56, 0.2);
    color: #1c4024;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf9f6;
}
::-webkit-scrollbar-thumb {
    background: #c5dfc9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #98c59e;
}

/* Hero animations - only below the fold content uses reveal */
.hero-eyebrow {
    animation: fadeInDown 0.8s ease-out forwards;
}
.hero-headline {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-sub {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Reveal animations - only for below-fold content */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-eyebrow,
    .hero-headline,
    .hero-sub,
    .hero-cta {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(45, 102, 56, 0.1);
}

.nav-scrolled .nav-text {
    color: #1c4024;
}

.nav-scrolled .nav-link {
    color: #2d6638;
}

.nav-scrolled .menu-line {
    background-color: #1c4024;
}

/* Mobile menu active state */
.mobile-menu-open {
    opacity: 1;
    pointer-events: all;
}

/* 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='%2398c59e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

/* Focus visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #46834e;
    outline-offset: 2px;
}

/* Form select option styling */
select option {
    background-color: #faf9f6;
    color: #1c4024;
}
