/* Custom styles that extend Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background-color: #e05235;
    color: #fdfbf7;
}

/* Subtle pattern for hero section */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(253,251,247,0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* Service card image placeholder gradient */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* Ensure all interactive elements have proper focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e05235;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #menu-overlay, #contact-form, #form-success {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    .hero-overlay {
        background: rgba(0,0,0,0.7) !important;
    }
}

/* Landscape phones - reduce font sizes */
@media (max-width: 480px) and (orientation: landscape) {
    .font-serif {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }
    #hero h1 {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
}

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