/* ── Base & Utilities ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #C4725A;
    color: white;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 243, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(61, 46, 40, 0.06);
}

/* ── Mobile Menu ── */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Hamburger Animation ── */
#mobileMenu.open ~ nav .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#mobileMenu.open ~ nav .menu-line:nth-child(2) {
    opacity: 0;
}
#mobileMenu.open ~ nav .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ── Service Cards ── */
.service-card {
    border: 1px solid transparent;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    border-color: #F5E4DC;
}

/* ── Scroll Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Floating images parallax ── */
.parallax-slow {
    will-change: transform;
}

/* ── Custom cursor on interactive elements ── */
a, button {
    cursor: pointer;
}

/* ── Form focus styles ── */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

@media (max-width: 360px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ── Subtle gradient overlay for hero image ── */
#hero .rounded-3xl::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to top, rgba(61, 46, 40, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

/* ── Smooth image loading ── */
img {
    opacity: 1;
    transition: opacity 0.5s ease;
}

img[data-src] {
    opacity: 0;
}

/* ── Print styles ── */
@media print {
    #navbar, #mobileMenu, .reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
