/* ============================================
   RIVERSIDE SALON — Premium Dark Luxury Styles
   ============================================ */

/* CSS Custom Properties */
:root {
    --color-luxury-black: #0a0a0a;
    --color-luxury-dark: #111111;
    --color-luxury-charcoal: #1a1a1a;
    --color-emerald-deep: #0d4d3c;
    --color-emerald-rich: #1a6b52;
    --color-emerald-light: #2d8f6e;
    --color-cream: #f5f0e8;
    --color-cream-light: #faf7f2;
    --color-cream-dark: #e8e0d0;
    --color-gold: #c9a84c;
    --color-gold-light: #d4b965;
    --color-gold-dark: #b8943f;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Raleway', Helvetica, Arial, sans-serif;
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-luxury-black);
    color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Selection Color */
::selection {
    background-color: var(--color-gold);
    color: var(--color-luxury-black);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-gold) !important;
}

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

/* Mobile Menu */
#mobile-menu {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
}

.mobile-link {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
    background-size: 200% auto;
    color: var(--color-luxury-black);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

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

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

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--color-cream);
    border: 1px solid rgba(201, 168, 76, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.btn-outline:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(201, 168, 76, 0.05);
    transform: translateY(-2px);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 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.1);
}

input::placeholder,
textarea::placeholder {
    color: rgba(245, 240, 232, 0.2);
}

/* ============================================
   BACK TO TOP
   ============================================ */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--color-gold) !important;
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 767px) {
    .font-serif {
        font-size: 2.5rem;
        line-height: 1.15;
    }
    
    #hero .font-serif {
        font-size: 2.75rem;
    }
    
    .reveal {
        transform: translateY(20px);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .font-serif {
        font-size: 3.5rem;
    }
}

/* ============================================
   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 {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   FOCUS VISIBLE
   ============================================ */
:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* ============================================
   UTILITY — Gold gradient text shimmer
   ============================================ */
.text-gold-shimmer {
    background: linear-gradient(
        90deg,
        var(--color-gold) 0%,
        var(--color-gold-light) 25%,
        var(--color-gold) 50%,
        var(--color-gold-light) 75%,
        var(--color-gold) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}
