/* ============================================
   Matt Washington Medical & Health
   Premium Dark Luxury Theme
   Terracotta + Sand + Gold Palette
   ============================================ */

/* Custom Properties */
:root {
    --color-bg-primary: #0d0d0d;
    --color-bg-secondary: #111111;
    --color-gold: #c8a97e;
    --color-gold-light: #e8d5a8;
    --color-gold-dark: #8b6914;
    --color-terracotta: #c27053;
    --color-sand: #e8e0d5;
    --color-text-muted: rgba(232, 224, 213, 0.6);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-sand);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--color-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease-out;
    opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* Typography */
.font-cinzel {
    font-family: var(--font-heading);
}

.font-manrope {
    font-family: var(--font-body);
}

/* Selection */
::selection {
    background: var(--color-gold);
    color: var(--color-bg-primary);
}

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

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

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

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

/* Navbar */
#navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200, 169, 126, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

/* Contact Form Inputs */
input,
select,
textarea {
    font-family: var(--font-body);
}

input::placeholder,
textarea::placeholder {
    color: rgba(232, 224, 213, 0.3);
}

/* Mobile Menu */
.mobile-menu {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    position: relative;
}

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

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

/* Back to Top */
.back-to-top {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
    
    .service-card,
    .testimonial-card {
        transition: none;
    }
    
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .cursor-dot,
    .cursor-ring,
    .back-to-top,
    #mobile-menu {
        display: none !important;
    }
}
