/* =========================================================
   CALMA AGENCY — main stylesheet
   1. Fonts           7. Homepage
   2. Tokens          8. Services
   3. Base            9. About
   4. Layout         10. Our Partners
   5. Components     11. Contact + form
   6. Header/Footer  12. Service, case study, misc pages
   ========================================================= */

/* 1. FONTS (brand guidelines: Montserrat Bold for headings, Alexandria for body) */
@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Alexandria";
	src: url("../fonts/alexandria-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Alexandria";
	src: url("../fonts/alexandria-arabic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}

/* 2. TOKENS */
:root {
	--primary: #06409a;
	--primary-bright: #0b5bd3;
	--primary-deep: #04306f;
	--navy: #061a3f;
	--navy-2: #0a2657;
	--ink: #0b1d3d;
	--text: #3c4a63;
	--muted: #66748c;
	--line: #dbe4f2;
	--tint: #f2f6fd;
	--tint-2: #e6eefb;
	--white: #fff;
	--wa: #1faa59;

	--font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
	--font-body: "Alexandria", "Segoe UI", Tahoma, Arial, sans-serif;

	--max: 1240px;
	--gutter: clamp(20px, 5vw, 48px);
	--section: clamp(64px, 9vw, 120px);
	--header-h: 76px;

	--r-sm: 10px;
	--r-md: 16px;
	--r-lg: 24px;

	--shadow-sm: 0 1px 2px rgba(6, 26, 63, .06), 0 2px 8px rgba(6, 26, 63, .04);
	--shadow-md: 0 12px 32px -12px rgba(6, 64, 154, .22);
	--shadow-lg: 0 30px 60px -24px rgba(6, 64, 154, .35);

	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* 3. BASE */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.7;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

body.menu-open { overflow: hidden; }

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

h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--ink);
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); font-weight: 800; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; }
strong, b { font-weight: 600; color: var(--ink); }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-bright); }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
	outline: 3px solid var(--primary-bright);
	outline-offset: 3px;
	border-radius: 6px;
}

::selection { background: var(--primary); color: #fff; }

.sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute;
	left: 16px; top: -100px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--primary);
	color: #fff;
	border-radius: var(--r-sm);
	font-weight: 500;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.text-accent { color: var(--primary-bright); }

/* 4. LAYOUT — the same left and right margins on every section */
.container {
	width: min(100% - 2 * var(--gutter), var(--max));
	margin-inline: auto;
}

.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.section--tight-bottom { padding-bottom: clamp(48px, 6vw, 80px); }
.section--tint { background: var(--tint); }
.section--navy {
	background:
		radial-gradient(60% 80% at 85% 0%, rgba(11, 91, 211, .35), transparent 60%),
		linear-gradient(180deg, var(--navy) 0%, #04122e 100%);
	color: #c4d2ec;
}
.section--navy h2,
.section--navy h3 { color: #fff; }
.section--navy strong { color: #fff; }

.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head > p:not(.kicker) { margin-top: 14px; font-size: 1.0625rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
	max-width: none;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 48px;
}
.section-head__side { max-width: 420px; font-size: 1.0625rem; }

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font-family: var(--font-head);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--primary-bright);
}
.kicker::before {
	content: "";
	width: 22px; height: 2px;
	background: currentColor;
	border-radius: 2px;
}
.kicker--light { color: #8fb4ff; }
.section-head--center .kicker { justify-content: center; }

.lede { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.65; }

/* 5. COMPONENTS */
.btn {
	--btn-bg: var(--primary);
	--btn-fg: #fff;
	--btn-bd: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 24px;
	border: 1.5px solid var(--btn-bd);
	border-radius: 999px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--font-head);
	font-size: .9375rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.005em;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:hover .icon { transform: translateX(2px); }
.btn:active { transform: translateY(0); }

.btn--primary { box-shadow: 0 10px 24px -10px rgba(6, 64, 154, .7); }
.btn--primary:hover { --btn-bg: var(--primary-bright); box-shadow: 0 14px 28px -10px rgba(11, 91, 211, .7); }
.btn--ghost { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--primary); --btn-fg: var(--primary); }
.btn--dark { --btn-bg: var(--navy); }
.btn--dark:hover { --btn-bg: var(--primary); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--primary); }
.btn--light:hover { --btn-fg: var(--primary-deep); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { --btn-bd: #fff; --btn-bg: rgba(255, 255, 255, .08); }
.btn--whatsapp { --btn-bg: var(--wa); }
.btn--whatsapp:hover { --btn-bg: #168c48; }
.btn--whatsapp .icon, .btn--outline-light .icon:first-child, .btn--ghost .icon:first-child { width: 20px; height: 20px; }
.btn--whatsapp:hover .icon, .btn--outline-light:hover .icon:first-child, .btn--ghost:hover .icon:first-child { transform: none; }
.btn--lg { min-height: 54px; padding-inline: 28px; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-head);
	font-size: .9375rem;
	font-weight: 700;
	color: var(--primary);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Makes a whole card clickable from one link */
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--tint-2);
	color: var(--primary);
	font-family: var(--font-head);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .02em;
}
.tag--solid { background: var(--primary); color: #fff; }
.tag--light { background: rgba(255, 255, 255, .14); color: #fff; }

.icon-tile {
	display: inline-grid;
	place-items: center;
	width: 48px; height: 48px;
	flex: none;
	border-radius: 14px;
	background: var(--tint-2);
	color: var(--primary);
}
.icon-tile .icon { width: 24px; height: 24px; }
.icon-tile--solid { background: var(--primary); color: #fff; box-shadow: 0 10px 20px -10px rgba(6, 64, 154, .8); }
.icon-tile--dark { background: rgba(143, 180, 255, .12); color: #8fb4ff; border: 1px solid rgba(143, 180, 255, .2); }
.icon-tile--wa { background: #e3f6ec; color: var(--wa); }
.icon-tile--lg { width: 64px; height: 64px; border-radius: 18px; }
.icon-tile--lg .icon { width: 30px; height: 30px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 12px; }
.chip-list--center { justify-content: center; }
.chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	font-family: var(--font-head);
	font-size: .9375rem;
	font-weight: 600;
	color: var(--ink);
}
.chip--lg { min-height: 56px; padding-inline: 26px; font-size: 1rem; box-shadow: var(--shadow-sm); }
.chip--link { transition: border-color .2s, color .2s; }
.chip--link:hover { border-color: var(--primary); color: var(--primary); }

.panel {
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: #fff;
}
.panel__title {
	margin-bottom: 10px;
	font-family: var(--font-head);
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--primary);
}

.crumbs { margin-bottom: 20px; font-size: .875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs--light a, .crumbs--light li + li::before { color: rgba(255, 255, 255, .7); }
.crumbs--light a:hover { color: #fff; }

.h-small { font-size: 1.25rem; margin-bottom: 18px; }

/* Shared case study card */
.case-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 16px;
	margin-top: 24px;
}
.case-grid--three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 0; }
.case-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: #fff;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.case-card:hover { border-color: #b8cbec; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.case-card__top { margin-bottom: 18px; }
.case-card__title { font-size: 1.25rem; }
.case-card__client { margin-top: 2px; font-size: .875rem; color: var(--muted); }
.case-card__metrics {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 22px 0;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}
.case-card__metrics div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.case-card__metrics dd {
	margin: 0;
	font-family: var(--font-head);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--primary);
	letter-spacing: -0.02em;
}
.case-card__metrics dt { margin-top: 4px; font-size: .8125rem; color: var(--muted); }
.case-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	font-family: var(--font-head);
	font-size: .875rem;
	font-weight: 700;
}
.case-card__link .icon { width: 16px; height: 16px; transition: transform .2s; }
.case-card:hover .case-card__link .icon { transform: translateX(3px); }

/* Featured case study with chart */
.featured-case {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	padding: clamp(24px, 4vw, 48px);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: #fff;
	box-shadow: var(--shadow-sm);
}
.featured-case__text h3 { margin: 16px 0 12px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.featured-case__text p { margin-bottom: 24px; }
.featured-case__data { min-width: 0; }
.featured-case__metrics {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 0 0 20px;
}
.featured-case__metrics div {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	padding: 16px;
	border-radius: var(--r-md);
	background: var(--tint);
}
.featured-case__metrics dd {
	margin: 0;
	font-family: var(--font-head);
	font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--primary);
	letter-spacing: -0.02em;
}
.featured-case__metrics dt { margin-top: 4px; font-size: .8125rem; color: var(--muted); }
.growth-chart { width: 100%; height: clamp(120px, 16vw, 190px); }
.growth-chart__grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.growth-chart__area { fill: url(#calmaChartFill); }
.growth-chart__line {
	fill: none;
	stroke: var(--primary-bright);
	stroke-width: 3;
	stroke-linejoin: round;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

/* Call-to-action band */
.cta-band {
	position: relative;
	overflow: hidden;
	padding-block: clamp(56px, 7vw, 88px);
	background:
		radial-gradient(50% 120% at 100% 0%, rgba(77, 140, 255, .45), transparent 60%),
		linear-gradient(120deg, var(--primary) 0%, var(--primary-deep) 100%);
	color: #d9e5fb;
}
.cta-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px 48px;
}
.cta-band__text { max-width: 620px; }
.cta-band h2 { color: #fff; font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem); }
.cta-band p { margin-top: 12px; font-size: 1.0625rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Inner page hero */
.page-hero {
	padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px);
	background:
		radial-gradient(50% 90% at 100% 0%, var(--tint-2), transparent 70%),
		linear-gradient(180deg, var(--tint) 0%, #fff 100%);
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { max-width: 620px; margin-top: 18px; }
.page-hero + .section--flush-top { padding-top: clamp(8px, 2vw, 24px); }

/* 6. HEADER */
.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	height: var(--header-h);
	border-bottom: 1px solid transparent;
	transition: border-color .25s, box-shadow .25s;
}
/* Blurred background lives on a pseudo-element so the mobile menu panel can cover the screen */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
}
body.menu-open .site-header::before { background: #fff; }
.site-header.is-scrolled {
	border-bottom-color: var(--line);
	box-shadow: 0 8px 24px -16px rgba(6, 26, 63, .25);
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 100%;
}

/* The logo file has wide empty space around it, so it is drawn larger than its box */
.brand {
	position: relative;
	display: block;
	flex: none;
	width: calc(var(--logo-h, 150px) * .48);
	height: 48px;
	margin-right: auto;
}
.brand img {
	position: absolute;
	top: 50%; left: 50%;
	width: auto;
	max-width: none;
	height: var(--logo-h, 150px);
	transform: translate(-50%, -50%);
	pointer-events: none;
}
.brand--light img { filter: brightness(0) invert(1); }

/* Logo cut tightly around the design (setting in Calma Settings > Logo) */
.brand.brand--tight { display: flex; align-items: center; width: auto; height: auto; }
.brand--tight img {
	position: static;
	transform: none;
	width: auto;
	height: var(--logo-h, 150px);
	max-height: calc(var(--header-h) - 14px);
}
.site-footer__about .brand--tight img { max-height: 72px; }

.primary-nav__list { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.primary-nav__list a {
	position: relative;
	display: inline-block;
	padding-block: 8px;
	font-family: var(--font-head);
	font-size: .9375rem;
	font-weight: 600;
	color: var(--ink);
}
.primary-nav__list a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--primary);
	transform: scaleX(0);
	transition: transform .25s var(--ease);
}
.primary-nav__list a:hover { color: var(--primary); }
.primary-nav__list a:hover::after,
.primary-nav__list a[aria-current="page"]::after,
.primary-nav__list .current-menu-item > a::after { transform: scaleX(1); }
.primary-nav__list a[aria-current="page"],
.primary-nav__list .current-menu-item > a { color: var(--primary); }

.primary-nav { margin-right: auto; }
.primary-nav__extra { display: none; }
.site-header__cta { min-height: 44px; padding-inline: 22px; }

.menu-toggle {
	display: none;
	place-items: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	cursor: pointer;
}
.menu-toggle__bars { position: relative; width: 20px; height: 14px; }
.menu-toggle__bars span {
	position: absolute;
	left: 0;
	width: 100%; height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 6px; }
.menu-toggle__bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 960px) {
	:root { --header-h: 66px; }

	.brand { width: calc(var(--logo-h, 150px) * .43); height: 42px; }
	.brand img { height: calc(var(--logo-h, 150px) * .88); }

	.site-header__cta { display: none; }
	.menu-toggle { display: grid; }

	.primary-nav {
		position: fixed;
		top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px));
		left: 0; right: 0; bottom: 0;
		margin: 0;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: 32px;
		padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid var(--line);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
	}
	.primary-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity .25s var(--ease), transform .25s var(--ease);
	}
	.primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav__list li { border-bottom: 1px solid var(--line); }
	.primary-nav__list a { display: block; padding: 18px 4px; font-size: 1.25rem; }
	.primary-nav__list a::after { display: none; }
	.primary-nav__extra { display: grid; gap: 12px; }
}

@media (min-width: 961px) {
	.primary-nav { margin-right: 0; }
	.brand { margin-right: 0; }
	.site-header__inner { justify-content: space-between; }
}

/* FOOTER */
.site-footer {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(45% 70% at 90% 0%, rgba(11, 91, 211, .28), transparent 65%),
		linear-gradient(180deg, var(--navy) 0%, #030d24 100%);
	color: #b7c6e3;
	font-size: .9375rem;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 48px;
	padding-block: clamp(56px, 7vw, 88px);
}
.site-footer__about p { max-width: 360px; margin-top: 18px; line-height: 1.8; }
.site-footer__about .brand { width: calc(var(--logo-h, 150px) * .5); height: 52px; }
.site-footer__about .brand img { height: calc(var(--logo-h, 150px) * 1.07); }
.site-footer__about .brand.brand--tight { width: auto; height: auto; }
.site-footer__title {
	margin-bottom: 18px;
	font-size: 1rem;
	color: #fff;
	letter-spacing: 0;
}
.site-footer__col ul { display: grid; gap: 12px; }
.site-footer a { color: #b7c6e3; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer__contact li { display: flex; align-items: center; gap: 10px; }
.site-footer__contact .icon { width: 18px; height: 18px; color: #8fb4ff; }
.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding-block: 20px;
	font-size: .875rem;
	text-align: center;
}

.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.social a {
	display: grid;
	place-items: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .1);
	color: #fff;
	transition: background-color .2s, transform .2s;
}
.social a:hover { background: var(--primary-bright); color: #fff; transform: translateY(-2px); }
.social .icon { width: 19px; height: 19px; }
.social--dark { margin-top: 8px; }
.social--dark a { background: var(--tint-2); border-color: transparent; color: var(--primary); }
.social--dark a:hover { background: var(--primary); color: #fff; }

@media (max-width: 960px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
	.site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
	.site-footer__grid > :last-child { grid-column: 1 / -1; }
}

/* Floating WhatsApp button */
.wa-float {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 90;
	display: grid;
	place-items: center;
	width: 56px; height: 56px;
	border-radius: 50%;
	background: var(--wa);
	color: #fff;
	box-shadow: 0 12px 28px -8px rgba(31, 170, 89, .6);
	transition: transform .2s var(--ease), background-color .2s;
}
.wa-float:hover { color: #fff; background: #168c48; transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }

/* 7. HOMEPAGE */
.hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 96px);
	background:
		radial-gradient(40% 60% at 80% 40%, rgba(11, 91, 211, .12), transparent 70%),
		radial-gradient(30% 50% at 0% 100%, var(--tint-2), transparent 70%),
		linear-gradient(180deg, var(--tint) 0%, #fff 100%);
}
.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 5vw, 64px);
}
.hero__title { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem); }
.hero__accent {
	position: relative;
	display: inline-block;
	color: var(--primary-bright);
	white-space: nowrap;
}
.hero__accent::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -.08em;
	height: .1em;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--primary-bright), rgba(11, 91, 211, 0));
	transform-origin: left;
	animation: calma-draw 1s .4s var(--ease) both;
}
@keyframes calma-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__lede { max-width: 520px; margin-top: 28px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); }
.hero__lede strong { color: var(--primary); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__actions--center { justify-content: center; }

.hero__visual { position: relative; display: grid; place-items: center; }
.hero__halo {
	position: absolute;
	inset: 6%;
	border-radius: 50%;
	border: 1px solid rgba(6, 64, 154, .12);
	background: radial-gradient(circle, rgba(11, 91, 211, .1) 0%, transparent 65%);
}
.hero__halo::before {
	content: "";
	position: absolute;
	inset: -9%;
	border-radius: 50%;
	border: 1px dashed rgba(6, 64, 154, .14);
}
.hero__img {
	position: relative;
	width: 100%;
	max-width: 580px;
	animation: calma-rise .9s .1s var(--ease) both;
}
@keyframes calma-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Full-width stats bar */
.stats-band {
	background:
		radial-gradient(40% 140% at 100% 50%, rgba(77, 140, 255, .5), transparent 70%),
		linear-gradient(90deg, var(--primary) 0%, var(--primary-bright) 100%);
	color: #fff;
}
.stats-band__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.stats-band__list li {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 14px;
	align-items: center;
	padding: clamp(24px, 3vw, 36px) clamp(12px, 2vw, 28px);
}
.stats-band__list li + li { border-left: 1px solid rgba(255, 255, 255, .18); }
.stats-band__list .icon {
	grid-row: 1 / 3;
	width: 44px; height: 44px;
	padding: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .25);
}
.stats-band__num {
	font-family: var(--font-head);
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}
.stats-band__label { font-size: .875rem; color: #d6e3ff; }

/* Services tabs */
.svc-tabs {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
}
.svc-tabs__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.svc-tab {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	padding: 24px 16px 24px 20px;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: transparent;
	color: var(--muted);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.svc-tab::before {
	content: "";
	position: absolute;
	left: 0; top: 14px; bottom: 14px;
	width: 3px;
	border-radius: 3px;
	background: var(--primary);
	transform: scaleY(0);
	transition: transform .25s var(--ease);
}
.svc-tab__num { font-family: var(--font-head); font-size: .8125rem; font-weight: 700; color: #9aa8c0; }
.svc-tab__title {
	flex: 1;
	font-family: var(--font-head);
	font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
	font-weight: 700;
	color: inherit;
}
.svc-tab__icon {
	width: 32px; height: 32px;
	padding: 7px;
	border-radius: 50%;
	color: #9aa8c0;
	transition: background-color .2s, color .2s, transform .25s var(--ease);
}
.svc-tab:hover { color: var(--ink); background: var(--tint); }
.svc-tab[aria-selected="true"] { color: var(--ink); background: var(--tint); }
.svc-tab[aria-selected="true"]::before { transform: scaleY(1); }
.svc-tab[aria-selected="true"] .svc-tab__num { color: var(--primary); }
.svc-tab[aria-selected="true"] .svc-tab__icon { background: var(--primary); color: #fff; transform: rotate(45deg); }

.svc-panel {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: #fff;
	box-shadow: var(--shadow-md);
	animation: calma-fade .35s var(--ease);
}
@keyframes calma-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.svc-panel__media {
	aspect-ratio: 16 / 9;
	background: linear-gradient(160deg, var(--tint) 0%, var(--tint-2) 100%);
}
.svc-panel__media img { width: 100%; height: 100%; object-fit: contain; }
.svc-panel__body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding: clamp(20px, 3vw, 32px);
	border-top: 1px solid var(--line);
}
.svc-panel__body h3 { width: 100%; font-size: 1.375rem; }
.svc-panel__body p { flex: 1 1 280px; margin-top: -8px; }

/* Process (homepage) */
.process {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	counter-reset: step;
}
.process__step {
	position: relative;
	padding: 28px 22px;
	border: 1px solid rgba(143, 180, 255, .16);
	border-radius: var(--r-md);
	background: rgba(255, 255, 255, .03);
	transition: border-color .25s, background-color .25s;
}
.process__step:hover { border-color: rgba(143, 180, 255, .4); background: rgba(255, 255, 255, .05); }
.process__num {
	position: absolute;
	top: 22px; right: 22px;
	font-family: var(--font-head);
	font-size: .8125rem;
	font-weight: 700;
	color: #6f8fc9;
}
.process__icon {
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	margin-bottom: 22px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--primary-bright), var(--primary));
	color: #fff;
	box-shadow: 0 10px 24px -10px rgba(11, 91, 211, .9);
}
.process__icon .icon { width: 22px; height: 22px; }
.process__step h3 { margin-bottom: 8px; }
.process__step p { font-size: .9375rem; line-height: 1.65; }
.process__tagline {
	margin-top: clamp(32px, 4vw, 48px);
	text-align: center;
	font-family: var(--font-head);
	font-size: 1.0625rem;
	font-weight: 500;
	color: #8fa4c9;
}

/* 8. SERVICES PAGE */
.service-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
.service-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 200px);
	align-items: center;
	gap: 20px;
	padding: clamp(24px, 3vw, 32px);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: linear-gradient(160deg, #fff 40%, var(--tint) 100%);
	transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.service-card:hover { border-color: #b8cbec; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card__title { margin: 18px 0 8px; font-size: 1.375rem; }
.service-card p { margin-bottom: 18px; }
.service-card__media { aspect-ratio: 1; }
.service-card__media img { width: 100%; height: 100%; object-fit: contain; }

.why { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.why__head p:not(.kicker) { margin-top: 16px; font-size: 1.0625rem; }
.why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.why__list li {
	padding: 26px;
	border: 1px solid rgba(143, 180, 255, .16);
	border-radius: var(--r-md);
	background: rgba(255, 255, 255, .03);
}
.why__list h3 { margin: 18px 0 6px; }
.why__list p { font-size: .9375rem; }

.tools { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.tools__head p:not(.kicker) { margin-top: 14px; }

/* Steps — no dotted connectors */
.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.steps__item {
	padding: 28px 24px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: #fff;
}
.steps__num {
	display: inline-grid;
	place-items: center;
	width: 44px; height: 44px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	font-family: var(--font-head);
	font-size: .9375rem;
	font-weight: 700;
}
.steps__item h3 { margin-bottom: 6px; }
.steps__item p { font-size: .9375rem; }

/* 9. ABOUT */
.about-hero {
	padding-block: clamp(40px, 6vw, 88px);
	background:
		radial-gradient(50% 90% at 100% 0%, var(--tint-2), transparent 70%),
		linear-gradient(180deg, var(--tint) 0%, #fff 100%);
}
.about-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}
.about-hero h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem); }
.about-hero__sub { display: block; margin-top: 6px; font-size: .62em; font-weight: 700; color: var(--ink); }
.about-hero__text .lede { margin-top: 22px; color: var(--ink); }
.about-hero__text p + p { margin-top: 14px; }
.about-hero__sign { padding-top: 6px; color: var(--ink); }
.about-hero__sign strong { color: var(--primary); }
.about-hero__media {
	overflow: hidden;
	border-radius: var(--r-lg);
	background: var(--tint-2);
	box-shadow: var(--shadow-lg);
	aspect-ratio: 16 / 11;
}
.about-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.about-stats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	padding-top: clamp(32px, 4vw, 48px);
}
.about-stats li {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 14px;
	align-items: center;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: #fff;
	font-size: .875rem;
	color: var(--muted);
}
.about-stats .icon {
	grid-row: 1 / 3;
	width: 44px; height: 44px;
	padding: 11px;
	border-radius: 50%;
	background: var(--tint-2);
	color: var(--primary);
}
.about-stats__num {
	font-family: var(--font-head);
	font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--primary);
	letter-spacing: -0.02em;
}

.about-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.panel--values { display: flex; flex-direction: column; }
.values { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; margin-top: 20px; }
.values li { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-md); background: var(--tint); }
.values .icon-tile { background: #fff; }
.values h3 { margin-bottom: 4px; font-size: 1.0625rem; }
.values p { font-size: .9375rem; }

.panel--feature { display: flex; flex-direction: column; gap: 28px; }
.mv { display: grid; gap: 24px; }
.mv__item { display: flex; gap: 16px; align-items: flex-start; }
.mv__item p { font-size: .9375rem; }
.belief {
	margin: auto 0 0;
	padding: 24px;
	border-radius: var(--r-md);
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
	color: #fff;
}
.belief .panel__title { color: #a9c4ff; }
.belief blockquote { margin: 0; }
.belief blockquote p {
	font-family: var(--font-head);
	font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
	font-weight: 600;
	line-height: 1.45;
	color: #fff;
}
.belief__words { margin-top: 14px; font-size: .875rem; color: #b9cdf5; }

/* 10. OUR PARTNERS */
.partners-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(64px, 9vw, 120px);
	background:
		radial-gradient(45% 90% at 100% 0%, rgba(77, 140, 255, .55), transparent 65%),
		radial-gradient(40% 80% at 0% 100%, rgba(4, 18, 46, .6), transparent 70%),
		linear-gradient(120deg, var(--primary) 0%, var(--primary-deep) 100%);
	color: #d9e5fb;
	text-align: center;
}
.partners-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: radial-gradient(60% 80% at 50% 50%, #000, transparent 75%);
	-webkit-mask-image: radial-gradient(60% 80% at 50% 50%, #000, transparent 75%);
	pointer-events: none;
}
.partners-hero .container { position: relative; }
.partners-hero .kicker { justify-content: center; }
.partners-hero h1 { color: #fff; max-width: 16ch; margin-inline: auto; }
.partners-hero .lede { max-width: 640px; margin: 18px auto 0; }

.logo-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}
.logo-tile {
	display: grid;
	place-items: center;
	min-height: 150px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: #fff;
	text-align: center;
	transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.logo-tile:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.logo-tile img { max-height: 72px; width: auto; object-fit: contain; }
.logo-tile--name { align-content: center; gap: 6px; }
.logo-tile__name {
	font-family: var(--font-head);
	font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ink);
}
.logo-tile__meta { font-size: .8125rem; color: var(--muted); }
.logo-tile__mark {
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	margin-bottom: 8px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--primary-bright), var(--primary));
	color: #fff;
	font-family: var(--font-head);
	font-size: 1.0625rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.logo-tile--name { justify-items: center; }

/* 11. CONTACT */
.contact {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 24px;
	align-items: start;
}
.contact__info,
.contact__form {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: #fff;
	box-shadow: var(--shadow-sm);
}
.contact__head {
	padding: 18px 24px;
	background: var(--navy);
	color: #fff;
	font-size: 1.125rem;
	text-align: center;
}
.contact__form .contact__head { background: var(--primary); }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 28px 18px;
	text-align: center;
	font-size: .9375rem;
	word-break: break-word;
}
.contact-card:nth-child(odd) { border-right: 1px solid var(--line); }
.contact-card:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
.contact-card h3 { margin: 12px 0 2px; font-size: 1.0625rem; }
.contact-card a { color: var(--text); }
.contact-card a:hover { color: var(--primary); }
.contact-card .social--dark { justify-content: center; }
.contact-card .social--dark a { width: 38px; height: 38px; }

/* Lead form — styles your existing [calma_lead_form] to match the site */
.lead-form { padding: clamp(20px, 3vw, 32px); }
.lead-form .calma-contact,
.lead-form section,
.lead-form .cc-container {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	min-height: 0 !important;
}
.lead-form .cc-container:has(.cc-form-box) > :not(.cc-form-box) { display: none !important; }
.lead-form .cc-form-box {
	max-width: none !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
}
.lead-form form { display: block; width: 100%; margin: 0; }
.lead-form .cc-input-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 0 16px !important;
}
.lead-form .cc-input-group { margin: 0 0 16px !important; }
.lead-form label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--font-head);
	font-size: .8125rem;
	font-weight: 600;
	color: var(--ink);
}
.lead-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.lead-form select,
.lead-form textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--tint);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	transition: border-color .2s, background-color .2s, box-shadow .2s;
	-webkit-appearance: none;
	appearance: none;
}
.lead-form select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306409a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
}
.lead-form textarea { min-height: 130px; resize: vertical; }
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: #8b97ad; }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
	outline: none;
	border-color: var(--primary-bright);
	background-color: #fff;
	box-shadow: 0 0 0 4px rgba(11, 91, 211, .14);
}
.lead-form button,
.lead-form input[type="submit"],
.lead-form .cc-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	margin-top: 4px;
	padding: 14px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--primary);
	color: #fff;
	font-family: var(--font-head);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 24px -10px rgba(6, 64, 154, .7);
	transition: background-color .2s, transform .2s;
}
.lead-form button:hover,
.lead-form input[type="submit"]:hover,
.lead-form .cc-submit:hover { background: var(--primary-bright); transform: translateY(-1px); }
.lead-form p { font-size: .875rem; }
.lead-form form > p:last-child,
.lead-form .cc-note { margin-top: 12px; text-align: center; color: var(--muted); }
.lead-form__fallback { display: grid; gap: 12px; }

.next-steps { padding: 24px; border-top: 1px solid var(--line); background: var(--tint); }
.next-steps h3 { margin-bottom: 14px; font-size: 1rem; }
.next-steps ol { display: grid; gap: 12px; counter-reset: next; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; counter-increment: next; }
.next-steps li::before {
	content: counter(next);
	display: grid;
	place-items: center;
	width: 26px; height: 26px;
	flex: none;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	font-family: var(--font-head);
	font-size: .8125rem;
	font-weight: 700;
}
.lead-form__fallback p { margin-bottom: 6px; font-size: 1rem; text-align: center; }

/* 12. SERVICE DETAIL PAGES */
.detail-hero {
	padding-block: clamp(40px, 6vw, 88px);
	background:
		radial-gradient(50% 90% at 100% 0%, var(--tint-2), transparent 70%),
		linear-gradient(180deg, var(--tint) 0%, #fff 100%);
}
.detail-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}
.detail-hero h1 { margin: 20px 0 16px; }
.detail-hero .hero__actions { margin-top: 30px; }
.detail-hero__media {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: linear-gradient(160deg, #fff 0%, var(--tint-2) 100%);
	box-shadow: var(--shadow-md);
	aspect-ratio: 16 / 11;
}
.detail-hero__media img { width: 100%; height: 100%; object-fit: contain; }

.include-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.include {
	display: flex;
	gap: 16px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: #fff;
}
.include__check {
	display: grid;
	place-items: center;
	width: 32px; height: 32px;
	flex: none;
	border-radius: 50%;
	background: var(--tint-2);
	color: var(--primary);
}
.include__check .icon { width: 18px; height: 18px; }
.include h3 { margin-bottom: 4px; font-size: 1.0625rem; }
.include p { font-size: .9375rem; }
.include--cta {
	position: relative;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	border-color: transparent;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
	color: #d9e5fb;
}
.include--cta h3 { color: #fff; }
.include--cta .link-arrow { color: #fff; }

.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(28px, 5vw, 72px); align-items: center; }
.proof__text { max-width: 560px; }
.proof__text p:not(.kicker) { margin-top: 14px; font-size: 1.0625rem; }

/* CASE STUDY PAGES */
.case-hero {
	padding-block: clamp(48px, 7vw, 96px);
	background:
		radial-gradient(45% 90% at 100% 0%, rgba(77, 140, 255, .5), transparent 65%),
		linear-gradient(120deg, var(--navy) 0%, var(--primary-deep) 100%);
	color: #c9d7f1;
}
.case-hero h1 { margin: 18px 0 14px; color: #fff; }
.case-hero .lede { max-width: 640px; }
.case-hero__metrics {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 36px 0 0;
}
.case-hero__metrics div {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	min-width: 160px;
	padding: 18px 22px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--r-md);
	background: rgba(255, 255, 255, .06);
}
.case-hero__metrics dd {
	margin: 0;
	font-family: var(--font-head);
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
	font-weight: 800;
	line-height: 1.1;
	color: #fff;
	letter-spacing: -0.02em;
}
.case-hero__metrics dt { margin-top: 4px; font-size: .875rem; }

.case-body { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.case-body__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.facts { display: grid; gap: 20px; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--tint); }
.facts dt { font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; color: var(--ink); font-weight: 400; }
.facts ul { display: grid; gap: 4px; }
.case-body__main { max-width: 720px; }
.case-body__main h2 { margin: 40px 0 14px; font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); }
.case-body__main h2:first-child { margin-top: 0; }
.case-body__main > p { font-size: 1.0625rem; }
.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.0625rem; }
.check-list .icon { width: 24px; height: 24px; margin-top: 2px; padding: 4px; border-radius: 50%; background: var(--tint-2); color: var(--primary); }
.result-list { display: grid; gap: 10px; font-size: 1.0625rem; }
.result-list strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--primary); }

/* Generic content pages */
.prose { max-width: 760px; font-size: 1.0625rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: 1.75rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.25rem; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose ol { padding-left: 1.2em; list-style: decimal; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r-md); }
.post-list { display: grid; gap: 28px; max-width: 760px; }
.post-item h2 { font-size: 1.375rem; }
.post-item p { margin-top: 6px; }

.not-found { padding-block: clamp(72px, 12vw, 160px); text-align: center; background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); }
.not-found__code {
	font-family: var(--font-head);
	font-size: clamp(5rem, 3rem + 10vw, 10rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--tint-2);
	-webkit-text-stroke: 2px var(--primary);
}
.not-found h1 { margin-top: 12px; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }
.not-found .lede { max-width: 520px; margin: 14px auto 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
	.process { grid-template-columns: repeat(3, 1fr); }
	.about-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.service-card { grid-template-columns: minmax(0, 1fr) minmax(0, 150px); }
	.logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.why { grid-template-columns: 1fr; }
	.case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.case-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
	.hero__grid,
	.about-hero__grid,
	.detail-hero__grid { grid-template-columns: 1fr; }
	.hero__visual { max-width: 520px; width: 100%; margin-inline: auto; }

	.stats-band__list { grid-template-columns: repeat(2, 1fr); }
	.stats-band__list li + li { border-left: 0; }
	.stats-band__list li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .18); }
	.stats-band__list li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .18); }

	.svc-tabs { grid-template-columns: 1fr; }
	.svc-tabs__list {
		flex-direction: row;
		gap: 8px;
		margin-inline: calc(var(--gutter) * -1);
		padding: 2px var(--gutter) 6px;
		border-top: 0;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	.svc-tabs__list::-webkit-scrollbar { display: none; }
	.svc-tab {
		flex: none;
		width: auto;
		padding: 10px 18px;
		border: 1px solid var(--line);
		border-radius: 999px;
		background: #fff;
		scroll-snap-align: start;
	}
	.svc-tab::before,
	.svc-tab__num,
	.svc-tab__icon { display: none; }
	.svc-tab__title { font-size: .9375rem; white-space: nowrap; }
	.svc-tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
	.svc-tab:hover:not([aria-selected="true"]) { background: var(--tint); }

	.featured-case { grid-template-columns: 1fr; }
	.case-grid,
	.case-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.service-grid { grid-template-columns: 1fr; }
	.service-card { grid-template-columns: minmax(0, 1fr) minmax(0, 170px); }
	.tools { grid-template-columns: 1fr; }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.about-cards { grid-template-columns: 1fr; }
	.contact { grid-template-columns: 1fr; }
	.contact__form { order: -1; }
	.proof { grid-template-columns: 1fr; }
	.case-body { grid-template-columns: 1fr; }
	.case-body__aside { position: static; }
}

@media (max-width: 760px) {
	.process { grid-template-columns: 1fr; gap: 12px; }
	.process__step { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding: 20px; }
	.process__icon { grid-row: 1 / 3; margin: 0; }
	.process__step h3 { align-self: end; margin-bottom: 4px; }
	.process__num { top: 20px; right: 20px; }

	.why__list { grid-template-columns: 1fr; }
	.logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.logo-tile { min-height: 120px; }
	.about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.about-stats li:last-child { grid-column: 1 / -1; }

	.case-grid {
		display: flex;
		gap: 12px;
		margin-inline: calc(var(--gutter) * -1);
		padding: 4px var(--gutter) 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
	}
	.case-grid .case-card { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
	.case-grid--page,
	.case-grid--three { display: grid; grid-template-columns: 1fr; margin-inline: 0; padding: 0; overflow: visible; }
	.case-grid--page { margin-top: 16px; }
	.case-grid--page .case-card,
	.case-grid--three .case-card { flex: none; }

	.featured-case__metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.featured-case__metrics div { padding: 12px; }
}

@media (max-width: 560px) {
	body { font-size: .9688rem; }

	.hero__actions .btn,
	.cta-band__actions,
	.cta-band__actions .btn { width: 100%; }

	.stats-band__list li { grid-template-columns: 1fr; padding: 22px 16px; text-align: left; }
	.stats-band__list .icon { grid-row: auto; width: 36px; height: 36px; padding: 8px; margin-bottom: 10px; }

	.service-card { grid-template-columns: 1fr; gap: 16px; padding: 16px 16px 22px; }
	.service-card__body { padding-inline: 6px; }
	.service-card__media { order: -1; aspect-ratio: 16 / 10; border-radius: var(--r-md); background: var(--tint-2); }
	.steps { grid-template-columns: 1fr; }
	.steps__item { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
	.steps__num { grid-row: 1 / 3; margin: 0; }
	.steps__item h3 { align-self: end; }

	.values { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
	.values li { flex-direction: row; padding: 18px; }
	.about-stats li { padding: 16px; column-gap: 10px; }
	.about-stats .icon { width: 38px; height: 38px; padding: 9px; }

	.contact-cards { grid-template-columns: 1fr; }
	.contact-card {
		display: grid;
		grid-template-columns: 44px 1fr;
		column-gap: 14px;
		align-items: center;
		justify-items: start;
		padding: 16px 20px;
		text-align: left;
		border-right: 0 !important;
		border-bottom: 1px solid var(--line);
	}
	.contact-card:last-child { border-bottom: 0; }
	.contact-card .icon-tile { grid-row: 1 / 5; width: 44px; height: 44px; }
	.contact-card > :not(.icon-tile) { grid-column: 2; }
	.contact-card h3 { margin: 0; font-size: 1rem; }
	.contact-card .social--dark { justify-content: flex-start; margin-top: 4px; }

	.about-stats li { grid-template-columns: 1fr; text-align: left; }
	.about-stats .icon { grid-row: auto; margin-bottom: 10px; }
	.about-hero__sub { font-size: .7em; }

	.logo-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }

	.service-card__body .icon-tile { display: none; }
	.service-card__title { margin-top: 4px; }
	.lead-form .cc-input-grid { grid-template-columns: 1fr !important; }

	.featured-case__metrics dt { font-size: .75rem; }
	.case-hero__metrics div { flex: 1 1 140px; min-width: 0; }
	.svc-panel__body .btn { width: 100%; }
}

/* Respect "reduce motion" settings */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
