/* Big John's Catering and Concessions — Custom Styles */

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

body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0d0e10;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b4a, #d4a843);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff8a70, #e6c060);
}

/* Selection */
::selection {
    background: #ff6b4a;
    color: #0d0e10;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Hero text rendering */
h1, h2, h3, h4 {
    text-rendering: optimizeLegibility;
}

/* Prevent layout shift on images */
img {
    will-change: transform;
}

/* Gold shimmer animation for special text */
@keyframes goldShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.shimmer-gold {
    background: linear-gradient(
        90deg,
        #d4a843 0%,
        #f0d48a 25%,
        #e6c060 50%,
        #f0d48a 75%,
        #d4a843 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 4s linear infinite;
}

/* Coral pulse for accents */
@keyframes coralPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.coral-pulse {
    animation: coralPulse 2s ease-in-out infinite;
}

/* Card hover lift */
.card-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Line animation on hover */
.line-hover {
    position: relative;
}

.line-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b4a, #d4a843);
    transition: width 0.3s ease;
}

.line-hover:hover::after {
    width: 100%;
}

/* Gradient border effect */
.gradient-border {
    position: relative;
    background: #1a1b1e;
    border-radius: 1rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.3), rgba(212, 168, 67, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* 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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    section[id] {
        scroll-margin-top: 60px;
    }
    
    .card-shine {
        padding: 1.5rem !important;
    }
}
