/* ==========================================================================
   CSS Custom Properties / Design Tokens
   ========================================================================== */

:root {
    --color-primary-dark: #1B365D;
    --color-accent: #2563EB;
    --color-accent-hover: #1D4ED8;
    --color-light-blue-bg: #EFF6FF;
    --color-trust-green: #059669;
    --color-text-dark: #111827;
    --color-text-body: #374151;
    --color-text-light: #6B7280;
    --color-white: #ffffff;
    --color-light-gray-bg: #F9FAFB;
    --color-border: #E5E7EB;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    --container-max-width: 1140px;
    --header-height: 72px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: 0.2s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    font-size: var(--font-size-base);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: var(--line-height-base);
    color: var(--color-text-body);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--color-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-dark);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.site-main {
    min-height: calc(100vh - var(--header-height) - 300px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background-color: transparent;
    color: var(--color-accent);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

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

/* ==========================================================================
   Entry Content (for non-Elementor pages)
   ========================================================================== */

.entry-header {
    padding: 60px 0 30px;
}

.entry-title {
    font-size: 2.5rem;
}

.entry-meta {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-top: 8px;
}

.entry-content {
    padding-bottom: 60px;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: 120px 20px;
}

.error-404 h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.error-404 p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .entry-header {
        padding: 40px 0 20px;
    }

    .entry-title {
        font-size: 2rem;
    }

    .error-404 {
        padding: 80px 20px;
    }

    .error-404 h1 {
        font-size: 2rem;
    }
}
