/* Global Styles - FinPluss */
:root {
    /* Brand Colors */
    --primary-orange: #F36D21;
    --primary-blue: #243E93;
    --accent-black: #000000;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    
    /* Typography Scale */
    --font-base: 16px;
    --font-tiny: 0.8125rem;   /* 13px */
    --font-small: 0.875rem;   /* 14px */
    --font-medium: 1rem;      /* 16px */
    --font-large: 1.125rem;   /* 18px */
    --font-xl: 1.25rem;       /* 20px */
    --font-2xl: 1.5rem;       /* 24px */
    --font-3xl: 2rem;         /* 32px */
    --font-4xl: 3rem;         /* 48px */
    
    /* Line Heights */
    --line-height-tight: 1.4;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;
    
    /* Font Families */
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Montserrat', var(--font-primary);
    
    /* Spacing Scale (8px base) */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    --space-2xl: 4rem;    /* 64px */
    --space-3xl: 6rem;    /* 96px */
    
    /* Section Spacing */
    --section-padding: var(--space-2xl);
    --section-padding-mobile: var(--space-xl);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-base);
    color: var(--text-dark);
    line-height: var(--line-height-normal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-blue);
    line-height: var(--line-height-tight);
}

h1 { font-size: clamp(var(--font-3xl), 5vw, var(--font-4xl)); }
h2 { font-size: clamp(var(--font-2xl), 4vw, var(--font-3xl)); }
h3 { font-size: clamp(var(--font-xl), 3vw, var(--font-2xl)); }
h4 { font-size: var(--font-large); }
h5 { font-size: var(--font-medium); }
h6 { font-size: var(--font-small); }

main {
    flex: 1;
}

/* Section Spacing */
.section {
    padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
    .section {
        padding: var(--section-padding-mobile) 0;
    }
}

/* Buttons */
.btn {
    font-family: var(--font-heading);
    font-weight: 500;
    transition: all var(--transition-base);
}

.btn-primary {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    padding: 14px 32px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #e05a0c;
    border-color: #e05a0c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-secondary:hover {
    background-color: #1a2d6d;
    border-color: #1a2d6d;
    transform: translateY(-2px);
}

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

/* Card Shadows */
.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Visible for Better Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Skip to Main Content Link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-orange);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}
