/* Custom styles for Makhara Contracting Group */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(160, 26, 62, 0.1);
}

nav.scrolled .font-heading {
    color: #6d1a33;
}

/* Mobile menu animations */
.mobile-link {
    transition: all 0.2s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d94065;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #f9cfd9;
    color: #6d1a33;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #d94065;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button hover glow effect */
button:hover, a:hover {
    transition: all 0.2s ease;
}

/* Image lazy load fallback */
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;
    }
}

/* Print styles */
@media print {
    nav, #contactForm, .animate-bounce, button {
        display: none !important;
    }

    body {
        background: white !important;
    }

    section {
        page-break-inside: avoid;
    }
}
