/*
Theme Name: BPThink
Theme URI: https://bpthink.com
Author: BPThink Private Limited
Author URI: https://bpthink.com
Description: Company theme for bpthink.com. Home, Services, Products (bplead360, bpbuild, bptap, bppos), Case Studies, Contact, a free QR code tool and legal pages, with an enquiry inbox, CRM webhook, GA4 with consent and a one-click content importer. No plugins required.
Version: 1.4.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: Proprietary
Text Domain: bpthink
*/

/* ------------------------------------------------------------------
   Tokens
   Blueprint: cool drafting paper, navy ink, blueprint blue for
   structure, one amber "signal" colour reserved for primary actions.
------------------------------------------------------------------- */
:root {
	--paper: #f3f6fa;
	--white: #ffffff;
	--ink: #0f2540;
	--ink-soft: #3e5573;
	--line: #cdd8e5;
	--line-soft: #e2e9f2;
	--blue: #1d5fd1;
	--blue-deep: #123f94;
	--blue-wash: #e6eefb;
	--signal: #f2a007;
	--signal-deep: #d98e00;
	--ok: #13795b;
	--error: #b42318;

	--font-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-display: "IBM Plex Sans Condensed", "Arial Narrow", "IBM Plex Sans", Roboto, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(1.1rem, 4vw, 2rem);
	--section: clamp(3.5rem, 8vw, 6rem);
	--radius: 4px;
	--radius-lg: 8px;
	--header-h: 72px;
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.12; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-soft); }
.h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.005em; }

.screen-reader-text {
	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: 1rem; top: -100px; z-index: 100;
	background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--white); }

.icon { flex: none; }

/* ------------------------------------------------------------------
   Buttons and links
------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 44px; padding: 0.55rem 1.15rem;
	font: 600 0.98rem/1.2 var(--font-body);
	border: 1.5px solid transparent; border-radius: var(--radius);
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-lg { min-height: 50px; padding: 0.7rem 1.4rem; font-size: 1.02rem; }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: var(--signal-deep); color: var(--ink); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.text-link {
	display: inline-block; font-weight: 600; font-size: 0.95rem; color: var(--blue);
	text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-color: currentColor; }
.link-button {
	background: none; border: 0; padding: 0; margin-top: 0.5rem;
	font: inherit; font-size: 0.95rem; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em;
}

.kicker {
	display: flex; align-items: center; gap: 0.6rem;
	margin: 0 0 1rem; font-size: 0.95rem; font-weight: 500; color: var(--blue);
}
.kicker::before { content: ""; width: 22px; height: 0; border-top: 1.5px solid currentColor; }

.badge {
	display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.45rem;
	font-size: 0.78rem; font-weight: 600; line-height: 1.5;
	color: var(--blue-deep); background: var(--blue-wash); border-radius: 3px; vertical-align: 0.1em;
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(243, 246, 250, 0.94);
	backdrop-filter: saturate(1.2) blur(8px);
	-webkit-backdrop-filter: saturate(1.2) blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand-logo { display: block; max-height: 40px; width: auto; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.01em; color: var(--ink); }
.brand-word span { color: var(--blue); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav-list { display: flex; list-style: none; gap: 0.25rem; }
.nav-list a {
	display: block; padding: 0.5rem 0.7rem; border-radius: var(--radius);
	color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem;
}
.nav-list a:hover { background: var(--blue-wash); color: var(--ink); }
.nav-list .is-current > a, .nav-list .current-menu-item > a { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav-list .sub-menu { display: none; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-phone { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-phone:hover { color: var(--blue); }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
	.nav-phone span { display: none; }
}
@media (max-width: 900px) {
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		margin-left: auto; width: 44px; height: 44px;
		background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); cursor: pointer;
	}
	.nav-toggle .nav-toggle-open { display: inline-flex; }
	.nav-toggle .nav-toggle-close { display: none; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0.5rem;
		padding: 1rem var(--gutter) 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line);
	}
	.site-nav.is-open { display: flex; }
	.nav-list { flex-direction: column; }
	.nav-list a { padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 1.05rem; }
	.nav-list .is-current > a, .nav-list .current-menu-item > a { box-shadow: none; }
	.nav-actions { justify-content: space-between; padding-top: 0.5rem; }
	.nav-phone span { display: inline; }
}

/* ------------------------------------------------------------------
   Hero + schematic (the one bold moment)
------------------------------------------------------------------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-title {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1; letter-spacing: -0.02em;
	max-width: 12ch; margin-bottom: 1.25rem;
}
.hero-text { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 46ch; margin: 0; }

.schematic { margin: 0; }
.schematic-svg {
	display: block; width: 100%;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.schematic .grid-minor { stroke: #e5ecf5; stroke-width: 1; }
.schematic .grid-major { stroke: #d3dfee; stroke-width: 1; }
.schematic .node-box { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
.schematic .node-box--hub { fill: var(--blue); stroke: var(--blue-deep); }
.schematic .node-title { font: 600 15px var(--font-body); fill: var(--ink); }
.schematic .node-title--hub { fill: var(--white); font-size: 17px; }
.schematic .node-note { font: 400 12.5px var(--font-body); fill: var(--ink-soft); }
.schematic .node-note--hub { fill: #dbe7ff; }
.schematic .node-sketch { stroke: var(--line); stroke-width: 6; stroke-linecap: round; }
.schematic .node-dot { fill: var(--signal); }
.schematic .wire { fill: none; stroke: var(--blue); stroke-width: 1.75; stroke-dasharray: 5 4; }
.schematic .arrow-head { fill: var(--blue); }
.schematic .dim-value { font: 700 26px var(--font-display); fill: var(--ink); letter-spacing: -0.01em; }
.schematic .dim-value--sm { font-size: 18px; }
.schematic .dim-note { font: 500 12px var(--font-body); fill: var(--blue); }
.schematic .dim-note--strong { font-weight: 600; fill: var(--ink); }
.schematic .dim-line { stroke: var(--ink-soft); stroke-width: 1.25; fill: none; }
.schematic .dim-gap { fill: var(--white); }
.schematic-cap { margin-top: 0.75rem; font-size: 0.9rem; color: var(--ink-soft); }
.schematic-list { display: none; }

@media (prefers-reduced-motion: no-preference) {
	.schematic .node { opacity: 0; animation: bp-in .5s ease forwards; }
	.schematic .node-2 { animation-delay: .45s; }
	.schematic .node-3 { animation-delay: .9s; }
	.schematic .node-4, .schematic .node-5 { animation-delay: 1.35s; }
	.schematic .wire { stroke-dashoffset: 300; animation: bp-draw 1.1s ease forwards; }
	.schematic .wire-1 { animation-delay: .2s; }
	.schematic .wire-2 { animation-delay: .65s; }
	.schematic .wire-3, .schematic .wire-4 { animation-delay: 1.1s; }
	@keyframes bp-in { to { opacity: 1; } }
	@keyframes bp-draw { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
}

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-title { max-width: 14ch; }
}
@media (max-width: 560px) {
	.schematic-svg { display: none; }
	.schematic-list {
		display: block; list-style: none; position: relative;
		padding: 1.25rem 1.25rem 1.25rem 2.75rem;
		background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
	}
	.schematic-list::before {
		content: ""; position: absolute; left: 1.45rem; top: 1.9rem; bottom: 1.9rem;
		border-left: 1.75px dashed var(--blue);
	}
	.schematic-list li { position: relative; padding: 0.4rem 0 0.9rem; }
	.schematic-list li::before {
		content: ""; position: absolute; left: -1.6rem; top: 0.75rem;
		width: 10px; height: 10px; background: var(--white); border: 1.75px solid var(--ink); border-radius: 2px;
	}
	.schematic-list li:nth-child(3)::before { background: var(--blue); border-color: var(--blue-deep); }
	.schematic-list strong { display: block; }
	.schematic-list span { color: var(--ink-soft); font-size: 0.95rem; }
}

/* ------------------------------------------------------------------
   Stats
------------------------------------------------------------------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.stats-row--2 { grid-template-columns: repeat(2, 1fr); }
.stats-row--3 { grid-template-columns: repeat(3, 1fr); }
.stat { display: flex; flex-direction: column; padding: 1.6rem 1.5rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt { order: 2; font-weight: 600; font-size: 0.98rem; }
.stat dd { margin: 0; }
.stat-value { order: 1; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 0.35rem !important; }
.stat-sub { order: 3; font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 760px) {
	.stats-row, .stats-row--3 { grid-template-columns: repeat(2, 1fr); }
	.stat { padding: 1.25rem 1rem; }
	.stat:nth-child(odd) { border-left: 0; padding-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------
   Sections
------------------------------------------------------------------- */
.section { padding: var(--section) 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--white + .section--white { border-top: 0; }
.section--tight { padding: calc(var(--section) * 0.65) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.section-head--row .section-title { margin: 0; }
.section-title {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.05; letter-spacing: -0.015em;
}
.section-title--sm { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 1.25rem; }
.section-intro { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; margin: 0; }
.section-more { margin: 2rem 0 0; }

/* Page head (inner pages) */
.page-head { padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); background:
	linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px,
	linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px,
	var(--paper); }
.page-title {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 20ch;
}
.page-lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 60ch; margin: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; gap: 0.4rem; margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.crumbs a { color: var(--ink-soft); }

/* Page head with a background image: dark navy overlay keeps text readable. */
.page-head--image { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #c9d6e8; border-bottom: 0; }
.page-head--image::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--page-head-bg) 70% center / cover no-repeat; }
.page-head--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 37, 64, .96) 0%, rgba(15, 37, 64, .84) 45%, rgba(15, 37, 64, .45) 100%); }
.page-head--image .page-title { color: #fff; }
.page-head--image .page-lede { color: #c9d6e8; }
.page-head--image .kicker { color: #9cc0ff; }
.page-head--image .kicker::before { border-color: var(--signal); }
.page-head--image .crumbs ol, .page-head--image .crumbs a { color: #9fb3cc; }
.page-head--image .crumbs li + li::before { color: rgba(255, 255, 255, .3); }
.page-head--image .case-facts dt { color: #9fb3cc; }
.page-head--image .case-facts dd { color: #fff; }
.page-head--image .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .6); }
.page-head--image .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 760px) {
	.page-head--image::after { background: linear-gradient(180deg, rgba(15, 37, 64, .9) 0%, rgba(15, 37, 64, .8) 100%); }
}

/* ------------------------------------------------------------------
   Cell grid (services on home, product features): shared borders,
   drawn like a blueprint table rather than floating cards.
------------------------------------------------------------------- */
.cell-grid {
	display: grid; grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--line); border-left: 1px solid var(--line);
	background: var(--white);
}
.cell { padding: 1.75rem 1.6rem 1.9rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.cell p { color: var(--ink-soft); }
.cell .text-link { margin-top: auto; }
.cell-tag { font-size: 0.88rem; font-weight: 500; color: var(--blue); margin-bottom: 0.6rem; }
.cell-title { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.005em; }
@media (max-width: 960px) { .cell-grid { grid-template-columns: repeat(2, 1fr); } }
.cell-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .cell-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Products
------------------------------------------------------------------- */
.product-columns { display: grid; grid-template-columns: repeat(3, 1fr); }
.product-col { padding: 0 2rem; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.product-col:first-child { padding-left: 0; border-left: 0; }
.product-col:last-child { padding-right: 0; }
.product-col > .btn { align-self: flex-start; margin-top: auto; }
.product-col p { color: var(--ink-soft); }
.product-meta { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 0.4rem; }
.product-name { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; letter-spacing: -0.02em; margin-bottom: 0.15rem; }
.product-name a { color: var(--ink); text-decoration: none; }
.product-name a:hover { color: var(--blue); }
.product-name--lg { font-size: clamp(2.4rem, 4vw, 3.2rem); }
.product-tagline { font-weight: 600; color: var(--blue) !important; margin-bottom: 0.75rem; }

.check-list { list-style: none; margin: 0.5rem 0 1.75rem; }
.check-list li { display: flex; gap: 0.6rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.97rem; }
.check-list li:last-child { border-bottom: 0; }
.check-list .icon { color: var(--blue); margin-top: 0.15rem; width: 18px; height: 18px; }

@media (max-width: 960px) {
	.product-columns { grid-template-columns: 1fr; }
	.product-col, .product-col:first-child, .product-col:last-child { padding: 2rem 0; border-left: 0; border-top: 1px solid var(--line); }
	.product-col:first-child { border-top: 0; padding-top: 0; }
}

.product-stack { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.product-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.product-row:nth-child(even) .preview { order: -1; }
.product-row + .product-row { padding-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--line); }
.product-desc p { color: var(--ink-soft); max-width: 60ch; }
.product-row .btn-row { margin-top: 0; }

.preview { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: calc(var(--header-h) + 24px); }
.preview-title { margin: 0; padding: 0.8rem 1.1rem; font-size: 0.9rem; font-weight: 600; border-bottom: 1px solid var(--line); background: var(--paper); }
.preview-rows { list-style: none; }
.preview-row { display: grid; gap: 0.75rem; padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--line-soft); font-size: 0.95rem; }
.preview-row:last-child { border-bottom: 0; }
.preview-row--2 { grid-template-columns: auto 1fr; align-items: baseline; }
.preview-row--2 span:first-child { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; min-width: 4.5ch; }
.preview-row--2 span:last-child { color: var(--ink-soft); }
.preview-row--3 { grid-template-columns: 1fr auto; row-gap: 0.1rem; }
.preview-row--3 span:nth-child(1) { font-weight: 600; }
.preview-row--3 span:nth-child(2) { grid-row: 2; color: var(--ink-soft); font-size: 0.88rem; }
.preview-row--3 span:nth-child(3) { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 700; color: var(--blue-deep); background: var(--blue-wash); padding: 0.2rem 0.55rem; border-radius: 3px; }
@media (max-width: 900px) {
	.product-row { grid-template-columns: 1fr; }
	.product-row:nth-child(even) .preview { order: 0; }
	.preview { position: static; }
}

/* Comparison */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--white); }
.compare th, .compare td { padding: 0.9rem 1.1rem; text-align: center; border-bottom: 1px solid var(--line-soft); }
.compare thead th { font-weight: 600; background: var(--paper); border-bottom: 1px solid var(--line); }
.compare th[scope="row"], .compare thead th:first-child { text-align: left; font-weight: 500; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare .is-ours { background: var(--blue-wash); color: var(--blue-deep); font-weight: 600; }
.compare td .icon { color: var(--blue); vertical-align: middle; }
.compare td { color: var(--ink-soft); }

/* ------------------------------------------------------------------
   Chips (technology tags)
------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; }
.chips li { padding: 0.2rem 0.6rem; font-size: 0.86rem; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--ink); }
.chips--lg li { padding: 0.4rem 0.8rem; font-size: 0.95rem; }

.stack { margin: 0; border-top: 1px solid var(--line); }
.stack-row { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.stack-row dt { font-weight: 600; }
.stack-row dd { margin: 0; }
@media (max-width: 620px) { .stack-row { grid-template-columns: 1fr; gap: 0.6rem; } }

/* ------------------------------------------------------------------
   Testimonials
------------------------------------------------------------------- */
.quotes { columns: 3 300px; column-gap: 2.5rem; }
.quote { break-inside: avoid; margin: 0 0 2.25rem; padding-left: 1.25rem; border-left: 2px solid var(--blue); }
.quote blockquote { margin: 0 0 0.9rem; }
.quote blockquote p { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.quote figcaption { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; color: var(--ink-soft); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.quote-avatar {
	display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px;
	border-radius: 50%; background: var(--blue-wash); color: var(--blue-deep); font-weight: 700;
}

/* ------------------------------------------------------------------
   Industries
------------------------------------------------------------------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.industry-icon { display: block; font-size: 1.8rem; margin-bottom: 0.75rem; line-height: 1; }
.industry-title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.industry p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
@media (max-width: 900px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .industries { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Services page
------------------------------------------------------------------- */
.service-list { border-top: 1px solid var(--line); }
.service-row {
	display: grid; grid-template-columns: 180px minmax(0, 1fr) 300px; gap: 2rem;
	padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: start;
}
.service-tag { font-size: 0.92rem; font-weight: 500; color: var(--blue); margin: 0.35rem 0 0; }
.service-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.01em; }
.service-text p { color: var(--ink-soft); margin: 0; max-width: 62ch; }
.service-row .chips { padding-top: 0.4rem; }
.service-row:target { background: linear-gradient(90deg, var(--blue-wash), transparent 70%); }
@media (max-width: 960px) {
	.service-row { grid-template-columns: 1fr; gap: 0.75rem; }
	.service-tag { margin: 0; }
}

/* Process: a real sequence, so it is numbered */
.process { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.process-step { counter-increment: step; position: relative; padding: 2.75rem 1.25rem 0 0; }
.process-step::before {
	content: counter(step); position: absolute; top: 0; left: 0;
	display: grid; place-items: center; width: 30px; height: 30px;
	font: 700 0.95rem var(--font-display); color: var(--white); background: var(--ink); border-radius: 50%;
}
.process-step::after { content: ""; position: absolute; top: 15px; left: 38px; right: 8px; border-top: 1.5px dashed var(--line); }
.process-step:last-child::after { display: none; }
.process-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.process-step p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }
@media (max-width: 960px) {
	.process { grid-template-columns: 1fr; }
	.process-step { padding: 0 0 1.75rem 3rem; }
	.process-step::after { top: 36px; left: 15px; right: auto; bottom: 4px; border-top: 0; border-left: 1.5px dashed var(--line); }
}
.process--vertical { grid-template-columns: 1fr; }
.process--vertical .process-step { padding: 0 0 2rem 3rem; }
.process--vertical .process-step::after { top: 36px; left: 15px; right: auto; bottom: 4px; border-top: 0; border-left: 1.5px dashed var(--line); }
.process--vertical .process-step p { max-width: 62ch; }

/* ------------------------------------------------------------------
   Case studies
------------------------------------------------------------------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.case-grid--2 { grid-template-columns: repeat(2, 1fr); }
.case-card {
	display: flex; flex-direction: column; padding: 1.75rem;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.case-card:hover { border-color: var(--ink-soft); }
.case-cat { font-size: 0.88rem; font-weight: 500; color: var(--blue); margin-bottom: 0.5rem; }
.case-title { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.005em; }
.case-title a { color: var(--ink); text-decoration: none; }
.case-title a:hover { color: var(--blue); }
.case-summary { color: var(--ink-soft); font-size: 0.97rem; }
.case-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0.25rem 1.5rem; margin: 0 0 1.25rem; font-size: 0.88rem; }
.case-facts dt { color: var(--ink-soft); }
.case-facts dd { margin: 0; font-weight: 500; }
.case-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem 0; margin-bottom: 1rem; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.case-metrics p { margin: 0; display: flex; flex-direction: column; }
.case-metrics strong { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; }
.case-metrics span { font-size: 0.88rem; color: var(--ink-soft); }
.case-card .text-link { margin-top: auto; }
@media (max-width: 960px) { .case-grid, .case-grid--2 { grid-template-columns: 1fr; } }

.case-facts--inline { grid-template-columns: repeat(4, auto); gap: 0.25rem 2.5rem; margin-top: 1.75rem; font-size: 0.95rem; }
@media (max-width: 620px) { .case-facts--inline { grid-template-columns: repeat(2, auto); } }

.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(2rem, 5vw, 4rem); padding-top: var(--section); padding-bottom: var(--section); align-items: start; }
.case-lede { font-size: 1.2rem; line-height: 1.55; max-width: 62ch; margin-bottom: 2.5rem; }
.case-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2rem); letter-spacing: -0.01em; margin: 2.75rem 0 1.25rem; }
.case-h2--sm { font-size: 1.25rem; }
.challenge-list { list-style: none; border-top: 1px solid var(--line); }
.challenge-list li { position: relative; padding: 0.9rem 0 0.9rem 1.6rem; border-bottom: 1px solid var(--line); max-width: 70ch; }
.challenge-list li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 10px; border-top: 2px solid var(--signal); }
.outcome { margin-top: 1rem; padding: 1.75rem; background: var(--ink); color: #e3ebf6; border-radius: var(--radius-lg); }
.outcome .case-h2 { color: var(--white); margin-top: 0; }
.outcome p { margin: 0; font-size: 1.08rem; max-width: 64ch; }
.form-card--sticky { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 1000px) {
	.case-layout { grid-template-columns: 1fr; }
	.form-card--sticky { position: static; }
}

/* ------------------------------------------------------------------
   Forms
------------------------------------------------------------------- */
.form-card { padding: clamp(1.4rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.case-aside .form-grid { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }
.field-label { font-size: 0.92rem; font-weight: 600; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 46px; padding: 0.6rem 0.75rem;
	font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.field input[type="color"] { padding: 0.25rem; height: 46px; cursor: pointer; }
.field input[type="range"] { padding: 0; min-height: 30px; border: 0; accent-color: var(--blue); }
.form .btn { width: 100%; }
.form-foot { margin: 0.9rem 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.form-notice { padding: 0.8rem 1rem; border-radius: var(--radius); font-weight: 500; }
.form-notice--ok { background: #e3f4ee; color: var(--ok); }
.form-notice--error { background: #fdecea; color: var(--error); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.channels { list-style: none; border-top: 1px solid var(--line); margin-bottom: 2.5rem; }
.channels li > a, .channels li > div { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.channels li > a:hover strong { color: var(--blue); }
.channels .icon { color: var(--blue); margin-top: 0.2rem; }
.channels strong { display: block; font-size: 1.08rem; font-weight: 600; }
.channel-label { display: block; font-size: 0.88rem; color: var(--ink-soft); }
.channel-address { font-size: 0.98rem !important; font-weight: 500 !important; }
.faq-heading { margin-bottom: 1rem; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
	display: flex; justify-content: space-between; gap: 1rem; align-items: center;
	padding: 1rem 0; font-weight: 600; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--blue); transition: transform .2s ease; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item p { margin: 0 0 1.1rem; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.ways { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.way { display: flex; flex-direction: column; padding: 1.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.way:hover { background: var(--paper); color: var(--ink); }
.way h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.way p { color: var(--ink-soft); font-size: 0.97rem; }
.way .text-link { margin-top: auto; }
.way-icon { font-size: 1.6rem; margin-bottom: 0.75rem; line-height: 1; }
@media (max-width: 960px) { .ways { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ways { grid-template-columns: 1fr; } }

/* QR tool */
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.tool-form > * + * { margin-top: 1.1rem; }
.tool-form .form-grid { margin-bottom: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 0.4rem; border: 0; padding: 0; margin: 0; }
.seg legend { margin-bottom: 0.5rem; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg label { display: inline-flex; padding: 0.5rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 500; font-size: 0.95rem; }
.seg label:has(input:checked) { border-color: var(--blue); background: var(--blue-wash); color: var(--blue-deep); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.tool-output { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--header-h) + 24px); }
.qr-frame { display: grid; place-items: center; aspect-ratio: 1; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.qr-frame canvas, .qr-frame img { width: 100% !important; height: auto !important; max-width: 340px; image-rendering: pixelated; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } .tool-output { position: static; } }

/* ------------------------------------------------------------------
   CTA band
------------------------------------------------------------------- */
.cta-band { background: var(--ink); color: #dbe5f2; padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 2rem; align-items: center; }
.cta-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.015em; color: var(--white); }
.cta-copy p { margin: 0; max-width: 56ch; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Prose (legal pages, posts)
------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; margin: 2.25rem 0 0.75rem; }
.prose h3 { font-size: 1.2rem; margin: 1.75rem 0 0.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45rem; }
.prose .legal-updated { display: inline-block; padding: 0.3rem 0.7rem; font-size: 0.9rem; background: var(--blue-wash); color: var(--blue-deep); border-radius: 3px; }
.post-list { display: grid; gap: 2rem; max-width: 760px; }
.post-item { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.post-date { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.post-title { font-family: var(--font-display); font-size: 1.6rem; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-image { margin-bottom: 2rem; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0 0; font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand p { color: var(--ink-soft); max-width: 36ch; margin: 1rem 0 1.25rem; }
.footer-brand .footer-local { margin: -.5rem 0 1.25rem; }
.footer-local a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .25em; }
.footer-contact { list-style: none; display: grid; gap: 0.5rem; }
.footer-contact a { display: inline-flex; gap: 0.55rem; align-items: center; color: var(--ink); text-decoration: none; }
.footer-contact a:hover { color: var(--blue); }
.footer-contact .icon { color: var(--blue); width: 18px; height: 18px; }
.footer-heading { font-size: 1rem; font-weight: 600; margin-bottom: 0.9rem; font-family: var(--font-body); }
.footer-links { list-style: none; display: grid; gap: 0.5rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }
.footer-col .link-button { color: var(--ink-soft); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; padding-bottom: 6rem; border-top: 1px solid var(--line); }
.copyright { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; }
.badges a { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ink); text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.badges a:hover { color: var(--blue); }
.badge-label { font-weight: 400; color: var(--ink-soft); }
.badges img { height: 28px; width: auto; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Quick contact (floating) */
.quick-contact { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: flex; gap: 0.5rem; }
.quick-contact-btn {
	display: inline-flex; align-items: center; gap: 0.45rem; min-height: 46px; padding: 0 1rem;
	border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
	box-shadow: 0 4px 14px rgba(15, 37, 64, 0.18);
}
.quick-contact-btn--wa { background: #1f9d55; color: var(--white); }
.quick-contact-btn--wa:hover { background: #17824a; color: var(--white); }
.quick-contact-btn--call { background: var(--ink); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.3); }
.quick-contact-btn--call:hover { background: var(--blue-deep); color: var(--white); }
@media (max-width: 600px) {
	.quick-contact { left: 0; right: 0; bottom: 0; gap: 0; }
	.quick-contact-btn { flex: 1; justify-content: center; border-radius: 0; min-height: 52px; box-shadow: none; }
	body { padding-bottom: 52px; }
}

/* Cookie banner */
.cookie-banner {
	position: fixed; left: 1rem; bottom: 1rem; z-index: 60; max-width: 460px;
	padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
	box-shadow: 0 10px 30px rgba(15, 37, 64, 0.16); font-size: 0.95rem;
}
.cookie-banner p { margin-bottom: 1rem; }
.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
@media (max-width: 600px) { .cookie-banner { left: 0.5rem; right: 0.5rem; bottom: 60px; max-width: none; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
	.site-header, .quick-contact, .cookie-banner, .cta-band, .site-footer { display: none; }
	body { background: #fff; }
}
