/* ============================================
   Loose Diamond Slots — Custom Styles
   Pecatonica, WI
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-teal-600: #0d9488;
    --color-teal-700: #0f766e;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-500: #64748b;
    --color-slate-400: #94a3b8;
    --color-slate-200: #e2e8f0;
    --color-slate-100: #f1f5f9;
    --color-slate-50: #f8fafc;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Hero Gradient --- */
.hero-gradient {
    background: linear-gradient(135deg, 
        #042f2e 0%, 
        #0f766e 30%, 
        #0d9488 50%, 
        #115e59 70%, 
        #042f2e 100%
    );
}

/* --- Hero Animations --- */
.hero-badge {
    animation: heroFadeDown 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-title {
    animation: heroFadeUp 1s var(--ease-out-expo) 0.4s both;
}

.hero-subtitle {
    animation: heroFadeUp 1s var(--ease-out-expo) 0.6s both;
}

.hero-cta {
    animation: heroFadeUp 1s var(--ease-out-expo) 0.8s both;
}

@keyframes heroFadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hero Decorative Shapes --- */
.hero-shape-1 {
    background: radial-gradient(circle, #5eead4, transparent);
    animation: floatShape 8s ease-in-out infinite;
}

.hero-shape-2 {
    background: radial-gradient(circle, #2dd4bf, transparent);
    animation: floatShape 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
    background: radial-gradient(circle, #99f6e4, transparent);
    animation: floatShape 6s ease-in-out infinite 1s;
}

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

/* --- Scroll Indicator --- */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* --- Section Label --- */
.section-label {
    letter-spacing: 0.15em;
}

/* --- Navigation --- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-teal-600);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Navbar Scroll State --- */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 4px 20px rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .nav-logo {
    color: var(--color-slate-900) !important;
}

.navbar-scrolled .nav-link {
    color: var(--color-slate-600) !important;
}

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

.hamburger-line {
    transition: transform 0.3s var(--ease-out-expo), opacity 0.2s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 1.25rem;
}

/* --- Scroll Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    }
    
    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* --- Product Cards --- */
.product-card {
    will-change: transform, box-shadow;
}

.product-card:hover .product-card-img {
    transform: scale(1.05);
}

/* --- Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
}

/* --- Selection Color --- */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: var(--color-slate-900);
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 2px solid var(--color-teal-600);
    outline-offset: 2px;
}

/* --- Button Hover Effects --- */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* --- Input Autofill --- */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* --- Image Loading --- */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* --- Responsive Tweaks --- */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-title br {
        display: none;
    }
    
    .hero-title::after {
        content: 'pantry full';
        display: block;
    }
}

@media (min-width: 641px) {
    .hero-title br {
        display: block;
    }
    
    .hero-title::after {
        content: '';
        display: none;
    }
}

/* --- Print Styles --- */
@media print {
    .hero-gradient,
    .hero-shape,
    .scroll-line,
    #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-title,
    .font-serif {
        color: #000 !important;
    }
}
