@charset "UTF-8";

/* =========================================================================
   Counting Group — design system
   RTL-first. Single committed light palette: this is a daytime business
   document, deliberately not theme-switching. Every colour is painted
   explicitly so the page never inherits a host background.
   ========================================================================= */

:root {
	/* Ground — cool near-white, biased toward the brand cyan rather than grey */
	--paper:      #FFFFFF;
	--mist:       #F2F6F8;
	--mist-deep:  #E7EFF3;

	/* Ink — the night warehouse the counts actually happen in */
	--ink:        #0E1F2B;
	--ink-soft:   #16303F;
	--slate:      #35505F;
	--muted:      #5C7280;

	/* Brand cyan, deepened until it carries white text at AA */
	--cyan:       #0B87AE;
	--cyan-deep:  #076C8C;
	--cyan-tint:  #E3F0F5;

	/* The single warm note. Figures only — an instrument readout. */
	--amber:      #C2803A;

	--line:       #DAE4E9;
	--line-soft:  #EAF0F3;
	--line-dark:  #24404F;

	/* Type */
	--font-display: "Frank Ruhl Libre", "David Libre", Georgia, serif;
	--font-body:    "Assistant", "Segoe UI", system-ui, -apple-system, sans-serif;

	--fs-display: clamp(2.25rem, 1.45rem + 3.3vw, 4rem);
	--fs-h1:      clamp(1.95rem, 1.4rem + 2.3vw, 3.15rem);
	--fs-h2:      clamp(1.55rem, 1.25rem + 1.4vw, 2.35rem);
	--fs-h3:      clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
	--fs-body:    clamp(1rem, 0.97rem + 0.15vw, 1.115rem);
	--fs-sm:      0.9375rem;
	--fs-xs:      0.8125rem;

	/* Space */
	--s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
	--s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
	--s-9: 6rem;

	--band-y:  clamp(3.5rem, 2rem + 6vw, 7rem);
	--wrap:    1180px;
	--measure: 62ch;

	--r-sm: 2px;
	--r-md: 4px;

	--shadow-sm: 0 1px 2px rgba(14, 31, 43, 0.06);
	--shadow-md: 0 10px 30px -12px rgba(14, 31, 43, 0.22);

	--header-h: 76px;
}

/* ---------- Reset ---------- */

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

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--slate);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--cyan-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--cyan);
	outline-offset: 2px;
	border-radius: var(--r-sm);
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--ink);
	line-height: 1.18;
	margin: 0;
	font-weight: 700;
	text-wrap: balance;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

/* ---------- Layout primitives ---------- */

.wrap {
	width: min(100% - 2.5rem, var(--wrap));
	margin-inline: auto;
}

.wrap--narrow { width: min(100% - 2.5rem, 820px); }

.band { padding-block: var(--band-y); background: var(--paper); }
.band--mist { background: var(--mist); }
.band--ink  { background: var(--ink); color: #C6D6DF; }
.band--ink :is(h1, h2, h3, h4) { color: #FFFFFF; }
.band--tint { background: var(--cyan-tint); }

.band + .band--mist,
.band + .band--tint { border-block-start: 1px solid var(--line-soft); }

.stack > * + * { margin-block-start: var(--s-4); }
.stack--lg > * + * { margin-block-start: var(--s-6); }

.measure { max-width: var(--measure); }

/* ---------- Section headings ---------- */

.eyebrow {
	font-family: var(--font-body);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--cyan-deep);
	margin: 0 0 var(--s-3);
	display: flex;
	align-items: center;
	gap: var(--s-3);
}

.eyebrow::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}

.band--ink .eyebrow { color: #63B9D6; }
.band--ink .eyebrow::after { background: var(--line-dark); }

.section-head { margin-block-end: var(--s-7); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p {
	margin-block-start: var(--s-4);
	max-width: var(--measure);
	color: var(--muted);
}
.band--ink .section-head p { color: #9FB6C2; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s-2);
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	font-weight: 700;
	line-height: 1;
	padding: 1.05rem 1.9rem;
	border: 1px solid transparent;
	border-radius: var(--r-md);
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn--primary { background: var(--cyan); color: #FFFFFF; }
.btn--primary:hover { background: var(--cyan-deep); color: #FFFFFF; transform: translateY(-1px); }

.btn--ghost {
	background: transparent;
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; border-color: #FFFFFF; }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

/* ---------- Header ---------- */

.header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ink);
	border-block-end: 1px solid var(--line-dark);
}

.header__inner {
	display: flex;
	align-items: center;
	gap: var(--s-6);
	min-height: var(--header-h);
}

.header__logo { flex: none; }
.header__logo img { height: 34px; width: auto; }

.nav { margin-inline-start: auto; }
.nav__list {
	display: flex;
	align-items: center;
	gap: var(--s-5);
	list-style: none;
}
.nav__list a {
	color: #C6D6DF;
	text-decoration: none;
	font-size: var(--fs-sm);
	font-weight: 600;
	padding-block: 0.4rem;
	border-block-end: 2px solid transparent;
	display: block;
}
.nav__list a:hover { color: #FFFFFF; border-block-end-color: var(--cyan); }
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a { color: #FFFFFF; border-block-end-color: var(--cyan); }

.header__phone {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	color: #FFFFFF;
	text-decoration: none;
	font-weight: 700;
	font-size: var(--fs-sm);
	font-variant-numeric: tabular-nums;
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--line-dark);
	border-radius: var(--r-md);
}
.header__phone:hover { background: var(--cyan); border-color: var(--cyan); color: #FFFFFF; }

.nav-toggle {
	display: none;
	margin-inline-start: auto;
	background: transparent;
	border: 1px solid var(--line-dark);
	border-radius: var(--r-md);
	color: #FFFFFF;
	padding: 0.55rem 0.8rem;
	font: inherit;
	font-size: var(--fs-sm);
	cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	background: var(--ink);
	color: #C6D6DF;
	overflow: hidden;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.3;
}
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to left, rgba(14, 31, 43, 0.55) 0%, rgba(14, 31, 43, 0.92) 55%, var(--ink) 100%);
}

.hero__inner {
	position: relative;
	z-index: 1;
	padding-block: clamp(4rem, 2rem + 9vw, 8.5rem);
	max-width: 46rem;
}

.hero h1 {
	font-size: var(--fs-display);
	color: #FFFFFF;
	font-weight: 900;
	letter-spacing: -0.01em;
}

.hero__lede {
	margin-block-start: var(--s-5);
	font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem);
	color: #B7CCD7;
	max-width: 34rem;
}

.hero__actions {
	margin-block-start: var(--s-7);
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-4);
}

.hero__note {
	margin-block-start: var(--s-6);
	font-size: var(--fs-sm);
	color: #8FA9B7;
	display: flex;
	align-items: baseline;
	gap: var(--s-2);
}
.hero__note b {
	color: var(--amber);
	font-variant-numeric: tabular-nums;
	font-size: 1.15em;
}

/* ---------- Figures (the one warm note) ---------- */

.figures {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	border-block-start: 1px solid var(--line);
	border-inline-start: 1px solid var(--line);
}

.figure {
	padding: var(--s-6) var(--s-5);
	border-block-end: 1px solid var(--line);
	border-inline-end: 1px solid var(--line);
	background: var(--paper);
}

.figure__value {
	font-family: var(--font-display);
	font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem);
	font-weight: 900;
	color: var(--amber);
	line-height: 1;
	font-variant-numeric: tabular-nums;
	display: block;
}

.figure__label {
	margin-block-start: var(--s-3);
	font-size: var(--fs-sm);
	color: var(--muted);
	display: block;
}

/* ---------- Editorial two-column ---------- */

.split {
	display: grid;
	gap: clamp(2rem, 1rem + 4vw, 4.5rem);
	align-items: start;
}
@media (min-width: 900px) {
	.split { grid-template-columns: 1fr 1fr; }
	.split--wide-start { grid-template-columns: 1.15fr 0.85fr; }
}

.split__media img { border-radius: var(--r-md); box-shadow: var(--shadow-md); }

/* Rule-separated list — precision over bullets */
.ruled { list-style: none; }
.ruled li {
	padding-block: var(--s-4);
	border-block-start: 1px solid var(--line);
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--s-4);
	align-items: baseline;
}
.ruled li:last-child { border-block-end: 1px solid var(--line); }
.ruled li::before {
	content: "";
	width: 6px;
	height: 6px;
	background: var(--cyan);
	border-radius: 50%;
	transform: translateY(-2px);
}
.band--ink .ruled li { border-color: var(--line-dark); }

/* ---------- Services ---------- */

.services {
	display: grid;
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service {
	background: var(--paper);
	padding: var(--s-6) var(--s-5);
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
	transition: background-color 0.18s ease;
}
.service:hover { background: var(--mist); }

/* The source icons are white line-art PNGs, so the well has to be dark
   for them to read at all. */
.service__icon {
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	background: var(--cyan);
	border-radius: var(--r-md);
	flex: none;
}
.service__icon img { width: 30px; height: 30px; object-fit: contain; }
.service:hover .service__icon { background: var(--ink); }

.service h3 { font-size: var(--fs-h3); }
.service p { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Process (a genuine sequence, so numbered) ---------- */

.steps {
	list-style: none;
	counter-reset: step;
	display: grid;
	gap: 0;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.step {
	counter-increment: step;
	padding: var(--s-6) var(--s-5) var(--s-6) var(--s-6);
	border-inline-start: 1px solid var(--line-dark);
	position: relative;
}
.step:first-child { border-inline-start: 0; }

.step::before {
	content: counter(step, decimal-leading-zero);
	font-family: var(--font-display);
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--amber);
	font-variant-numeric: tabular-nums;
	display: block;
	margin-block-end: var(--s-3);
}

.step h3 { font-size: var(--fs-h3); margin-block-end: var(--s-3); }
.step p { font-size: var(--fs-sm); color: #9FB6C2; }

/* ---------- Client logos ---------- */

/* Borders sit on the cells, not on the container, so a part-filled final row
   leaves clean paper rather than a slab of border colour. */
.logos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	background: var(--paper);
	border-block-start: 1px solid var(--line);
	border-inline-start: 1px solid var(--line);
}

.logo-cell {
	background: var(--paper);
	aspect-ratio: 3 / 2;
	display: grid;
	place-items: center;
	padding: var(--s-4);
	border-block-end: 1px solid var(--line);
	border-inline-end: 1px solid var(--line);
}

.logo-cell img {
	max-height: 54px;
	max-width: 100%;
	width: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.62;
	transition: filter 0.2s ease, opacity 0.2s ease;
}
.logo-cell:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Contact ---------- */

.contact-card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
	box-shadow: var(--shadow-md);
}

.field { display: grid; gap: var(--s-2); margin-block-end: var(--s-4); }
.field > label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }

.field input,
.field select,
.field textarea {
	font: inherit;
	font-size: var(--fs-sm);
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: 0.85rem 0.95rem;
	width: 100%;
	min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); }

.field-row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.contact-lines { list-style: none; display: grid; gap: var(--s-4); }
.contact-lines li { display: grid; gap: var(--s-1); }
.contact-lines .k { font-size: var(--fs-xs); color: #8FA9B7; letter-spacing: 0.06em; font-weight: 700; }
.contact-lines .v { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.35rem); color: #FFFFFF; font-weight: 700; font-variant-numeric: tabular-nums; }
.contact-lines .v a { color: #FFFFFF; text-decoration: none; }
.contact-lines .v a:hover { color: var(--amber); }

/* ---------- CTA strip ---------- */

.cta-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-5);
}
.cta-strip h2 { font-size: var(--fs-h2); max-width: 26ch; }

/* ---------- Article / page body ---------- */

.entry { max-width: var(--measure); }
.entry > * + * { margin-block-start: var(--s-5); }
.entry h2 { font-size: var(--fs-h2); margin-block-start: var(--s-7); }
.entry h3 { font-size: var(--fs-h3); margin-block-start: var(--s-6); }
.entry ul, .entry ol { padding-inline-start: 1.4rem; }
.entry li + li { margin-block-start: var(--s-2); }
.entry img { border-radius: var(--r-md); }

/* ---------- Inner page hero ---------- */

.page-hero {
	background: var(--ink);
	padding-block: clamp(3rem, 2rem + 4vw, 5.25rem);
	position: relative;
}
.page-hero h1 { font-size: var(--fs-h1); color: #FFFFFF; max-width: 22ch; }
.page-hero .eyebrow { color: #63B9D6; }
.page-hero .eyebrow::after { background: var(--line-dark); }
.page-hero__lede {
	margin-block-start: var(--s-5);
	max-width: var(--measure);
	color: #9FB6C2;
	font-size: clamp(1rem, 0.97rem + 0.3vw, 1.2rem);
}

/* ---------- Breadcrumb ---------- */

.crumbs {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-2);
	font-size: var(--fs-xs);
	color: #7F98A6;
	margin-block-end: var(--s-4);
}
.crumbs a { color: #9FB6C2; text-decoration: none; }
.crumbs a:hover { color: #FFFFFF; }
.crumbs li + li::before { content: "‹"; margin-inline-end: var(--s-2); color: #52707F; }

/* ---------- Prose ---------- */

.prose { max-width: var(--measure); }
.prose > * + * { margin-block-start: var(--s-5); }
.prose h2 { font-size: var(--fs-h2); margin-block-start: var(--s-8); }
.prose h3 { font-size: var(--fs-h3); margin-block-start: var(--s-7); }
.prose h2 + *, .prose h3 + * { margin-block-start: var(--s-4); }
.prose strong { color: var(--ink); font-weight: 700; }

/* Marked list — a hairline-separated set, aligned on a single rail */
.marks { list-style: none; }
.marks li {
	display: grid;
	grid-template-columns: 1.5rem 1fr;
	gap: var(--s-3);
	align-items: start;
	padding-block: var(--s-3);
	border-block-start: 1px solid var(--line-soft);
}
.marks li:first-child { border-block-start: 0; padding-block-start: 0; }
.marks li::before {
	content: "";
	inline-size: 9px;
	block-size: 9px;
	margin-block-start: 0.62em;
	border: 2px solid var(--cyan);
	border-radius: 50%;
	justify-self: center;
}
.band--ink .marks li { border-color: var(--line-dark); }

/* ---------- Alternating feature rows ---------- */

.feature {
	display: grid;
	gap: clamp(2rem, 1rem + 4vw, 4rem);
	align-items: center;
}
@media (min-width: 900px) {
	.feature { grid-template-columns: 1fr 1fr; }
	.feature--flip .feature__media { order: 2; }
}
.feature + .feature { margin-block-start: var(--band-y); padding-block-start: var(--band-y); border-block-start: 1px solid var(--line); }
.feature__media img { border-radius: var(--r-md); box-shadow: var(--shadow-md); width: 100%; }
.feature__body h2 { font-size: var(--fs-h2); }
.feature__body > * + * { margin-block-start: var(--s-4); }

/* ---------- Highlight cards (image-box replacements) ---------- */

.highlights {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	background: var(--paper);
	border-block-start: 1px solid var(--line);
	border-inline-start: 1px solid var(--line);
}

.highlight {
	padding: var(--s-6) var(--s-5);
	border-block-end: 1px solid var(--line);
	border-inline-end: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
	align-items: flex-start;
}
.highlight__icon {
	inline-size: 54px;
	block-size: 54px;
	display: grid;
	place-items: center;
	background: var(--cyan);
	border-radius: var(--r-md);
}
.highlight__icon img { inline-size: 30px; block-size: 30px; object-fit: contain; }
.highlight h3 { font-size: var(--fs-h3); }
.highlight p { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Confirmation ---------- */

.confirm {
	max-width: 34rem;
	margin-inline: auto;
	text-align: center;
	padding-block: var(--s-7);
}
.confirm__mark {
	inline-size: 64px;
	block-size: 64px;
	display: grid;
	place-items: center;
	margin-inline: auto;
	margin-block-end: var(--s-6);
	background: var(--cyan-tint);
	color: var(--cyan-deep);
	border-radius: 50%;
	font-size: 1.75rem;
	line-height: 1;
}
.confirm h1 { font-size: var(--fs-h1); }
.confirm p { margin-block-start: var(--s-4); color: var(--muted); }
.confirm__actions {
	margin-block-start: var(--s-7);
	display: flex;
	gap: var(--s-4);
	flex-wrap: wrap;
	justify-content: center;
}

/* ---------- Contact tiles ---------- */

.tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: var(--s-5);
}

.tile {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: var(--s-6) var(--s-5);
	display: grid;
	gap: var(--s-2);
}
.tile .k { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; color: var(--cyan-deep); }
.tile .v {
	font-family: var(--font-display);
	font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
	font-weight: 700;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
	word-break: break-word;
}
.tile .v a { color: var(--ink); text-decoration: none; }
.tile .v a:hover { color: var(--cyan-deep); }

/* ---------- Footer ---------- */

.footer { background: var(--ink); color: #8FA9B7; padding-block: var(--s-8) var(--s-6); }
.footer a { color: #C6D6DF; text-decoration: none; }
.footer a:hover { color: #FFFFFF; }

.footer__grid {
	display: grid;
	gap: var(--s-7);
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	padding-block-end: var(--s-7);
	border-block-end: 1px solid var(--line-dark);
}
.footer h3 { color: #FFFFFF; font-size: 1.05rem; margin-block-end: var(--s-4); }
.footer ul { list-style: none; display: grid; gap: var(--s-2); }
.footer__logo img { height: 38px; width: auto; margin-block-end: var(--s-4); }

.footer__base {
	padding-block-start: var(--s-5);
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-4);
	justify-content: space-between;
	font-size: var(--fs-xs);
}

/* ---------- Skip link ---------- */

.skip-link {
	position: absolute;
	inset-inline-start: -9999px;
	top: 0;
	background: var(--cyan);
	color: #FFFFFF;
	padding: var(--s-3) var(--s-4);
	z-index: 100;
}
.skip-link:focus { inset-inline-start: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.header__phone { display: none; }

	.nav {
		display: none;
		position: absolute;
		inset-inline: 0;
		top: var(--header-h);
		background: var(--ink-soft);
		border-block-end: 1px solid var(--line-dark);
		padding: var(--s-4) 1.25rem var(--s-5);
	}
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list li + li { border-block-start: 1px solid var(--line-dark); }
	.nav__list a { padding-block: var(--s-4); border-block-end: 0; }

	.header { position: relative; }
	.header__inner { position: relative; }

	.step { border-inline-start: 0; border-block-start: 1px solid var(--line-dark); }
	.step:first-child { border-block-start: 0; }
}
