/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FBF4F0;
}
::-webkit-scrollbar-thumb {
    background: #C2704E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A85A3F;
}

/* Selection */
::selection {
    background: #C2704E;
    color: #FDF9F3;
}

/* Section Eyebrow */
.section-eyebrow {
    display: block;
}

/* Reveal Animations — progressive enhancement, only when JS is available */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Initial state only applied via JS */
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Decorations */
.hero-decor {
    position: absolute;
    pointer-events: none;
}

.hero-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 226, 200, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.hero-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 166, 133, 0.2) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.hero-circle-3 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 249, 243, 0.1) 0%, transparent 70%);
    top: 40%;
    left: 10%;
    animation: float-slow 12s ease-in-out infinite;
}

.hero-line-1 {
    width: 1px;
    height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(253, 249, 243, 0.2), transparent);
    top: 20%;
    left: 15%;
    animation: float-slow 18s ease-in-out infinite;
}

.hero-line-2 {
    width: 1px;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(253, 249, 243, 0.15), transparent);
    top: 60%;
    right: 20%;
    animation: float-slow 14s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

/* Hero Entrance */
.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-headline {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-subtext {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-ctas {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nav scroll state */
.nav-scrolled {
    background: rgba(52, 26, 18, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(194, 112, 78, 0.2);
}

.nav-scrolled .nav-link {
    color: rgba(253, 249, 243, 0.9) !important;
}

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

/* Image hover */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C2704E;
    outline-offset: 2px;
}

/* Print */
@media print {
    nav, #contact, .reveal { display: none; }
    body { color: #000; background: #fff; }
}
