/* Custom styles for Grumpy's Bike Shop */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

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

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

/* Image lazy load transition */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Card glow effect on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1EC48A, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover::before {
    opacity: 1;
}

/* Subtle page background texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(30, 196, 138, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Ensure all text meets contrast */
h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF;
}

p, span, li, a, label, input, textarea {
    color: inherit;
}

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

/* Animation for hero badge */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .geo-diamond {
        display: none;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
