/* Additional custom styles for Mish Realty */

/* Smooth scroll offset for fixed navigation */
html {
    scroll-padding-top: 80px;
}

/* Navigation active state */
.nav-link.active {
    color: #059669;
}

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

/* Hero content fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > div > * {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.hero-content > div > *:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-content > div > *:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-content > div > *:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-content > div > *:nth-child(4) {
    animation-delay: 0.8s;
}

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

.service-card:hover img {
    transform: scale(1.05);
}

/* Testimonial card hover */
.bg-emerald-600:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Form validation styles */
.form-input:invalid:focus {
    border-color: #ef4444;
}

.form-input:valid:focus {
    border-color: #059669;
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .btn-primary,
    .btn-secondary {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        background: #047857;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }

    .form-input {
        border-width: 3px;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 3px solid #059669;
    outline-offset: 2px;
}

/* Loading state for buttons */
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Skeleton loading animation */
@keyframes skeleton {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f3f4f6 25%,
        #e5e7eb 50%,
        #f3f4f6 75%
    );
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}
