/* ============================================
   Ms Leah's Tax Service - Custom Styles
   Bold Editorial Design System
   ============================================ */

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F9F7F2;
}
::-webkit-scrollbar-thumb {
    background: #264029;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a6440;
}

/* ---- Selection ---- */
::selection {
    background: #264029;
    color: #F9F7F2;
}

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

body {
    overflow-x: hidden;
}

/* ---- Section Label ---- */
.section-label {
    position: relative;
    display: inline-block;
}
.section-label::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 1px;
    background: #4f8154;
}

/* ---- Header Scroll State ---- */
#site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
#site-header.scrolled {
    background: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(38, 64, 41, 0.1);
}

/* ---- Nav Links ---- */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #264029;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ---- Hero Animations ---- */
.hero-headline {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-headline:nth-child(1) { animation-delay: 0.1s; }
.hero-headline:nth-child(2) { animation-delay: 0.2s; }
.hero-headline:nth-child(3) { animation-delay: 0.3s; }

.hero-subtitle {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-desc {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-cta {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

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

/* ---- Service Cards ---- */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.service-card:hover {
    transform: translateY(-8px);
}

/* ---- Process Steps ---- */
.process-step {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}
.process-step:nth-child(2) { transition-delay: 0.15s; }
.process-step:nth-child(3) { transition-delay: 0.3s; }

/* ---- Mobile Menu ---- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}
#mobile-menu:not(.open) {
    opacity: 0;
    pointer-events: none;
}
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* ---- Menu Icon Animation ---- */
#menu-btn.active .menu-line-1 {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-btn.active .menu-line-2 {
    opacity: 0;
}
#menu-btn.active .menu-line-3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* ---- 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;
    }
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .section-label::before {
        display: none;
    }
}
