/* Custom styles for Small Online Business Attraction */

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

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

/* Navbar styles */
.navbar-scrolled {
    background: rgba(250, 249, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(31, 54, 32, 0.06);
}

.navbar-transparent {
    background: transparent !important;
}

/* 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(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
    .reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
    .reveal.revealed:nth-child(4) { transition-delay: 0.3s; }
    .reveal.revealed:nth-child(5) { transition-delay: 0.4s; }
    .reveal.revealed:nth-child(6) { transition-delay: 0.5s; }
}

/* Hero underline animation */
@keyframes underline-draw {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8fb890;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6a9a6b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* Form input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #faf9f7 inset !important;
    -webkit-text-fill-color: #1f3620 !important;
}

/* Print styles */
@media print {
    nav, #contactForm, .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
