/* Custom styles for Pappas Bail Bonds */

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0dc;
}
::-webkit-scrollbar-thumb {
    background: #a3c486;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7aaa55;
}

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

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

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(47, 70, 33, 0.08);
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 12deg)); }
    50% { transform: translateY(-12px) rotate(var(--rotation, 12deg)); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 12deg)); }
    50% { transform: translateY(-8px) rotate(var(--rotation, 12deg)); }
}

.hero-shape {
    animation: float 6s ease-in-out infinite;
}

.hero-shape-slow {
    animation: float-slow 8s ease-in-out infinite;
    animation-delay: 1s;
}

/* Button hover glow */
a:hover .glow {
    filter: brightness(1.1);
}

/* Map container */
iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.3s ease;
}
iframe:hover {
    filter: saturate(1) contrast(1);
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
#mobileMenu.open {
    max-height: 400px;
    padding-top: 0;
}

/* Active nav link */
.nav-link-active {
    color: #5a8a3a;
}

/* Selection color */
::selection {
    background: #c7dbb3;
    color: #2f4621;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
    border-radius: 4px;
}
