/**
 * Insulation Ready Hub - 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
	 * ---------------------------------------------------------------- */
	--irh-teal: #03A7A9;           /* Primary teal - buttons, links, icons, highlight chip */
	--irh-teal-dark: #0F7B76;      /* hover / pressed state */
	--irh-teal-darker: #0C635F;
	--irh-teal-10: rgba(21, 154, 147, 0.1);
	--irh-teal-15: rgba(21, 154, 147, 0.15);

	--irh-navy: #212E39;           /* Secondary deep navy - dark overlays, footer bottom bar text */
	--irh-navy-dark: #0A2030;

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

	/* ------------------------------------------------------------------
	 * Neutrals
	 * ---------------------------------------------------------------- */
	--irh-black: #000000;
	--irh-ink: #101828;             /* heading ink */
	--irh-grey-600: #48545F;
	--irh-grey-500: #5C6B79;        /* body copy */
	--irh-grey-300: #A7B2BB;
	--irh-grey-100: #E3E9EB;
	--irh-grey-50: #F2F5F6;
	--irh-white: #FFFFFF;

	/* Alpha helpers used on dark/photo surfaces */
	--irh-on-dark: rgba(255, 255, 255, 1);
	--irh-on-dark-80: rgba(255, 255, 255, 0.8);
	--irh-on-dark-60: rgba(255, 255, 255, 0.6);

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

	/* ------------------------------------------------------------------
	 * Typography  (Poppins)
	 * ---------------------------------------------------------------- */
	--irh-font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, "Helvetica Neue", Arial, sans-serif;
	--irh-font-heading: var(--irh-font-sans);

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

	/* Fluid type scale - min value at 360px, max at 1440px */
	--irh-fs-display: clamp(2rem, 1.1rem + 4.3vw, 5rem);   /* 32 -> 54 */
	--irh-fs-h1: clamp(1.875rem, 1.1rem + 3.7vw, 3rem);          /* 30 -> 48 */
	--irh-fs-h2: clamp(1.625rem, 1.15rem + 2.3vw, 3.4rem);     /* 26 -> 38 */
	--irh-fs-h3: clamp(1.25rem, 1.05rem + 0.9vw, 1.5rem);        /* 20 -> 24 */
	--irh-fs-h4: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);         /* 18 -> 20 */
	--irh-fs-lead: 1.125rem;
	--irh-fs-body: 1rem;                                          /* 16 */
	--irh-fs-sm: 0.875rem;                                        /* 14 - nav links */
	--irh-fs-xs: 0.8125rem;                                       /* 13 - meta text */

	--irh-lh-tight: 1.1;
	--irh-lh-heading: 1.25;
	--irh-lh-snug: 1.45;
	--irh-lh-body: 1.7;

	--irh-ls-heading: -0.01em;

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

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

	/* ------------------------------------------------------------------
	 * Radii, borders, shadows, motion
	 * ---------------------------------------------------------------- */
	--irh-radius-sm: 8px;
	--irh-radius-md: 14px;
	--irh-radius-lg: 24px;
	--irh-radius-xl: 32px;
	--irh-radius-pill: 50px;
	--irh-radius-circle: 999px;

	--irh-border: 1px solid var(--irh-grey-100);

	--irh-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
	--irh-shadow-md: 0 10px 30px rgba(16, 24, 40, 0.08);
	--irh-shadow-lg: 0 24px 56px rgba(16, 24, 40, 0.16);

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

	--irh-z-header: 100;
	--irh-z-drawer: 200;

	/* ------------------------------------------------------------------
	 * Gradients
	 * ---------------------------------------------------------------- */
	--irh-gradient-hero: linear-gradient(180deg, rgba(14, 42, 61, 0) 0%, rgba(10, 32, 48, 0.55) 55%, #03a6a99b 100%);
	--irh-gradient-cta: linear-gradient(180deg, rgba(14, 42, 61, 0.35) 0%, rgba(10, 32, 48, 0.75) 100%);
}
