/**
 * Window Smart 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
	 * ---------------------------------------------------------------- */
	--wsh-blue: #1D8FD1;           /* Primary blue - buttons, links, icons, active nav */
	--wsh-blue-dark: #146FAA;      /* hover / pressed state */
	--wsh-blue-darker: #0f5885;
	--wsh-blue-10: rgba(29, 143, 209, 0.1);
	--wsh-blue-20: rgba(29, 143, 209, 0.2);

	--wsh-navy: #072A44;           /* Secondary navy - CTA band, testimonials, footer */
	--wsh-navy-dark: #041c2e;      /* hover state */
	--wsh-navy-darker: #02121e;
	--wsh-navy-20: rgba(7, 42, 68, 0.2);

	--wsh-green: #5FBF3F;          /* Accent green - highlighted heading words, checkmarks */
	--wsh-green-dark: #4CA32F;
	--wsh-green-10: rgba(95, 191, 63, 0.1);

	--wsh-gold: #FFB020;           /* Star ratings */

	/* ------------------------------------------------------------------
	 * Neutrals
	 * ---------------------------------------------------------------- */
	--wsh-black: #000000;
	--wsh-ink: #0B2230;             /* heading ink */
	--wsh-slate: #1e2b33;           /* input text  */
	--wsh-grey-500: #5C7080;        /* body copy */
	--wsh-grey-300: #a9b8c2;
	--wsh-grey-100: #e4edef;
	--wsh-grey-50: #F2F7FB;
	--wsh-white: #ffffff;

	/* Alpha helpers used on dark (navy) surfaces */
	--wsh-on-dark: rgba(255, 255, 255, 1);
	--wsh-on-dark-70: rgba(255, 255, 255, 0.7);
	--wsh-on-dark-40: rgba(255, 255, 255, 0.4);
	--wsh-hairline: rgba(255, 255, 255, 0.14);

	/* ------------------------------------------------------------------
	 * Semantic aliases
	 * ---------------------------------------------------------------- */
	--wsh-body-bg: var(--wsh-white);
	--wsh-body-color: var(--wsh-grey-500);
	--wsh-heading-color: var(--wsh-ink);
	--wsh-accent: var(--wsh-blue);
	--wsh-accent-contrast: var(--wsh-white);
	--wsh-link: var(--wsh-blue);
	--wsh-link-hover: var(--wsh-navy);
	--wsh-focus-ring: var(--wsh-blue);

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

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

	/* Fluid type scale - min value at 360px, max at 1440px */
	--wsh-fs-display: clamp(2.25rem, 1.3rem + 4.7vw, 3.75rem);  /* 36 -> 60 */
	--wsh-fs-h1: clamp(2rem, 1.1rem + 4.2vw, 4rem);          /* 32 -> 64 */
	--wsh-fs-h2: clamp(1.75rem, 1.2rem + 2.7vw, 3.25rem);        /* 28 -> 52 */
	--wsh-fs-h3: clamp(1.375rem, 1.1rem + 1.4vw, 1.75rem);       /* 22 -> 28 */
	--wsh-fs-h4: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);        /* 18 -> 22 */
	--wsh-fs-h5: 1.25rem;                                         /* 20 - footer col titles */
	--wsh-fs-h6: 1.0625rem;
	--wsh-fs-lead: 1.125rem;
	--wsh-fs-body: 1rem;                                          /* 16 */
	--wsh-fs-sm: 0.875rem;                                        /* 14 - nav links */
	--wsh-fs-xs: 0.8125rem;                                       /* 13 - meta text */
	--wsh-fs-eyebrow: 0.9375rem;                                  /* 15 - section eyebrow */

	--wsh-lh-tight: 1;
	--wsh-lh-heading: 1.18;
	--wsh-lh-snug: 1.45;
	--wsh-lh-body: 1.65;
	--wsh-lh-loose: 1.8;

	--wsh-ls-display: -0.01em;
	--wsh-ls-heading: -0.01em;
	--wsh-ls-tight: 0;
	--wsh-ls-eyebrow: 0.06em;    /* wide-tracked uppercase eyebrow */

	/* ------------------------------------------------------------------
	 * Layout
	 * ---------------------------------------------------------------- */
	--wsh-container: 1280px;
	--wsh-container-narrow: 800px;
	--wsh-gutter: clamp(1.25rem, 0.4rem + 3.6vw, 5rem); /* 20 -> 80 */
	--wsh-topbar-height: 40px;
	--wsh-header-height: 84px;

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

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

	--wsh-border: 1px solid var(--wsh-grey-100);
	--wsh-border-accent: 2px solid var(--wsh-blue);

	--wsh-shadow-sm: 0 1px 2px rgba(11, 34, 48, 0.06);
	--wsh-shadow-md: 0 10px 30px rgba(11, 34, 48, 0.08);
	--wsh-shadow-lg: 0 24px 56px rgba(11, 34, 48, 0.14);

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

	--wsh-z-header: 100;
	--wsh-z-drawer: 200;
	--wsh-z-overlay: 150;

	/* ------------------------------------------------------------------
	 * Gradients
	 * ---------------------------------------------------------------- */
	--wsh-gradient-navy: linear-gradient(180deg, #0a3550 0%, #061f33 100%);
}
