/* ─── 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;
}

::selection {
    background: #C2564E;
    color: #FDF6F0;
}

/* ─── Hero ─── */
#hero {
    position: relative;
}

.hero-gradient {
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(194, 86, 78, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(42, 42, 42, 0.8) 0%, transparent 60%),
        linear-gradient(160deg, #1A1A1A 0%, #2A2A2A 40%, #3A2525 70%, #1A1A1A 100%);
}

.hero-overlay {
    background: rgba(26, 26, 26, 0.35);
}

.hero-img {
    opacity: 0.5;
}

.hero-content {
    padding-top: 80px;
}

.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-anim:nth-child(2) { transition-delay: 0.15s; }
.hero-anim:nth-child(3) { transition-delay: 0.3s; }
.hero-anim:nth-child(4) { transition-delay: 0.45s; }

.hero-scroll-indicator {
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
}

/* ─── Reveal on Scroll ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* ─── Navbar ─── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 74, 74, 0.3);
}

#navbar.scrolled .font-display {
    color: #FDF6F0;
}

/* ─── Decorative Divider ─── */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto;
    width: 80px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #C2564E/40, transparent);
}

/* ─── Mobile Menu ─── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ─── Form ─── */
#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #C2564E;
    box-shadow: 0 0 0 3px rgba(194, 86, 78, 0.15);
}

#contact-form button {
    position: relative;
    overflow: hidden;
}

#contact-form button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#contact-form button:hover::after {
    opacity: 1;
}

/* ─── Subtle Pattern Overlay ─── */
.bg-charcoal-800::before,
.bg-charcoal-900::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(253, 246, 240, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.bg-charcoal-800,
.bg-charcoal-900 {
    position: relative;
}

/* ─── 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;
    }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 60px;
    }
    
    #hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
}
