/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ── Navigation scroll effect ── */
#site-header.scrolled {
    background: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(166, 147, 120, 0.15);
}

/* ── Mobile menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}
#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

.menu-line.open-1 { transform: rotate(45deg) translate(2px, 2px); }
.menu-line.open-2 { transform: rotate(-45deg) translate(2px, -2px); }

/* ── Floating cards ── */
.card-float-1 { animation: float1 6s ease-in-out infinite; }
.card-float-2 { animation: float2 7s ease-in-out infinite; }
.card-float-3 { animation: float3 8s ease-in-out infinite; }
.card-float-4 { animation: float4 5s ease-in-out infinite; }

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(8px); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}
@keyframes float4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(1deg); }
}

/* ── Scroll line animation ── */
@keyframes scrollLine {
    0% { top: -12px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 32px; opacity: 0; }
}
.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* ── Reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    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.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Service step hover ── */
.service-step:hover {
    background: rgba(196, 90, 50, 0.03);
    border-radius: 4px;
    padding-left: 8px;
    margin-left: -8px;
    transition: all 0.3s ease;
}
.service-step:hover span {
    color: #c45a32;
    transition: color 0.3s ease;
}

/* ── Mobile link fade-up ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #faf9f7; }
::-webkit-scrollbar-thumb { background: #d4c9b7; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a69378; }

/* ── Selection ── */
::selection { background: #f2c7b4; color: #58251b; }
