/* ========================================
   Act Fast Tax Service — Custom Styles
   ======================================== */

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

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

body {
    overflow-x: hidden;
}

/* ========================================
   Scroll Reveal Animations
   Progressive enhancement — content is
   visible by default, JS adds animation
   ======================================== */
.reveal-section {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-section.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Hero Animations
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .hero-eyebrow {
        opacity: 0;
        transform: translateY(20px);
        animation: heroFadeUp 0.8s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    .hero-headline {
        opacity: 0;
        transform: translateY(30px);
        animation: heroFadeUp 0.8s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    .hero-subtext {
        opacity: 0;
        transform: translateY(20px);
        animation: heroFadeUp 0.8s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    .hero-ctas {
        opacity: 0;
        transform: translateY(20px);
        animation: heroFadeUp 0.8s 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Scroll Indicator
   ======================================== */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* ========================================
   Section Styles
   ======================================== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta, #c4431e);
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: #111827;
}

.section-desc {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.7;
    max-width: 560px;
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
    position: relative;
}

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    transform: translateY(0);
}

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

/* ========================================
   Buttons
   ======================================== */
button, [type="button"], [type="reset"], [type="submit"] {
    cursor: pointer;
}

input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: #fce8dd;
    color: #6a261c;
}

/* ========================================
   Utility
   ======================================== */
@media (max-width: 767px) {
    .section-title {
        font-size: 1.875rem;
    }
}
