/* Custom styles for Maryland Emergency Products */

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(124, 20, 49, 0.08);
}

.navbar-scrolled .font-display,
.navbar-scrolled span {
    color: #7c1431 !important;
}

.navbar-scrolled a {
    color: #374151 !important;
}

.navbar-scrolled a:hover {
    color: #7c1431 !important;
}

/* Geometric accent shapes */
.geo-shape {
    position: absolute;
    border-radius: 24px;
    transform: rotate(15deg);
}

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

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

::-webkit-scrollbar-thumb {
    background: #d62548;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b51636;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #7c1431;
}

/* Subtle hover underline animation for nav links */
a[href^="#"] {
    position: relative;
}

/* Prevent layout shift on images */
img {
    image-rendering: -webkit-optimize-contrast;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-bounce {
        animation: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobileMenu.open {
    max-height: 400px;
    padding-top: 0;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(214, 37, 72, 0.1);
}

/* Card hover effects */
.group:hover .group-hover\:rotate-6 {
    transform: rotate(6deg);
}

/* Ensure hero content is always visible */
#hero h1,
#hero p,
#hero a,
#hero .inline-flex,
#hero .grid {
    opacity: 1 !important;
    animation: none !important;
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s;
    border-radius: inherit;
}

.btn-ripple:active::after {
    transform: scale(2);
    transition: transform 0s;
}
