/**
 * Solar Ready Hub - Design Tokens
 *
 * Values are transcribed directly from the Solar Ready Hub Figma library
 * (file uLDHq94Y8yqwtCQK8CJIk0). Figma variable names are noted in comments
 * so designers and developers stay in sync.
 */

:root {
	/* ------------------------------------------------------------------
	 * Brand colors  (Figma: Brand/*)
	 * ---------------------------------------------------------------- */
	--srh-green: #4f6830;          /* Brand/Primary Green   */
	--srh-green-dark: #3d5125;     /* hover / pressed state */
	--srh-green-darker: #2f3f1c;
	--srh-green-10: rgba(79, 104, 48, 0.1);
	--srh-green-20: rgba(79, 104, 48, 0.2);   /* nav pill background */
	--srh-green-60: rgba(79, 104, 48, 0.6);

	--srh-yellow: #fdc140;         /* Brand/Secondary Yellow */
	--srh-yellow-dark: #e8ac2b;    /* hover state            */
	--srh-yellow-20: rgba(253, 193, 64, 0.2);

	/* ------------------------------------------------------------------
	 * Neutrals  (Figma: Grey/*, Black/*, White/*)
	 * ---------------------------------------------------------------- */
	--srh-black: #000000;          /* Black/100%  */
	--srh-ink: #0d0507;            /* heading ink */
	--srh-slate: #24282c;          /* input text  */
	--srh-grey-500: #6d717f;       /* Grey/500 - body copy */
	--srh-grey-300: #b6b9c3;
	--srh-grey-100: #e9eaee;
	--srh-grey-50: #f5f6f7;
	--srh-white: #ffffff;          /* White/100% */

	/* Alpha helpers used on dark (green) surfaces */
	--srh-on-dark: rgba(255, 255, 255, 1);
	--srh-on-dark-70: rgba(255, 255, 255, 0.7);
	--srh-on-dark-40: rgba(255, 255, 255, 0.4);
	--srh-hairline: rgba(229, 229, 229, 0.33);

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

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

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

	/* Fluid type scale - min value at 360px, max at 1440px */
	--srh-fs-display: clamp(2.75rem, 1.35rem + 6.2vw, 5rem);   /* 44 -> 80 */
	--srh-fs-h1: clamp(2.25rem, 1.2rem + 4.6vw, 5rem);         /* 36 -> 64 */
	--srh-fs-h2: clamp(1.875rem, 1.25rem + 2.8vw, 3rem);       /* 30 -> 48 */
	--srh-fs-h3: clamp(1.5rem, 1.15rem + 1.5vw, 2rem);         /* 24 -> 32 */
	--srh-fs-h4: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);       /* 20 -> 24 */
	--srh-fs-h5: 1.3125rem;                                     /* 21 - footer col titles */
	--srh-fs-h6: 1.125rem;
	--srh-fs-lead: 1.125rem;
	--srh-fs-body: 1rem;                                        /* 16 */
	--srh-fs-sm: 0.875rem;                                      /* 14 - nav links */
	--srh-fs-xs: 0.75rem;                                       /* 12 - input placeholder */
	--srh-fs-eyebrow: 1.25rem;                                  /* 20 - section eyebrow */

	--srh-lh-tight: 1;
	--srh-lh-heading: 1.1;
	--srh-lh-snug: 1.45;
	--srh-lh-body: 1.62;
	--srh-lh-loose: 1.75;

	--srh-ls-display: -0.03em;   /* -2.4px at 80px */
	--srh-ls-heading: -0.02em;
	--srh-ls-tight: -0.01em;
	--srh-ls-nav: 0.01em;        /* 0.14px at 14px */

	/* ------------------------------------------------------------------
	 * Layout
	 * ---------------------------------------------------------------- */
	--srh-container: 1280px;     /* Figma content width  */
	--srh-container-narrow: 800px;
	--srh-gutter: clamp(1.25rem, 0.4rem + 3.6vw, 5rem); /* 20 -> 80 */
	--srh-header-height: 95px;

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

	/* ------------------------------------------------------------------
	 * Radii, borders, shadows, motion
	 * ---------------------------------------------------------------- */
	--srh-radius-sm: 8px;
	--srh-radius-md: 16px;
	--srh-radius-lg: 24px;
	--srh-radius-xl: 28px;   /* subscribe field  */
	--srh-radius-pill: 40px; /* buttons, nav pill */
	--srh-radius-circle: 999px;

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

	--srh-shadow-sm: 0 1px 2px rgba(13, 5, 7, 0.06);
	--srh-shadow-md: 0 8px 24px rgba(13, 5, 7, 0.08);
	--srh-shadow-lg: 0 20px 48px rgba(13, 5, 7, 0.12);

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

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