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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #D4A03C;
    color: #2A1823;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F0F6;
}
::-webkit-scrollbar-thumb {
    background: #B89DB8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9B729B;
}

/* Navbar transitions */
.nav-text { transition: color 0.3s ease; }
.nav-subtext { transition: color 0.3s ease; }
.nav-btn { transition: background 0.3s ease, color 0.3s ease; }

/* Hero animations */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}
.hero-badge h1,
.hero-badge p,
.hero-badge a {
    animation: fadeInUp 0.8s ease forwards;
}
.hero-badge h1 { animation-delay: 0.2s; opacity: 0; }
.hero-badge p { animation-delay: 0.4s; opacity: 0; }
.hero-badge a { animation-delay: 0.6s; opacity: 0; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Service cards */
.service-card {
    will-change: transform;
}

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

/* Testimonial cards */
.testimonial-card {
    position: relative;
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .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; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

/* Service label */
.service-label {
    position: relative;
    display: inline-block;
}
.service-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 20px;
    height: 1px;
    background: #D4A03C;
    transition: width 0.3s ease;
}
.service-label:hover::after {
    width: 100%;
}

/* Image aspect ratios */
.gallery-item {
    aspect-ratio: auto;
}
.gallery-item.row-span-2 {
    aspect-ratio: 3/4;
}
@media (max-width: 767px) {
    .gallery-item.row-span-2 {
        aspect-ratio: 4/3;
    }
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px #D4A03C;
}

/* Print styles */
@media print {
    header, #contact, .cta-banner { display: none; }
    body { color: #000; background: #fff; }
}
