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

:root {
    --font-cormorant: 'Cormorant Garamond', Georgia, serif;
    --font-inter: 'Inter', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-inter);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-cormorant);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf5ed;
}
::-webkit-scrollbar-thumb {
    background: #d9bc8a;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #cc6d47;
}

/* Selection */
::selection {
    background: #cc6d47;
    color: #fdf6f3;
}

/* Nav transition states */
.nav-scrolled {
    background: rgba(10, 14, 23, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

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

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #cc6d47, #e9b094);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* Scroll reveal base - always visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Progressively enhanced reveal - only active when JS runs and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* 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;
    }
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #cc6d47;
    outline-offset: 2px;
}

/* Image lazy loading fade */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Hero text animation - only decorative, content is visible */
.hero-title span {
    display: inline-block;
}

/* Custom cursor for links */
a, button {
    cursor: pointer;
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-charcoal-950, .bg-terracotta-600 {
        background: #333 !important;
    }
}
