/* ============================================================
   SteelNoxa design tokens — generated from docs/design-spec.md
   ============================================================ */
:root {
  /* ---- Color: primary (cold steel teal) ---- */
  --color-primary-50:  #EAF2F4;
  --color-primary-100: #D3E6EA;
  --color-primary-200: #A7CDD5;
  --color-primary-300: #73ADBB;
  --color-primary-400: #408C9D;
  --color-primary-500: #216F81;
  --color-primary-600: #175767;
  --color-primary-700: #123F4B;
  --color-primary-800: #0E303A;
  --color-primary-900: #0A222A;

  /* ---- Color: accent (champagne PVD) ----
     定稿用法：香槟金仅用于 CTA 按钮、询价/交期关键词（Get a Quote / lead time
     等文案词，不发布具体价格）与图标描边；logo 为纯 #123F4B 文字，不做渐变。
     accent-500 白底 3.09:1，只能作装饰线/图标，不得承载正文。 */
  --color-accent-100: #F7F0E5;
  --color-accent-200: #D4B27A;
  --color-accent-300: #C9A96A;
  --color-accent-500: #B08D57;
  --color-accent-700: #8A6A3B;
  --color-accent-800: #7A5C31;

  /* ---- Color: metal finishes (PVD surface palette) ----
     不锈钢表面处理多样性色板。用于分类身份色、装饰线、色板展示，
     不承载正文（正文一律用 neutral-800 保证对比度）。 */
  --color-metal-brushed:  #9FB0B8;  /* 拉丝银 */
  --color-metal-mirror:   #C7D3D9;  /* 镜面银 */
  --color-metal-gold:     #C9A227;  /* 钛金 PVD */
  --color-metal-rose:     #B86B5E;  /* 玫瑰金 */
  --color-metal-black:    #4A555C;  /* 黑钛 */
  --color-metal-champagne:#C4A265;  /* 香槟金 */
  --metal-gold:           #C9A227;
  --metal-rose:           #B86B5E;
  --metal-brushed:        #9FB0B8;
  --metal-black:          #4A555C;
  --metal-champagne:      #C4A265;
  --metal-mirror:         #C7D3D9;

  /* ---- Color: neutral (cool silver) ---- */
  --color-neutral-0:   #FFFFFF;
  --color-neutral-50:  #F6F8F9;
  --color-neutral-100: #EDF1F3;
  --color-neutral-200: #DCE3E7;
  --color-neutral-300: #C3CFD5;
  --color-neutral-400: #8496A0;
  --color-neutral-500: #5F727D;
  --color-neutral-600: #52636D;
  --color-neutral-700: #3D4C55;
  --color-neutral-800: #26353D;
  --color-neutral-900: #14232B;

  /* ---- Color: WhatsApp ---- */
  --color-wa:        #0B7A4B;
  --color-wa-hover:  #075E3B;
  --color-wa-active: #065235;
  --color-wa-tint:   #E8F5ED;

  /* ---- Color: semantic ---- */
  --color-success:     #1E7A46;
  --color-success-bg:  #E8F5ED;
  --color-warning:     #8A5A00;
  --color-warning-bg:  #FFF4DE;
  --color-danger:      #B42318;
  --color-danger-bg:   #FEF0EE;
  --color-info:        #175676;
  --color-info-bg:     #E8F2F8;

  /* ---- Color: functional ---- */
  --color-bg-page:       #FFFFFF;
  --color-bg-alt:        #F6F8F9;
  --color-bg-inverse:    #0A222A;
  --color-bg-card:       #FFFFFF;
  --color-bg-input:      #FFFFFF;
  --color-border:        #DCE3E7;
  --color-border-strong: #788B95;
  --color-border-inverse: #3D4C55;
  --color-focus:         #216F81;
  --color-scrim:         rgba(10, 34, 42, .56);
  --color-shadow:        rgba(10, 34, 42, .10);

  /* ---- Typography: families ---- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Leelawadee UI", "Noto Sans Thai", "Thonburi",
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
               "Liberation Mono", monospace;

  /* ---- Typography: scale (desktop defaults) ---- */
  --fs-h1: 52px;   --lh-h1: 1.15;  --fw-h1: 700;  --ls-h1: -0.02em;
  --fs-h2: 36px;   --lh-h2: 1.20;  --fw-h2: 700;  --ls-h2: -0.015em;
  --fs-h3: 24px;   --lh-h3: 1.30;  --fw-h3: 600;  --ls-h3: -0.01em;
  --fs-h4: 19px;   --lh-h4: 1.40;  --fw-h4: 600;  --ls-h4: 0;
  --fs-lead: 18px; --lh-lead: 1.75;
  --fs-body: 16px; --lh-body: 1.75;
  --fs-caption: 14px; --lh-caption: 1.60;
  --fs-micro: 12px;   --lh-micro: 1.50;  --ls-micro: .08em;
  --fs-button: 15px;
  --fs-label: 14px;

  /* ---- Spacing ---- */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-6: 24px;  --sp-8: 32px;  --sp-12: 48px; --sp-16: 64px;
  --sp-24: 96px; --sp-32: 128px;

  /* ---- Layout ---- */
  --section-y: 48px;
  --container-max: 1200px;
  --container-narrow: 800px;
  --measure-body: 68ch;
  --measure-lead: 52ch;
  --gutter: 24px;
  --pad-x: 24px;
  --card-pad: 24px;
  --grid-cols: 12;

  /* ---- Radius / border / shadow ---- */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 999px;
  --border-thin: 1px solid var(--color-border);
  --shadow-card: 0 2px 8px rgba(10, 34, 42, .04);
  --shadow-card-hover: 0 8px 24px rgba(10, 34, 42, .10);
  --shadow-bar: 0 -4px 16px rgba(10, 34, 42, .12);

  /* ---- Size ---- */
  --header-h: 72px;
  --header-h-mobile: 60px;
  --cta-bar-h: 64px;
  --control-h: 48px;
  --touch-min: 44px;
  --icon-size: 18px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;

  /* ---- Z-index ---- */
  --z-header: 40;
  --z-cta-bar: 50;
  --z-drawer: 60;
  --z-lightbox: 70;
  --z-toast: 80;

  /* ---- Breakpoints (documentation / JS only; NOT usable in @media) ---- */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
}

/* ---- Responsive token overrides ---- */
@media (max-width: 639px) {
  :root {
    --fs-h1: 34px; --lh-h1: 1.22;
    --fs-h2: 28px; --lh-h2: 1.25;
    --fs-h3: 22px; --lh-h3: 1.32;
    --fs-h4: 18px; --lh-h4: 1.45;
    --fs-lead: 17px;
    --lh-body: 1.80;
    --section-y: 32px;
    --pad-x: 20px;
    --gutter: 16px;
    --card-pad: 20px;
    --header-h: var(--header-h-mobile);
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  :root { --fs-h1: 42px; --section-y: 32px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root { --fs-h1: 42px; --fs-h2: 32px; --section-y: 40px; }
}

@media (min-width: 1280px) {
  :root { --pad-x: 32px; }
}

/* ---- Language-specific typography overrides ---- */
:root[lang="th"] {
  --lh-body: 1.85;
  --lh-h1: 1.28;
  --ls-h1: 0;
  --ls-h2: 0;
  --ls-h3: 0;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0.01ms; --dur-base: 0.01ms; }
}
