/* ========================================
   Wholesome Thyme — Custom Styles
   ======================================== */

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(200, 164, 78, 0.3);
    color: #0c1f3a;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0c1f3a;
}
::-webkit-scrollbar-thumb {
    background: #c8a44e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e4bc3d;
}

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

#navbar.scrolled {
    background-color: rgba(4, 11, 20, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.nav-hidden {
    transform: translateY(-100%);
}

/* Nav links hover effect */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #c8a44e;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}
.nav-link:hover {
    color: #ffffff !important;
}
.nav-link:hover::after {
    width: 60%;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-link:hover {
    color: #ffffff !important;
    padding-left: 8px;
}

/* Scroll reveal animations — progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #c8a44e;
    outline-offset: 2px;
}

/* Button hover lift */
button, a {
    transition: all 0.2s ease;
}

/* Image loading placeholder */
img {
    background-color: #1e3a5c;
}

/* Form inputs */
input:focus, textarea:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Gallery hover overlay */
.rounded-xl.overflow-hidden {
    position: relative;
}
.rounded-xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 31, 58, 0);
    transition: background 0.3s ease;
    border-radius: inherit;
}
.rounded-xl.overflow-hidden:hover::after {
    background: rgba(12, 31, 58, 0.1);
}

/* Counter animation */
.counter {
    display: inline-block;
}

/* Smooth image transitions */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Gold accent line animations */
.w-12.h-px.bg-gold-500 {
    transition: width 0.3s ease;
}

/* Section hover effects for menu cards */
.group.bg-white\/5 {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

/* Print styles */
@media print {
    #navbar, #contact-form, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    section {
        page-break-inside: avoid;
    }
}
