/* === EW360 BASE — Variables, Reset, Typography, Grid === */

:root {
    /* Colors */
    --ew-dark: #0A1628;
    --ew-blue: #2B7DE9;
    --ew-blue-light: #7BB3F0;
    --ew-blue-dark: #185FA5;
    --ew-gold: #F59E0B;
    --ew-gold-dark: #D97706;
    --ew-white: #FFFFFF;
    --ew-gray-50: #F8FAFC;
    --ew-gray-100: #F1F5F9;
    --ew-gray-200: #E2E8F0;
    --ew-gray-300: #CBD5E1;
    --ew-gray-400: #94A3B8;
    --ew-gray-500: #64748B;
    --ew-gray-600: #475569;
    --ew-gray-700: #334155;
    --ew-gray-800: #1E293B;
    --ew-green: #10B981;
    --ew-red: #EF4444;
    --ew-orange: #F97316;
    
    /* Typography */
    --ew-font: 'Outfit', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --ew-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --ew-gap: 24px;
    --ew-radius: 12px;
    --ew-radius-sm: 8px;
    --ew-radius-lg: 16px;
    --ew-radius-pill: 50px;
    
    /* Shadows */
    --ew-shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
    --ew-shadow-lg: 0 8px 40px rgba(10, 22, 40, 0.12);
    --ew-shadow-glow: 0 0 20px rgba(43, 125, 233, 0.15);
    
    /* Transitions */
    --ew-transition: all 0.3s ease;
}

/* === RESET === */
*, *::before, *::after {
    box-sizing: border-box;
}

body.ew360-v2 {
    font-family: var(--ew-font);
    color: var(--ew-gray-700);
    background: var(--ew-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* === TYPOGRAPHY === */
.ew360-v2 h1, .ew360-v2 h2, .ew360-v2 h3, .ew360-v2 h4 {
    font-family: var(--ew-font);
    color: var(--ew-dark);
    font-weight: 700;
    line-height: 1.2;
}

.ew360-v2 h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.ew360-v2 h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.ew360-v2 h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }

.ew360-v2 a {
    color: var(--ew-blue);
    text-decoration: none;
    transition: var(--ew-transition);
}
.ew360-v2 a:hover {
    color: var(--ew-blue-dark);
}

/* === GRID SYSTEM === */
.ew-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--ew-gap);
}

.ew-grid {
    display: grid;
    gap: var(--ew-gap);
}

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

@media (max-width: 1024px) {
    .ew-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .ew-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .ew-grid-2, .ew-grid-3, .ew-grid-4 {
        grid-template-columns: 1fr;
    }
    :root { --ew-gap: 16px; }
}

/* === UTILITIES === */
.ew-text-center { text-align: center; }
.ew-text-white { color: var(--ew-white); }
.ew-bg-dark { background: var(--ew-dark); }
.ew-bg-blue { background: var(--ew-blue); }
.ew-bg-light { background: var(--ew-gray-50); }
.ew-mt-1 { margin-top: 8px; }
.ew-mt-2 { margin-top: 16px; }
.ew-mt-3 { margin-top: 24px; }
.ew-mt-4 { margin-top: 32px; }
.ew-mb-2 { margin-bottom: 16px; }
.ew-mb-4 { margin-bottom: 32px; }
.ew-py-4 { padding-top: 32px; padding-bottom: 32px; }
.ew-py-6 { padding-top: 48px; padding-bottom: 48px; }
.ew-hidden { display: none !important; }

/* Hide Elementor leftovers */
.elementor-location-header,
.elementor-location-footer,
.elementor-widget-nav-menu,
.elementor-nav-menu,
body.ew360-v2 #ast-desktop-header,
body.ew360-v2 .ast-primary-header-bar,
body.ew360-v2 .site-header-primary-section-left,
body.ew360-v2 .ast-builder-layout-element {
    display: none !important;
}
