/*
Theme Name: Esdras Polanco Portfolio
Theme URI: https://esdraspolanco.com
Author: Esdras Polanco
Author URI: https://esdraspolanco.com
Description: Custom WordPress theme for Esdras Polanco — digital solutions, automation and AI consulting for small businesses. Portfolio-driven, admin-friendly, built to 2026 standards.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: esdraspolanco
Tags: portfolio, custom-post-type, one-column, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, dark-mode, responsive-layout, translation-ready
*/

/* ==========================================================================
   Design tokens — do not hardcode these values elsewhere; reference the vars.
   ========================================================================== */
:root {
    /* Color palette */
    --color-primary: #1a2a3a;      /* dark navy */
    --color-secondary: #3b82f6;    /* blue */
    --color-accent: #f59e0b;       /* warm orange */
    --color-bg: #f8fafc;           /* light background */
    --color-bg-alt: #ffffff;
    --color-text: #0f172a;         /* dark text */
    --color-text-light: #64748b;
    --color-border: #e2e8f0;
    --color-success: #16a34a;
    --color-danger: #dc2626;

    /* Dark mode overrides (applied via [data-theme="dark"]) */
    --color-bg-dark: #0f172a;
    --color-bg-alt-dark: #16233a;
    --color-text-dark: #f1f5f9;
    --color-text-light-dark: #94a3b8;
    --color-border-dark: #24344d;

    /* Typography */
    --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.75rem;
    --fs-4xl: 3.5rem;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2.5rem;
    --space-6: 4rem;
    --space-7: 6rem;

    /* Layout */
    --container-width: 1200px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-blur: 14px;

    /* Motion */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --color-bg: var(--color-bg-dark);
    --color-bg-alt: var(--color-bg-alt-dark);
    --color-text: var(--color-text-dark);
    --color-text-light: var(--color-text-light-dark);
    --color-border: var(--color-border-dark);
    --glass-bg: rgba(22, 35, 58, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
