/* Pull Over Here Espresso — Custom Styles */

/* Base reset and typography refinements */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #f5f0e8;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Smooth image rendering */
img {
    -webkit-interpolation-color: high-quality;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Nav active state on scroll */
nav.scrolled .nav-glass {
    background: rgba(10, 15, 30, 0.95);
    border-bottom-color: rgba(212, 168, 83, 0.1);
}

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

.btn-gold.shimmer span {
    background: linear-gradient(90deg, #b8923f 0%, #f0d48a 50%, #b8923f 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Subtle pulse for phone number */
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(212, 168, 83, 0); }
}

.phone-pulse:hover {
    animation: pulse-gold 2s ease-in-out infinite;
}

/* Card gradient border effect on hover */
.menu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.3), transparent, rgba(212, 168, 83, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.menu-card:hover::before {
    opacity: 1;
}

.menu-card {
    position: relative;
    overflow: hidden;
}

/* Mobile menu line animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}
