/**
 * Yard Ready Home - Design Tokens
 *
 * Central source of truth for colors, type, spacing and other primitives.
 * Every other stylesheet in this theme reads from these custom properties
 * instead of hard-coding values, so a brand refresh only touches this file
 * (or the color pickers under Theme Settings → Brand & Contact).
 */

:root {
	/* ------------------------------------------------------------------
	 * Brand colors
	 * ---------------------------------------------------------------- */
	--yrh-green: #1E4433;           /* Primary green - header, footer, CTAs */
	--yrh-green-dark: #163527;      /* hover / pressed state */
	--yrh-green-darker: #0F261B;
	--yrh-green-10: rgba(30, 68, 51, 0.1);
	--yrh-green-20: rgba(30, 68, 51, 0.2);

	--yrh-navy: #12261D;            /* Deepest surface - topbar, footer bg */
	--yrh-navy-dark: #0A1712;

	--yrh-lime: #C6E24B;            /* Accent lime - small icons, badges */
	--yrh-lime-dark: #AECB33;
	--yrh-lime-10: rgba(198, 226, 75, 0.12);

	--yrh-btn-green: #8DAA28;       /* Button green */
	--yrh-btn-green-dark: #748E20;  /* hover / pressed state */
	--yrh-btn-green-10: rgba(141, 170, 40, 0.12);

	--yrh-heading-accent: #C5FC06;  /* Highlighted heading words */

	--yrh-gold: #ffb020;            /* Star ratings */

	/* ------------------------------------------------------------------
	 * Neutrals
	 * ---------------------------------------------------------------- */
	--yrh-black: #000000;
	--yrh-ink: #12261D;              /* heading ink */
	--yrh-slate: #1c2b22;            /* input text  */
	--yrh-grey-500: #5B6B62;         /* body copy */
	--yrh-grey-300: #A8B6AE;
	--yrh-grey-100: #E4EBE3;
	--yrh-grey-50: #F2F6F1;
	--yrh-white: #ffffff;

	/* Alpha helpers used on dark (green) surfaces */
	--yrh-on-dark: rgba(255, 255, 255, 1);
	--yrh-on-dark-70: rgba(255, 255, 255, 0.72);
	--yrh-on-dark-40: rgba(255, 255, 255, 0.4);
	--yrh-hairline: rgba(255, 255, 255, 0.14);

	/* ------------------------------------------------------------------
	 * Semantic aliases
	 * ---------------------------------------------------------------- */
	--yrh-body-bg: var(--yrh-white);
	--yrh-body-color: var(--yrh-grey-500);
	--yrh-heading-color: var(--yrh-ink);
	--yrh-accent: var(--yrh-green);
	--yrh-accent-contrast: var(--yrh-white);
	--yrh-link: var(--yrh-green);
	--yrh-link-hover: var(--yrh-lime-dark);
	--yrh-focus-ring: var(--yrh-green);

	/* ------------------------------------------------------------------
	 * Typography  (Inter)
	 * ---------------------------------------------------------------- */
	--yrh-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, "Helvetica Neue", Arial, sans-serif;
	--yrh-font-heading: var(--yrh-font-sans);
	--yrh-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

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

	/* Fluid type scale - min value at 360px, max at 1440px */
	--yrh-fs-display: clamp(2.1rem, 1.2rem + 4.5vw, 3.5rem);
	--yrh-fs-h1: clamp(2rem, 1.1rem + 4.2vw, 3.75rem);   /* 32px -> 60px */
	--yrh-fs-h2: clamp(1.85rem, 1.1rem + 3.5vw, 3.375rem); /* 29.6px -> 54px */
	--yrh-fs-h3: clamp(1.3rem, 1.05rem + 1.2vw, 1.625rem);
	--yrh-fs-h4: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
	--yrh-fs-h5: 1.1875rem;
	--yrh-fs-h6: 1.0625rem;
	--yrh-fs-lead: 1.125rem;
	--yrh-fs-body: 1.125rem;
	--yrh-fs-sm: 0.875rem;
	--yrh-fs-xs: 0.8125rem;
	--yrh-fs-eyebrow: 0.875rem;

	--yrh-lh-tight: 1;
	--yrh-lh-heading: 1.22;
	--yrh-lh-snug: 1.45;
	--yrh-lh-body: 1.65;
	--yrh-lh-loose: 1.8;

	--yrh-ls-display: -0.01em;
	--yrh-ls-heading: -0.01em;
	--yrh-ls-tight: 0;
	--yrh-ls-eyebrow: 0.08em;

	/* ------------------------------------------------------------------
	 * Layout
	 * ---------------------------------------------------------------- */
	--yrh-container: 1280px;
	--yrh-container-narrow: 800px;
	--yrh-gutter: clamp(1.25rem, 0.4rem + 3.6vw, 5rem);
	--yrh-topbar-height: 42px;
	--yrh-header-height: 88px;

	/* ------------------------------------------------------------------
	 * Spacing scale (4px base)
	 * ---------------------------------------------------------------- */
	--yrh-space-1: 0.25rem;
	--yrh-space-2: 0.5rem;
	--yrh-space-3: 0.75rem;
	--yrh-space-4: 1rem;
	--yrh-space-5: 1.25rem;
	--yrh-space-6: 1.5rem;
	--yrh-space-8: 2rem;
	--yrh-space-10: 2.5rem;
	--yrh-space-12: 3rem;
	--yrh-space-16: 4rem;
	--yrh-space-20: 5rem;
	--yrh-space-24: 6rem;

	/* ------------------------------------------------------------------
	 * Radii, borders, shadows, motion
	 * ---------------------------------------------------------------- */
	--yrh-radius-sm: 8px;
	--yrh-radius-md: 14px;
	--yrh-radius-lg: 20px;
	--yrh-radius-xl: 28px;
	--yrh-radius-pill: 50px;
	--yrh-radius-circle: 999px;

	--yrh-border: 1px solid var(--yrh-grey-100);
	--yrh-border-accent: 2px solid var(--yrh-green);

	--yrh-shadow-sm: 0 1px 2px rgba(18, 38, 29, 0.08);
	--yrh-shadow-md: 0 10px 30px rgba(18, 38, 29, 0.1);
	--yrh-shadow-lg: 0 24px 56px rgba(18, 38, 29, 0.16);

	--yrh-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
	--yrh-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

	--yrh-z-header: 100;
	--yrh-z-drawer: 200;
	--yrh-z-overlay: 150;
}
