/* Anjaneyas Associates - Professional Design System */

/* ================================
   1. CORE DESIGN TOKENS
   ================================ */

:root {
    /* Brand Colors */
    --primary-blue: #1e40af;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e3a8a;

    --health-red: #dc2626;
    --health-red-light: #ef4444;
    --health-red-dark: #991b1b;

    --life-blue: #0369a1;
    --life-blue-light: #0284c7;
    --life-blue-dark: #075985;

    --tax-green: #059669;
    --tax-green-light: #10b981;
    --tax-green-dark: #065f46;

    --compliance-purple: #7c3aed;
    --compliance-purple-light: #8b5cf6;
    --compliance-purple-dark: #5b21b6;

    --accent-yellow: #f59e0b;
    --accent-orange: #ea580c;

    /* Neutral Colors */
    --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;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;
}

/* ================================
   2. BASE STYLES & TYPOGRAPHY
   ================================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
}

/* ================================
   FIXED HEADER STYLES
   ================================ */

.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Ensure dropdown menus appear above other content */
.header-fixed .group:hover>div {
    z-index: 60;
}

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 5rem;
}

.hero-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* ================================
   3. COMPONENT SYSTEM
   ================================ */

/* Service Cards with consistent styling */
.service-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-slow);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

/* Button System */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white;
    border: none;
    transition: all var(--transition-slow);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

/* Icon styling */
.icon-professional {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid #cbd5e1;
    transition: all var(--transition-slow);
}

.icon-professional:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    transform: scale(1.1);
}

/* ================================
   4. LEGACY CLASSES
   ================================ */

/* Gradient backgrounds */
.gradient-bg-blue {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 50%, var(--primary-blue-light) 100%);
}

.gradient-bg-green {
    background: linear-gradient(135deg, var(--tax-green-dark) 0%, var(--tax-green) 50%, var(--tax-green-light) 100%);
}

.gradient-bg-red {
    background: linear-gradient(135deg, var(--health-red-dark) 0%, var(--health-red) 50%, var(--health-red-light) 100%);
}

.gradient-bg-purple {
    background: linear-gradient(135deg, var(--compliance-purple-dark) 0%, var(--compliance-purple) 50%, var(--compliance-purple-light) 100%);
}

/* ================================
   5. ANIMATIONS
   ================================ */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* ================================
   6. RESPONSIVE DESIGN
   ================================ */

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.footer-professional {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    border-top: 3px solid var(--primary-blue);
}

.stat-counter {
    font-weight: 700;
    color: var(--primary-blue);
    transition: all var(--transition-slow);
}

.stat-counter:hover {
    color: var(--primary-blue-light);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .service-card {
        margin-bottom: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ================================
   7. ACCESSIBILITY
   ================================ */

.focus-visible:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .floating,
    .service-card,
    .btn-primary {
        animation: none;
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #000;
    }

    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
}

/* ================================
   8. PRINT STYLES
   ================================ */

@media print {
    .no-print {
        display: none !important;
    }

    .hero-section {
        background: white !important;
        color: black !important;
    }
}