/* Custom styles that complement Tailwind and the inline styles in index.html */

/* Smooth scroll for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background: rgba(140, 37, 37, 0.2);
    color: #350c0c;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf7f5;
}

::-webkit-scrollbar-thumb {
    background: rgba(140, 37, 37, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(140, 37, 37, 0.5);
}

/* Mobile link hover effect */
.mobile-link {
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-link:hover {
    color: #8c2525;
    padding-left: 0.5rem;
}

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

/* Print styles */
@media print {
    nav, .hero-gradient, #contactForm, #formSuccess {
        display: none !important;
    }

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

    a {
        color: #000;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: none;
    }

    .service-card:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(101, 26, 26, 0.08);
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        border-width: 3px;
    }

    .btn-outline {
        border-width: 3px;
    }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
    html {
        font-size: 17px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .hero-headline {
        font-size: 2rem !important;
    }

    .section-title {
        font-size: 1.75rem !important;
    }
}
