/* Custom styles to complement Tailwind CSS */

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

/* Custom focus styles */
*:focus {
    outline: 2px solid #2E8B57;
    outline-offset: 2px;
}

/* Custom transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Hero section background pattern */
.hero-pattern {
    background-image: 
        linear-gradient(45deg, rgba(46, 139, 87, 0.1) 25%, transparent 25%), 
        linear-gradient(-45deg, rgba(46, 139, 87, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(46, 139, 87, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(46, 139, 87, 0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Card hover effects */
.service-card {
    transition: all 0.3s ease-in-out;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Icon container styles */
.icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2E8B57, #A2D9A4);
}

.icon-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, #A2D9A4, #2E8B57);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-container:hover::before {
    opacity: 1;
}

/* Custom form styles */
.form-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: #2E8B57;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.2);
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #2E8B57, #236B43);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(35, 107, 67, 0.3);
}

/* Animated underline effect */
.hover-underline-animation {
    position: relative;
    display: inline-block;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #2E8B57;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Wave animation for hero section */
.bg-wave-pattern-1 {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3e%3cpath fill='%232E8B57' fill-opacity='0.3' d='M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,170.7C672,149,768,139,864,154.7C960,171,1056,213,1152,229.3C1248,245,1344,235,1392,229.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3e%3c/path%3e%3c/svg%3e");
    background-size: cover;
    background-position: bottom;
}

.bg-wave-pattern-2 {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3e%3cpath fill='%232E8B57' fill-opacity='0.2' d='M0,224L48,213.3C96,203,192,181,288,186.7C384,192,480,224,576,245.3C672,267,768,277,864,261.3C960,245,1056,203,1152,186.7C1248,171,1344,181,1392,186.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3e%3c/path%3e%3c/svg%3e");
    background-size: cover;
    background-position: bottom;
}

.bg-wave-pattern-3 {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3e%3cpath fill='%231a472a' fill-opacity='0.3' d='M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,224C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3e%3c/path%3e%3c/svg%3e");
    background-size: cover;
    background-position: bottom;
}

@keyframes wave-1 {
    0% { transform: translateX(0); }
    50% { transform: translateX(-5%); }
    100% { transform: translateX(0); }
}

.animate-wave-1 {
    animation: wave-1 10s ease-in-out infinite alternate;
}

@keyframes wave-2 {
    0% { transform: translateX(0); }
    50% { transform: translateX(-10%); }
    100% { transform: translateX(0); }
}

.animate-wave-2 {
    animation: wave-2 12s ease-in-out infinite alternate;
}

@keyframes wave-3 {
    0% { transform: translateX(0); }
    50% { transform: translateX(-7%); }
    100% { transform: translateX(0); }
}

.animate-wave-3 {
    animation: wave-3 15s ease-in-out infinite alternate;
}

/* Card styles */
.feature-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Testimonial card styles */
.testimonial-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2rem;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    color: #2E8B57;
    opacity: 0.2;
    font-family: serif;
}

/* Scroll indicator animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

/* Mobile menu animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-open {
    animation: slideDown 0.3s ease-out forwards;
}

/* Custom form validation styles */
input:invalid,
textarea:invalid {
    border-color: #EF4444;
}

.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }
}

/* Floating label styles */
.floating-label-group {
    position: relative;
}

.floating-input {
    width: 100%;
    padding: 1rem 1rem 0.5rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    background-color: white;
    transition: all 0.2s ease;
    font-size: 1rem;
    -webkit-appearance: none;
    appearance: none;
}

.floating-label {
    position: absolute;
    top: 0.875rem;
    left: 1rem;
    color: #6B7280;
    pointer-events: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.floating-input:focus,
.floating-input:not(:placeholder-shown) {
    border-color: #2E8B57;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
    top: 0.25rem;
    left: 1rem;
    font-size: 0.75rem;
    color: #2E8B57;
}

textarea.floating-input {
    min-height: 120px;
}