/**
 * Theme Name: NuwairSystems
 * Theme URI: https://nuwairsystems.com
 * Author: Nuwair Systems
 * Author URI: https://nuwairsystems.com
 * Description: A modern, enterprise-grade WordPress theme designed for professional tech companies. Features WooCommerce integration, SEO optimization, performance-focused architecture, and TailwindCSS styling. Built with PHP 8.0+ and modern JavaScript (ES6+).
 * Version: 1.0.0
 * Requires at least: 6.0
 * Tested up to: 6.4
 * Requires PHP: 8.0
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: nuwairsystems
 * Domain Path: /languages
 * Tags: e-commerce, blog, custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, rtl-language-support, theme-options, threaded-comments, translation-ready, two-columns, wide-blocks
 *
 * @package NuwairSystems
 * @since 1.0.0
 */

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# CSS Variables (Design Tokens)
# Base Styles
# Typography
# Layout
# Components
# Utilities
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# CSS Variables (Design Tokens)
--------------------------------------------------------------*/
:root {
    /* Colors - Professional Blues & Grays */
    --ns-primary: #0066cc;
    --ns-primary-dark: #004d99;
    --ns-primary-light: #3399ff;
    --ns-secondary: #1a1a2e;
    --ns-accent: #00d9ff;
    --ns-success: #10b981;
    --ns-warning: #f59e0b;
    --ns-error: #ef4444;
    
    /* Neutral Colors */
    --ns-white: #ffffff;
    --ns-gray-50: #f9fafb;
    --ns-gray-100: #f3f4f6;
    --ns-gray-200: #e5e7eb;
    --ns-gray-300: #d1d5db;
    --ns-gray-400: #9ca3af;
    --ns-gray-500: #6b7280;
    --ns-gray-600: #4b5563;
    --ns-gray-700: #374151;
    --ns-gray-800: #1f2937;
    --ns-gray-900: #111827;
    --ns-black: #000000;
    
    /* Typography */
    --ns-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --ns-font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
    
    /* Font Sizes */
    --ns-text-xs: 0.75rem;
    --ns-text-sm: 0.875rem;
    --ns-text-base: 1rem;
    --ns-text-lg: 1.125rem;
    --ns-text-xl: 1.25rem;
    --ns-text-2xl: 1.5rem;
    --ns-text-3xl: 1.875rem;
    --ns-text-4xl: 2.25rem;
    --ns-text-5xl: 3rem;
    
    /* Spacing */
    --ns-spacing-xs: 0.25rem;
    --ns-spacing-sm: 0.5rem;
    --ns-spacing-md: 1rem;
    --ns-spacing-lg: 1.5rem;
    --ns-spacing-xl: 2rem;
    --ns-spacing-2xl: 3rem;
    --ns-spacing-3xl: 4rem;
    
    /* Border Radius */
    --ns-radius-sm: 0.25rem;
    --ns-radius-md: 0.375rem;
    --ns-radius-lg: 0.5rem;
    --ns-radius-xl: 0.75rem;
    --ns-radius-full: 9999px;
    
    /* Shadows */
    --ns-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --ns-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --ns-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --ns-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --ns-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --ns-transition-fast: 150ms ease;
    --ns-transition-normal: 300ms ease;
    --ns-transition-slow: 500ms ease;
    
    /* Z-Index Scale */
    --ns-z-dropdown: 1000;
    --ns-z-sticky: 1020;
    --ns-z-fixed: 1030;
    --ns-z-modal-backdrop: 1040;
    --ns-z-modal: 1050;
    --ns-z-popover: 1060;
    --ns-z-tooltip: 1070;
}

/*--------------------------------------------------------------
# Base Styles
--------------------------------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--ns-font-sans);
    font-size: var(--ns-text-base);
    line-height: 1.6;
    color: var(--ns-gray-800);
    background-color: var(--ns-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ns-gray-900);
}

h1 { font-size: var(--ns-text-4xl); }
h2 { font-size: var(--ns-text-3xl); }
h3 { font-size: var(--ns-text-2xl); }
h4 { font-size: var(--ns-text-xl); }
h5 { font-size: var(--ns-text-lg); }
h6 { font-size: var(--ns-text-base); }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--ns-primary);
    text-decoration: none;
    transition: color var(--ns-transition-fast);
}

a:hover {
    color: var(--ns-primary-dark);
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.ns-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ns-spacing-md);
    padding-right: var(--ns-spacing-md);
}

.ns-section {
    padding-top: var(--ns-spacing-3xl);
    padding-bottom: var(--ns-spacing-3xl);
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/
/* Buttons */
.ns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: var(--ns-text-sm);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border-radius: var(--ns-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--ns-transition-fast);
}

.ns-btn-primary {
    background-color: var(--ns-primary);
    color: var(--ns-white);
}

.ns-btn-primary:hover {
    background-color: var(--ns-primary-dark);
    color: var(--ns-white);
}

.ns-btn-secondary {
    background-color: transparent;
    color: var(--ns-primary);
    border-color: var(--ns-primary);
}

.ns-btn-secondary:hover {
    background-color: var(--ns-primary);
    color: var(--ns-white);
}

/* Cards */
.ns-card {
    background-color: var(--ns-white);
    border-radius: var(--ns-radius-lg);
    box-shadow: var(--ns-shadow);
    overflow: hidden;
    transition: box-shadow var(--ns-transition-normal);
}

.ns-card:hover {
    box-shadow: var(--ns-shadow-lg);
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
.ns-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ns-text-center { text-align: center; }
.ns-text-left { text-align: left; }
.ns-text-right { text-align: right; }

/* Font display for custom fonts */
@font-face {
    font-display: swap;
}
