/* Base styles and custom properties */
:root {
    --color-heritage-black: #0D0D0D;
    --color-heritage-dark: #1A1A1A;
    --color-heritage-charcoal: #2A2A2A;
    --color-heritage-terracotta: #C4623A;
    --color-heritage-terracotta-light: #D4846A;
    --color-heritage-sand: #D4B896;
    --color-heritage-sand-light: #E8D5BC;
    --color-heritage-gold: #C9A84C;
    --color-heritage-gold-light: #D4B96A;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-heritage-gold);
    transition: width 0.3s ease;
}

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

/* Mobile menu styles */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--color-heritage-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-heritage-gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-heritage-gold-light);
}

/* Selection color */
::selection {
    background: var(--color-heritage-gold);
    color: var(--color-heritage-black);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-heritage-gold);
    outline-offset: 2px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Responsive typography */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }
}

/* Loading state for images */
img {
    background: var(--color-heritage-charcoal);
}

/* Print styles */
@media print {
    nav,
    .reveal,
    iframe {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
