/* Custom Design System for Mid Maryland Musculoskeletal Institute */

/* Color Palette */
:root {
    --burgundy: #7c1a2e;
    --burgundy-light: #a02540;
    --blush: #d4a0a0;
    --blush-light: #e8c4c4;
    --gold: #c9a962;
    --gold-light: #dfc080;
    --gold-dark: #a08040;
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-elevated: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
}

/* Typography */
.font-cormorant {
    font-family: 'Cormorant Garamond', serif;
}

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

/* Custom Colors */
.text-burgundy {
    color: var(--burgundy);
}

.text-blush {
    color: var(--blush);
}

.text-gold {
    color: var(--gold);
}

.bg-burgundy {
    background-color: var(--burgundy);
}

.bg-burgundy\/20 {
    background-color: rgba(124, 26, 46, 0.2);
}

.bg-burgundy\/30 {
    background-color: rgba(124, 26, 46, 0.3);
}

.bg-burgundy\/5 {
    background-color: rgba(124, 26, 46, 0.05);
}

.bg-blush {
    color: var(--blush);
}

.bg-gold {
    background-color: var(--gold);
}

.bg-gold\/10 {
    background-color: rgba(201, 169, 98, 0.1);
}

.bg-gold\/20 {
    background-color: rgba(201, 169, 98, 0.2);
}

.bg-gold\/5 {
    background-color: rgba(201, 169, 98, 0.05);
}

.border-gold {
    border-color: var(--gold);
}

.border-gold\/20 {
    border-color: rgba(201, 169, 98, 0.2);
}

.border-gold\/30 {
    border-color: rgba(201, 169, 98, 0.3);
}

.border-burgundy\/30 {
    border-color: rgba(124, 26, 46, 0.3);
}

/* Gold Button */
.btn-gold {
    @apply inline-flex items-center px-6 py-3 bg-gradient-to-r from-[#c9a962] to-[#dfc080] text-[#0a0a0a] font-medium tracking-wider uppercase text-sm rounded-sm hover:from-[#dfc080] hover:to-[#e8d090] transition-all duration-300 shadow-lg shadow-gold/20 hover:shadow-gold/30;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.3);
}

/* Outline Button */
.btn-outline {
    @apply inline-flex items-center px-6 py-3 border border-gold/50 text-gold font-medium tracking-wider uppercase text-sm rounded-sm hover:bg-gold/10 transition-all duration-300;
}

.btn-outline:hover {
    border-color: var(--gold);
    background-color: rgba(201, 169, 98, 0.1);
    transform: translateY(-2px);
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    @apply absolute bottom-0 left-0 w-0 h-px bg-gold transition-all duration-300;
}

.nav-link:hover::after {
    @apply w-full;
}

/* Mobile Menu */
.menu-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.service-card::before {
    content: '';
    @apply absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-burgundy via-gold to-burgundy transform -translate-x-full transition-transform duration-500;
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Decorative Elements */
.gold-gradient-text {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

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

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.3);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .font-cormorant {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Print Styles */
@media print {
    .btn-gold,
    .btn-outline,
    #back-to-top {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
