/* ========================================
   Awareness Now — Custom Styles
   Classic & Elegant Medical Website
   ======================================== */

/* ---------- Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(161, 26, 61, 0.15);
    color: #701a33;
}

/* ---------- Hero Animations (above fold — always visible) ---------- */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
}

.hero-title {
    animation: slideUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero-desc {
    animation: slideUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

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

/* ---------- Section Labels (below fold — progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .section-label {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .section-title {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
    }
    
    .section-label-light {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .service-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .process-step {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .testimonial-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .service-card.revealed,
    .process-step.revealed,
    .testimonial-card.revealed,
    .section-label.revealed,
    .section-title.revealed,
    .section-label-light.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays */
    .service-card:nth-child(1) { transition-delay: 0s; }
    .service-card:nth-child(2) { transition-delay: 0.08s; }
    .service-card:nth-child(3) { transition-delay: 0.16s; }
    .service-card:nth-child(4) { transition-delay: 0.24s; }
    .service-card:nth-child(5) { transition-delay: 0.32s; }
    .service-card:nth-child(6) { transition-delay: 0.4s; }
    
    .process-step:nth-child(1) { transition-delay: 0s; }
    .process-step:nth-child(2) { transition-delay: 0.15s; }
    .process-step:nth-child(3) { transition-delay: 0.3s; }
    
    .testimonial-card:nth-child(1) { transition-delay: 0s; }
    .testimonial-card:nth-child(2) { transition-delay: 0.12s; }
    .testimonial-card:nth-child(3) { transition-delay: 0.24s; }
}

/* ---------- Navbar ---------- */
#navbar {
    background: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ---------- Mobile Menu ---------- */
.mobile-link {
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

.mobile-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-link:nth-child(4) { animation-delay: 0.2s; }

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

#mobileMenu.open .mobile-link {
    animation: fadeIn 0.4s ease forwards;
}

/* ---------- Button Hover Effects ---------- */
a, button {
    transition: all 0.3s ease;
}

/* ---------- Form Focus States ---------- */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(161, 26, 61, 0.1);
}

/* ---------- Smooth Scroll Offset ---------- */
section[id] {
    scroll-margin-top: 80px;
}

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

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

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

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

/* ---------- Reduced Motion ---------- */
@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;
    }
    
    .hero-subtitle,
    .hero-title,
    .hero-desc {
        opacity: 1;
        animation: none;
    }
}
