/* Custom styles for Precon Precast website */

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

/* Base styles */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

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

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

/* Utility classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #d95226 0%, #c43e18 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c43e18 0%, #a33013 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 82, 38, 0.35);
}

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: white;
    color: #d95226;
    border-color: white;
}

/* Service card hover effect */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-card:hover .service-icon {
    background-color: #d95226;
    color: white;
}

.service-icon {
    transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Navbar scroll effect */
.nav-scrolled {
    background-color: rgba(253, 251, 247, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #424242;
}

.nav-scrolled .nav-link:hover {
    color: #d95226;
}

.nav-scrolled .logo-text {
    color: #d95226;
}

/* Form styles */
input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #d95226;
    border-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-pattern {
        background-image: linear-gradient(135deg, rgba(217, 82, 38, 0.95) 0%, rgba(163, 48, 19, 0.98) 100%);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
