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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #7B2D3B;
    color: #FDF8F5;
}

/* ── Navigation ── */
.nav {
    background: rgba(253, 248, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(42, 31, 34, 0.06);
}

.nav.scrolled {
    background: rgba(253, 248, 245, 0.95);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.06);
}

.nav-ink {
    color: #2A1F22 !important;
}

.nav-link {
    position: relative;
}

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

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

/* ── Mobile Menu ── */
.mobile-link {
    position: relative;
}

/* ── Section Eyebrow ── */
.section-eyebrow {
    position: relative;
    display: inline-block;
}

.section-eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1.5px;
    background: #7B2D3B;
    vertical-align: middle;
    margin-right: 10px;
}

/* ── Hero Animations ── */
.hero-line {
    display: block;
    transform: translateY(105%);
    animation: heroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.25s; }
.hero-line:nth-child(3) { animation-delay: 0.4s; }

@keyframes heroReveal {
    to { transform: translateY(0); }
}

.hero-eyebrow {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.05s;
    opacity: 0;
}

.hero-image {
    animation: heroImageIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-float {
    animation: heroFloatIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.8s;
    opacity: 0;
    transform: translateY(20px);
}

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

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Indicator ── */
@keyframes scrollLine {
    0% { top: -50%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 150%; opacity: 0; }
}

.scroll-line {
    animation: scrollLine 1.8s ease-in-out infinite;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Story Images ── */
.story-img {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-img.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ── Menu Items ── */
.menu-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(42, 31, 34, 0.06);
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-item.revealed {
    opacity: 1;
    transform: translateX(0);
}

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

/* ── Hover Effects ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .hero-image {
        margin-top: 2rem;
    }

    #hero {
        padding-top: 6rem;
    }
}

/* ── 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, .story-img, .menu-item {
        opacity: 1;
        transform: none;
    }
}
