/* LocalTaxCut.com - Pure CSS Solution (No Framework Dependencies) */

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Colors */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --green-400: #4ade80;
    --green-500: #22c55e;
    
    --yellow-300: #fde047;
    
    --red-50: #fef2f2;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-800: #991b1b;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--gray-50);
}

/* ===== UTILITY CLASSES ===== */

/* Background Colors */
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-white { background-color: white; }
.bg-blue-50 { background-color: var(--blue-50); }
.bg-blue-100 { background-color: var(--blue-100); }
.bg-green-50 { background-color: #f0fdf4; }
.bg-red-50 { background-color: var(--red-50); }

/* Text Colors */
.text-white { color: white; }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }
.text-blue-100 { color: var(--blue-100); }
.text-blue-200 { color: #bfdbfe; }
.text-blue-400 { color: #60a5fa; }
.text-blue-500 { color: var(--blue-500); }
.text-blue-600 { color: var(--blue-600); }
.text-blue-700 { color: var(--blue-700); }
.text-blue-800 { color: var(--blue-800); }
.text-green-400 { color: var(--green-400); }
.text-green-500 { color: var(--green-500); }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }
.text-purple-400 { color: var(--purple-500); }
.text-red-500 { color: var(--red-500); }
.text-red-600 { color: var(--red-600); }
.text-red-700 { color: var(--red-700); }
.text-red-800 { color: var(--red-800); }
.text-yellow-300 { color: var(--yellow-300); }

/* Font Sizes */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

/* Font Weights */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* Layout */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Spacing */
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }
.p-12 { padding: var(--space-12); }

.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }

.pt-20 { padding-top: var(--space-20); }
.pb-32 { padding-bottom: var(--space-32); }

.m-0 { margin: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mb-20 { margin-bottom: var(--space-20); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mr-3 { margin-right: var(--space-3); }
.mr-4 { margin-right: var(--space-4); }
.ml-4 { margin-left: var(--space-4); }

/* Gaps */
.gap-8 { gap: var(--space-8); }
.gap-16 { gap: var(--space-16); }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-4 { border-width: 4px; border-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }

.border-gray-200 { border-color: var(--gray-200); }
.border-gray-300 { border-color: var(--gray-300); }
.border-blue-200 { border-color: var(--blue-200); }
.border-blue-500 { border-color: var(--blue-500); }
.border-green-500 { border-color: var(--green-500); }
.border-red-500 { border-color: var(--red-500); }

/* Border Radius */
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: 9999px; }
.rounded-r-xl { border-top-right-radius: var(--radius-xl); border-bottom-right-radius: var(--radius-xl); }

/* Shadows */
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Positioning Values */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-10 { top: var(--space-10); }
.top-40 { top: 10rem; }
.right-10 { right: var(--space-10); }
.bottom-10 { bottom: var(--space-10); }
.left-10 { left: var(--space-10); }
.left-1\/2 { left: 50%; }

/* Width & Height */
.w-full { width: 100%; }
.w-8 { width: var(--space-8); }
.w-72 { width: 18rem; }
.h-8 { height: var(--space-8); }
.h-72 { height: 18rem; }
.min-h-screen { min-height: 100vh; }

/* Max Width */
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-full { max-width: 100%; }

/* Spacing Utilities */
.space-y-2 > * + * { margin-top: var(--space-2); }
.space-y-3 > * + * { margin-top: var(--space-3); }
.space-y-6 > * + * { margin-top: var(--space-6); }
.space-y-8 > * + * { margin-top: var(--space-8); }
.space-y-20 > * + * { margin-top: var(--space-20); }

/* Transforms */
.transform { transform: translateZ(0); }
.-translate-y-0\.5 { transform: translateY(-0.125rem); }
.-translate-y-1 { transform: translateY(-0.25rem); }
.-translate-y-2 { transform: translateY(-0.5rem); }
.-translate-y-3 { transform: translateY(-0.75rem); }

/* Transitions */
.transition-all { transition: all var(--transition-normal); }
.transition-colors { transition: color var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal); }
.transition-transform { transition: transform var(--transition-normal); }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* Effects */
.opacity-30 { opacity: 0.3; }
.blur-xl { filter: blur(24px); }
.mix-blend-multiply { mix-blend-mode: multiply; }

/* Z-Index */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Line Height */
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }

/* List Styles */
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* Outline */
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* User Select */
.select-none { user-select: none; }

/* Text Decoration */
.no-underline { text-decoration: none; }
.underline { text-decoration: underline; }

/* Italic */
.italic { font-style: italic; }

/* ===== RESPONSIVE UTILITIES ===== */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== CUSTOM COMPONENTS ===== */

/* Hero Gradient Background */
.hero-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #1e40af 100%);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--blue-500); /* Fallback */
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: white;
    padding: var(--space-4) var(--space-8);
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray-500), var(--gray-600));
    color: white;
    padding: var(--space-4) var(--space-8);
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--gray-600), var(--gray-700));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.6);
}

/* Number Badges */
.number-badge {
    background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-600) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Interactive Form */
.interactive-form {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

/* Input Fields */
.input-field {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    font-size: 1rem;
    transition: all 200ms ease;
    background: white;
    width: 100%;
}

.input-field:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Section Titles */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
    border-radius: 2px;
}

/* Hover Effects */
.hover-scale {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-scale:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.simple-card-hover {
    transition: all var(--transition-normal);
}

.simple-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    .hero-gradient {
        min-height: 80vh;
    }
    
    .text-5xl,
    .text-6xl,
    .text-7xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .grid-cols-1 {
        grid-template-columns: 1fr;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up,
    .hover-scale,
    .simple-card-hover,
    .animate-pulse {
        animation: none;
        transition: none;
    }
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero-gradient,
    .interactive-form,
    .stats-card {
        background: white !important;
        color: black !important;
    }
    
    .btn-primary,
    .btn-secondary {
        background: var(--blue-500) !important;
        color: white !important;
    }
}