/* ─── Base & Typography ─── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.font-display {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .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.revealed {
        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; }
}

/* ─── Hero Animations ─── */
@media (prefers-reduced-motion: no-preference) {
    .hero-subtitle {
        animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
    }
    .hero-title {
        animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
    }
    .hero-desc {
        animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s both;
    }
    .hero-cta {
        animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s both;
    }
}

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

/* ─── Section Labels & Headings ─── */
.section-label {
    display: block;
}

.section-heading {
    font-weight: 300;
}

/* ─── Header Scroll State ─── */
#site-header {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#site-header.scrolled {
    background-color: rgba(252, 250, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(196, 114, 78, 0.1);
}

/* ─── Mobile Menu ─── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    transition: opacity 0.3s ease;
}

/* ─── Service Cards ─── */
.service-card {
    transition: background-color 0.5s ease;
}

/* ─── Gallery ─── */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
}

/* ─── Testimonial Cards ─── */
.testimonial-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s ease,
                border-color 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ─── Nav Links ─── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

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

::-webkit-scrollbar-thumb {
    background: #e8b8a0;
    border-radius: 3px;
}

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

/* ─── Selection ─── */
::selection {
    background-color: rgba(196, 114, 78, 0.2);
    color: #662f23;
}
