/* ===== Custom Styles for S.R.HUGHES Construction ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #1a1814;
}

.navbar-scrolled .nav-logo-sub {
    color: #059669;
}

.navbar-scrolled .menu-line {
    background-color: #1a1814;
}

/* Mobile menu */
.mobile-link {
    transition: color 0.3s ease;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative line animation */
@keyframes drawLine {
    from { width: 0; }
    to { width: 2rem; }
}

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

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

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

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

/* Selection color */
::selection {
    background: #064e3b;
    color: #fefdf8;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

/* Print styles */
@media print {
    nav, #contact, footer {
        display: none;
    }

    body {
        color: #1a1814;
        background: white;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
