/* Custom styles and refinements for My Mobile Home Service */

/* Base typography refinements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #d4532e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: #d4532e;
    color: white;
}

/* Decorative serif display adjustments */
.font-serif-display {
    text-rendering: optimizeLegibility;
}

/* Ensure hero image doesn't cause layout shift */
#hero img {
    aspect-ratio: 700 / 850;
}

/* Print styles */
@media print {
    nav, #contact-form, .img-zoom {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
    a {
        color: black;
        text-decoration: underline;
    }
}

/* 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;
        scroll-behavior: auto !important;
    }
    .service-card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(110, 33, 24, 0.1);
    }
    .img-zoom img {
        transform: none;
    }
    .fade-section {
        opacity: 1;
        transform: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif-display {
        word-spacing: -0.02em;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
