/* Custom styles for McFadden Enterprises LLC */

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

/* Prevent scroll-reveal from hiding content by default (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll-reveal animations — only active when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal[data-animate="true"] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .scroll-reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

#navbar.scrolled .nav-link {
    color: #243b53 !important;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobile-menu.open {
    max-height: 400px;
}

/* Gold accent line under headings */
.section-label::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #eda94c, #f6e0a0);
    border-radius: 2px;
    margin-top: 12px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

/* Selection color */
::selection {
    background: #f6e0a0;
    color: #102a43;
}

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

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Subtle pattern for hero overlay */
.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(237, 169, 76, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(246, 224, 160, 0.08) 0%, transparent 50%);
}

/* Print styles */
@media print {
    nav, #contact-form, iframe {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
