/* Custom styles for Kenmar Komfort Heating & Air Conditioning */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Scroll reveal base - content always visible, animation is progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar scrolled state */
.nav-scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Active nav link */
.nav-link.active {
    color: #5eead4 !important;
    background: rgba(94, 234, 212, 0.1) !important;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

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

/* Ensure all text meets contrast requirements */
.text-slate-300 {
    color: #cbd5e1;
}

.text-slate-400 {
    color: #94a3b8;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Hero text readability */
#hero h1,
#hero p,
#hero .inline-flex {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 768px) {
    .nav-link,
    .mobile-nav-link,
    button[type="submit"] {
        min-height: 44px;
    }
}

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