/* East Coast Medical Alert System — Custom Styles */

/* Base overrides and enhancements */
html {
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background-color: rgba(22, 101, 52, 0.4);
    color: #faf6ed;
}

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

/* Smooth transitions for all interactive elements */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .float-1, .float-2, .float-3, .float-4 {
        animation: none;
    }
    .emergency-dot, .pulse-ring {
        animation: none;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #menuOverlay, button {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .float-1, .float-2, .float-3, .float-4 {
        display: none;
    }
    #hero {
        min-height: auto;
        padding: 4rem 0;
    }
    .hero-pattern {
        background-image: radial-gradient(circle at 50% 50%, rgba(22, 101, 52, 0.2) 0%, transparent 70%);
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .reveal {
        transition-delay: 0.1s;
    }
}
