/* ========================================
   Waverly Yao CPA PLLC — Custom Styles
   ======================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    font-optical-sizing: auto;
}

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

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

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

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

/* Selection */
::selection {
    background: #c9a84c;
    color: #0a1a3a;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 42, 86, 0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(10, 26, 58, 0.08);
}

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

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

#navbar.scrolled .nav-link {
    color: #2d5191;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu {
    backdrop-filter: blur(20px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Scroll indicator pulse */
@keyframes pulse-down {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c9a84c, #e8c860);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ========================================
   Process Steps
   ======================================== */
.process-step {
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -2rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #c9a84c, transparent);
}

@media (max-width: 1023px) {
    .process-step:not(:last-child)::after {
        display: none;
    }
}

/* ========================================
   Contact Form
   ======================================== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* ========================================
   Scroll Reveal Animations
   (Progressive Enhancement — only with JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal[data-delay="100"] { transition-delay: 0.1s; }
    .reveal[data-delay="200"] { transition-delay: 0.2s; }
    .reveal[data-delay="300"] { transition-delay: 0.3s; }
    .reveal[data-delay="400"] { transition-delay: 0.4s; }
    .reveal[data-delay="500"] { transition-delay: 0.5s; }
}

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 767px) {
    .font-serif {
        word-spacing: -0.02em;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .process-step:not(:last-child)::after {
        display: none;
    }
}
