/* ==========================================================================
   DABACO OIL — Design Tokens (CSS Variables)
   Runtime source of truth: this file
   Do NOT hard-code these values in other CSS files. Reference the variables.
   ========================================================================== */

:root {
  /* --- Brand --------------------------------------------------------------- */
  --dabaco-orange: #F15A29;
  --dabaco-blue: #1D75BD;

  /* Derived brand shades (for hover/active states only — same hue family) */
  --dabaco-orange-hover: #C5441E;
  --dabaco-orange-active: #A83818;
  --dabaco-blue-hover: #155A95;
  --dabaco-blue-active: #104570;

  /* --- Food-industry accents — nature, warmth, premium feel --------------- */
  --dabaco-green: #009444;
  --dabaco-green-hover: #006B31;
  --dabaco-gold: var(--dabaco-blue); /* legacy quality/corporate accent */
  --dabaco-cream: #FAF7F0;         /* soft warm cream — alternate section backgrounds */
  --dabaco-warm-neutral: #FAFAF8;  /* subtle warm neutral for collection showcase */
  --dabaco-beige: #F5F1E8;         /* natural grain / seed soft beige */

  /* --- Neutral ------------------------------------------------------------- */
  --text-dark: #1D1D1B;
  --text-primary: #333333;
  --text-muted: #666666;
  --text-description: #4b5563;
  --bg-white: #FFFFFF;
  --bg-light: #FAF9F6;
  --border-light: rgba(0, 0, 0, 0.06);

  /* --- Typography ---------------------------------------------------------- */
  --font-family-base: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Font scale (cả web chỉ dùng các cỡ này): desktop h1 42 / h2 30 / h3 26 / h4 22 / h5 20 / h6 18 / body 18 / small 15 px. */
  --fs-h1: 2.625rem;
  --fs-h2: 1.875rem;
  --fs-h2-long: var(--fs-h2);
  --fs-h3: 1.625rem;
  --fs-h4: 1.375rem;
  --fs-h5: 1.25rem;
  --fs-h6: 1.125rem;
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;

  --h1-size: var(--fs-h1);
  --h1-line-height: 1.15;
  --h2-size: var(--fs-h2);
  --h3-size: var(--fs-h3);
  --h4-size: var(--fs-h4);
  --hero-heading-size: 4rem;
  --body-font-size: var(--fs-body);
  --body-line-height: 1.68;
  --text-reading-size: var(--fs-body);
  --text-small-size: var(--fs-small);
  --text-eyebrow-size: var(--fs-small);
  --text-meta-size: var(--fs-small);
  --text-caption-size: var(--fs-small);
  --text-micro-size: var(--fs-small);
  /* Shared page/section roles, based on Contact and Nutrition. */
  --page-heading-size: var(--h1-size);
  --section-heading-size: var(--h2-size);

  /* --- Layout -------------------------------------------------------------- */
  --container-width: 1320px;
  --container-narrow-width: 920px;

  /* --- Spacing / Section rhythm (Phase 8.8) -------------------------------- */
  --section-spacing-major: clamp(80px, 7vw, 110px);
  --section-spacing-medium: clamp(58px, 5.2vw, 80px);
  --section-spacing-small: clamp(42px, 3.8vw, 56px);
  --content-section-spacing: 64px;

  --section-padding-desktop: 96px;
  --section-padding-tablet: 72px;
  --section-padding-mobile: 48px;

  /* Active section padding — overridden per breakpoint in responsive.css */
  --section-padding: var(--section-padding-mobile);

  /* --- Modern Radius Scale (12–20px rounded language) ---------------------- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --radius-default: 10px;
  --radius-max: 20px;

  /* --- Modern Soft Shadows ------------------------------------------------- */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 30px rgba(29, 29, 27, 0.05);
  --shadow-float: 0 16px 40px rgba(29, 29, 27, 0.08);
  --shadow-glow-orange: 0 8px 24px rgba(241, 90, 41, 0.22);

  /* --- Motion -------------------------------------------------------------- */
  --transition-duration: 280ms;
  --transition-easing: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: var(--transition-duration) var(--transition-easing);

  /* --- Header sizing ------------------------------------------------------- */
  --header-height: 66px;         /* mobile 64–68px target */
  --header-height-desktop: 78px; /* desktop 72–80px target */

  /* Top bar above the sticky header (2026-10-06): 30px bar + 1px border on mobile, 34px + 1px from
     768px. It scrolls away, so it only matters for first-screen maths (Hero height), never for
     sticky offsets. header.css sizes .topbar from this token: one source of truth.
     Responsive overrides are centralized in responsive.css */
  --topbar-height: 31px;
}

/* Shared component spacing and warm editorial surfaces. */
:root {
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-12: 48px;
  --border-warm: #e8dfd0;
  --surface-warm: #fffdf8;
  --surface-product: #f6eddd;
  --surface-product-gold: #e8d5a7;

  /* Shared banner height: homepage, Contact and Nutrition (desktop default).
     Responsive overrides are centralized in responsive.css */
  --hero-banner-height: clamp(560px, calc(100svh - var(--header-height-desktop) - var(--topbar-height)), 940px);
}

