/* ============================================
   Kendall's Kountry Kitchen — Custom Styles
   ============================================ */

/* --- Base & Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Navbar Transition --- */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-link {
    position: relative;
}

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

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

/* --- Mobile Menu --- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding: 0;
}

.mobile-menu-link {
    display: block;
    padding: 8px 0;
}

/* --- Hero Image Animation --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.hero-image-float {
    animation: float 6s ease-in-out infinite;
}

/* --- Geometric Shape Animations --- */
@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(8px, -8px) rotate(2deg); }
    66% { transform: translate(-4px, 6px) rotate(-1deg); }
}

.geo-drift {
    animation: drift 8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

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

/* --- Testimonial Quote Mark --- */
.relative::before {
    content: '';
}

/* --- Map Container --- */
iframe {
    border-radius: 0 0 1.5rem 1.5rem;
}

/* --- Custom Selection --- */
::selection {
    background-color: #14b8a6;
    color: white;
}

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

/* --- Clip Diagonal for Location Section --- */
.clip-diagonal {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* --- Button Ripple Effect --- */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- Image Loading Placeholder --- */
img {
    background-color: #e2e8f0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .clip-diagonal {
        clip-path: none;
    }
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #mobile-menu-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
