/* ==========================================
   Elkins Insurance Group — Custom Styles
   ========================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal[data-reveal-state="visible"] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #051829;
}
::-webkit-scrollbar-thumb {
    background: #1a5276;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2a6793;
}

/* Selection color */
::selection {
    background: rgba(94, 234, 212, 0.3);
    color: #051829;
}

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

/* Hero subtle animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Button hover glow */
a:hover .group-hover\:shadow-mint-400\/30 {
    box-shadow: 0 8px 30px rgba(94, 234, 212, 0.15);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-2px);
}

/* Form focus ring */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.2);
}
