/* ============================================
   Chris Seafoods & West Indian Store
   Classic & Elegant — Plum + Amber Palette
   ============================================ */

/* --- Custom Properties --- */
:root {
    --plum-50: #F9F0F1;
    --plum-500: #7B2D3B;
    --plum-700: #561D29;
    --plum-900: #2F1117;
    --plum-950: #1A0A0E;
    --amber-400: #C9953A;
    --amber-500: #A6741E;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Reveal Animations --- */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s var(--transition-smooth) forwards;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    animation: revealScale 0.8s var(--transition-smooth) forwards;
}

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

@keyframes revealScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Scroll Line Animation --- */
@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth);
}

#navbar.scrolled {
    background: rgba(249, 240, 241, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(47, 17, 23, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--amber-400);
    transition: width 0.3s var(--transition-smooth);
}

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

/* --- Mobile Menu --- */
#mobile-menu {
    transition: opacity 0.5s var(--transition-smooth), pointer-events 0.5s var(--transition-smooth);
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s var(--transition-smooth), transform 0.4s var(--transition-smooth), color 0.3s;
}

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* --- Hamburger Animation --- */
.menu-line {
    transition: transform 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth), width 0.3s var(--transition-smooth);
}

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

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

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 24px;
}

/* --- Product Card Hover --- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* --- Button Focus States --- */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--amber-400);
    outline-offset: 2px;
    border-radius: 2px;
}

/* --- Selection --- */
::selection {
    background: var(--plum-500);
    color: var(--amber-100);
}

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

::-webkit-scrollbar-track {
    background: var(--plum-50);
}

::-webkit-scrollbar-thumb {
    background: var(--plum-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--plum-500);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 70px;
    }

    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .font-serif {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }
}

/* --- Print Styles --- */
@media print {
    #navbar, #mobile-menu, .animate-scroll-line {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
    }
}
