/* ==========================================================================
   Huzaifa Tech — Design tokens
   "Salt & Pepper": white canvas, charcoal ink, two neutral greys. Monochrome.
   Edit brand colours, type and spacing here. Every other file reads these.
   Layout concept: centered 1200px column, lavish vertical rhythm, borders
   (not shadows) define containers, motion carries the personality.
   ========================================================================== */

/* ---- Self-hosted variable fonts (assets/fonts, SIL Open Font License) --- */
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light; /* single, deliberate light theme (white + charcoal sections) */

  /* ---- Brand palette: Salt & Pepper (the four foundation colours) -------- */
  --color-white: #FFFFFF;        /* main backgrounds, cards */
  --color-gray-light: #D4D4D4;   /* borders, separators, subtle surfaces */
  --color-gray-medium: #B3B3B3;  /* secondary surfaces, muted UI (not text on white) */
  --color-charcoal: #2B2B2B;     /* text, dark sections, primary buttons */

  /* Extra neutrals, only where readability needs them */
  --color-charcoal-hover: #444444;  /* primary button hover */
  --color-surface-soft: #F5F5F5;    /* alternate sections: a whisper of grey, not a block of it */
  --color-text-secondary: #555555;  /* 7.5:1 on white, 6.9:1 on --color-surface-soft */

  /* ---- Semantic roles ----------------------------------------------------
     Overridden at runtime from Huzaifa Tech → Colors & Typography.        */
  --color-background: var(--color-white);
  --color-surface: var(--color-white);
  --color-surface-muted: var(--color-gray-light);
  --color-text-primary: var(--color-charcoal);
  --color-border: var(--color-gray-light);
  --color-button-primary: var(--color-charcoal);
  --color-button-primary-hover: var(--color-charcoal-hover);
  --color-button-text: var(--color-white);

  /* Short names used across the theme (kept so every component keeps working) */
  --bg: var(--color-background);          /* page canvas */
  --bg-alt: var(--color-surface-soft);    /* alternating sections, cards */
  --ink: var(--color-charcoal);           /* text, headings, dark sections, primary buttons */
  --border: var(--color-border);          /* hairline borders and dividers */
  --muted: var(--color-text-secondary);   /* secondary text */
  --meta: var(--color-gray-medium);       /* interactive outlines, hover borders (never body text) */
  --on-ink: var(--color-white);           /* text placed on charcoal */

  /* ---- Accent: monochrome. The former colour gradient is now a quiet
     charcoal-to-graphite sheen (every stop ≥ 4.5:1 on white), so key words,
     label bars and progress lines keep their depth without adding colour. */
  --grad-1: #2B2B2B;
  --grad-2: #3D3D3D;
  --grad-3: #555555;
  --grad-4: #6B6B6B;
  --grad: linear-gradient(90deg, var(--grad-1) 0%, var(--grad-2) 34%, var(--grad-3) 68%, var(--grad-4) 100%);
  --grad-v: linear-gradient(180deg, var(--grad-1) 0%, var(--grad-2) 34%, var(--grad-3) 68%, var(--grad-4) 100%);
  --accent: var(--color-charcoal);        /* dots, bullets, active markers */
  --selection-bg: var(--color-charcoal);  /* selected text: charcoal highlight, white text */
  --selection-fg: var(--color-white);
  --focus: var(--color-charcoal);         /* focus rings */

  /* Transparent tints of charcoal (43,43,43) */
  --ink-3: rgba(43, 43, 43, 0.03);
  --ink-4: rgba(43, 43, 43, 0.05);
  --ink-40: rgba(43, 43, 43, 0.4);
  --ink-80: rgba(43, 43, 43, 0.8);
  --cream-12: rgba(255, 255, 255, 0.14); /* hairlines on charcoal */
  --cream-60: rgba(255, 255, 255, 0.7);  /* secondary text on charcoal (≈ 7:1) */

  /* Semantic (form feedback only) */
  --success: #16A34A;
  --warning: #EAB308;
  --danger: #DC2626;

  /* Soft neutral aura behind the hero / dark CTA: grey light, not colour */
  --wash-coral: var(--color-gray-medium);
  --wash-pink: var(--color-gray-light);
  --wash-orange: var(--color-gray-light);
  --wash-lavender: var(--color-gray-medium);
  --wash-sky: var(--color-gray-light);
  --wash-opacity: 0.09;

  /* Card surfaces: always white; a grey border + soft shadow separates them
     from white or soft-grey sections. (Names kept from the original design.) */
  --tone-cream: var(--color-surface);
  --tone-pink: var(--color-surface);
  --tone-pink-2: var(--color-surface);
  --tone-lavender: var(--color-surface);
  --tone-peach: var(--color-surface);
  --tone-sky: var(--color-surface);

  /* Tool tiles in the step visuals: monochrome */
  --brand-wordpress: var(--color-charcoal);
  --brand-elementor: var(--color-charcoal);
  --brand-woo: var(--color-charcoal);
  --brand-figma: var(--color-charcoal);
  --brand-php: var(--color-charcoal);

  /* ---- Type ------------------------------------------------------------ */
  --font-display: "Figtree", "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Fluid scale (360px → 1440px) */
  --fs-display: clamp(2.6rem, 1.45rem + 5.1vw, 6rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.9vw, 3.75rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --fs-lead: clamp(1.0625rem, 0.99rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.8125rem;

  --track-display: -0.035em;
  --track-heading: -0.025em;
  --track-label: 0.08em;

  /* ---- Shape & depth --------------------------------------------------- */
  --radius-card: 12px;
  --radius-feature: 16px;
  --radius-input: 6px;
  --radius-pill: 9999px;
  --hairline: 1px solid var(--border);
  --glow: 0 4px 12px rgba(43, 43, 43, 0.08);       /* the one soft shadow */
  --shadow-card: 0 1px 2px rgba(43, 43, 43, 0.04), 0 8px 24px rgba(43, 43, 43, 0.06);
  --shadow-lift: 0 2px 4px rgba(43, 43, 43, 0.05), 0 16px 36px rgba(43, 43, 43, 0.10);
  --inset-btn: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.35);

  /* ---- Space ----------------------------------------------------------- */
  --container: 1200px;
  --section-space: clamp(96px, 12vw, 200px);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));

  /* ---- Motion ---------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.25s;
  --dur: 0.6s;
}
