*, *::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: rgba(212, 165, 116, 0.3);
    color: #064e3b;
}

/* ── Header ── */
#site-header {
    transition: background 0.5s ease, padding 0.5s ease, backdrop-filter 0.5s ease;
}

#site-header.scrolled {
    background: rgba(2, 44, 34, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(212, 165, 116, 0.1);
}

.nav-link {
    opacity: 0.7;
}

.nav-link:hover {
    opacity: 1;
}

.cta-btn {
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* ── Mobile Menu ── */
#mobile-menu {
    opacity: 0;
    pointer-events: none;
}

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

.mobile-nav-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Menu Items ── */
.menu-item {
    border-bottom: 1px solid rgba(254, 253, 248, 0.06);
    padding-bottom: 1.25rem;
    transition: border-color 0.3s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    border-color: rgba(212, 165, 116, 0.2);
}

/* ── Contact Form ── */
#contact-form input,
#contact-form textarea {
    border-radius: 2px;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #d4a574 !important;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
    outline: none;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(6, 78, 59, 0.35);
}

/* ── Hero Orbs ── */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.3), transparent 70%);
    top: -10%;
    right: -5%;
    animation-duration: 25s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
    bottom: 10%;
    left: -5%;
    animation-duration: 20s;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.2), transparent 70%);
    top: 40%;
    left: 30%;
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.02); }
}

/* ── Scroll Line ── */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50% { opacity: 0.2; transform: scaleY(0.6); transform-origin: top; }
}

/* ── Reveal Animations ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }

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

/* ── Divider ── */
.divider-cream {
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.4), transparent);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #064e3b;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 116, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 165, 116, 0.6);
}

/* ── Focus styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a574;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .hero-orb {
        filter: blur(60px);
        opacity: 0.3;
    }
    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 200px; height: 200px; }
    .orb-3 { width: 150px; height: 150px; }
}
