/* ============================================
   Sea Harbor Fish Market And Restaurant
   Custom Styles — Classic & Elegant
   ============================================ */

/* Base reset and typography */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: #166534;
    color: #fefdf8;
}

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

/* Smooth image rendering */
img {
    -webkit-font-smoothing: antialiased;
}

/* Reduce motion preference */
@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;
    }

    .card-lift:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .reveal-section {
        display: none !important;
    }

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

    a[href^="tel:"]::after {
        content: none;
    }
}

/* ============================================
   Navigation
   ============================================ */

#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 1px 0 rgba(22, 101, 52, 0.1);
}

#navbar.scrolled a:not([href^="tel:"]) {
    color: #166534 !important;
}

#navbar.scrolled a:not([href^="tel:"]):hover {
    color: #15803d !important;
}

/* ============================================
   Hero floating cards (desktop only)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    @media (min-width: 1024px) {
        .float-slow { animation: floatSlow 6s ease-in-out infinite; }
        .float-medium { animation: floatMedium 4.5s ease-in-out infinite; }
        .float-fast { animation: floatFast 3.5s ease-in-out infinite; }
    }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes floatMedium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes floatFast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* ============================================
   Mobile menu
   ============================================ */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Scroll reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal-section.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Card hover effects
   ============================================ */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(20, 83, 45, 0.12);
}

/* ============================================
   Form inputs
   ============================================ */
input,
textarea {
    font-family: 'Lato', system-ui, sans-serif;
}

input::placeholder,
textarea::placeholder {
    color: #86efac;
    opacity: 0.8;
}

/* ============================================
   Decorative divider
   ============================================ */
.divider-ornament::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #166534, transparent);
    margin: 0 auto 1.5rem;
}

/* ============================================
   Gallery hover
   ============================================ */
.gallery-img {
    transition: transform 0.7s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}
