/* ========== BASE ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #a84e78 0%, #7a2e52 100%);
    color: #fff;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(122, 46, 82, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(122, 46, 82, 0.45);
    background: linear-gradient(135deg, #b85e88 0%, #8a3e62 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #7a2e52;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 1rem;
    border: 2px solid #a84e78;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-secondary:hover {
    background: #a84e78;
    color: #fff;
    transform: translateY(-2px);
}

/* ========== NAVBAR ========== */
#navbar {
    background: rgba(250, 244, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(215, 163, 188, 0.2);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(84, 35, 58, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* ========== MOBILE MENU ========== */
.mobile-link {
    position: relative;
    padding-left: 0;
}

/* ========== WINE CARDS ========== */
.wine-card {
    perspective: 1000px;
}

.wine-card .bg-white {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.wine-card:hover .bg-white {
    transform: translateY(-6px);
}

/* ========== VISIT CARDS ========== */
.visit-card {
    transition: transform 0.3s ease;
}

.visit-card:hover {
    transform: translateY(-4px);
}

/* ========== SCROLL REVEAL ========== */
.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;
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    .wine-card .bg-white,
    .visit-card {
        transition: none;
    }
    .wine-card:hover .bg-white,
    .visit-card:hover {
        transform: none;
    }
    .btn-primary,
    .btn-secondary {
        transition: none;
    }
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f5b700;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== SELECTION ========== */
::selection {
    background: #e8cadb;
    color: #54233a;
}
