*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    color: #5c1a26;
    background-color: #FDF8F6;
    overflow-x: hidden;
}

::selection {
    background-color: #7B2D3B;
    color: #FDF8F6;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Header scroll state */
#header.scrolled {
    background-color: rgba(253, 248, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

#header.scrolled .font-serif {
    color: #7B2D3B;
}

/* Service cards */
.service-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    background-color: #FDF8F6;
    transform: translateY(-2px);
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
    color: #c72652;
    transform: scale(1.02);
}

/* Smooth anchor offset */
section[id] {
    scroll-margin-top: 80px;
}

/* Subtle line animations */
@keyframes expandLine {
    from { width: 0; opacity: 0; }
    to { width: 3rem; opacity: 1; }
}

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 9999px;
}
