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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1c1c20;
}
::-webkit-scrollbar-thumb {
    background: #4b4b52;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff7a33;
}

/* ─── Navbar ─── */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .text-charcoal-900 {
    color: #1c1c20;
}

#navbar:not(.scrolled) .text-charcoal-900 {
    color: #1c1c20;
}

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

#mobileMenu.close {
    opacity: 0;
    pointer-events: none;
}

#menuIcon span:nth-child(1) {
    transform-origin: center;
}
#menuIcon span:nth-child(3) {
    transform-origin: center;
}

#menuBtn.active #menuIcon span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
#menuBtn.active #menuIcon span:nth-child(2) {
    opacity: 0;
}
#menuBtn.active #menuIcon span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* ─── Hero ─── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* ─── Services ─── */
.service-card {
    transform: translateY(0);
}

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

/* ─── Gallery ─── */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item {
    position: relative;
}

/* ─── Testimonials ─── */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Fallback: always visible if JS disabled or reduced-motion */
.reveal {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(30px); }
}

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

/* ─── Button Ripple ─── */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

/* ─── Responsive ─── */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}
