/* Miss Darcey's Garden — Custom Styles */

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

/* Selection color */
::selection {
    background-color: #b82847;
    color: #fefcf6;
}

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Prevent image flash on load */
img {
    backface-visibility: hidden;
}

/* Ensure reveal classes work properly */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
    /* Default state: visible (progressive enhancement) */
    opacity: 1;
    transform: none;
}

/* When JS is enabled, hide until revealed */
.js-enabled .reveal,
.js-enabled .reveal-left,
.js-enabled .reveal-right,
.js-enabled .reveal-scale {
    opacity: 0;
    transform: translateY(32px);
}

.js-enabled .reveal-left {
    transform: translateX(-40px);
}

.js-enabled .reveal-right {
    transform: translateX(40px);
}

.js-enabled .reveal-scale {
    transform: scale(0.92);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
    }
    .animate-marquee {
        animation: none;
    }
    .blob-animate, .blob-animate-2 {
        animation: none;
    }
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #backToTop {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-grid > .order-1 {
        order: 1 !important;
    }
    .hero-grid > .order-2 {
        order: 2 !important;
    }
    #hero {
        min-height: 100vh;
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 3px solid #b82847;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Loading state for images */
img {
    background-color: #fce7eb;
}
