/* Custom Styles for Trust Plumbing */

:root {
    --charcoal: #374151;
    --coral: #F87171;
    --stone-50: #FAFAF9;
    --stone-100: #F5F5F4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--charcoal);
}

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

.font-sans {
    font-family: 'Lato', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: var(--stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--charcoal);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coral);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: rgba(55, 65, 81, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Service card hover effect */
.group:hover .group-hover\:bg-coral {
    background-color: var(--coral) !important;
}

.group:hover .group-hover\:text-white {
    color: white !important;
}

/* Smooth transitions */
.transition-all {
    transition: all 0.3s ease-in-out;
}

/* Focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

/* Mobile menu animation */
#mobile-menu {
    transform: translateY(-100%);
}

#mobile-menu.open {
    transform: translateY(0);
}

/* Image object fit fallback */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
