/* Global Styles and Components */
:root {
    /* Theme Colors - #004BB8 and #EC0002 */
    --primary-color: #004BB8;
    --primary-light: #1a5cc8;
    --primary-dark: #003a91;
    --secondary-color: #EC0002;
    --secondary-light: #ff1a1a;
    --secondary-dark: #cc0002;
    --accent-color: #004BB8;
    
    /* Neutral Colors */
    --text-primary: #2d3748;
    --text-secondary: #777777;
    --text-light: #a0aec0;
    --text-color: #2d3748;
    --text-muted: #777777;
    --light-gray: #f7fafc;
    --background: #ffffff;
    --background-light: #f7fafc;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --white: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Typography */
    --font-family-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-family-heading: 'Inter', var(--font-family-primary);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --border-radius: 0.5rem;
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Color CSS Custom Properties for easier usage */
    --color-primary-50: #e6f0ff;
    --color-primary-100: #b3d1ff;
    --color-primary-200: #80b2ff;
    --color-primary-300: #4d93ff;
    --color-primary-400: #1a74ff;
    --color-primary-500: #004BB8;
    --color-primary-600: #003f9f;
    --color-primary-700: #003386;
    --color-primary-800: #00276d;
    --color-primary-900: #001b54;

    --color-secondary-50: #ffeaea;
    --color-secondary-100: #ffb3b3;
    --color-secondary-200: #ff8080;
    --color-secondary-300: #ff4d4d;
    --color-secondary-400: #ff1a1a;
    --color-secondary-500: #EC0002;
    --color-secondary-600: #d90002;
    --color-secondary-700: #b30001;
    --color-secondary-800: #990001;
    --color-secondary-900: #660001;

    --color-neutral-50: #f8fafc;
    --color-neutral-100: #f1f5f9;
    --color-neutral-200: #e2e8f0;
    --color-neutral-300: #cbd5e1;
    --color-neutral-400: #94a3b8;
    --color-neutral-500: #64748b;
    --color-neutral-600: #475569;
    --color-neutral-700: #334155;
    --color-neutral-800: #1e293b;
    --color-neutral-900: #0f172a;

    --color-green-600: #059669;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove blue focus outline from all interactive elements */
a,
button,
input,
textarea,
select,
[tabindex],
[contenteditable] {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Add custom focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

/* Remove focus outline specifically for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure no CTA sections use red colors - Global override */
.cta, .cta-section, #cta {
    --primary-color: #004BB8 !important;
    --primary-dark: #003a91 !important;
    --secondary-color: #004BB8 !important; /* Override red with blue for CTA sections */
    --secondary-dark: #003a91 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.95rem;
    min-height: 44px;
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn--secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn--outline:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Section Styles */
.section-header {
    text-align: center !important;
    margin-bottom: var(--spacing-3xl);
    width: 100%;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-align: center !important;
    width: 100%;
    display: block;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    text-align: center !important;
    width: 100%;
    display: block;
}

.section-badge {
    text-align: center !important;
    display: block !important;
    margin: 0 auto var(--spacing-md) auto !important;
    width: fit-content !important;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2, .section-title {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Focus States for Accessibility */
.btn:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* GLOBAL MAILTO LINK FIXES - HIGHEST PRIORITY */
a[href^="mailto:"] {
    color: inherit !important;
    background: transparent !important;
    background-color: transparent !important;
    text-decoration: none !important;
    transition: all var(--transition-base) !important;
    border: none !important;
    box-shadow: none !important;
}

a[href^="mailto:"]:hover {
    color: var(--primary-color) !important;
    background: transparent !important;
    background-color: transparent !important;
    text-decoration: underline !important;
}
