/* ==========================================================================
   YIGOO Foods — design tokens
   Site: https://yigoofoods.com (B2B wholesale inquiry)
   Source of truth for Codex implementation. Do not hard-code hex elsewhere.

   Locked UI colors follow the designer English drafts
   (tableware/design/detail_b2b_series_overview.jpg, cupset/design/).
   --color-navy is sampled from brand/YIGOO-logo-live.png (circle fill).

   Production fonts: Google Fonts
     Inter (latin WOFF2 subset) for UI + product-card titles; Noto Serif Display (latin WOFF2 subset) for H1/H2 only.
     English pages do not load Noto Sans Arabic. CJK in the company name uses system fonts.
   Mockup fonts: ./fonts/* (copied from /usr/share/fonts/truetype/sand-box/google/)
   ========================================================================== */

/* Latin-only variable WOFF2 subsets. English pages do not download Noto Sans Arabic.
   Chinese company-name glyphs fall back to system CJK (Noto Sans SC / PingFang / YaHei). */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Serif Display";
  src: url("fonts/NotoSerifDisplay-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ----- Color: surfaces ----- */
  --color-bg: #FAF6ED;            /* page background (designer cream) */
  --color-card: #FFFDF8;          /* product/category cards, inputs */
  --color-border: #E6DECD;        /* hairline borders, dividers */
  --color-border-strong: #D4C9B3; /* hover / focus-adjacent */

  /* ----- Color: text ----- */
  --color-text: #4A4032;          /* body and headings (designer dark brown) */
  --color-text-secondary: #8C806E;/* large/decorative only — 3.59:1 on cream, fails AA small text */
  --color-text-muted: #776C5D;    /* small captions, AA sibling of secondary (4.76:1 on --color-bg) */

  /* ----- Color: brand / action (ONE accent: navy) ----- */
  --color-navy: #03324E;          /* header, footer, links, Request a quote. Sampled from logo circle */
  --color-navy-hover: #0A4568;    /* hover / active navy */
  --color-navy-deep: #02283F;     /* footer bottom, pressed */
  --color-on-navy: #FAF6ED;       /* cream text/icons on navy */

  /* ----- Color: product swatches (not UI chrome, not CTA) ----- */
  --color-butter-cream: #F0E4AA;  /* designer swatch; photo median of rice bowl glaze ≈ #E1DBBB */
  --color-sage-mist: #B2C8A0;     /* designer swatch; photo median of rice bowl glaze ≈ #B9C699 */
  --color-sage: #708264;          /* designer sage accent — colorway labels, not buttons */
  --color-model: #7A6A32;         /* model numbers; 4.95:1 on #FAF6ED, 5.25:1 on #FFFDF8, passes AA */

  /* ----- Color: logo-only (do not use as a second CTA) ----- */
  --color-logo-ribbon: #FDDD78;   /* sampled from YIGOO ribbon; mark only */

  /* ----- Color: WhatsApp (functional, not brand accent) ----- */
  --color-whatsapp: #25D366;      /* official green */
  --color-whatsapp-aa: #128C7E;   /* darker official teal if a white glyph is required */
  --color-on-whatsapp: #03324E;   /* navy glyph on official green — 6.73:1, passes UI AA */

  /* ----- Color: feedback ----- */
  --color-focus: #03324E;
  --color-error: #8B3A2A;         /* deep clay red, not bright retail orange */
  --color-success: #2F5D3A;

  /* ----- Typography ----- */
  --font-display: "Noto Serif Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "Source Code Pro", ui-monospace, monospace; /* SKU fallback; Inter is fine if unused */

  --fs-display: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);      /* ~32–44 */
  --fs-h1: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);           /* ~28–40 */
  --fs-h2: clamp(1.5rem, 1.3rem + 0.6vw, 2rem);            /* ~24–32 */
  --fs-h3: 1.25rem;                                        /* 20 */
  --fs-body: 1rem;                                         /* 16 — do not go smaller for body */
  --fs-small: 0.875rem;                                    /* 14 */
  --fs-caption: 0.8125rem;                                 /* 13 */
  --fs-button: 1rem;

  --lh-display: 1.2;
  --lh-body: 1.6;
  --lh-tight: 1.35;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ----- Spacing (8px grid) ----- */
  --space-2: 0.125rem;
  --space-4: 0.25rem;
  --space-8: 0.5rem;
  --space-12: 0.75rem;
  --space-16: 1rem;
  --space-20: 1.25rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-40: 2.5rem;
  --space-48: 3rem;
  --space-64: 4rem;
  --space-80: 5rem;
  --space-96: 6rem;

  --gutter: clamp(1rem, 2.5vw, 2rem);
  --container: 72rem;             /* 1152px content; page canvas 1440 */
  --header-h: 4.25rem;

  /* ----- Radius ----- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* ----- Shadow (warm, low; matches cream paper) ----- */
  --shadow-sm: 0 1px 2px rgba(74, 64, 50, 0.06);
  --shadow-md: 0 8px 24px rgba(74, 64, 50, 0.08);
  --shadow-lg: 0 16px 40px rgba(74, 64, 50, 0.10);

  /* ----- Buttons ----- */
  --btn-h: 2.75rem;               /* 44px minimum touch target */
  --btn-px: 1.5rem;
  --btn-radius: var(--radius-md);

  /* ----- Motion ----- */
  --ease: 150ms ease;
}

/* Logical-property reminder for future dir="rtl" (ar):
   use margin-inline, padding-inline, inset-inline, text-align: start.
   html[dir="rtl"] { font-family still resolves Noto Sans/Naskh Arabic via the stack. } */
