/* ==========================================================================
   Probit LLC — Base Styles
   ========================================================================== */

:root {
	--color-primary: #3B6FFF;
	--color-primary-dark: #2554D4;
	--color-navy: #0F1B2D;
	--color-navy-light: #1A2F4A;
	--color-white: #FFFFFF;
	--color-gray-50: #F8FAFC;
	--color-gray-100: #F1F5F9;
	--color-gray-400: #94A3B8;
	--color-gray-600: #64748B;
	--color-gray-900: #0F172A;
	--color-blue-light: #EBF2FF;

	--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--container-max: 1200px;
	--container-wide: 1400px;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--shadow-sm: 0 1px 3px rgba(15, 27, 45, 0.06);
	--shadow-md: 0 4px 20px rgba(15, 27, 45, 0.08);
	--shadow-lg: 0 8px 40px rgba(15, 27, 45, 0.12);
	--transition: 0.25s ease;
	--header-height: 80px;
}

*, *::before, *::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: clip;
}

body {
	margin: 0;
	font-family: var(--font-family);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-gray-900);
	background: var(--color-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
	max-width: 100%;
}

#page.site {
	overflow-x: clip;
	max-width: 100%;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 1rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-navy);
}

p {
	margin: 0 0 1rem;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.entry-content ul,
.entry-content ol,
.mce-content-body ul,
.mce-content-body ol {
	margin: 0 0 1rem;
	padding-left: 1.4rem;
	list-style: revert;
}

.entry-content li,
.mce-content-body li {
	display: list-item;
}

/* Container */
.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Section */
.section {
	padding: 80px 0;
}

.section-eyebrow {
	display: inline-block;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-primary);
	margin-bottom: 12px;
}

.section-header {
	margin-bottom: 48px;
}

.section-header--center {
	text-align: center;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.section-title {
	font-size: 2.25rem;
	margin-bottom: 16px;
}

.section-desc {
	font-size: 1.0625rem;
	color: var(--color-gray-600);
	margin: 0;
}

.text-primary {
	color: var(--color-primary);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 13px;
	font-family: var(--font-family);
	font-size: 13px;
	font-weight: 600;
	border-radius: var(--radius-sm);
	border: 2px solid transparent;
	cursor: pointer;
	transition: all var(--transition);
	text-decoration: none;
	white-space: nowrap;
}

.btn--primary {
	background: var(--color-primary);
	color: var(--color-white);
	border-color: var(--color-primary);
}

.btn--primary:hover {
	background: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	color: var(--color-white);
}

.btn--outline {
	background: transparent;
	color: var(--color-navy);
	border-color: var(--color-gray-100);
}

.btn--outline:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.btn--outline-light {
	background: transparent;
	color: var(--color-white);
	border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline-light:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--color-white);
	color: var(--color-white);
}

.btn--block {
	width: 100%;
	justify-content: center;
}

.btn__icon {
	display: flex;
	align-items: center;
}

/* Logo */
.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--color-navy);
}

.site-logo--image {
	display: inline-flex;
	align-items: center;
}

.site-logo__image {
	display: block;
	max-height: 52px;
	width: auto;
	height: auto;
}

.site-header__logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.site-logo__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background: var(--color-primary);
	color: var(--color-white);
	border-radius: 10px;
	font-weight: 800;
	font-size: 1.125rem;
}

.site-logo__brand {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.1;
}

.site-logo__text {
	font-size: 1.375rem;
	font-weight: 800;
	color: var(--color-navy);
	letter-spacing: -0.02em;
}

.site-logo__tagline {
	font-size: 0.5625rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-gray-400);
}

.site-logo--footer .site-logo__text,
.site-logo--footer {
	color: var(--color-white);
}

.site-logo--footer .site-logo__tagline {
	color: rgba(255, 255, 255, 0.45);
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-white);
	border-bottom: 1px solid var(--color-gray-100);
	height: var(--header-height);
	transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
	box-shadow: var(--shadow-sm);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
	gap: 32px;
}

.site-header__logo {
	flex-shrink: 0;
}

.site-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__item {
	position: relative;
}

.nav__link {
	display: inline-block;
	position: relative;
	padding: 10px 0;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--color-navy);
	text-decoration: none;
	transition: color var(--transition);
}

.nav__link:hover {
	color: var(--color-primary);
}

.nav__item.current-menu-item .nav__link,
.nav__item.current-menu-ancestor .nav__link {
	color: var(--color-primary);
	font-weight: 600;
}

.nav__item.current-menu-item .nav__link::after,
.nav__item.current-menu-ancestor .nav__link::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 4px;
	height: 2px;
	background: var(--color-primary);
	border-radius: 2px;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: var(--color-navy);
}

/* Mobile Menu */
.mobile-menu {
	position: fixed;
	top: 0;
	right: -100%;
	width: 320px;
	max-width: 85vw;
	height: 100vh;
	background: var(--color-white);
	z-index: 200;
	padding: 24px;
	transition: right var(--transition);
	overflow-y: auto;
}

.mobile-menu.is-open {
	right: 0;
}

.mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
}

.mobile-menu__close {
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: var(--color-navy);
}

.mobile-menu__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mobile-menu__list a {
	display: block;
	padding: 12px 0;
	font-size: 1.0625rem;
	font-weight: 500;
	color: var(--color-navy);
	border-bottom: 1px solid var(--color-gray-100);
}

.mobile-menu__list .current-menu-item a,
.mobile-menu__list .nav__item.current-menu-item a {
	color: var(--color-primary);
	font-weight: 600;
}

.mobile-menu__cta {
	margin-top: 24px;
}

.mobile-menu-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 27, 45, 0.5);
	z-index: 150;
	opacity: 0;
	visibility: hidden;
	transition: all var(--transition);
}

.mobile-menu-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* Footer */
.site-footer {
	position: relative;
	background: var(--color-navy);
	color: rgba(255, 255, 255, 0.75);
	padding: 56px 0;
	overflow: hidden;
}

.site-footer__decor {
	position: absolute;
	top: 0;
	bottom: 0;
	width: min(42%, 520px);
	pointer-events: none;
	opacity: 0.28;
}

.site-footer__decor--left {
	left: 0;
	background:
		radial-gradient(circle at 18% 42%, rgba(59, 111, 255, 0.35) 0 2px, transparent 2px),
		radial-gradient(circle at 32% 58%, rgba(59, 111, 255, 0.25) 0 1.5px, transparent 1.5px),
		radial-gradient(circle at 48% 36%, rgba(59, 111, 255, 0.3) 0 2px, transparent 2px),
		radial-gradient(circle at 62% 68%, rgba(59, 111, 255, 0.2) 0 1.5px, transparent 1.5px),
		linear-gradient(118deg, transparent 46%, rgba(59, 111, 255, 0.18) 47%, transparent 48%),
		linear-gradient(62deg, transparent 38%, rgba(59, 111, 255, 0.12) 39%, transparent 40%);
}

.site-footer__decor--right {
	right: 0;
	background:
		repeating-linear-gradient(
			-8deg,
			transparent,
			transparent 18px,
			rgba(59, 111, 255, 0.14) 18px,
			rgba(59, 111, 255, 0.14) 19px
		),
		repeating-linear-gradient(
			12deg,
			transparent,
			transparent 24px,
			rgba(59, 111, 255, 0.1) 24px,
			rgba(59, 111, 255, 0.1) 25px
		);
	mask-image: linear-gradient(to left, #000 30%, transparent 100%);
}

.site-footer__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 48px;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 420px;
}

.site-footer__bio {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.72);
}

.site-footer__divider {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 110px;
	flex-shrink: 0;
}

.site-footer__divider-line {
	width: 1px;
	height: 100%;
	background: linear-gradient(
		to bottom,
		transparent,
		rgba(59, 111, 255, 0.55) 18%,
		rgba(59, 111, 255, 0.55) 82%,
		transparent
	);
}

.site-footer__divider-dot {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--color-primary);
	box-shadow:
		0 0 10px rgba(59, 111, 255, 0.9),
		0 0 22px rgba(59, 111, 255, 0.45);
}

.site-footer__copyright {
	margin: 0;
	text-align: right;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.82);
	white-space: nowrap;
}

/* Page Hero */
.page-hero {
	background: var(--color-gray-50);
	text-align: center;
	padding: 60px 0;
}

.page-hero__title {
	font-size: 2.5rem;
	margin: 0;
}

/* Back to top */
.back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 120;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--color-primary);
	color: var(--color-white);
	box-shadow: 0 8px 24px rgba(59, 111, 255, 0.4);
	cursor: pointer;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(18px) scale(0.88);
	transition:
		opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		background 0.2s ease,
		box-shadow 0.25s ease;
}

.back-to-top.is-visible {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
	animation: back-to-top-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.back-to-top.is-leaving {
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px) scale(0.9);
}

.back-to-top:hover {
	background: var(--color-primary-dark);
	box-shadow: 0 12px 32px rgba(59, 111, 255, 0.48);
	transform: translateY(-4px) scale(1.06);
}

.back-to-top.is-visible:hover {
	transform: translateY(-4px) scale(1.06);
}

.back-to-top:active {
	transform: translateY(-1px) scale(0.96);
}

.back-to-top svg {
	display: block;
	transition: transform 0.25s ease;
}

.back-to-top:hover svg {
	animation: back-to-top-arrow 0.7s ease-in-out infinite;
}

.back-to-top:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 3px;
}

.back-to-top[hidden] {
	display: none;
}

@keyframes back-to-top-enter {
	0% {
		opacity: 0;
		transform: translateY(18px) scale(0.88);
	}

	55% {
		opacity: 1;
		transform: translateY(-5px) scale(1.05);
	}

	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes back-to-top-arrow {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-3px);
	}
}

@media (max-width: 768px) {
	.back-to-top {
		right: 16px;
		bottom: 16px;
		width: 44px;
		height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.back-to-top,
	.back-to-top.is-visible,
	.back-to-top.is-leaving {
		transition: none;
		animation: none;
	}

	.back-to-top:hover svg {
		animation: none;
	}
}
