/* Custom styles for Randy's Repair */

/* Base reset refinements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f1f5f9;
}

/* Body font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Custom select dropdown styling */
select option {
    background: #1e293b;
    color: #f1f5f9;
}

/* Textarea resize */
textarea {
    resize: vertical;
    min-height: 100px;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Prevent content flash on scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        will-change: opacity, transform;
    }
}

/* Ensure hero renders immediately */
#hero {
    opacity: 1;
}

/* Gold accent for specific text */
.text-gold-400 {
    color: #fbbf24;
}

/* Subtle texture overlay for cards */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 50%);
    pointer-events: none;
}

.service-card {
    position: relative;
}

/* Navbar glass effect */
#navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(4, 47, 46, 0.85);
}

#navbar:not(.nav-scrolled) {
    background: transparent;
}

/* Mobile menu animation */
.mobile-menu {
    overscroll-behavior: contain;
}

/* Prevent body scroll when mobile menu open */
body.menu-open {
    overflow: hidden;
}

/* Counter animation smoothness */
.counter {
    display: inline-block;
}

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