/* Custom styles for Terry Beal Real Estate */

:root {
    --terracotta-500: #d4552a;
    --terracotta-600: #b8411e;
    --sand-100: #faf5ea;
    --sand-200: #f3e8cc;
    --cream: #FAF8F4;
    --charcoal: #1C1917;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--cream);
    color: var(--charcoal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.font-sans {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Smooth scroll offset for fixed header */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream);
}
::-webkit-scrollbar-thumb {
    background: var(--sand-300);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--terracotta-300);
}

/* Selection */
::selection {
    background: var(--sand-200);
    color: var(--charcoal);
}

/* Nav active state */
nav a.active {
    color: var(--terracotta-600);
}

/* Button focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--terracotta-500);
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 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;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    header, footer, #contact-form, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
