/* Prime Kitchen, LLC — Custom Styles */

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

body {
    overflow-x: hidden;
}

/* ── Selection ── */
::selection {
    background-color: #e8735a;
    color: #1a1a1a;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e8735a;
}

/* ── Header scroll state ── */
#site-header.scrolled {
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(58, 58, 58, 0.3);
}

#site-header.scrolled .menu-line {
    background-color: #e8e8e8;
}

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

.menu-line {
    display: block;
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* ── Mobile links ── */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #e8735a;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* ── Scroll reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s 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; }
}

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

/* ── Image hover container ── */
.rounded-lg overflow-hidden {
    position: relative;
}

/* ── Subtle pattern overlay for sections ── */
.bg-charcoal-900::before,
.bg-charcoal-950::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(232, 115, 90, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* ── Menu list item hover ── */
.bg-charcoal-900\\/60:hover {
    background-color: rgba(46, 46, 46, 0.6);
}

/* ── Print ── */
@media print {
    header, footer, #contact-form, #mobile-menu {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
    a {
        color: black;
    }
}
