/* Custom styles for Citrus + Cedar Farm Stand and Soap Co. */

/* Smooth focus outlines for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #9d174d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #f9a8d4;
    color: #500724;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure hero is fully visible on first load */
#hero,
#hero * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 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;
    }

    .img-zoom img {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    #menuOverlay {
        display: none !important;
    }

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

    .hero-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-grid {
        min-height: auto;
    }

    #hero {
        padding-top: 80px;
    }
}

/* Ensure all interactive elements are large enough on touch */
@media (pointer: coarse) {
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}
