/* ============================================
   Amanda Hendricks APRN, PLLC - Custom Styles
   ============================================ */

/* Custom scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-logo-sub {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #ffffff;
}

#navbar.scrolled .nav-logo-sub {
    color: #f4e0be;
}

.nav-link {
    position: relative;
}

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

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

/* ============================================
   HERO ANIMATIONS
   ============================================ */
.hero-badge {
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards 0.2s;
}

.hero-title {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-ctas {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.hero-trust {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

.hero-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.2s;
}

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

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

/* ============================================
   SECTION ANIMATIONS (Intersection Observer)
   ============================================ */
.section-label,
.section-title,
.section-desc {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-label.visible,
.section-title.visible,
.section-desc.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for section labels */
.section-label { transition-delay: 0s; }
.section-title { transition-delay: 0.1s; }
.section-desc { transition-delay: 0.2s; }

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-image-grid {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-image-grid.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   PATIENT INFO CARDS
   ============================================ */
.patient-info-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.patient-info-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.patient-info-card:nth-child(1) { transition-delay: 0.05s; }
.patient-info-card:nth-child(2) { transition-delay: 0.1s; }
.patient-info-card:nth-child(3) { transition-delay: 0.15s; }
.patient-info-card:nth-child(4) { transition-delay: 0.2s; }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-detail {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact-detail.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-detail:nth-child(1) { transition-delay: 0.05s; }
.contact-detail:nth-child(2) { transition-delay: 0.1s; }
.contact-detail:nth-child(3) { transition-delay: 0.15s; }

.contact-map {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.contact-map.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   INPUT FOCUS STATES
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(201, 90, 48, 0.15);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-nav-link {
    padding-left: 0;
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
    border-left-color: #f4b892;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .hero-badge {
        margin-bottom: 6px;
    }
}
