/* ============================================
   Kingdom Grounds Coffee Shoppe
   Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(196, 112, 75, 0.2);
    color: #5f3727;
}

/* --- Navigation --- */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background-color: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-link {
    color: #57534e;
}

#navbar.scrolled .nav-link:hover {
    color: #c4704b;
}

#navbar.scrolled .menu-line {
    background-color: #57534e;
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Hero Animations --- */
.hero-subtitle {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.hero-title {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.hero-description {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s both;
}

.hero-cta {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Menu Items --- */
.menu-item {
    padding-bottom: 6px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.menu-item:hover {
    border-bottom-color: rgba(196, 112, 75, 0.2);
}

/* --- Visit Section --- */
.visit-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.visit-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* --- Button Focus States --- */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #c4704b;
    outline-offset: 2px;
}

/* --- Input Focus States --- */
input:focus,
textarea:focus {
    border-bottom-color: #c4704b !important;
}

/* --- Mobile Menu Button Animation --- */
body.menu-open #menu-btn .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

body.menu-open #menu-btn .menu-line:nth-child(2) {
    transform: rotate(-45deg) translate(0px, 0px);
}

/* --- Smooth Image Loading --- */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* --- Print Styles --- */
@media print {
    nav, #contact, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
