/* Custom styles for Grisham Insurance */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040B16;
}
::-webkit-scrollbar-thumb {
    background: #1B3A70;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #244B8C;
}

/* Selection color */
::selection {
    background: rgba(20, 196, 138, 0.3);
    color: #fff;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(4, 11, 22, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(20, 196, 138, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Geometric decorative elements */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

/* Card hover glow */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(20, 196, 138, 0.15);
}

/* Button press effect */
.btn-press:active {
    transform: scale(0.97);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0A1628 inset !important;
    -webkit-text-fill-color: #fff !important;
}

/* Map contrast override for dark theme */
iframe[src*="google.com/maps"] {
    filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}

/* Pulse animation for CTA elements */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse-slow {
    animation: soft-pulse 3s ease-in-out infinite;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #3DD8A4 0%, #14C48A 50%, #0DA672 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero asymmetric layout adjustments */
@media (max-width: 1023px) {
    #hero .order-1 {
        order: 1 !important;
    }
    #hero .order-2 {
        order: 2 !important;
    }
}

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* Background pattern */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(20, 196, 138, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}
