/* ===================== 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-color: rgba(197, 160, 89, 0.3);
    color: #f9f4f6;
}

/* ===================== NAVBAR ===================== */
#navbar {
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(40, 12, 20, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(197, 160, 89, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C5A059;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #C5A059 !important;
}

/* ===================== MOBILE MENU ===================== */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #C5A059;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 80%;
}

/* ===================== SERVICE CARDS ===================== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C5A059, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(197, 160, 89, 0.15);
}

/* ===================== GALLERY ===================== */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    aspect-ratio: auto;
}

/* ===================== TESTIMONIAL CARDS ===================== */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

/* ===================== FORM STYLES ===================== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #6e2d46;
}

/* ===================== SCROLL REVEAL (progressive enhancement) ===================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s 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; }
}

/* ===================== BACK TO TOP ===================== */
#back-to-top.visible {
    opacity: 1 !important;
    pointer-events: all !important;
}

#back-to-top:hover {
    transform: translateY(-2px);
}

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