/* Custom styles that complement Tailwind */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure all text has proper contrast on every background */
.hero-bg * {
    /* Already handled by explicit color classes */
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: rgba(255, 107, 74, 0.3);
    color: #1A1A1A;
}

/* Subtle pattern overlay for geometric sections */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,107,74,0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button press effect */
.btn-coral:active {
    transform: scale(0.97);
}

/* Card hover shadow refinement */
.card-hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card-hover:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
