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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #d9b8c8;
    color: #3a2539;
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.reveal.visible {
    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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Header ── */
#header.scrolled {
    box-shadow: 0 1px 0 rgba(93, 58, 90, 0.06);
}

/* ── Mobile Menu ── */
.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu.open .mobile-menu-link {
    animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mobile-menu.open .mobile-menu-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { animation-delay: 0.25s; }

/* ── Service Cards ── */
.service-card {
    transition: background-color 0.5s ease;
}

/* ── Nav Links ── */
.nav-link {
    position: relative;
}

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

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

/* ── Mobile Menu Button ── */
.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

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

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

/* ── Input Focus ── */
input:focus, textarea:focus {
    border-bottom-color: #b8860b !important;
}

/* ── Hover Utilities ── */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ── Responsive ── */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.15;
    }
}
