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

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

body {
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background-color: #C0603A;
    color: #FFFAF5;
}

/* ── Navbar scroll state ── */
.nav-scrolled {
    background: rgba(255, 250, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(42, 34, 32, 0.08);
}

.nav-scrolled .menu-line {
    background: #2A2220;
}

/* ── Mobile menu animation ── */
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    width: 5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

#mobileMenu.menu-open {
    opacity: 1;
    pointer-events: all;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #C0603A, #E8A87C);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ── Gallery hover ── */
.gallery-item {
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42, 34, 32, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* ── Testimonial cards ── */
.testimonial-card {
    border: 1px solid rgba(192, 96, 58, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(192, 96, 58, 0.3);
    box-shadow: 0 20px 60px rgba(192, 96, 58, 0.1);
}

/* ── Scroll reveal animations ── */
.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);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FFFAF5;
}

::-webkit-scrollbar-thumb {
    background: #C0603A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A34D2E;
}

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

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .font-display {
        font-weight: 700;
    }
}
