/*
Theme Name: KnowledgePro
Theme URI: https://www.chinasdestiny.com/
Author: China's Destiny Team
Author URI: https://www.chinasdestiny.com/
Description: A professional WordPress theme designed for knowledge payment and online consulting websites. Deep integration with WooCommerce, LearnDash LMS, and Amelia booking systems. Features a clean, trustworthy design with deep blue and white color scheme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: knowledge-pro
Tags: e-commerce, education, lms, booking, consulting, knowledge-payment, woocommerce, learndash, amelia, clean, professional, responsive, accessibility-ready
Requires at least: 6.4
Requires PHP: 8.0
*/

/* ============================================================
   TABLE OF CONTENTS
   ============================================================

   1.0 - CSS Variables & Custom Properties
   2.0 - Reset & Base Styles
   3.0 - Typography
   4.0 - Layout & Grid
   5.0 - Header & Navigation
   6.0 - Hero Section
   7.0 - WooCommerce Styles
   8.0 - LearnDash LMS Styles
   9.0 - Amelia Booking Styles
   10.0 - Footer
   11.0 - Responsive Design
   12.0 - Utilities

   ============================================================ */

/* 1.0 - CSS Variables & Custom Properties */
:root {
    /* Primary Colors */
    --color-primary: #1a365d;          /* Deep Blue */
    --color-primary-dark: #0f2544;     /* Darker Blue */
    --color-primary-light: #2c5282;    /* Lighter Blue */

    /* Secondary Colors */
    --color-secondary: #3182ce;        /* Medium Blue */
    --color-accent: #63b3ed;           /* Light Accent Blue */

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-gray-50: #f7fafc;
    --color-gray-100: #edf2f7;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e0;
    --color-gray-400: #a0aec0;
    --color-gray-500: #718096;
    --color-gray-600: #4a5568;
    --color-gray-700: #2d3748;
    --color-gray-800: #1a202c;
    --color-gray-900: #171923;

    /* Status Colors */
    --color-success: #48bb78;
    --color-warning: #ed8936;
    --color-error: #f56565;
    --color-info: #4299e1;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    --spacing-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Container Width */
    --container-max: 1280px;
    --container-narrow: 768px;
}

/* 2.0 - Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
}

/* 3.0 - Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--spacing-4) 0;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin: 0 0 var(--spacing-4) 0;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* 4.0 - Layout & Grid */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

.container-narrow {
    max-width: var(--container-narrow);
}

/* 5.0 - Header & Navigation */
.site-header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-4) 0;
}

/* 11.0 - Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }
}

/* 12.0 - Utilities */
.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;
}
