/* ─── 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;
}

img {
    max-width: 100%;
    height: auto;
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
    background: #c44d4d;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8a2323;
}

/* ─── Section Label ─── */
.section-label {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #c44d4d;
    font-weight: 500;
}

/* ─── Hero Animations ─── */
.hero-tag {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-headline {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-sub {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-cta {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero-stats {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

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

/* ─── Service Cards ─── */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #8a2323;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before {
    height: 100%;
}

/* ─── Process Steps ─── */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 60%;
    background: #f2a8a8;
    transform: translateY(-50%);
}

.process-step:last-child::after {
    display: none;
}

/* ─── Testimonial Cards ─── */
.testimonial-card {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(138, 35, 35, 0.08);
}

/* ─── Scroll Reveal (below fold only) ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .service-card::before,
    .process-step::after,
    .testimonial-card,
    .hero-tag,
    .hero-headline,
    .hero-sub,
    .hero-cta,
    .hero-stats {
        transition: none;
        animation: none;
    }
    
    .service-card::before {
        height: 0;
    }
}

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

/* ─── Navbar Scroll State ─── */
.nav-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(196, 77, 77, 0.1);
}

.nav-scrolled .menu-line {
    background: #8a2323 !important;
}

/* ─── Form Select Arrow ─── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c44d4d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
    -webkit-appearance: none;
}

/* ─── Utility ─── */
@media (max-width: 768px) {
    .process-step::after {
        display: none;
    }
}
