/*
Theme Name: CanadaFIHub
Theme URI: https://canadafihub.com
Author: Antigravity IDE
Author URI: https://canadafihub.com
Description: Custom built WordPress theme for Canada's leading Financial Independence resource.
Version: 2.0.0
License: GPLv2 or later
Text Domain: canadafihub

This is a Zero-Dependency, Enterprise-grade theme.
*/

/* ==========================================================================
   DESIGN TOKENS (CSS Variables)
   ========================================================================== */
:root {
    /* Color Palette - Vibrant SaaS Aesthetic */
    --c-primary: #0A2540;      /* Deep Slate/Indigo */
    --c-secondary: #00B873;    /* Emerald Green */
    --c-accent: #F47C36;       /* Vibrant Orange */
    --c-bg: #F8FAFC;           /* Off-white/slate bg */
    --c-surface: #FFFFFF;      /* Pure white for cards */
    --c-surface-glass: rgba(255, 255, 255, 0.75);
    
    /* Typography */
    --c-text-main: #1E293B;    /* Very dark slate */
    --c-text-muted: #64748B;   /* Muted slate */
    
    --f-heading: 'Outfit', -apple-system, sans-serif;
    --f-body: 'Inter', -apple-system, sans-serif;
    
    /* Radii & Shadows */
    --rad-sm: 6px;
    --rad-md: 12px;
    --rad-lg: 20px;
    --rad-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
    --shadow-glow: 0 0 20px rgba(0, 184, 115, 0.15); /* Emerald Glow */
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--c-primary), #1E3A8A);
    --grad-accent: linear-gradient(135deg, var(--c-secondary), #10B981);
    
    /* Transitions */
    --trans-fast: 0.15s ease-out;
    --trans-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text-main);
    background-color: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--c-primary);
}

a {
    color: var(--c-secondary);
    text-decoration: none;
    transition: color var(--trans-fast);
}

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

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

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-app {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media(min-width: 992px) {
    .grid-app { grid-template-columns: 350px 1fr; }
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Glassmorphism Panel */
.glass-panel {
    background: var(--c-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--rad-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
    transition: transform var(--trans-spring), box-shadow var(--trans-fast);
}

.glass-panel:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--rad-full);
    font-family: var(--f-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--trans-fast);
    border: none;
}

.btn-primary {
    background: var(--grad-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 184, 115, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 115, 0.4);
    color: #fff;
}

/* Form Controls (Inputs/Selects) */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: var(--rad-md);
    font-family: var(--f-body);
    font-size: 16px;
    color: var(--c-text-main);
    background: #fff;
    transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--c-secondary);
    box-shadow: 0 0 0 4px rgba(0, 184, 115, 0.1);
}

/* Input Addons (e.g. $, %) */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.input-group-prefix {
    position: absolute;
    left: 16px;
    color: var(--c-text-muted);
    font-weight: 600;
}
.input-group-suffix {
    position: absolute;
    right: 16px;
    color: var(--c-text-muted);
    font-weight: 600;
}
.input-group.has-prefix .form-control { padding-left: 32px; }
.input-group.has-suffix .form-control { padding-right: 32px; }

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--c-surface-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    padding: 15px 0;
}

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

.site-brand {
    font-family: var(--f-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--c-primary);
    letter-spacing: -0.5px;
}
.site-brand span { color: var(--c-secondary); }

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation a {
    color: var(--c-text-main);
    font-weight: 500;
    font-size: 15px;
}
.main-navigation a:hover { color: var(--c-secondary); }

/* ==========================================================================
   SPECIFIC VIEWS
   ========================================================================== */

/* Calculator App View */
.calculator-header {
    text-align: center;
    padding: 60px 0 40px;
}
.calculator-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.calculator-header p {
    font-size: 18px;
    color: var(--c-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.calculator-results {
    background: #fff;
    border-radius: var(--rad-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.result-item {
    padding: 20px;
    background: var(--c-bg);
    border-radius: var(--rad-md);
    text-align: center;
}
.result-label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-bottom: 5px;
    font-weight: 600;
}
.result-value {
    font-family: var(--f-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--c-primary);
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

.is-loading {
    opacity: 0.6;
    pointer-events: none;
}
