/* Panaderia Emanuel — Custom Styles */

/* Base */
html {
    scroll-padding-top: 80px;
}

/* Smooth font rendering */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: rgba(49, 76, 43, 0.15);
    color: #22321e;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #314c2b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduce 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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav,
    #mobile-menu,
    .reveal,
    .img-zoom,
    .gallery-item {
        display: block !important;
        opacity: 1 !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .thin-line {
        width: 40px;
    }
}

/* Large screens */
@media (min-width: 1280px) {
    h1 {
        font-size: clamp(3rem, 5vw, 4.5rem);
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid ButtonText;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 100px 0;
    }
}
