/* === Base & Reset === */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #faf8f4;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080808;
}
::-webkit-scrollbar-thumb {
    background: #2d5f2d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #427a42;
}

/* === Navbar === */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(8, 8, 8, 0.92);
    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.5);
}

/* === Hero Badge === */
.hero-badge {
    animation: badge-in 0.8s ease-out both;
}

@keyframes badge-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Hero Text === */
#hero h1 {
    animation: hero-text-in 1s ease-out 0.2s both;
}

#hero p {
    animation: hero-text-in 1s ease-out 0.4s both;
}

#hero .flex-col {
    animation: hero-text-in 1s ease-out 0.6s both;
}

@keyframes hero-text-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Reveal Animations (below-fold only) === */
.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[data-revealed="false"] {
    opacity: 0;
    transform: translateY(40px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Card Hover === */
.group:hover .group-hover\:rotate-12 {
    transform: rotate(12deg);
}

/* === Gold Glow Buttons === */
button, a[href^="tel:"], a[href^="mailto:"] {
    -webkit-tap-highlight-color: transparent;
}

/* === Mobile Menu === */
#mobile-menu {
    animation: menu-slide 0.3s ease-out;
}

@keyframes menu-slide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Image Hover === */
.group img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === Divider === */
.divider-gold {
    background: linear-gradient(to right, transparent, rgba(212, 168, 75, 0.3), transparent);
}

/* === Focus Styles === */
a:focus-visible, button:focus-visible {
    outline: 2px solid #d4a84b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Responsive Typography === */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}
