/* Custom styles for Summit Garage Doors */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(10, 21, 37, 0.08);
    backdrop-filter: blur(10px);
}

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

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

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

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

/* Selection color */
::selection {
    background-color: #d4901a;
    color: #0a1525;
}

/* Image loading placeholder */
img {
    background-color: #f0f4f8;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Ensure hero image doesn't cause layout shift */
#hero img {
    display: block;
}

/* Gold accent line */
.font-serif .italic {
    position: relative;
}

/* Subtle pattern for sections */
.bg-navy-900::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(212, 144, 26, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(212, 144, 26, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Ensure all text meets contrast requirements */
.text-navy-200 {
    color: #a8bdd8;
}

.text-navy-300 {
    color: #7b99c3;
}

.text-navy-400 {
    color: #4f76ae;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Print styles */
@media print {
    #navbar,
    #contactForm {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
