/* ============================================
   US Accounting Tax Services — Custom Styles
   ============================================ */

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

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

/* Selection color */
::selection {
    background: #d4562e;
    color: #ffffff;
}

/* Smooth focus styles */
:focus-visible {
    outline: 2px solid #d4562e;
    outline-offset: 2px;
}

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

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

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

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

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */

/* Default: content is visible (no JS needed) */
.reveal,
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

/* Only apply animations when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
    }
    
    .reveal-up {
        opacity: 1;
    }
    
    .reveal-left {
        opacity: 1;
    }
    
    .reveal-right {
        opacity: 1;
    }
}

/* ============================================
   Form Styles
   ============================================ */

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ============================================
   Mobile menu transitions
   ============================================ */

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* ============================================
   Print styles
   ============================================ */

@media print {
    header, footer, .reveal, .reveal-up, .reveal-left, .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ============================================
   Utility: ensure hero text is readable
   ============================================ */

/* The hero has an explicit dark background (navy-950/90 overlay),
   so white text is appropriate and meets WCAG AA contrast. */
#hero h1,
#hero h2,
#hero .font-bold,
#hero .text-white {
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
