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

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

body {
    overflow-x: hidden;
}

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

/* Input focus ring */
input:focus, textarea:focus {
    border-color: #C4725A;
    box-shadow: 0 0 0 3px rgba(196, 114, 90, 0.15);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F3;
}
::-webkit-scrollbar-thumb {
    background: #D4917B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C4725A;
}

/* Selection */
::selection {
    background: rgba(196, 114, 90, 0.2);
    color: #8B5E3C;
}

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

#navbar.scrolled {
    background: rgba(253, 248, 243, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(139, 94, 60, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
.mobile-menu-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

.mobile-menu-link:hover {
    border-color: #F5E6D3;
}

.menu-line {
    background: #8B5E3C;
}

#navbar.scrolled .menu-line {
    background: #8B5E3C;
}

/* Scroll Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up {
    transform: translateY(30px);
}

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

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

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

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

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Button hover effects */
a[href="#drinks"],
a[href="#visit"] {
    position: relative;
}

/* Card hover lift */
.bg-white.rounded-2xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white.rounded-2xl:hover {
    transform: translateY(-2px);
}

/* Hero text animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero h1 {
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#hero p {
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
    opacity: 0;
}

#hero a[href="#drinks"],
#hero a[href="#visit"] {
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
    opacity: 0;
}

#hero .inline-flex {
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
    opacity: 0;
}

/* Decorative pattern */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(196,114,90,0.1) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Gradient text helper */
.gradient-text {
    background: linear-gradient(135deg, #8B5E3C, #C4725A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Subtle gradient border */
.gradient-border {
    position: relative;
    border-radius: 1.5rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(196,114,90,0.3), rgba(245,230,211,0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
