/* ===== BASE & RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
}

::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #fff;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0c0a09;
}
::-webkit-scrollbar-thumb {
    background: #3d0a14;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7f1c34;
}

/* ===== NAVBAR SCROLLED STATE ===== */
.navbar-scrolled {
    background: rgba(7, 5, 4, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    will-change: transform;
}

/* ===== GALLERY ===== */
.gallery-item {
    position: relative;
    will-change: transform;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s 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; }
}

/* ===== GOLD SHIMMER ANIMATION ===== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

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

/* ===== GOLD LINE DECORATION ===== */
.gold-line {
    background: linear-gradient(90deg, transparent, #c9a227, transparent);
}

/* ===== BUTTON HOVER GLOW ===== */
.btn-glow:hover {
    box-shadow: 0 0 40px rgba(201, 162, 39, 0.35), 0 0 80px rgba(201, 162, 39, 0.15) !important;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 6rem;
    font-family: 'Playfair Display', Georgia, serif;
    color: rgba(201, 162, 39, 0.06);
    line-height: 1;
    pointer-events: none;
}

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

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 640px) {
    .font-serif {
        word-spacing: -0.02em;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
