/* Custom styles for Kinwell Medical Services */

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

/* Base font weights */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero animations - above the fold, always visible */
.hero-eyebrow {
    opacity: 1;
    animation: fadeInDown 0.8s ease-out both;
}

.hero-title {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Navbar styles */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(250, 248, 245, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-logo {
    color: #5f4d3a;
}

/* Mobile menu */
.nav-toggle-line {
    display: block;
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .nav-toggle-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

#mobile-menu-btn.active .nav-toggle-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Section animations - below the fold only, progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .section-eyebrow,
    .section-title,
    .service-card,
    .approach-item {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .service-card {
        transition-delay: calc(var(--index, 0) * 0.1s);
    }
    
    .approach-item {
        transition-delay: calc(var(--index, 0) * 0.1s);
    }
}

/* Service cards */
.service-card {
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Approach items */
.approach-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(196, 114, 81, 0.15);
}

.approach-item:last-child {
    border-bottom: none;
}

/* Form styles */
input:focus,
textarea:focus {
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #ceb896;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bfa67e;
}

/* Selection color */
::selection {
    background: rgba(196, 114, 81, 0.2);
    color: #5f4d3a;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
