    /* Custom styles for Dr. Flath's practice */
    
    :root {
        --plum-500: #6B4C6E;
        --plum-900: #2f1f36;
        --amber-500: #D4A574;
    }
    
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 80px;
    }
    
    body {
        overflow-x: hidden;
    }
    
    /* Navigation scroll state */
    .nav-scrolled {
        background: rgba(255, 255, 255, 0.97) !important;
        backdrop-filter: blur(12px);
        box-shadow: 0 1px 20px rgba(107, 76, 110, 0.08);
    }
    
    .nav-scrolled .nav-text-color {
        color: #2f1f36 !important;
    }
    
    .nav-scrolled .nav-text-subtle {
        color: #6B4C6E !important;
    }
    
    .nav-scrolled .nav-link {
        color: #4d3552 !important;
    }
    
    /* Scroll reveal animations - progressive enhancement */
    @media (prefers-reduced-motion: no-preference) {
        .reveal-up,
        .reveal-left,
        .reveal-right {
            opacity: 1;
            transform: none;
            transition: opacity 0.7s ease-out, transform 0.7s ease-out;
        }
        
        .reveal-up.is-visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        .reveal-left.is-visible {
            opacity: 1;
            transform: translateX(0);
        }
        
        .reveal-right.is-visible {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }
        
        .reveal-up,
        .reveal-left,
        .reveal-right {
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
        }
    }
    
    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: #f7f3f8;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #d8c5df;
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #c09ecb;
    }
    
    /* Focus visible styles */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 2px solid #D4A574;
        outline-offset: 2px;
        border-radius: 4px;
    }
    
    /* Selection color */
    ::selection {
        background: #d8c5df;
        color: #2f1f36;
    }
    
    /* Mobile menu transitions */
    #mobile-menu {
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Button ripple effect */
    .btn-primary {
        position: relative;
        overflow: hidden;
    }
    
    .btn-primary::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
    
    .btn-primary:active::after {
        width: 300px;
        height: 300px;
    }
    
    /* Image hover zoom */
    .img-zoom {
        transition: transform 0.6s ease;
    }
    
    .img-zoom:hover {
        transform: scale(1.03);
    }
    
    /* Card hover lift */
    .card-lift {
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }
    
    .card-lift:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(47, 31, 54, 0.12);
    }
    
    /* Decorative divider */
    .divider-ornament {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        color: #D4A574;
    }
    
    .divider-ornament::before,
    .divider-ornament::after {
        content: '';
        height: 1px;
        width: 60px;
        background: linear-gradient(to right, transparent, #D4A574, transparent);
    }
    
    /* Form focus states */
    input:focus,
    select:focus,
    textarea:focus {
        border-color: #6B4C6E !important;
        box-shadow: 0 0 0 3px rgba(107, 76, 110, 0.1);
    }
    
    /* Print styles */
    @media print {
        nav, #contact, footer {
            display: none;
        }
        
        body {
            color: #000;
            background: #fff;
        }
        
        .font-serif {
            color: #000;
        }
    }
    
    /* High contrast mode support */
    @media (forced-colors: active) {
        .bg-plum-500 {
            background-color: ButtonText;
        }
        
        .text-plum-900 {
            color: ButtonText;
        }
    }
