/* ========== 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;
}

::selection {
    background-color: rgba(107, 29, 42, 0.15);
    color: #6B1D2A;
}

/* ========== NAVBAR ========== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

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

/* Navbar scrolled state */
nav.scrolled {
    background-color: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 29, 42, 0.08);
}

nav.scrolled .nav-link {
    color: rgba(107, 29, 42, 0.7);
}

nav.scrolled .font-serif.text-lg {
    color: #6B1D2A;
}

/* ========== MOBILE MENU ========== */
.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease, color 0.3s ease;
}

body.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open #mobile-menu {
    opacity: 1;
    pointer-events: auto;
}

body {
    overflow-y: scroll;
}

body.menu-open {
    overflow: hidden;
}

/* ========== HERO ANIMATIONS ========== */
.hero-badge {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 0.2s;
}

h1 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero p {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 0.6s;
}

.hero .flex.flex-wrap {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 0.8s;
}

.hero .flex.gap-10 {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 1s;
}

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

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Default state for reveal elements is visible (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
}

/* ========== GALLERY HOVER ========== */
.rounded-2xl.overflow-hidden img {
    display: block;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FBF7F2;
}

::-webkit-scrollbar-thumb {
    background: #D4A3B0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9A1A38;
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #6B1D2A;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ========== PRINT ========== */
@media print {
    nav, #mobile-menu, .reveal { display: none; }
    body { background: white; color: black; }
    a { color: black; text-decoration: underline; }
}
