/* ── Base & Typography ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: hidden; }

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
    background: rgba(255, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(100, 15, 30, 0.08);
}

/* ── Mobile Menu ── */
#mobileMenu.open { opacity: 1; pointer-events: all; }
#mobileMenu.closed { opacity: 0; pointer-events: none; }
.mobile-link { transition: color 0.2s ease, transform 0.3s ease; }
.mobile-link:hover { color: #c41e3a; transform: translateY(-2px); }

/* ── Menu Button Animation ── */
.menu-line { transition: all 0.3s ease; }
#menuBtn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#menuBtn.active .menu-line:nth-child(2) { opacity: 0; }
#menuBtn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); width: 24px; }

/* ── Service Cards ── */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-6px);
}

/* ── Gallery ── */
.gallery-item { cursor: pointer; }
.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Process Steps ── */
.process-step {
    position: relative;
}
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    right: -1.5rem;
    width: 3rem;
    height: 2px;
    background: linear-gradient(to right, #c41e3a, transparent);
    display: none;
}
@media (min-width: 768px) {
    .process-step:not(:last-child)::after { display: block; }
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.7s 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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ── Button Hover Glow ── */
a[href="#contact"] {
    position: relative;
}

/* ── Custom Selection ── */
::selection {
    background: #c41e3a;
    color: #fff;
}

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid #c41e3a;
    outline-offset: 2px;
}

/* ── Smooth image loading ── */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
