/* Additional custom styles */

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

/* Selection color */
::selection {
    background-color: rgba(161, 40, 64, 0.2);
    color: #6c2230;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #a12840;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #backToTop, .mobile-menu { display: none; }
    body { background: white; }
    section { page-break-inside: avoid; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* High contrast mode */
@media (forced-colors: active) {
    .service-card { border: 2px solid ButtonText; }
    .gallery-item { border: 2px solid ButtonText; }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .font-serif {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(161, 40, 64, 0.1);
    }
    .gallery-item:hover img {
        transform: none;
    }
    .gallery-item:hover .overlay {
        opacity: 0.7;
    }
}
