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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #d4622a;
    color: white;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s ease-out;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

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

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

.reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
.reveal.revealed:nth-child(4) { transition-delay: 0.3s; }
.reveal.revealed:nth-child(5) { transition-delay: 0.35s; }
.reveal.revealed:nth-child(6) { transition-delay: 0.4s; }

/* ── Header Scroll State ── */
#header.scrolled {
    background: rgba(250, 246, 241, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

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

/* ── Focus Styles ── */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ── Smooth image loading ── */
img {
    image-rendering: auto;
}

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

::-webkit-scrollbar-track {
    background: #faf6f1;
}

::-webkit-scrollbar-thumb {
    background: #d4cbbf;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8aa98;
}

/* ── Service card stagger ── */
#services .reveal:nth-child(1) { transition-delay: 0.05s; }
#services .reveal:nth-child(2) { transition-delay: 0.1s; }
#services .reveal:nth-child(3) { transition-delay: 0.15s; }
#services .reveal:nth-child(4) { transition-delay: 0.2s; }
#services .reveal:nth-child(5) { transition-delay: 0.25s; }
#services .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ── Gallery stagger ── */
#gallery .reveal:nth-child(1) { transition-delay: 0.05s; }
#gallery .reveal:nth-child(2) { transition-delay: 0.1s; }
#gallery .reveal:nth-child(3) { transition-delay: 0.15s; }
#gallery .reveal:nth-child(4) { transition-delay: 0.2s; }
#gallery .reveal:nth-child(5) { transition-delay: 0.25s; }
#gallery .reveal:nth-child(6) { transition-delay: 0.3s; }
