/* ═══════════════════════════════════════════════════════════
   Als Famous Foods — Custom Styles
   Palette: Deep Navy (#0a1f3a) + Warm Gold (#d4a843)
   Fonts: Playfair Display (headings) + Inter (body)
   ═══════════════════════════════════════════════════════════ */

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #0a1f3a;
}

/* ── Navigation ── */
#site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 31, 58, 0.06);
    box-shadow: 0 1px 0 rgba(10, 31, 58, 0.04);
}

#site-header.scrolled {
    box-shadow: 0 4px 20px rgba(10, 31, 58, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a843;
    transition: width 0.3s ease;
}

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

/* ── Buttons ── */
.btn-gold {
    background: linear-gradient(135deg, #d4a843 0%, #e0ad14 100%);
    color: #0a1f3a;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(212, 168, 67, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.4);
    background: linear-gradient(135deg, #e0ad14 0%, #f4db7a 100%);
}

.btn-gold:active {
    transform: translateY(0);
}

/* ── Badges ── */
.badge-gold {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    background: rgba(212, 168, 67, 0.12);
    color: #b8891e;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.025em;
}

.badge-navy {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    background: rgba(14, 44, 80, 0.08);
    color: #1e4e8a;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.025em;
}

.badge-green {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    background: rgba(22, 101, 52, 0.1);
    color: #166534;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.025em;
}

.badge-purple {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    background: rgba(109, 40, 217, 0.1);
    color: #7c3aed;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.025em;
}

/* ── Mobile nav ── */
.mobile-nav-link {
    display: block;
}

/* ── Card groups ── */
.card-group {
    will-change: transform;
}

/* ── Reveal animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-grid {
        opacity: 1;
        transform: none;
    }

    .reveal-up {
        animation: revealUp 0.7s ease forwards;
    }

    .reveal-left {
        animation: revealLeft 0.7s ease forwards;
    }

    .reveal-right {
        animation: revealRight 0.7s ease forwards;
    }

    .reveal-grid {
        animation: revealGrid 0.6s ease forwards;
    }

    .reveal-img {
        animation: revealImg 0.8s ease forwards;
    }
}

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

@keyframes revealLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes revealImg {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Staggered grid children ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal-grid > *:nth-child(1) { animation-delay: 0.05s; }
    .reveal-grid > *:nth-child(2) { animation-delay: 0.1s; }
    .reveal-grid > *:nth-child(3) { animation-delay: 0.15s; }
    .reveal-grid > *:nth-child(4) { animation-delay: 0.2s; }
    .reveal-grid > *:nth-child(5) { animation-delay: 0.25s; }
    .reveal-grid > *:nth-child(6) { animation-delay: 0.3s; }
}

/* ── Utility ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

/* ── Image aspect ratios ── */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}

/* ── Header height ── */
.h-18 {
    height: 4.5rem;
}

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

::-webkit-scrollbar-track {
    background: #eef5fb;
}

::-webkit-scrollbar-thumb {
    background: #a9c6e3;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7ea8d5;
}
