/* Custom styles for Care Company website */

/* Base styles to complement Tailwind CSS */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.show {
    max-height: 300px;
}

/* Card hover effects */
.hover\:transform:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Modal styles */
.modal {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.95);
}

.modal.show {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: scale(1);
}

.modal-overlay {
    transition: opacity 0.3s ease;
}

.modal-container {
    transition: transform 0.3s ease;
}

/* Form focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

/* Custom button styles */
.btn-primary {
    background-color: #4A6FA5;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #3d5c8a;
}

.btn-secondary {
    background-color: #FF8C42;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #e57a32;
}

/* Custom section spacing */
.section-spacing {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Image gallery styles */
.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Card styles */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

.animate-fadeIn {
    animation: fadeIn 0.5s ease-in-out;
}

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

.animate-slideInUp {
    animation: slideInUp 0.5s ease-in-out;
}

/* Custom utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gradient-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid #4A6FA5;
    outline-offset: 2px;
}

/* Custom styles for form validation */
.form-error {
    border-color: #e53e3e !important;
}

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

/* Custom styles for contact form */
.form-success-message {
    background-color: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.form-error-message {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

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

/* Helper classes for spacing */
.spacer-sm {
    height: 1rem;
}

.spacer-md {
    height: 2rem;
}

.spacer-lg {
    height: 4rem;
}

/* Scroll Animation Classes */
.animate-hidden {
    opacity: 0;
    transition: all 0.8s ease-out;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Slide Up Animation */
.slide-up {
    animation: slideUp 0.8s ease forwards;
}

/* Slide In From Left Animation */
.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

/* Slide In From Right Animation */
.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

/* Zoom In Animation */
.zoom-in {
    animation: zoomIn 0.8s ease forwards;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Delays for Staggered Effects */
.delay-100 {
    animation-delay: 0.1s;
}

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

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

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}
