/* Summit Heating and Air Conditioning — Custom Styles */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a2744;
}
::-webkit-scrollbar-thumb {
    background: #c8a44e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4b562;
}

/* Navbar transitions */
.nav-text-color {
    color: #1a2744;
}
.nav-bg-hover:hover {
    background-color: rgba(26, 39, 68, 0.05);
}

/* Dark navbar state */
.navbar-scrolled .nav-text-color {
    color: #ffffff;
}
.navbar-scrolled .nav-bg-hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.navbar-scrolled #navbar {
    background-color: rgba(13, 21, 40, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.navbar-scrolled .logo-text {
    color: #ffffff;
}

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav-link:hover {
    color: #c8a44e;
    padding-left: 8px;
}
.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #c8a44e;
    transition: width 0.2s;
}
.mobile-nav-link:hover::before {
    width: 4px;
}

/* Reveal animations — progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Hero image float animation */
@media (prefers-reduced-motion: no-preference) {
    .hero-float {
        animation: float 6s ease-in-out infinite;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Service card hover glow */
.group:hover .group-hover\:bg-gold-500 {
    transition: background-color 0.3s ease;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 164, 78, 0.2);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Selection color */
::selection {
    background-color: #c8a44e;
    color: #1a2744;
}

/* Print styles */
@media print {
    nav, #contactForm, .reveal { display: none; }
    body { color: #000; background: #fff; }
    section { padding: 20px 0; }
}
