/* Halifax Marine Construction — Custom Styles */

/* Base resets */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Selection color */
::selection {
    background: rgba(200, 164, 94, 0.3);
    color: #0a1628;
}

/* Smooth focus outlines */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c8a45e;
    outline-offset: 2px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-bg {
        background-attachment: scroll !important;
    }

    img {
        transition: none !important;
    }
}

/* Image lazy load fade */
img[loading="lazy"] {
    transition: opacity 0.4s ease;
}

img[loading="lazy"]:not(.loaded) {
    opacity: 0;
}

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

/* Print styles */
@media print {
    .hero-bg {
        background: #0a1628 !important;
        background-attachment: scroll !important;
    }

    #navbar,
    .scroll-indicator {
        display: none !important;
    }

    body {
        color: #0a1628 !important;
        background: white !important;
    }
}
