/**
 * Erik Korte Theme - Base Styles
 * Bootstrap-first architecture with minimal custom overrides
 * Version 3.0 - December 2025
 *
 * PHILOSOPHY:
 * - Use Bootstrap utilities wherever possible (margins, padding, flex, grid)
 * - Only include custom CSS for brand-specific styles
 * - Page-specific styles go in /pages/*.css
 *
 * LOAD ORDER:
 * 1. Bootstrap 5.3.8 (CDN)
 * 2. This file (base.css)
 * 3. Page-specific CSS (conditional)
 */

/* =============================================================================
   CSS Custom Properties (Brand Colors & Fonts)
   ========================================================================== */

:root {
    /* Brand Colors */
    --theme-color-1: #b2201e; /* Secondary brand color (red) */
    --theme-color1-rgb: 178, 32, 30;
    --theme-color-2: #757577; /* Gray accent */
    --theme-color2-rgb: 117, 117, 119;
    --theme-color3: #dde5eb; /* Light gray/blue */
    --theme-color3-rgb: 221, 229, 235;
    --theme-color4: #3c3950; /* Main brand color & body text */
    --theme-color4-rgb: 60, 57, 80;
    --theme-color5: #504545; /* Dark accent */
    --theme-color5-rgb: 80, 69, 69;
    --theme-gray-1: #F5F5F5;
    --theme-gray-2: #f0f3f2

    /* Backgrounds */
    --theme-bg-dark: #212331;  /* Dark backgrounds */
    --theme-bg-darker: #181828; /* Darker sections */
    --theme-bg-light: var(--theme-gray-2); /* Light backgrounds */
    --body-color: var(--theme-color4); /* Main text color */

    /* Text colors */
    --theme-text-light: #dde5eb; /* Light text on dark */
    --theme-text-muted: #99a9b5; /* Muted text */

    /* Bootstrap overrides */
    --bs-black: #000000;
    --bs-black-rgb: 0, 0, 0;
    --bs-white: #ffffff;
    --bs-white-rgb: 255, 255, 255;

    /* Utilities */
    --color-gradient-1: linear-gradient(90deg, var(--theme-color-1) 0%, var(--theme-color-2) 100%);
    --transition: all 500ms ease;

    /* Typography */
    --main-font: 'Source Sans 3', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
    --font-awesome-free: "Font Awesome 6 Free";
    --font-awesome-brands: "Font Awesome 6 Brands";
}

/* Additional modular CSS files are enqueued separately in functions.php:
 * - 02-reset.css, 03-typography.css, 05-media.css
 * - 07-header.css (header & navigation)
 * - 08-footer.css (footer styles)
 * - 09-components.css (buttons, cards, etc.)
 */

/* =============================================================================
   Global Utilities (Only if Bootstrap doesn't provide them)
   ========================================================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Body defaults */
body {
    font-family: var(--main-font);
    color: var(--theme-color4); /* Main brand color #3c3950 */
    line-height: 1.6;
    background-color: var(--theme-bg-light);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
}

/* Links */
a {
    color: var(--theme-color-1); /* Secondary brand color #b2201e */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--theme-color4); /* Main brand color #3c3950 */
}

/* Images - Use Bootstrap .img-fluid instead of custom styles */
img {
    max-width: 100%;
    height: auto;
}

/* =============================================================================
   Site Layout & Wrappers
   ========================================================================== */

/* Main site wrapper with shadow */
.wrapper,
.site-wrapper {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.11);
    position: relative;
    background-color: #fff;
    padding: 0;
}
@media (min-width: 768px) {
    .content-wrapper {
        padding: 4rem;
    }
}

/* Helper function*/
.d-none {
    display: none !important;
}

/* Spacing between rows inside content wrapper, but NOT for blog posts */
.content-wrapper:not(.blog-posts) .row + .row {
    margin-top: 8rem;
}
/* =============================================================================
   WordPress Block Editor Support
   ========================================================================== */

.alignwide {
    max-width: 1200px;
}

.alignfull {
    max-width: 100%;
}

/* =============================================================================
   Accessibility
   ========================================================================== */

/* Skip to content link (keyboard navigation) */
.skip-link {
    position: absolute;
    top: -999px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--theme-color-1);
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 10px;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Screen reader only text */
.visually-hidden,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =============================================================================
   Print Styles
   ========================================================================== */

@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* =============================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 0.5rem 0.75rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.pagination .page-numbers.current {
    background: #333;
    color: #fff;
    border-color: #333;
}

.pagination .page-numbers:hover:not(.current) {
    background: #e0e0e0;
}

/* Page-specific styles are loaded conditionally via functions.php */