/* Island Flavors Caribbean Cuisine — Custom Styles */

/* Smooth scrolling and base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #060c18;
    color: #e2e8f0;
}

/* Selection color */
::selection {
    background: rgba(201, 149, 42, 0.3);
    color: #f0d48a;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060c18;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0d9488, #c9952a);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #14b8a6, #e2b84b);
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100px;
}

/* Prevent FOUC on gold line animations */
.gold-line, .gold-line-sm {
    will-change: opacity;
}

/* Subtle text shadow for hero readability */
.hero h1 {
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

/* Ensure all links are readable */
a {
    text-decoration: none;
}

/* Mobile menu animation */
#mobileMenu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .img-zoom img {
        transition: none !important;
    }
    .img-zoom:hover img {
        transform: none !important;
    }
}

/* Print styles */
@media print {
    .navbar, .hamburger, #mobileMenu {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
