/* Custom styles for Dansville Brewing Company */

/* Base reset adjustments */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Selection color */
::selection {
    background-color: rgba(61, 163, 138, 0.3);
    color: #f1f5f9;
}

/* Body background texture */
body {
    background-color: #0d1320;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus visible for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #3da38a;
    outline-offset: 2px;
}

/* Navbar scroll state */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(13, 19, 32, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Beer card image hover */
.beer-card:hover img {
    transform: scale(1.03);
}

.beer-card .aspect-\[3\/4\] img {
    transition: transform 0.5s ease;
}

/* Decorative line animation delay */
.line-anim {
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle parallax on hero */
@media (prefers-reduced-motion: no-preference) {
    .hero-grid > div:first-child {
        will-change: transform;
    }
}

/* Print styles */
@media print {
    body { background: white; color: black; }
    nav, #contact, footer { display: none; }
}

/* Mobile responsiveness tweaks */
@media (max-width: 767px) {
    .hero-grid {
        min-height: auto;
    }

    #hero {
        padding-top: 100px;
    }

    h1 {
        font-size: 2.25rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    .beer-card {
        margin-bottom: 1rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Large screens */
@media (min-width: 1280px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

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

    .cta-pulse {
        animation: none;
    }

    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
    }
}
