/* Base styles & custom properties */
:root {
    --color-terracotta: #C05A33;
    --color-sand: #F9F0E1;
    --color-sand-dark: #3A2515;
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF9F3;
}
::-webkit-scrollbar-thumb {
    background: #E0BA78;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C05A33;
}

/* Selection */
::selection {
    background: rgba(192, 90, 51, 0.2);
    color: #3A1A0E;
}

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

.nav-transparent {
    background: transparent !important;
    box-shadow: none !important;
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(192, 90, 51, 0.2);
}

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

/* Fade-in animation for scroll reveals */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Image hover zoom */
img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Input focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* Print styles */
@media print {
    nav, .scroll-indicator, #contactForm button {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
