/**
 * Wimira base styles
 */

:root {
	--wimira-red: #e22c28;
	--wimira-red-hover: #c22522;
	--wimira-red-dark: #a3211e;
	--wimira-red-light: #fdecea;
	--wimira-red-muted: #f5c6c4;
	--wimira-red-gradient: linear-gradient(135deg, #ec4a46 0%, #e22c28 50%, #c22522 100%);
	--wimira-icon-filter: brightness(0) saturate(100%) invert(38%) sepia(48%) saturate(1200%) hue-rotate(310deg) brightness(0.95) contrast(0.92);
	--wimira-ease: cubic-bezier(0.4, 0.2, 0.4, 1);
	--wimira-ink: #1e1d28;
	--wimira-ink-heading: #121526;
	--wimira-muted: #54575e;
	--wimira-text-soft: #5c6478;
	--wimira-border: #c7c7d6;
	--wimira-bg: #ffffff;
	--wimira-surface-soft: #f8f8f9;
	--wimira-night: #060918;
	--wimira-night-soft: #1b1a24;
	--wimira-content: 1192px;
	--wimira-gutter: 24px;
	--wimira-font: "Inter", Arial, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	--wimira-font-heading: "Space Grotesk", Arial, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	--wimira-weight-heading: 700;
	--wimira-text-hero: clamp(34px, 4.8vw, 56px);
	--wimira-text-section: clamp(28px, 3.6vw, 44px);
	--wimira-text-card: clamp(17px, 1.6vw, 20px);
	--wimira-text-lead: 16px;
	--wimira-text-body: 15px;
	--wimira-section-pad: 72px;
	--wimira-section-pad-sm: 48px;
	--header-height: 65px;
	--mega-menu-height: 538px;
	--admin-bar-offset: 0px;
	--admin-bar-gap: 0px;
	/* Shared first-viewport hero height (homepage + inner pages).
	   Sized to match Technology Consulting so copy + stats can breathe. */
	--wimira-hero-peek: 100px;
	--wimira-hero-h: calc(100vh - var(--header-height) - var(--admin-bar-offset) - var(--admin-bar-gap) - var(--wimira-hero-peek) + 88px);
	--wimira-hero-min: 492px;
	--wimira-hero-max: 608px;
	/* Inner-page hero: brand red + geometric line pattern (no photos). */
	--wimira-hero-surface: #9a1a1c;
	--wimira-hero-surface-deep: #5c0f12;
	--wimira-inner-hero-bg:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900' fill='none'%3E%3Cg stroke='%23ffffff' stroke-opacity='0.16' stroke-width='1'%3E%3Cpath d='M-40 120 L420 40 L880 210 L1320 -20 L1680 160'/%3E%3Cpath d='M-60 340 L380 250 L820 430 L1280 180 L1700 360'/%3E%3Cpath d='M-80 580 L340 470 L780 680 L1240 420 L1720 610'/%3E%3Cpath d='M-40 820 L400 700 L860 880 L1340 640 L1680 820'/%3E%3Cpath d='M180 -40 L260 320 L120 620 L300 980'/%3E%3Cpath d='M520 -20 L620 280 L480 560 L640 940'/%3E%3Cpath d='M920 -40 L980 300 L860 640 L1020 980'/%3E%3Cpath d='M1280 -20 L1360 260 L1220 580 L1400 960'/%3E%3Cpath d='M1520 -40 L1580 340 L1460 700 L1600 980'/%3E%3C/g%3E%3C/svg%3E"),
		linear-gradient(145deg, #c22522 0%, #9a1a1c 42%, #6e1215 72%, #4a0c0e 100%);
}

@media (max-width: 767px) {
	:root {
		--wimira-hero-min: 632px;
		--wimira-hero-max: 648px;
		--wimira-hero-h: 648px;
	}
}

@media (min-width: 960px) {
	:root {
		--wimira-hero-max: 648px;
	}
}

@media (min-width: 1280px) {
	:root {
		--wimira-hero-max: 678px;
	}
}

@media (min-width: 1440px) {
	:root {
		--wimira-hero-max: 738px;
	}
}

@media (min-width: 1680px) {
	:root {
		--wimira-hero-max: 818px;
	}
}

@media (min-width: 1920px) {
	:root {
		--wimira-hero-max: 958px;
	}
}

@media (min-width: 2560px) {
	:root {
		--wimira-hero-max: 1238px;
	}
}

/* Shared page heroes — same height on homepage and all inner pages.
   Utility/legal heroes are excluded: they size to content (see utility-pages.css). */
.capd-hero,
.cap-hero,
.ip-hero,
.sol-hero,
.ind-hub-hero,
.blog-hero-dark {
	box-sizing: border-box;
	height: var(--wimira-hero-h);
	min-height: var(--wimira-hero-min);
	max-height: var(--wimira-hero-max);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/*
 * Mobile / small tablet: hug hero content on every inner page.
 * Fixed marketing height left huge empty red bands above/below copy.
 * Homepage .hero keeps its own height rules in hero.css.
 */
@media (max-width: 959px) {
	.capd-hero,
	.cap-hero,
	.ip-hero,
	.sol-hero,
	.ind-hub-hero,
	.blog-hero-dark,
	.se-hero,
	.aid-hero,
	.cid-hero,
	.db-hero,
	.dg-hero,
	.util-hero {
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		justify-content: flex-start;
	}

	.cap-hero__inner,
	.sol-hero__inner,
	.ind-hub-hero__inner,
	.ip-hero__inner,
	.capd-hero__inner,
	.blog-hero-dark__inner,
	.util-hero__inner {
		flex: 0 1 auto;
		justify-content: flex-start;
		align-content: flex-start;
	}

	.cap-hero,
	.ip-hero,
	.sol-hero,
	.ind-hub-hero {
		padding-top: calc(var(--header-height) + var(--admin-bar-offset) + var(--admin-bar-gap) + 12px);
		padding-bottom: 20px;
	}

	.blog-hero-dark {
		padding-top: calc(var(--header-height) + var(--admin-bar-offset) + var(--admin-bar-gap) + 12px);
		padding-bottom: 24px;
	}

	.capd-hero,
	.se-hero,
	.aid-hero,
	.cid-hero,
	.db-hero,
	.dg-hero {
		padding-bottom: 0;
	}

	.capd-hero__inner {
		padding-block: 16px 20px;
	}

	.capd-hero:has(> .capd-hero__stats) .capd-hero__inner {
		padding-top: 16px;
		padding-bottom: 20px;
	}

	.db-hero {
		padding-bottom: 20px;
	}
}

/* Inner heroes: solid brand red + pattern (header unchanged; homepage cards keep photos). */
.capd-hero,
.cap-hero,
.ip-hero,
.sol-hero,
.ind-hub-hero,
.util-hero,
.blog-hero-dark {
	background-color: var(--wimira-hero-surface);
	background-image: var(--wimira-inner-hero-bg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

/* Keep accent text readable on red heroes. */
.capd-hero .capd-kicker,
.capd-hero .capd-hero__accent,
.cap-hero .cap-hero__kicker,
.cap-hero .cap-hero__accent,
.sol-hero .capd-kicker,
.sol-hero .sol-hero__accent,
.ind-hub-hero .ind-hub-hero__accent,
.ip-hero .ip-hero__eyebrow,
.ip-hero .ip-hero__accent,
.util-hero .capd-kicker,
.util-hero .util-hero__dot,
.util-hero .util-hero__accent,
.blog-hero-dark__eyebrow,
.blog-hero-dark__title span {
	color: #fff;
}

/* Primary CTA: white fill on red field for contrast. */
.capd-hero .btn-n--red,
.cap-hero .btn-n--red,
.ip-hero .btn-n--red,
.sol-hero .btn-n--red,
.ind-hub-hero .btn-n--red,
.util-hero .btn-n--red,
.blog-hero-dark .btn-n--red {
	background: #fff;
	color: var(--wimira-red);
	box-shadow: none;
}

.capd-hero .btn-n--red:hover,
.capd-hero .btn-n--red:focus-visible,
.cap-hero .btn-n--red:hover,
.cap-hero .btn-n--red:focus-visible,
.ip-hero .btn-n--red:hover,
.ip-hero .btn-n--red:focus-visible,
.sol-hero .btn-n--red:hover,
.sol-hero .btn-n--red:focus-visible,
.ind-hub-hero .btn-n--red:hover,
.ind-hub-hero .btn-n--red:focus-visible,
.util-hero .btn-n--red:hover,
.util-hero .btn-n--red:focus-visible,
.blog-hero-dark .btn-n--red:hover,
.blog-hero-dark .btn-n--red:focus-visible {
	background: #fff;
	color: var(--wimira-red-dark);
	filter: brightness(0.96);
}

/* Stats / feature chips on red heroes. */
.capd-hero__stats {
	background: rgba(0, 0, 0, 0.22);
	border-top-color: rgba(255, 255, 255, 0.18);
}

.capd-hero__stat-icon {
	color: #fff;
}

/* Suppress Chromium “Search image” / Google Lens hover control on photos. */
img {
	-webkit-user-drag: none;
	user-select: none;
	pointer-events: none;
}

/* Shared section eyebrow — leading red rule + uppercase label */
.home-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	color: var(--wimira-red);
	font-family: var(--wimira-font);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.home-eyebrow__rule {
	display: block;
	flex: none;
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background: var(--wimira-red);
}

@media (min-width: 768px) {
	:root {
		--header-height: 73px;
	}
}

@media (min-width: 961px) {
	:root {
		--header-height: 89px;
	}
}

body.admin-bar {
	--admin-bar-offset: 32px;
	--admin-bar-gap: 8px;
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		--admin-bar-offset: 46px;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--wimira-font);
	font-size: 19px;
	line-height: 1.7;
	color: var(--wimira-ink);
	background: var(--wimira-bg);
	/* clip keeps horizontal overflow contained without breaking position:sticky */
	overflow-x: clip;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

.container-n {
	width: 100%;
	padding-left: 16px;
	padding-right: 16px;
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 768px) {
	.container-n {
		padding-left: 24px;
		padding-right: 24px;
	}
}

@media (min-width: 961px) {
	.container-n {
		padding-left: 56px;
		padding-right: 56px;
		max-width: 2560px;
	}
}

/* Match header shell: keep sections from stretching on ultrawide. */
@media (min-width: 1921px) {
	.container-n {
		max-width: 1920px;
	}
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.title-h1,
.title-h2,
.title-h4,
.title-h5 {
	font-family: var(--wimira-font-heading);
	font-weight: 700;
}

/* Hero */
.title-h1 {
	font-size: 72px !important;
	line-height: 1.1 !important;
	font-weight: 700;
	margin: 0;
}

@media (max-width: 767px) {
	.title-h1 {
		font-size: 26px !important;
		line-height: 1.25 !important;
	}
}

.title-h5 {
	font-size: 16px;
	line-height: 24px;
	margin: 0;
}

/* Section titles */
.title-h2 {
	font-size: 48px !important;
	line-height: 1.2 !important;
	font-weight: 700;
	margin: 0;
}

/* H3 */
.title-h4 {
	font-size: 28px !important;
	line-height: 1.3 !important;
	font-weight: 700;
	margin: 0;
}

.description-n {
	font-family: var(--wimira-font);
	font-size: 19px !important;
	line-height: 1.7 !important;
}

/* Buttons — Wimira btn-n pattern */
.btn-n {
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border: 0;
	border-radius: 48px;
	font-family: var(--wimira-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 16px;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	outline: 0;
	transition:
		background-color 0.3s var(--wimira-ease),
		color 0.3s var(--wimira-ease),
		box-shadow 0.3s var(--wimira-ease),
		transform 0.3s var(--wimira-ease);
}

.btn-n:focus-visible {
	outline: 2px solid var(--wimira-ink);
	outline-offset: 3px;
}

.btn-n--red:focus-visible {
	outline-color: #fff;
	box-shadow: 0 0 0 5px rgba(226, 44, 40, 0.45);
}

.btn-n--black:focus-visible {
	outline-color: #fff;
	box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.35);
}

.btn-n::before,
.btn-n::after {
	content: "";
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 9L9 1M9 1H1M9 1V9' stroke='%231E1D28'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	transition: transform 0.3s var(--wimira-ease);
}

.btn-n::before {
	margin-right: -18px;
	transform: scale(0);
}

.btn-n__text {
	transition: transform 0.3s var(--wimira-ease);
}

.btn-n:hover::before,
.btn-n:focus-visible::before {
	transform: scale(1);
}

.btn-n:hover::after,
.btn-n:focus-visible::after {
	transform: scale(0);
}

.btn-n:hover .btn-n__text,
.btn-n:focus-visible .btn-n__text {
	transform: translateX(18px);
}

.btn-n--black {
	background-color: var(--wimira-ink);
	color: #fff;
}

.btn-n--black::before,
.btn-n--black::after {
	filter: brightness(0) invert(1);
}

.btn-n--black:hover,
.btn-n--black:focus-visible {
	background: var(--wimira-red-gradient);
}

.btn-n--white {
	background-color: #fff;
	color: var(--wimira-ink);
}

.btn-n--white:hover,
.btn-n--white:focus-visible {
	background-color: var(--wimira-red);
	color: #fff;
}

.btn-n--white:hover::before,
.btn-n--white:hover::after,
.btn-n--white:focus-visible::before,
.btn-n--white:focus-visible::after {
	filter: brightness(0) invert(1);
}

.btn-n--red {
	background: linear-gradient(135deg, #a3211e 0%, #e22c28 45%, #ff6b52 100%);
	box-shadow: 0 8px 24px -8px rgba(226, 44, 40, 0.55);
	color: #fff;
}

.btn-n--red::before,
.btn-n--red::after {
	filter: brightness(0) invert(1);
}

.btn-n--red:hover,
.btn-n--red:focus-visible {
	background: #36383b;
	box-shadow: none;
}

.btn-n--purple {
	background: linear-gradient(135deg, #5b21b6 0%, #7c4fe0 45%, #a855f7 100%);
	box-shadow: 0 8px 24px -8px rgba(124, 79, 224, 0.55);
	color: #fff;
}

.btn-n--purple::before,
.btn-n--purple::after {
	filter: brightness(0) invert(1);
}

.btn-n--purple:hover,
.btn-n--purple:focus-visible {
	background: #6438c2;
	box-shadow: none;
}

.btn-n--orange {
	background: linear-gradient(135deg, #9a5b12 0%, #d3852a 45%, #f5a742 100%);
	box-shadow: 0 8px 24px -8px rgba(245, 167, 66, 0.45);
	color: #fff;
}

.btn-n--orange::before,
.btn-n--orange::after {
	filter: brightness(0) invert(1);
}

.btn-n--orange:hover,
.btn-n--orange:focus-visible {
	background: #b8721f;
	box-shadow: none;
}

.btn-n--teal {
	background: linear-gradient(135deg, #0f6a5f 0%, #1f9c8a 45%, #4fd1c5 100%);
	box-shadow: 0 8px 24px -8px rgba(79, 209, 197, 0.45);
	color: #fff;
}

.btn-n--teal::before,
.btn-n--teal::after {
	filter: brightness(0) invert(1);
}

.btn-n--teal:hover,
.btn-n--teal:focus-visible {
	background: #1a8577;
	box-shadow: none;
}

.btn-n--blue {
	background: linear-gradient(135deg, #0e7490 0%, #0891b2 45%, #4fd1e8 100%);
	box-shadow: 0 8px 24px -8px rgba(79, 209, 232, 0.45);
	color: #fff;
}

.btn-n--blue::before,
.btn-n--blue::after {
	filter: brightness(0) invert(1);
}

.btn-n--blue:hover,
.btn-n--blue:focus-visible {
	background: #0c7d92;
	box-shadow: none;
}

.btn-n--small {
	padding: 8px 12px;
}

.site-main {
	min-height: 40vh;
}

.site-main:not(.site-main--home) {
	padding-top: calc(var(--header-height) + var(--admin-bar-offset) + var(--admin-bar-gap));
}

.content-area {
	padding: 2rem 0 4rem;
}

.entry-title {
	font-size: 2rem;
	font-weight: 300;
	margin: 0 0 1rem;
}

/* Screen reader only — shared sitewide */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	clip: auto !important;
	clip-path: none;
	color: var(--wimira-ink);
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 12px 16px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}

/* Soft page-enter veil — every navigation (video preloader remains home / once) */
.page-enter {
	position: fixed;
	inset: 0;
	z-index: 99990;
	background: #fff;
	opacity: 1;
	visibility: visible;
	pointer-events: none;
	transition: opacity 0.55s var(--wimira-ease, cubic-bezier(0.22, 1, 0.36, 1)), visibility 0s linear 0s;
}

.page-enter.is-done {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.55s var(--wimira-ease, cubic-bezier(0.22, 1, 0.36, 1)), visibility 0s linear 0.55s;
}

.page-enter--leave {
	opacity: 0;
	z-index: 99995;
	transition: opacity 0.22s ease;
}

.page-enter--leave.is-active {
	opacity: 1;
}

/* Hero load lines — keyframes so they always play on each page visit */
@keyframes wimira-hero-line-in {
	from {
		opacity: 0;
		transform: translate3d(0, 42px, 0);
		filter: blur(8px);
	}
	to {
		opacity: 1;
		transform: none;
		filter: none;
	}
}

.hero-enter [data-hero-line] {
	opacity: 0;
	transform: translate3d(0, 42px, 0);
	filter: blur(8px);
	will-change: transform, opacity, filter;
}

.hero-enter.is-hero-in [data-hero-line] {
	animation: wimira-hero-line-in 0.9s var(--wimira-ease, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
	animation-delay: var(--hd, 0.1s);
}

/* Scroll + load reveal — homepage + all inner pages (armed by home-reveal.js) */
.reveal-armed [data-reveal-item] {
	opacity: 0;
	transform: translate3d(0, var(--ry, 28px), 0);
	filter: blur(0);
	transition:
		opacity 0.7s var(--wimira-ease),
		transform 0.75s var(--wimira-ease),
		filter 0.7s var(--wimira-ease);
	transition-delay: var(--rd, 0s);
	will-change: transform, opacity;
}

.reveal-armed [data-reveal-item="title"] {
	transform: translate3d(0, var(--ry, 36px), 0);
	filter: blur(4px);
}

.reveal-armed [data-reveal-item="text"] {
	transform: translate3d(0, var(--ry, 20px), 0);
}

.reveal-armed [data-reveal-item="card"] {
	transform: translate3d(0, var(--ry, 44px), 0) scale(0.985);
}

.reveal-armed.is-inview [data-reveal-item],
.reveal-armed.is-inview [data-reveal-item="title"],
.reveal-armed.is-inview [data-reveal-item="text"],
.reveal-armed.is-inview [data-reveal-item="card"] {
	opacity: 1;
	transform: none;
	filter: none;
	will-change: auto;
}

/* Ghost / outline button used on inner heroes */
.btn-n--ghost {
	background: transparent;
	border: 1px solid rgba(18, 21, 38, 0.18);
	color: var(--wimira-ink-heading);
}

.btn-n--ghost::before,
.btn-n--ghost::after {
	filter: none;
}

.btn-n--ghost:hover,
.btn-n--ghost:focus-visible {
	background: var(--wimira-red);
	border-color: var(--wimira-red);
	color: #fff;
}

.btn-n--ghost:hover::before,
.btn-n--ghost:hover::after,
.btn-n--ghost:focus-visible::before,
.btn-n--ghost:focus-visible::after {
	filter: brightness(0) invert(1);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.page-enter,
	.page-enter--leave {
		display: none;
	}

	.hero-enter [data-hero-line],
	.hero-enter.is-hero-in [data-hero-line] {
		opacity: 1;
		transform: none;
		filter: none;
		animation: none;
		will-change: auto;
	}

	.reveal-armed [data-reveal-item],
	.reveal-armed [data-reveal-item="title"],
	.reveal-armed [data-reveal-item="text"],
	.reveal-armed [data-reveal-item="card"] {
		opacity: 1;
		transform: none;
		filter: none;
		transition: none;
		will-change: auto;
	}

	.btn-n,
	.btn-n::before,
	.btn-n::after,
	.btn-n__text {
		transition: none !important;
	}

	.btn-n:hover .btn-n__text,
	.btn-n:focus-visible .btn-n__text {
		transform: none;
	}

	.btn-n:hover::before,
	.btn-n:focus-visible::before {
		transform: none;
	}

	.btn-n:hover::after,
	.btn-n:focus-visible::after {
		transform: none;
	}
}
