/*
Theme Name: Mahi Care 24
Theme URI: https://mahicare24.com/
Author: MMCodeX
Author URI: https://mmcodex.com/
Description: Enterprise, production-grade WordPress theme for Mahi Care 24 digital home services ecosystem. Built for speed, security, live worker tracking, and seamless customer, vendor, and worker portal management.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mahi-care-24
Tags: home-services, portal, custom-dashboard, responsive-layout, clean, modern
*/

/* ==========================================================================
   1. DESIGN SYSTEM VARIABLES & TOKENS
   ========================================================================== */
:root {
    /* Brand Primary & Accents */
    --mc-primary: #0f3460;          /* Deep Corporate Navy */
    --mc-primary-dark: #09203f;     /* Dark Navy */
    --mc-primary-light: #1a4d8c;    /* Vibrant Royal Blue */
    --mc-accent: #ff6b35;           /* Energizing Service Orange */
    --mc-accent-hover: #e85924;     /* Deep Orange */
    --mc-accent-subtle: #fff4ed;    /* Warm Orange Glow */
    
    /* Neutrals & Surfaces */
    --mc-bg: #f8fafc;               /* Slate Light Gray */
    --mc-surface: #ffffff;          /* Pure White */
    --mc-surface-alt: #f1f5f9;      /* Card Background / Hover */
    --mc-surface-raised: #ffffff;
    --mc-border: #e2e8f0;           /* Subtle Slate Border */
    --mc-border-light: #f1f5f9;
    
    /* Typography Colors */
    --mc-text-main: #0f172a;        /* Deep Slate 900 */
    --mc-text-body: #334155;        /* Slate 700 */
    --mc-text-muted: #64748b;       /* Slate 500 */
    --mc-text-light: #94a3b8;       /* Slate 400 */
    --mc-text-inverse: #ffffff;
    
    /* Status Colors */
    --mc-success: #10b981;          /* Emerald Green */
    --mc-success-bg: #ecfdf5;
    --mc-warning: #f59e0b;          /* Amber */
    --mc-warning-bg: #fffbeb;
    --mc-danger: #ef4444;           /* Crimson Red */
    --mc-danger-bg: #fef2f2;
    --mc-info: #0284c7;             /* Sky Blue */
    --mc-info-bg: #f0f9ff;
    
    /* Shadows - Natural & Soft */
    --mc-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --mc-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
    --mc-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
    --mc-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --mc-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.09), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    
    /* Border Radius */
    --mc-radius-sm: 6px;
    --mc-radius-md: 10px;
    --mc-radius-lg: 16px;
    --mc-radius-xl: 24px;
    --mc-radius-full: 9999px;
    
    /* Typography Font Stacks */
    --mc-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --mc-font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
    
    /* Layout Dimensions */
    --mc-container-max: 1240px;
    --mc-header-height: 80px;
}

/* ==========================================================================
   2. CSS RESET & FOUNDATIONS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--mc-bg);
    color: var(--mc-text-body);
    font-family: var(--mc-font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: var(--mc-primary-light);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--mc-text-main);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   3. REUSABLE ATOMIC UTILITIES
   ========================================================================== */
.mc-container {
    width: 100%;
    max-width: var(--mc-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.mc-grid {
    display: grid;
    gap: 1.5rem;
}

.mc-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Button Component System */
.mc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--mc-radius-md);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-decoration: none;
}

.mc-btn:active {
    transform: scale(0.98);
}

.mc-btn-primary {
    background-color: var(--mc-primary);
    color: var(--mc-text-inverse);
    box-shadow: 0 4px 12px rgba(15, 52, 96, 0.2);
}

.mc-btn-primary:hover {
    background-color: var(--mc-primary-dark);
    color: var(--mc-text-inverse);
    box-shadow: 0 6px 16px rgba(15, 52, 96, 0.3);
}

.mc-btn-accent {
    background-color: var(--mc-accent);
    color: var(--mc-text-inverse);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.mc-btn-accent:hover {
    background-color: var(--mc-accent-hover);
    color: var(--mc-text-inverse);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.35);
}

.mc-btn-outline {
    border: 1.5px solid var(--mc-border);
    background-color: var(--mc-surface);
    color: var(--mc-text-main);
}

.mc-btn-outline:hover {
    border-color: var(--mc-primary);
    color: var(--mc-primary);
    background-color: var(--mc-surface-alt);
}

.mc-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.mc-btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.0625rem;
    border-radius: var(--mc-radius-lg);
}

/* Badge System */
.mc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--mc-radius-full);
}

.mc-badge-success { background: var(--mc-success-bg); color: var(--mc-success); }
.mc-badge-warning { background: var(--mc-warning-bg); color: #b45309; }
.mc-badge-danger  { background: var(--mc-danger-bg);  color: var(--mc-danger); }
.mc-badge-info    { background: var(--mc-info-bg);    color: var(--mc-info); }
.mc-badge-primary { background: #e0f2fe; color: var(--mc-primary); }

/* Screen reader accessible utility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
