*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050c05;
}
::-webkit-scrollbar-thumb {
    background: #184a18;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d7a2d;
}

/* Selection */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #f0f5f0;
}

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(15, 31, 15, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 168, 67, 0.15);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 168, 67, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 168, 67, 0.08);
}

.card-1 { transform: translateY(0); }
.card-2 { transform: translateY(20px); }
.card-3 { transform: translateY(40px); }

.stat-card:hover.card-1 { transform: translateY(-4px); }
.stat-card:hover.card-2 { transform: translateY(16px); }
.stat-card:hover.card-3 { transform: translateY(36px); }

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.2), rgba(212, 168, 67, 0.05));
    border: 1px solid rgba(212, 168, 67, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4A843;
    flex-shrink: 0;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #f0f5f0;
    line-height: 1;
}

.stat-plus {
    font-size: 1.2rem;
    color: #D4A843;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(174, 208, 173, 0.6);
    margin-top: 4px;
}

/* Service Cards */
.service-card {
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    padding: 32px;
    background: rgba(15, 31, 15, 0.4);
    border: 1px solid rgba(45, 122, 45, 0.2);
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.service-card-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover .service-card-inner {
    transform: translateY(-8px);
    border-color: rgba(212, 168, 67, 0.3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(212, 168, 67, 0.06);
}

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

.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.15), rgba(212, 168, 67, 0.05));
    border: 1px solid rgba(212, 168, 67, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4A843;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.25), rgba(212, 168, 67, 0.1));
    border-color: rgba(212, 168, 67, 0.5);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(212, 168, 67, 0.15);
}

/* Gallery */
.gallery-item {
    overflow: hidden;
    border-radius: 16px;
}

.gallery-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: auto;
}

.gallery-item:nth-child(1) .gallery-img-wrap { aspect-ratio: 3/4; }
.gallery-item:nth-child(2) .gallery-img-wrap { aspect-ratio: 1; }
.gallery-item:nth-child(3) .gallery-img-wrap { aspect-ratio: 1; }
.gallery-item:nth-child(4) .gallery-img-wrap { aspect-ratio: 3/4; }

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 5, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay svg {
    color: #D4A843;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

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

.gallery-item:hover .gallery-overlay svg {
    transform: scale(1);
}

/* Reveal animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up { transform: translateY(0); }
.reveal-left { transform: translateX(0); }
.reveal-right { transform: translateX(0); }

@media (prefers-reduced-motion: no-preference) {
    .reveal-up { transform: translateY(40px); opacity: 0; }
    .reveal-left { transform: translateX(-40px); opacity: 0; }
    .reveal-right { transform: translateX(40px); opacity: 0; }
    
    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

/* Mobile menu */
.mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
    translate: 0 0;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
    translate: 0 -10px;
}

/* Header scrolled state */
#site-header.scrolled {
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

/* Back to top */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Toast */
#toast.show {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #D4A843;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal-up, .reveal-left, .reveal-right {
        transform: none;
        opacity: 1;
    }
}
