/* ========================================
   In Touch Massage & Bodywork
   Custom Styles
   ======================================== */

/* Custom Color Palette */
:root {
    --navy-900: #1e3a5f;
    --navy-800: #2a4a6f;
    --gold-500: #c9a84c;
    --gold-400: #d4b85e;
    --gold-600: #b8943f;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-600: #575754;
}

/* Base Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-sans {
    font-family: 'Montserrat', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: var(--stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-600);
}

/* Navigation */
#navbar {
    background: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--stone-50) 0%, #fff 100%);
}

/* Service Cards */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Intersection Observer Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(30, 58, 95, 0.15);
}

/* Gold Accent Line */
.gold-accent {
    position: relative;
}

.gold-accent::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold-500);
}

/* Button Ripple Effect */
.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-gold:hover::before {
    width: 300px;
    height: 300px;
}

/* Mobile Menu Animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobileMenu.open {
    max-height: 300px;
}

/* Image Placeholder Fallback */
img {
    background: linear-gradient(135deg, var(--stone-100) 0%, var(--stone-50) 100%);
}

/* Print Styles */
@media print {
    #navbar,
    #contactForm,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* 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;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --gold-500: #a07800;
    }
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background: var(--gold-500);
    color: var(--navy-900);
}
