/* Custom styles for J&J Total Home Care */

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

/* Custom font families */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

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

/* Custom color variables */
:root {
    --emerald-900: #14532d;
    --emerald-800: #166534;
    --emerald-700: #15803d;
    --emerald-600: #1a8a45;
    --emerald-500: #22c55e;
    --cream-900: #2D2518;
    --cream-800: #4A3F30;
    --cream-700: #6B5B45;
    --cream-600: #8B7355;
    --cream-500: #eab308;
    --cream-200: #fef08a;
    --cream-100: #fef9c3;
    --cream-50: #fefce8;
}

/* Navigation styles */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--emerald-700);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Button styles */
.btn-primary {
    background-color: var(--emerald-700);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(20, 83, 45, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--emerald-700);
    border: 2px solid var(--emerald-700);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--emerald-700);
    color: white;
}

/* Service card styles */
.service-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

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

/* Decorative elements */
.ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--emerald-700), transparent);
}

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

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

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Image overlay */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.1), transparent);
    z-index: 1;
}

/* Footer links */
.footer-link {
    color: var(--cream-700);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--emerald-700);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr;
    }
    
    .font-serif {
        font-size: 2rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2.5rem;
    }
    
    .font-serif.text-5xl {
        font-size: 3rem;
    }
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid var(--emerald-700);
    outline-offset: 2px;
}

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

/* Print styles */
@media print {
    .mobile-menu,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .service-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
