/* ============================================================
   McLeod Air Inc. — Design System
   Brand: Trust-first, professional, modern Canadian service
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    /* Brand Colors — extracted from logo SVG */
    --color-primary-blue: #2568c1;
    --color-primary-red: #e11846;
    --color-secondary-blue: #3378c5;

    /* Blue palette */
    --color-blue-50: #eef4fb;
    --color-blue-100: #d4e4f7;
    --color-blue-200: #a9c9ef;
    --color-blue-300: #5a96d8;
    --color-blue-400: #3378c5;
    --color-blue-500: #2568c1;
    --color-blue-600: #1e54a0;
    --color-blue-700: #17407a;
    --color-blue-800: #102d55;
    --color-blue-900: #0a1b33;

    /* Red palette */
    --color-red-50: #fef2f4;
    --color-red-100: #fce4e8;
    --color-red-200: #f8b4c0;
    --color-red-300: #f17389;
    --color-red-400: #e11846;
    --color-red-500: #c4143d;
    --color-red-600: #a01033;
    --color-red-700: #7c0c28;
    --color-red-800: #58091d;
    --color-red-900: #340512;

    /* Neutrals */
    --color-white: #ffffff;
    --color-gray-50: #f8f9fb;
    --color-gray-100: #f1f3f7;
    --color-gray-200: #e5e7ed;
    --color-gray-300: #d1d5de;
    --color-gray-400: #9ca3b0;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --color-dark: #0f1419;

    /* Semantic Colors */
    --color-text-primary: var(--color-gray-900);
    --color-text-secondary: var(--color-gray-600);
    --color-text-muted: var(--color-gray-400);
    --color-text-inverse: var(--color-white);
    --color-bg-primary: var(--color-white);
    --color-bg-secondary: var(--color-gray-50);
    --color-bg-tertiary: var(--color-gray-100);
    --color-bg-dark: var(--color-blue-900);
    --color-border: var(--color-gray-200);
    --color-border-light: var(--color-gray-100);
    --color-success: #059669;
    --color-warning: #d97706;
    --color-emergency: var(--color-primary-red);

    /* Typography — Poppins via Google Fonts */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Type Scale (modular, base 16px, ratio ~1.25) */
    --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;

    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;

    /* Spacing (8px base grid) */
    --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;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 900px;
    --container-wide: 1400px;
    --header-height: 80px;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--color-blue-600);
}

ul, ol {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--text-5xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-4xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-semibold);
}

h5 {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
}

h6 {
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

.text-lead {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

.text-small {
    font-size: var(--text-sm);
}

.text-xs {
    font-size: var(--text-xs);
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--wide {
    max-width: var(--container-wide);
}

.section {
    padding: var(--space-20) 0;
}

.section--sm {
    padding: var(--space-12) 0;
}

.section--lg {
    padding: var(--space-32) 0;
}

.section--gray {
    background-color: var(--color-bg-secondary);
}

.section--dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-text-inverse);
}

.section--dark p {
    color: rgba(255, 255, 255, 0.8);
}

.section__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-12);
}

.section__header h2 {
    margin-bottom: var(--space-4);
}

.section__label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
}

.section--dark .section__label {
    color: var(--color-blue-200);
}

/* Grid system */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex {
    display: flex;
}

.flex--center {
    align-items: center;
    justify-content: center;
}

.flex--between {
    align-items: center;
    justify-content: space-between;
}

.flex--gap-4 { gap: var(--space-4); }
.flex--gap-6 { gap: var(--space-6); }
.flex--gap-8 { gap: var(--space-8); }

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