/* ============================================
   Sky Cuisine & Lounge — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(255, 90, 36, 0.2);
    color: inherit;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(12, 13, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease;
}

.mobile-nav-link:hover {
    padding-left: 8px;
}

/* ============================================
   Hero
   ============================================ */
#hero {
    position: relative;
}

/* Floating Stats Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    transition: border-color 0.3s ease;
}

.product-card:hover::after {
    border-color: rgba(255, 125, 74, 0.3);
}

/* ============================================
   Scroll Reveal Animations
   Only applied when JS is enabled and user prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .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; }
}

/* Reduced motion: ensure all content is visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Smooth Scroll Offset for Fixed Navbar
   ============================================ */
section[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    #hero {
        min-height: 100svh;
    }

    .font-serif {
        line-height: 1.1;
    }
}

@media (max-width: 640px) {
    section[id] {
        scroll-margin-top: 70px;
    }
}

/* ============================================
   Focus Visible for Accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid rgba(255, 90, 36, 0.6);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(255, 90, 36, 0.6);
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    #contact-form,
    .reveal {
        display: none;
    }

    body {
        color: #1f2027;
        background: white;
    }
}
