/*
Theme Name: HappyAI B2B
Theme URI: https://happyai.com
Author: HappyAI Team
Author URI: https://happyai.com
Description: A premium WordPress theme for HappyAI's B2B website - Technology with Warmth, Culture with Soul. Features Paris Orientalism × Modern Zen design, custom Gutenberg blocks, and comprehensive ToB solutions showcase.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: happyai
Domain Path: /languages
Tags: business, one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, threaded-comments, translation-ready, accessibility-ready

HappyAI B2B WordPress Theme, (C) 2025 HappyAI
HappyAI B2B is distributed under the terms of the GNU GPL.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 CSS Custom Properties (Design Tokens)
2.0 Reset & Base Styles
3.0 Typography
4.0 Layout & Grid
5.0 Accessibility
6.0 Utility Classes
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 CSS Custom Properties (Design Tokens)
--------------------------------------------------------------*/
:root {
  /* Brand Colors - Paris Orientalism × Modern Zen */
  --color-primary: #E76F51;        /* 柔火橙 - Soft Fire Orange */
  --color-accent: #FFB8C6;         /* 珊瑚粉 - Coral Pink */
  --color-champagne: #F4D7B2;      /* 米杏金 - Champagne Gold */
  --color-ivory: #FFF7F4;          /* 象牙白 - Ivory */
  --color-text-dark: #3A2E29;      /* 深色文字 */
  --color-text-medium: #6B5D57;    /* 中性文字 */
  --color-text-light: #A89C97;     /* 浅色文字 */
  --color-white: #FFFFFF;
  --color-black: #1A1410;
  
  /* Gradients */
  --gradient-warm: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  --gradient-champagne: linear-gradient(135deg, var(--color-champagne) 0%, var(--color-ivory) 100%);
  
  /* Spacing Scale */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */
  
  /* Typography */
  --font-body: 'Noto Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  --font-chinese: 'Noto Serif SC', 'Source Han Serif SC', serif;
  
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 2.5rem;    /* 40px */
  --font-size-5xl: 3rem;      /* 48px */
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Borders & Radius */
  --border-radius-sm: 0.25rem;   /* 4px */
  --border-radius-md: 0.5rem;    /* 8px */
  --border-radius-lg: 1rem;      /* 16px */
  --border-radius-xl: 1.5rem;    /* 24px */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(58, 46, 41, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(58, 46, 41, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(58, 46, 41, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(58, 46, 41, 0.1);
  --shadow-glow: 0 0 20px rgba(231, 111, 81, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --container-max: 1280px;
  --container-narrow: 960px;
  --container-wide: 1440px;
  --container-padding: var(--space-lg);
  
  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-dark);
  background-color: var(--color-ivory);
  overflow-x: hidden;
}

/*--------------------------------------------------------------
3.0 Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
}

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

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

/*--------------------------------------------------------------
4.0 Layout & Grid
--------------------------------------------------------------*/
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

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

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

/*--------------------------------------------------------------
5.0 Accessibility
--------------------------------------------------------------*/
.skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
  z-index: var(--z-tooltip);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--border-radius-md);
}

.skip-link:focus {
  top: var(--space-sm);
  left: var(--space-sm);
}

.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;
  width: 1px;
  word-wrap: normal !important;
}

/*--------------------------------------------------------------
6.0 Utility Classes
--------------------------------------------------------------*/
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.hidden { display: none; }

.fade-in {
  animation: fadeIn var(--transition-slow) ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Typography */
@media (max-width: 768px) {
  :root {
    --font-size-3xl: 1.75rem;   /* 28px */
    --font-size-4xl: 2rem;      /* 32px */
    --font-size-5xl: 2.25rem;   /* 36px */
    --container-padding: var(--space-md);
  }
}



