/* ============================================
   Vojtilla Vineyard — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #C0603A;
    color: #FDF8F0;
}

/* --- Hero Blobs --- */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #FCE3D8;
    top: -100px;
    right: -100px;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: #FAEBD0;
    bottom: 10%;
    left: -50px;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #F8C4B0;
    top: 40%;
    right: 35%;
    animation: blobFloat 6s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* --- Navigation --- */
#site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#site-header.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(61, 43, 31, 0.08);
}

.nav-link {
    position: relative;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line.mid {
    width: 0;
    opacity: 0;
}

body.menu-open .menu-line.top-3.5 {
    transform: rotate(45deg);
    top: 50%;
}

body.menu-open .menu-line.bottom-3.5 {
    transform: rotate(-45deg);
    top: 50%;
}

body.menu-open .menu-line.mid {
    width: 20px;
    opacity: 0;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* --- Product Card Image Hover --- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* --- Button Ripple (subtle) --- */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 2px solid #C0603A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Form Select Arrow --- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C4033' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* --- Back to Top --- */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* --- Image Aspect Ratios --- */
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }
.aspect-\[3\/4\] { aspect-ratio: 3 / 4; }
.aspect-\[3\/4\] { aspect-ratio: 3 / 4; }

/* --- Smooth image loading --- */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* --- Print --- */
@media print {
    #site-header, #back-to-top, .hero-blob { display: none; }
    body { background: white; color: black; }
}
