:root {
    --burgundy: #7B2D3B;
    --burgundy-dark: #5C1F2C;
    --blush: #F5E6E0;
    --blush-light: #FBF5F2;
    --stone-50: #FAFAF8;
    --stone-100: #F5F5F0;
    --stone-200: #E8E8E0;
    --stone-300: #D4D4CC;
    --stone-400: #A8A89E;
    --stone-500: #78786E;
    --stone-600: #5C5C54;
    --stone-700: #44443E;
    --stone-800: #2C2C28;
    --stone-900: #1A1A18;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--stone-800);
    background-color: var(--stone-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Burgundy color utility */
.bg-burgundy {
    background-color: var(--burgundy) !important;
}

.bg-burgundy-dark {
    background-color: var(--burgundy-dark) !important;
}

.text-burgundy {
    color: var(--burgundy) !important;
}

.bg-blush {
    background-color: var(--blush) !important;
}

.bg-blush\/30 {
    background-color: rgba(245, 230, 224, 0.3) !important;
}

.border-blush\/40 {
    border-color: rgba(245, 230, 224, 0.4) !important;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(250, 250, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

nav.scrolled .text-stone-900 {
    color: var(--stone-900) !important;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobileMenu.active {
    opacity: 1;
    pointer-events: all;
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 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; }

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

::-webkit-scrollbar-track {
    background: var(--stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--stone-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy);
}

/* Selection color */
::selection {
    background: var(--burgundy);
    color: white;
}

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

img[data-src] {
    opacity: 0;
}

/* Smooth image loading */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile menu animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#mobileMenu.active {
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Service card hover effect */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    img,
    .hover\:scale-105 {
        transition: none;
        transform: none !important;
    }
    
    .animate-pulse {
        animation: none;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Small phones */
@media (max-width: 360px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
