/* ========== CUSTOM STYLES ========== */

/* Section Labels */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C0705B;
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #C0705B;
    border-radius: 1px;
}

.section-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    color: #1C1917;
}

.section-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #78716C;
}

/* ========== HERO ANIMATIONS ========== */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.55s; }

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SCROLL ANIMATIONS ========== */
.service-card,
.testimonial-card,
.process-step {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible,
.testimonial-card.visible,
.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for service cards */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* ========== NAVIGATION ========== */
#site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#site-header.scrolled {
    background: rgba(255, 252, 248, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #C0705B;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* ========== MOBILE MENU ========== */
#mobile-menu {
    animation: mobileMenuSlide 0.3s ease;
}

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

.mobile-link {
    border-radius: 0.75rem;
}

/* ========== PROCESS STEPS (connector lines for desktop) ========== */
.process-step:last-child .lg\\:block {
    display: none;
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.testimonial-card:nth-child(1) { transition-delay: 0.05s; }
.testimonial-card:nth-child(2) { transition-delay: 0.15s; }
.testimonial-card:nth-child(3) { transition-delay: 0.25s; }

/* ========== SMOOTH SCROLL OFFSET ========== */
html {
    scroll-padding-top: 80px;
}

/* ========== SELECTION COLOR ========== */
::selection {
    background: #FAD8CC;
    color: #8F4D3F;
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
    outline: 2px solid #C0705B;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ========== SUBTLE GRAIN OVERLAY (optional texture) ========== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    z-index: 9999;
}
