/* Custom styles for OrthoBethesda K Street */

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

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

::-webkit-scrollbar-track {
    background: #f4f7fa;
}

::-webkit-scrollbar-thumb {
    background: #bdd3e2;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9bbfce;
}

/* Primary button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1a3641 0%, #2e5a6a 100%);
    color: #ffffff;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 54, 65, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 65, 0.4);
    background: linear-gradient(135deg, #244754 0%, #3f7488 100%);
}

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

/* Secondary button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    color: #1a3641;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 54, 65, 0.1);
    cursor: pointer;
}

.btn-secondary:hover {
    background: #ffffff;
    border-color: #86efac;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(134, 239, 172, 0.3);
}

/* Service cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
}

.service-card.scroll-animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #86efac);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* Mobile navigation */
.mobile-nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-animate.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Spin animation for decorative elements */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .btn-primary,
    .btn-secondary,
    #back-to-top {
        display: none;
    }
}
