/* ===== CSS Custom Properties ===== */
:root {
    --color-forest-950: #041F15;
    --color-forest-900: #0B3D2E;
    --color-forest-800: #115C44;
    --color-gold-400: #C9A84C;
    --color-gold-500: #B8943F;
    --color-charcoal-950: #0A0A0A;
    --color-charcoal-900: #111111;
    --color-charcoal-800: #1A1A1A;
    --color-charcoal-700: #252525;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ===== Scroll Reveal Animation ===== */
.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.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* ===== Gold Gradient Text Utility ===== */
.text-gradient-gold {
    background: linear-gradient(135deg, #EBD9AA 0%, #C9A84C 50%, #B8943F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
    background: #252525;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C9A84C;
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #F5EDD6;
}

/* ===== Focus Styles ===== */
:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* ===== Form Select Arrow Override ===== */
select option {
    background: #1A1A1A;
    color: #F5F5F5;
}

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

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

/* ===== Floating Card Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card-delay {
    animation: float 6s ease-in-out 3s infinite;
}

/* ===== Shimmer Effect for Gold Elements ===== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.gold-shimmer {
    background: linear-gradient(90deg, #C9A84C 0%, #F5EDD6 50%, #C9A84C 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* ===== Pulse Ring for Decorative Elements ===== */
@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.3; }
}

.pulse-ring {
    animation: pulseRing 4s ease-in-out infinite;
}

/* ===== Service Card Hover Glow ===== */
.service-card:hover .card-glow {
    opacity: 1;
}

.card-glow {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ===== Button Press Effect ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

button:active, a:active {
    transform: scale(0.98) !important;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    .font-display {
        line-height: 1.2;
    }
}

/* ===== Print Styles ===== */
@media print {
    body {
        background: white;
        color: black;
    }

    nav, #contact-form, .reveal {
        display: none;
    }
}
