/*
Theme Name: FastCat Industrial Integrity
Theme URI: https://fastcat-demo.com
Description: WordPress theme with WooCommerce & Custom Elementor Widgets styled after demo3.
Version: 1.0.0
Author: DigiSphere CA
License: GNU General Public License v2 or later
Text Domain: fastcat-industrial
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=block');
@import "tailwindcss";

@theme {
  /* ===== Colors (Industrial Integrity — Safety Orange + Steel Slate) =====
     Anchored on locked primary #e88a2d (amber-orange). Supporting hue is a
     deep steel-slate; surfaces are warm stone so neutrals share the orange's
     temperature. Green is reserved for in-stock / verified semantics, red
     for errors — everything else lives in the orange ↔ steel-slate axis. */

  /* Surface family — warm stone */
  --color-surface: #faf8f4;
  --color-surface-dim: #dcd6c9;
  --color-surface-bright: #faf8f4;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #f4f1ea;
  --color-surface-container: #ede9e0;
  --color-surface-container-high: #e7e2d8;
  --color-surface-container-highest: #e0dacd;
  --color-surface-variant: #e0dacd;
  --color-surface-muted: #f5f2eb;
  --color-on-surface: #201c16;
  --color-on-surface-variant: #5c5347;          /* warm taupe — muted body text */
  --color-inverse-surface: #36312a;
  --color-inverse-on-surface: #f5f2eb;
  --color-background: #faf8f4;
  --color-on-background: #201c16;

  /* Primary (Safety Orange — LOCKED) */
  --color-primary: #e88a2d;
  --color-on-primary: #ffffff;
  --color-primary-container: #fff0e0;           /* soft cream-peach — hovers, badges, selected */
  --color-on-primary-container: #6d3a00;
  --color-primary-fixed: #ffe0c2;
  --color-primary-fixed-dim: #ffb77b;
  --color-on-primary-fixed: #2e1500;
  --color-on-primary-fixed-variant: #6d3a00;
  --color-inverse-primary: #ffb77b;
  --color-surface-tint: #e88a2d;

  /* Secondary (Steel-Slate — headings, labels, links) */
  --color-secondary: #2f5d72;
  --color-on-secondary: #ffffff;
  --color-secondary-container: #cfe4ee;
  --color-on-secondary-container: #123b4c;
  --color-secondary-fixed: #cfe4ee;
  --color-secondary-fixed-dim: #8fb6c8;
  --color-on-secondary-fixed: #06212c;
  --color-on-secondary-fixed-variant: #244c5e;

  /* Tertiary (Deep Slate — footer + in-stock chip family) */
  --color-tertiary: #1f4d61;
  --color-on-tertiary: #ffffff;
  --color-tertiary-container: #bcdcea;
  --color-on-tertiary-container: #0c3140;
  --color-tertiary-fixed: #cfe4ee;              /* pale steel — in-stock chip bg */
  --color-tertiary-fixed-dim: #8fb6c8;
  --color-on-tertiary-fixed: #14323d;           /* deep slate — FOOTER bg + in-stock chip text */
  --color-on-tertiary-fixed-variant: #244c5e;

  /* Accents */
  --color-eco-accent: #a8e0bd;                  /* soft mint — verified/in-stock micro-signals */
  --color-success: #2D8A4E;

  /* Error */
  --color-error: #D32F2F;
  --color-on-error: #ffffff;
  --color-error-container: #ffdad6;
  --color-on-error-container: #93000a;

  /* Outlines — warm-neutral gray (not tan, not blue) */
  --color-outline: #83786a;
  --color-outline-variant: #d6cdbf;

  /* ===== Typography ===== */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Inter", system-ui, sans-serif;

  --text-display-lg: 48px;
  --text-display-lg--line-height: 56px;
  --text-display-lg--letter-spacing: -0.02em;
  --text-display-lg--font-weight: 700;

  --text-headline-lg: 32px;
  --text-headline-lg--line-height: 40px;
  --text-headline-lg--letter-spacing: -0.01em;
  --text-headline-lg--font-weight: 700;

  --text-headline-lg-mobile: 28px;
  --text-headline-lg-mobile--line-height: 36px;
  --text-headline-lg-mobile--font-weight: 700;

  --text-headline-md: 24px;
  --text-headline-md--line-height: 32px;
  --text-headline-md--font-weight: 600;

  --text-headline-sm: 20px;
  --text-headline-sm--line-height: 28px;
  --text-headline-sm--font-weight: 600;

  --text-body-lg: 18px;
  --text-body-lg--line-height: 28px;
  --text-body-lg--font-weight: 400;

  --text-body-md: 16px;
  --text-body-md--line-height: 24px;
  --text-body-md--font-weight: 400;

  --text-body-sm: 14px;
  --text-body-sm--line-height: 20px;
  --text-body-sm--font-weight: 400;

  --text-label-lg: 14px;
  --text-label-lg--line-height: 20px;
  --text-label-lg--letter-spacing: 0.05em;
  --text-label-lg--font-weight: 600;

  --text-label-md: 12px;
  --text-label-md--line-height: 16px;
  --text-label-md--font-weight: 500;

  /* ===== Radii ===== */
  --radius-sm: 0.125rem;
  --radius: 0.25rem;      /* buttons, inputs */
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;    /* product/feature cards */
  --radius-xl: 0.75rem;   /* hero/large feature cards */
  --radius-full: 9999px;  /* pills + circles */
  --radius-pill: 9999px;

  /* ===== Spacing / Layout ===== */
  --container-max: 1280px;
  --spacing-base: 8px;
  --spacing-gutter: 24px;
  --spacing-margin-mobile: 16px;
  --spacing-margin-desktop: 48px;
  --spacing-stack-xs: 4px;
  --spacing-stack-sm: 12px;
  --spacing-stack-md: 24px;
  --spacing-stack-lg: 48px;
  --spacing-stack-xl: 80px;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--color-background);
  color: var(--color-on-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

/* ===== Material Symbols ===== */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  user-select: none;
}
.material-symbols-outlined.icon-fill,
.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
/* Slow-network FOUT guard: until the icon font is confirmed loaded, collapse each
   icon to a 1em box and hide its ligature text so "shopping_cart"/"chevron_right"
   never flash and the layout doesn't break. Gated on .fonts-loading (set by the
   inline head script) so no-JS still renders icons via font-display: block. */
html.fonts-loading .material-symbols-outlined {
  display: inline-block;
  width: 1em;
  height: 1em;
  overflow: hidden;
  color: transparent;
}

/* Clickable controls get a pointer cursor (Tailwind v4 Preflight doesn't set this). */
button:not(:disabled),
[role="button"],
summary {
  cursor: pointer;
}

/* ===== Ambient shadows (Industrial Integrity elevation) ===== */
.ambient-shadow-1,
.shadow-level-1 {
  box-shadow: 0px 4px 20px rgba(26, 28, 30, 0.05);
}
.ambient-shadow-2,
.shadow-level-2 {
  box-shadow: 0px 8px 30px rgba(26, 28, 30, 0.08);
}

/* ===== Clean input style (1px border, primary focus) ===== */
.clean-input {
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: 0.25rem;
  color: var(--color-on-surface);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.clean-input::placeholder {
  color: var(--color-secondary);
  opacity: 0.7;
}
.clean-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

/* ===== Visually hidden ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== Fade-in-up animation ===== */
.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-surface-container-low); }
::-webkit-scrollbar-thumb { background: var(--color-secondary-fixed-dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-fixed-dim); }

/* ===== Print rules ===== */
@media print {
  .no-print { display: none !important; }
  body { background: white; }
  .print-border { border: 1px solid #c6c6c9; }
}
