/* Custom styles that complement Tailwind CSS */

/* Ensure proper box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
    transition: all 0.3s ease;
}

/* Custom selection color */
::selection {
    background-color: #FF6B4A;
    color: #0F0F0F;
}

/* Improve image rendering */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Prevent font smoothing issues */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure proper spacing on mobile */
@media (max-width: 640px) {
    .font-serif {
        word-break: break-word;
    }
}

/* Add subtle hover effects to cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Improve form input focus states */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure proper responsive behavior */
@media (min-width: 768px) {
    .service-card {
        transform: translateY(0);
    }
}

/* Add subtle parallax effect to hero */
#hero {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}

/* Improve accessibility */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .btn-primary,
    .nav-link {
        transition: none;
    }
}

/* Ensure proper contrast for all text */
.text-charcoal-500 {
    color: #4A4A4A;
}

/* Add subtle shadow to navbar on scroll */
nav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}
