/* Custom Styles for Zdunczyk Heating & Cooling */

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

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Hero Animations - Only below the fold or progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .hero-tagline {
        animation: slideUp 0.8s ease-out forwards;
    }
    
    .hero-headline {
        animation: slideUp 0.8s ease-out 0.2s forwards;
        opacity: 0;
        transform: translateY(30px);
    }
    
    .hero-subtitle {
        animation: slideUp 0.8s ease-out 0.4s forwards;
        opacity: 0;
        transform: translateY(30px);
    }
    
    .hero-buttons {
        animation: slideUp 0.8s ease-out 0.6s forwards;
        opacity: 0;
        transform: translateY(30px);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Animations - Progressive Enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(40px);
}

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

/* Service Card Hover Effects */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(45, 212, 191, 0.1);
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

::-webkit-scrollbar-track {
    background: #05101C;
}

::-webkit-scrollbar-thumb {
    background: rgba(45, 212, 191, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 212, 191, 0.5);
}

/* Selection Color */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #CCFBF1;
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 2px solid #5EEAD4;
    outline-offset: 2px;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button Ripple Effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Image Hover Zoom */
img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Process Step Hover */
.process-step:hover .process-step-title {
    color: #5EEAD4;
    transition: color 0.3s ease;
}

/* Input Focus States */
input:focus,
textarea:focus,
select:focus {
    border-color: rgba(45, 212, 191, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    
    .hero-headline {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
}

/* Print Styles */
@media print {
    header,
    #contact,
    .hero-buttons {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
