/* ─── Base & Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ─── Navbar ─── */
.nav-fixed {
    background: rgba(250, 249, 247, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 229, 234, 0.5);
}
.nav-fixed.scrolled {
    box-shadow: 0 1px 20px rgba(127, 28, 50, 0.08);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7f1c32;
    border-radius: 1px;
    transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ─── Mobile Menu ─── */
.mobile-menu-link {
    position: relative;
    transition: color 0.2s, transform 0.2s;
}
.mobile-menu-link:hover {
    color: #b82844;
    transform: translateX(4px);
}

/* ─── Reveal Animations ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal:not(.revealed) {
    opacity: 1;
    transform: translateY(24px);
}

/* ─── Back to Top ─── */
.back-to-top {
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:not(.visible) {
    transform: translateY(8px);
}
.back-to-top:hover {
    box-shadow: 0 4px 20px rgba(127, 28, 50, 0.35);
}

/* ─── Form Focus ─── */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(127, 28, 50, 0.1);
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { transition: none; opacity: 1; transform: none; }
    .back-to-top { transition: none; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── Utility ─── */
.h-18 { height: 4.5rem; }
</style>
