/* ==========================================================================
   Reigrow Solutions — base.css
   Design tokens, resets, typography, links, decorative background, keyframes.
   Customizer overrides these tokens via wp_add_inline_style() (see inc/).
   ========================================================================== */

:root {
	/* Surfaces & ink */
	--bg: #ffffff;
	--surface: #ffffff;
	--ink: #0b1e38;
	--text: #4a5568;
	--text-soft: #33405a;
	--muted: #6b7789;
	--muted-2: #8592a6;

	/* Lines & tints */
	--border: rgba(11, 30, 56, .08);
	--border-soft: rgba(11, 30, 56, .06);
	--border-input: rgba(11, 30, 56, .14);
	--chip-a: #eef4fc;
	--chip-b: #f6f9fd;
	--chip-tint: #f4f7fb;

	/* Navigation & background */
	--nav-bg: rgba(255, 255, 255, .8);
	--nav-border: rgba(11, 30, 56, .06);
	--grid-line: rgba(11, 30, 56, .05);

	/* Brand */
	--brand-1: #2e9bf5;
	--brand-2: #1660d6;
	--brand-3: #1866c4;
	--brand-grad: linear-gradient(135deg, var(--brand-1), var(--brand-2));
	--brand-grad-120: linear-gradient(120deg, var(--brand-1), var(--brand-2));
	--link: #1660d6;
	--link-hover: #1247a8;

	/* Type */
	--font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	/* Shape & motion */
	--radius: 18px;
	--radius-md: 14px;
	--radius-sm: 12px;
	--container: 1260px;
	--ease: cubic-bezier(.16, 1, .3, 1);

	/* Layered card shadow */
	--shadow-card: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(11, 30, 56, .05), 0 8px 18px -6px rgba(11, 30, 56, .10), 0 20px 40px -16px rgba(11, 30, 56, .12);
	--shadow-card-hover: inset 0 1px 0 rgba(255, 255, 255, .95), 0 2px 5px rgba(11, 30, 56, .06), 0 14px 28px -8px rgba(11, 30, 56, .12), 0 34px 60px -18px rgba(11, 30, 56, .20);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	background: var(--bg);
	color-scheme: light;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--ink);
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-wrap: balance;
	margin: 0 0 .5em;
}

p {
	text-wrap: pretty;
}

a {
	color: var(--link);
	text-decoration: none;
	transition: color .25s ease;
}

a:hover,
a:focus {
	color: var(--link-hover);
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

button {
	font-family: inherit;
}

::selection {
	background: rgba(46, 155, 245, .22);
}

:focus-visible {
	outline: 2px solid var(--brand-3);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Accessibility: skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 12px 20px;
	background: var(--ink);
	color: #fff;
	border-radius: 0 0 10px 0;
	font-weight: 700;
}

.skip-link:focus {
	left: 0;
	color: #fff;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	clip: auto !important;
	clip-path: none;
	color: var(--ink);
	display: block;
	height: auto;
	left: 5px;
	padding: 15px 23px 14px;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* --------------------------------------------------------------------------
   Site shell + decorative background (grid + drifting glows)
   -------------------------------------------------------------------------- */

.site {
	position: relative;
	isolation: isolate;
	overflow-x: clip;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	overflow: hidden;
}

.site-bg__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	opacity: .5;
}

.site-bg__glow {
	position: absolute;
	border-radius: 50%;
	animation: glowDrift2 24s ease-in-out infinite;
}

.site-bg__glow--1 { top: 5%;  right: -150px; width: 680px; height: 600px; background: radial-gradient(closest-side, rgba(46, 155, 245, .28), transparent 72%); animation-duration: 22s; }
.site-bg__glow--2 { top: 42%; left: -170px;  width: 700px; height: 640px; background: radial-gradient(closest-side, rgba(22, 96, 214, .26), transparent 72%); animation-duration: 26s; }
.site-bg__glow--3 { top: 78%; right: -130px; width: 640px; height: 600px; background: radial-gradient(closest-side, rgba(46, 155, 245, .24), transparent 72%); animation-duration: 24s; }
.site-bg__glow--4 { top: 22%; left: -140px;  width: 560px; height: 520px; background: radial-gradient(closest-side, rgba(46, 155, 245, .16), transparent 72%); animation-duration: 28s; }
.site-bg__glow--5 { top: 60%; right: -160px; width: 620px; height: 580px; background: radial-gradient(closest-side, rgba(22, 96, 214, .15), transparent 72%); animation-duration: 30s; }
.site-bg__glow--6 { top: 92%; left: -150px;  width: 600px; height: 560px; background: radial-gradient(closest-side, rgba(46, 155, 245, .14), transparent 72%); animation-duration: 27s; }

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glowDrift2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 22px); } }

/* View-transition (progressive enhancement in supporting browsers) */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.site-bg__glow,
	.js-float { animation: none !important; }
	* { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
