/* ==========================================================================
   provenio people — BASE
   Fonts, design tokens, typography, links, buttons, forms, utility classes.
   Loaded on every page (and in the block editor).
   ========================================================================== */

/* ---------- 0. Fonts (self-hosted, OFL — see /assets/fonts) ---------- */
@font-face {
	font-family: 'Plus Jakarta Sans';
	src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}

/* ---------- 1. Design tokens ---------- */
:root {
	/* colours */
	--pp-navy: #0D2461;          /* headings, primary buttons */
	--pp-cyan: #00AEEF;          /* accents, underlines, labels */
	--pp-cobalt: #1565C0;        /* links, button hover */
	--pp-slate: #64748B;         /* body text */
	--pp-slate-strong: #526075;  /* body text on tinted panels */
	--pp-pearl: #F0F7FF;         /* light blue panels, chips */
	--pp-white: #fff;            /* page background */
	--pp-line: #E2E8F0;          /* borders */
	--pp-line-pearl: #D5E3F5;    /* borders on pearl panels */
	--pp-on-navy: #C9D6EE;       /* text on navy */
	--pp-green: #16A34A;         /* "live" dot */
	--pp-deep: #060F2E;          /* footer, darkest navy */
	--pp-mist: #F8FBFF;          /* very light section / card background */
	--pp-ink: #475569;           /* body text */
	--pp-hair: rgba(13, 36, 97, .09);   /* hairline borders */
	--pp-cyan-ink: #0097D6;      /* cyan text on white (headline accents) */
	--pp-cyan-label: #0077A8;    /* small eyebrow labels */
	--pp-light: #C9D6EE;         /* text on navy */
	--pp-field: #7C8CA5;         /* form field borders */
	--pp-ease: cubic-bezier(.2, .7, .2, 1);
	--pp-shadow: 0 1px 2px rgba(13, 36, 97, .03), 0 18px 36px -24px rgba(13, 36, 97, .18);

	/* type */
	--pp-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--pp-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* spacing / shape */
	--pp-sec: clamp(64px, 7vw, 104px);   /* vertical section padding */
	--pp-wrap: 1200px;                   /* content width */
	--pp-wide: 1320px;                   /* tinted panels (hero, candidates) */
	--pp-box-r: 16px;                    /* card radius */
	--pp-shadow-box: 0 1px 2px rgba(13, 36, 97, .04), 0 18px 40px -26px rgba(13, 36, 97, .28);
}
@media (max-width: 760px) {
	:root { --pp-sec: 40px; }
}

/* ---------- 2. Base ---------- */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
	-webkit-text-size-adjust: 100%;
}
body,
body.nv-template {
	margin: 0;
	background: var(--pp-white);
	color: var(--pp-ink);
	font-family: var(--pp-body);
	font-size: 1rem;
	line-height: 1.5; /* = 24px at 16px */
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }

a {
	color: var(--pp-cobalt);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
a:hover { color: var(--pp-navy); }

:focus-visible {
	outline: 3px solid var(--pp-cobalt);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- 3. Headings ---------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--pp-head);
	color: var(--pp-navy);
	margin: 0;
	font-weight: 700;
	letter-spacing: -.025em;
}
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.75rem); line-height: 1.1; letter-spacing: -.03em; }
h3 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.015em; }
h4 { font-size: 1rem; line-height: 1.4; }

/* Highlighted key words in a heading: select the words in the editor → toolbar ▾ More → Highlight
   (adds <mark class="pp-hl">; older <em> highlights still work).
   Shown upright in cyan, as in the design (sections on navy use a brighter cyan). */
h1 em,
h2 em,
h1 mark.pp-hl,
h2 mark.pp-hl {
	font-style: normal;
	background: none;
	padding: 0;
	color: var(--pp-cyan-ink);
}

/* ---------- 4. Buttons ----------
   Button block default = navy. Style "Outline" = white with a border. */
.wp-block-button__link,
.wp-element-button,
.button,
button.button,
input[type=submit] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 13px 28px;
	font: 700 .9rem/1.2 var(--pp-head) !important;
	border: 2px solid transparent;
	border-radius: 8px !important;
	background: var(--pp-navy);
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.wp-block-button__link:hover,
.wp-element-button:hover,
.button:hover,
input[type=submit]:hover {
	background: var(--pp-cobalt);
	color: #fff;
	border-color: transparent;
	box-shadow: none;
	transform: translateY(-1px);
}

/* Outline button: Button block → style "Outline" (or class pp-btn-outline) */
.wp-block-button.is-style-outline > .wp-block-button__link,
.pp-btn-outline .wp-block-button__link {
	background: transparent !important;
	border-color: #8baad9 !important;
	border-width:1px !important;
	color: var(--pp-navy) !important;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.pp-btn-outline .wp-block-button__link:hover {
	border-color: var(--pp-navy) !important;
	box-shadow: none !important;
}

/* Light button (on navy panels): class pp-btn-light */
.pp-btn-light .wp-block-button__link {
	background: #fff !important;
	color: var(--pp-navy) !important;
}
.pp-btn-light .wp-block-button__link:hover { background:#1565c0 !important; box-shadow: none;color: white !important; }

/* Ghost button (on navy / gradient panels): class pp-btn-ghost */
.pp-btn-ghost .wp-block-button__link {
	background: transparent !important;
	border-color: rgba(255, 255, 255, .4) !important;
	border-width: 1px !important;
	color: #fff !important;
}
.pp-btn-ghost .wp-block-button__link:hover {
	background: transparent !important;
	border-color: #fff !important;
	box-shadow: none;
}

/* ---------- 5. Forms ---------- */
input[type=text],
input[type=email],
input[type=tel],
input[type=url],
input[type=search],
input[type=password],
select,
textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	font: inherit;
	font-size: 1rem;
	border: 1.5px solid #94A3B8;
	border-radius: 6px;
	background: #fff;
	color: var(--pp-navy);
}
input:focus,
select:focus,
textarea:focus {
	outline: 0;
	border-color: var(--pp-cobalt);
	box-shadow: 0 0 0 4px rgba(21, 101, 192, .18);
}

/* ---------- 6. Utility classes ----------
   Add in the block editor: block → Advanced → Additional CSS class(es) */
.pp-section { padding-block: var(--pp-sec) !important; }       /* standard section spacing */

.pp-label,                                                      /* small navy eyebrow with cyan line */
.pp-kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font: 700 .72rem/1.2 var(--pp-head);
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--pp-cyan-label);
}
.pp-label::before,
.pp-kicker::before {
	content: "";
	width: 28px;
	height: 2px;
	border-radius: 1px;
	background: var(--pp-cyan);
	flex: none;
}

.pp-lead {                                                      /* larger intro paragraph */
	font-size: clamp(1rem, 1.2vw, 1.125rem);
	line-height: 26px;
	max-width: 58ch;
	text-wrap: pretty;
}

.pp-chips {                                                     /* pill tags (List block) */
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
}
.pp-chips li {
	margin: 0;
	padding: 6px 12px;
	border-radius: 100px;
	background: var(--pp-pearl);
	color: var(--pp-navy);
	border: 1px solid var(--pp-hair);
	font: 600 .78rem/1.4 var(--pp-head);
}

.pp-ticks {                                                     /* tick list (List block) */
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pp-ticks li {
	position: relative;
	margin: 0;
	padding-left: 26px;
	font-size: .92rem;
	color: var(--pp-navy);
}
.pp-ticks li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .5em;
	width: 10px;
	height: 5px;
	border-left: 2px solid var(--pp-cobalt);
	border-bottom: 2px solid var(--pp-cobalt);
	transform: rotate(-45deg);
}

/* Reveal on scroll: assets/js/footer.js adds .pp-rv to elements below the fold and .pp-in
   when they scroll into view. Without JavaScript nothing is hidden. */
.pp-rv {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .55s var(--pp-ease), transform .55s var(--pp-ease);
}
.pp-rv.pp-in { opacity: 1; transform: none; }
.pp-rv.pp-d1 { transition-delay: .07s; }
.pp-rv.pp-d2 { transition-delay: .14s; }
.pp-card.pp-rv.pp-in,
.pp-case.pp-rv.pp-in,
.pp-quote.pp-rv.pp-in,
.pp-value.pp-rv.pp-in,
.pp-spec-item.pp-rv.pp-in {
	transition: opacity .55s var(--pp-ease), transform .35s var(--pp-ease), box-shadow .35s var(--pp-ease), border-color .2s, background .25s;
}

/* ---------- 7. Accessibility / motion ---------- */
.screen-reader-text:focus { z-index: 100000; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 8. Inner pages (page hero + long text) ----------
   Used by every page except Home (Privacy Policy now, Knowledge Hub later).
   Page hero: Group .pp-page-hero (+ .pp-compact) -> .pp-crumb, H1, .pp-lead.
   Prose: Group .pp-prose (constrained 720px) -> H2 / paragraphs / lists. */
/* ==========================================================================
   PAGE HERO  (.pp-page-hero, compact variant .pp-compact)
   Outer Group (section, 1200px) -> .pp-crumb paragraph, H1, .pp-lead paragraph
   Source: .page-hero (+ .compact): bottom border, H1 clamp(1.75rem, 3vw, 2.5rem).
   ========================================================================== */
/* Same look as the home / Knowledge Hub hero: pulled up under the
   transparent header, cyan glow top-right, dot grid fading in from the
   right, and the big outlined ring. Shared by every inner page. */
.pp-page-hero {
	--pp-header-h: 76px;
	position: relative;
	overflow: clip;
	border-bottom: 1px solid var(--pp-line);
	background: radial-gradient(700px 460px at 100% 0%, rgba(0, 174, 239, .17), transparent 70%), var(--pp-pearl);
	margin-top: calc(var(--pp-header-h) * -1) !important;
	padding-top: calc(var(--pp-header-h) + clamp(48px, 7vw, 96px)) !important;
	padding-bottom: clamp(40px, 5vw, 72px) !important;
}
.pp-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(rgba(13, 36, 97, .14) 1px, transparent 1.4px) 0 0 / 22px 22px;
	-webkit-mask-image: linear-gradient(100deg, transparent 45%, #000 100%);
	mask-image: linear-gradient(100deg, transparent 45%, #000 100%);
}
.pp-page-hero::after {
	content: "";
	position: absolute;
	right: -200px;
	top: -260px;
	z-index: 0;
	width: 760px;
	height: 760px;
	border-radius: 50%;
	border: 1px solid rgba(0, 174, 239, .3);
	box-shadow: 0 0 0 70px rgba(0, 174, 239, .035), 0 0 0 140px rgba(0, 174, 239, .02);
	pointer-events: none;
}
.pp-page-hero > * { position: relative; z-index: 1; }
.pp-page-hero .pp-crumb {
	margin: 0 0 22px;
	display: none;
	font-size: .88rem;
	color: var(--pp-slate);
}
.pp-page-hero .pp-crumb a { color: var(--pp-slate); }
.pp-page-hero .pp-crumb a:hover { color: var(--pp-navy); }
.pp-page-hero h1 {
	max-width: 20ch;
	margin: 0;
	font-size: 45px;
}
.pp-page-hero.pp-compact h1 {
	max-width: none;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
}
.pp-page-hero .pp-lead { margin: 22px 0 0; }

/* ==========================================================================
   PROSE  (.pp-prose)
   Outer Group (section, constrained 720px, so the column is centred)
   -> H2 / paragraphs / lists, written straight into the Group.
   Source: .prose max-width 720px; h2 1.2rem, margin 2.2em 0 .6em; ul padding 1.2em.
   Top/bottom margins only: WP's auto side margins centre the 720px column.
   ========================================================================== */
.pp-prose h2 {
	margin-top: 2.2em;
	margin-bottom: .6em;
	font-size: 1.2rem;
}
.pp-prose ul {
	margin-top: 0;
	margin-bottom: 1em;
	padding-left: 1.2em;
}
.pp-prose li { margin-bottom: .4em; }

/* ==========================================================================
   EDITOR PARITY (pages)
   Keys off .wp-block, which only exists in the editor.
   - the editor centres blocks that have a max-width: keep the hero text left
   - Neve's editor heading size beats the base one: re-assert the sizes
   ========================================================================== */
.pp-page-hero .wp-block { margin-left: 0 !important; margin-right: 0 !important; }
.pp-page-hero.pp-compact h1.wp-block-heading { font-size: clamp(1.75rem, 3vw, 2.5rem) !important; max-width: none; }

/* Mobile: tighter page-hero spacing */
@media (max-width: 760px) {
	.pp-page-hero {
		padding-top: calc(var(--pp-header-h) + 32px) !important;
		padding-bottom: 28px !important;
	}
}
.pp-prose h2.wp-block-heading { font-size: 1.2rem !important; }
.pp-prose .wp-block-list { margin-bottom: 1em; padding-left: 1.2em; }


/* ==========================================================================
   LINK HOVER — same animation as the header menu  (added Nov 2026)
   Text links in page content and the cross-link block get the
   header's cyan 1px underline that grows from left to right on hover/focus.
   No underline at rest (like the header); links keep their colour so they
   still read as links.
   Drawn with a background gradient (not ::after) so it also works on links
   that wrap onto two lines.
   Left alone: buttons, the provenio ai card, icon / logo links (anything with
   an image), LinkedIn icon, back-to-top, mobile quick bar, skip link,
   and the whole footer (it keeps its own hover: links turn cyan, no underline).
   ========================================================================== */
:where(.entry-content, .editor-styles-wrapper, .pp-cross)
	a:not(.wp-block-button__link, .wp-element-button, .pp-brand-card, .pp-social, .pp-totop, .neve-skip-link, .pp-mbar a):not(:has(img)) {
	text-decoration: none !important;
	background-image: linear-gradient(var(--pp-cyan), var(--pp-cyan));
	background-repeat: no-repeat;
	background-position: 0 calc(100% - var(--pp-ul-offset, 0px));   /* grows from the left, like the header */
	background-size: 0% 1.5px;
	padding-bottom: 2px;
	transition: background-size .25s, color .2s;
}
:where(.entry-content, .editor-styles-wrapper, .pp-cross)
	a:not(.wp-block-button__link, .wp-element-button, .pp-brand-card, .pp-social, .pp-totop, .neve-skip-link, .pp-mbar a):not(:has(img)):is(:hover, :focus-visible) {
	background-size: 100% 1.5px;
}
@media (prefers-reduced-motion: reduce) {
	:where(.entry-content, .pp-cross) a { transition: none !important; }
}


/* Knowledge Hub page styles moved to assets/css/knowledge-hub.css (loaded only on that page). */


/* Eyebrow labels (cyan line + uppercase text: .pp-kicker, .pp-label, .pp-label-h) - tighter lines on mobile */
@media (max-width: 760px) {
	.pp-kicker,
	.pp-label,
	.pp-label-h,
	h1.pp-kicker.wp-block-heading,
	.pp-hero h1.pp-kicker.wp-block-heading,
	h2.pp-label-h.wp-block-heading { line-height: 16px !important; }
	.pp-page-hero h1{
		font-size:28px;
	}
}


/* ---------- Arrow icon (added Nov 2026) ----------
   One SVG arrow used instead of the "\2192" character. The character isn't in the site fonts,
   so every phone drew it from its own system font and it looked different from desktop.
   --pp-arrow is the shape; it is painted in the text colour with mask-image.
   Used by: home.css button arrows, .pp-arr (provenio ai card), Knowledge Hub "Swipe" pill. */
:root {
	--pp-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15.5M13.5 6l6 6-6 6'/%3E%3C/svg%3E");
}
.pp-arr {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -.15em;
	background: currentColor;
	-webkit-mask: var(--pp-arrow) center / contain no-repeat;
	mask: var(--pp-arrow) center / contain no-repeat;
}
@media (max-width: 760px) {
	.pp-arr { width: 1.2em; height: 1.2em; vertical-align: -.22em; }
}


/* =====================================================================================
   Hotfixes: prose pages, chips, section-label dots
   Moved here from Appearance -> Customize -> Additional CSS (Nov 2026).
   ===================================================================================== */

/* HOTFIX (Nov 2026) - legal / prose pages (.pp-prose, e.g. Privacy Policy): 60px top and bottom
   on desktop (960px and up). Phones and tablets keep the standard section spacing (--pp-sec). */
@media (min-width: 960px) {
	.pp-section.pp-prose { padding-block: 60px !important; }
}


/* HOTFIX (Nov 2026) - phones: no bottom margin on .pp-chips. */
@media (max-width: 760px) {
	html body .pp-chips { margin-bottom: 0 !important; }
}


/* Section labels (eyebrows): the 28px line before the text becomes an 8px dot.
   Same dot for .pp-label-h (home.css) and .kh-cat (knowledge-hub.css). */
.pp-label::before,
.pp-kicker::before {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	align-self: flex-start;
	margin-top: calc((1lh - 8px) / 2);   /* dot sits beside the FIRST line when a label wraps */
}

/* Content lists, desktop (Nov 2026): Neve's .nv-content-wrap ul has 30px top and
   bottom margin; drop the bottom margin on desktop. */
@media (min-width: 960px) {
	.nv-content-wrap ul { margin-bottom: 0; }
}
