/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .service-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .approach-step {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .approach-step.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays for service cards */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* Stagger delays for approach steps */
.approach-step:nth-child(1) { transition-delay: 0.05s; }
.approach-step:nth-child(2) { transition-delay: 0.15s; }
.approach-step:nth-child(3) { transition-delay: 0.25s; }

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 248, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(128, 32, 32, 0.08);
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Input focus styles */
input:focus,
textarea:focus {
    border-bottom-color: #802020 !important;
}

/* Subtle hover lift for cards */
.service-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth button transitions */
button,
a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Selection color */
::selection {
    background: rgba(128, 32, 32, 0.15);
    color: #3a0a0a;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #d4cfc9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8b0a6;
}
