/* ============================================
   NAILED BY BRITT — Premium Dark Luxury Styles
   ============================================ */

/* Reset & Base */
*, *::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: rgba(201, 168, 76, 0.3);
    color: #FFD040;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0F1E;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #C9A84C, #9A7B32);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FFD040;
}

/* ============================================
   GOLD GRADIENT UTILITIES
   ============================================ */
.gold-gradient {
    background: linear-gradient(135deg, #FFD040 0%, #C9A84C 50%, #B8943F 100%);
}

.gold-gradient-text {
    background: linear-gradient(135deg, #FFD040 0%, #C9A84C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   GOLD BUTTON
   ============================================ */
.gold-btn {
    display: inline-flex;
    padding: 14px 32px;
    background: linear-gradient(135deg, #FFD040 0%, #C9A84C 50%, #B8943F 100%);
    color: #0A0F1E;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}

.gold-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FFE080 0%, #FFD040 50%, #C9A84C 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
}

.gold-btn:hover::before {
    opacity: 1;
}

.gold-btn span {
    position: relative;
    z-index: 1;
}

/* Gold Inline Button (smaller, for nav and inline use) */
.gold-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FFD040 0%, #C9A84C 100%);
    color: #0A0F1E;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.2);
}

.gold-btn-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
    background: linear-gradient(135deg, #FFE080 0%, #FFD040 100%);
}

/* Gold Outline Button */
.gold-outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: #C9A84C;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    border: 1.5px solid rgba(201, 168, 76, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gold-outline-btn:hover {
    background: rgba(201, 168, 76, 0.08);
    border-color: #C9A84C;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.15);
}

.gold-outline-btn span {
    position: relative;
    z-index: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(4, 8, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1), 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #C9A84C, #FFD040);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #C9A84C !important;
}

/* Mobile Menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #C9A84C;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 80%;
}

.mobile-link:hover {
    color: #C9A84C !important;
}

/* Hamburger Animation */
#menuBtn.active #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}
#menuBtn.active #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    position: relative;
}

.hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    background: linear-gradient(145deg, rgba(15, 22, 41, 0.8) 0%, rgba(22, 31, 56, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 76, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(201, 168, 76, 0.05);
}

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

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   REVEAL ANIMATIONS
   (Progressive Enhancement — content visible by default)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    /* JS adds this class for scroll-triggered reveals */
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal[data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays for grid items */
@media (prefers-reduced-motion: no-preference) {
    .service-card:nth-child(1) { transition-delay: 0.05s; }
    .service-card:nth-child(2) { transition-delay: 0.1s; }
    .service-card:nth-child(3) { transition-delay: 0.15s; }
    .service-card:nth-child(4) { transition-delay: 0.2s; }
    .service-card:nth-child(5) { transition-delay: 0.25s; }
    .service-card:nth-child(6) { transition-delay: 0.3s; }
}

/* ============================================
   BACK TO TOP
   ============================================ */
#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

#backToTop:hover {
    transform: scale(1.1);
}

/* ============================================
   FORM STYLES
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(201, 168, 76, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08) !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .gold-btn {
        padding: 12px 24px;
        font-size: 0.8rem;
    }

    .gold-outline-btn {
        padding: 12px 24px;
        font-size: 0.8rem;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    #hero h1 br {
        display: none;
    }

    #hero h1::after {
        content: '';
        display: block;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
}

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

button:focus-visible,
a:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
    border-radius: 4px;
}
