/* Custom styles for Orthopaedic Surgery Center of Excellence */

:root {
    --burgundy: #8B2332;
    --burgundy-light: #A83245;
    --blush: #F2D0C4;
    --blush-light: #F9E8E2;
    --cream: #FAF7F5;
    --dark: #1A1A1A;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    background: var(--cream);
    line-height: 1.6;
}

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

/* Hero overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(139, 35, 50, 0.88) 0%, rgba(56, 10, 10, 0.78) 100%);
}

/* Thin decorative lines */
.thin-line {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--blush) 50%, transparent 100%);
}

/* Primary button */
.btn-primary {
    background: var(--burgundy);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: var(--burgundy-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(139, 35, 50, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Outline button */
.btn-outline {
    border: 1px solid var(--burgundy);
    color: var(--burgundy);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
    background: var(--burgundy);
    color: white;
}

/* Service card hover effect */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 2px solid transparent;
}

.service-card:hover {
    border-bottom-color: var(--burgundy);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--burgundy);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    /* Staggered delays for grid items */
    .reveal:nth-child(1) { transition-delay: 0.1s; }
    .reveal:nth-child(2) { transition-delay: 0.2s; }
    .reveal:nth-child(3) { transition-delay: 0.3s; }
    .reveal:nth-child(4) { transition-delay: 0.4s; }
    .reveal:nth-child(5) { transition-delay: 0.5s; }
    .reveal:nth-child(6) { transition-delay: 0.6s; }
}

/* Form input focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--burgundy) !important;
    box-shadow: 0 0 0 3px rgba(139, 35, 50, 0.1);
}

/* Image hover zoom */
img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile menu overlay */
.menu-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Scroll indicator animation */
@keyframes scrollBounce {
    0%, 100% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 10px); opacity: 0.5; }
}

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

/* Print styles */
@media print {
    .hero-overlay,
    .mobile-menu,
    .reveal {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
