/* Custom styles for DDK Roofing */

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

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.1);
}

/* Service card hover animation */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery item hover */
.gallery-item {
    position: relative;
}

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

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

/* Mobile menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 5px;
}

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

/* Ensure all text is readable */
.text-emerald-900 {
    color: #064e3b;
}

.text-emerald-800 {
    color: #065f46;
}

.text-emerald-700 {
    color: #047857;
}

.text-emerald-600 {
    color: #059669;
}

.text-emerald-500 {
    color: #10b981;
}

.text-emerald-400 {
    color: #34d399;
}

.text-emerald-300 {
    color: #6ee7b7;
}

.text-emerald-200 {
    color: #a7f3d0;
}

.text-emerald-100 {
    color: #d1fae5;
}

.text-cream-50 {
    color: #fffbf0;
}

.text-cream-100 {
    color: #fef7e0;
}

.bg-emerald-900 {
    background-color: #064e3b;
}

.bg-emerald-800 {
    background-color: #065f46;
}

.bg-emerald-700 {
    background-color: #047857;
}

.bg-emerald-600 {
    background-color: #059669;
}

.bg-emerald-500 {
    background-color: #10b981;
}

.bg-emerald-200 {
    background-color: #a7f3d0;
}

.bg-emerald-100 {
    background-color: #d1fae5;
}

.bg-emerald-50 {
    background-color: #ecfdf5;
}

.bg-cream-50 {
    background-color: #fffbf0;
}

.bg-cream-100 {
    background-color: #fef7e0;
}

/* Mobile menu link hover */
.mobile-link:hover {
    padding-left: 8px;
    transition: padding-left 0.2s ease;
}

/* Active nav link */
nav a.active {
    color: #059669;
}

/* Print styles */
@media print {
    nav, .scroll-indicator, #contact-form {
        display: none;
    }
}
