/* Bradshaw's Tax Services — Custom Styles */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5eb;
}
::-webkit-scrollbar-thumb {
    background: #dd7a68;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b84632;
}

/* Navbar */
#navbar {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 23, 20, 0.06);
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    box-shadow: 0 4px 30px rgba(26, 23, 20, 0.08);
}

/* Mobile Menu */
.menu-line {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}
#menu-btn.active .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(4px, -4px);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Hero Image */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(204, 90, 69, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* Service Card Image Hover */
.service-card img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover img {
    transform: scale(1.05);
}

/* Selection */
::selection {
    background: #f5d0c8;
    color: #6a2920;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid #cc5a45;
    outline-offset: 2px;
}

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

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-grid .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-grid .reveal:nth-child(4) { transition-delay: 300ms; }
.reveal-grid .reveal:nth-child(5) { transition-delay: 400ms; }
.reveal-grid .reveal:nth-child(6) { transition-delay: 500ms; }

/* Tablet */
@media (min-width: 768px) {
    .service-card {
        padding: 1.5rem !important;
    }
}

/* Desktop refinements */
@media (min-width: 1024px) {
    .hero-grid {
        gap: 3rem;
    }
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .service-card {
        break-inside: avoid;
    }
}
