/* Custom CSS for Osteopath Website */

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Apply animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

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

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #7B2D2D;
    transition: width 0.3s ease;
}

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

/* Section Spacing */
section {
    scroll-margin-top: 100px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #C49A9A;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7B2D2D;
}

/* Mobile Menu Animation */
#mobileMenu {
    transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    section {
        scroll-margin-top: 80px;
    }
    
    #hero h2 {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #callButton,
    footer {
        display: none;
    }
}

.animate-fade-in { opacity: 0; }
.animate-fade-in.visible { opacity: 1; animation: fadeIn 0.8s ease-out forwards; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-logo {
  display: block;
  width: auto;
  max-width: 520px;
  max-height: 260px;
  object-fit: contain;
  margin: 0 auto 1.5rem auto;
}
@media (max-width: 640px) {
  .hero-logo {
    max-width: 340px;
    max-height: 170px;
  }
}