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

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

body {
    overflow-x: hidden;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ========== SCROLL REVEAL ========== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 248, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(130, 29, 52, 0.08);
}

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

.nav-link {
    position: relative;
}

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

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

/* ========== MOBILE MENU ========== */
.mobile-link {
    transition: opacity 0.3s ease;
}

#mobileMenu.is-open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.is-closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ========== HERO SCROLL INDICATOR ========== */
.writing-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* ========== PRODUCT CARDS ========== */
.product-card {
    transition: transform 0.5s ease;
}

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

/* ========== FORM STYLES ========== */
select option {
    background: #faf8f6;
    color: #2d2a27;
}

select:focus {
    background: transparent;
}

/* ========== SELECTION ========== */
::selection {
    background: rgba(130, 29, 52, 0.15);
    color: #3a0c15;
}

/* ========== FOCUS ========== */
:focus-visible {
    outline: 1px solid #821d34;
    outline-offset: 2px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
