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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf6f0;
}
::-webkit-scrollbar-thumb {
    background: #d4b078;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C0604A;
}

/* Navbar */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-fixed.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C0604A;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-fixed:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.75);
}

.nav-fixed:not(.scrolled) .nav-link:hover {
    color: #f5e6e0;
}

.nav-fixed:not(.scrolled) .font-serif {
    color: white;
}

.nav-fixed:not(.scrolled) .text-sand-700 {
    color: rgba(255, 255, 255, 0.55);
}

.nav-fixed:not(.scrolled) .w-10 {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Mobile menu */
.mobile-menu {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    position: relative;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C0604A, #e0a896);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Scroll reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    .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; }
}

/* Hero section - asymmetric magazine layout */
.hero-section {
    position: relative;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a6640' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #C0604A;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .nav-fixed, .mobile-menu { display: none; }
    .hero-section { min-height: auto; padding: 2rem 0; }
    body { background: white; }
}
