/* ==========================================================================
   provenio ai — BASE
   Design tokens, typography, links, buttons, forms, utility classes.
   Loaded on every page.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
	/* colours */
	--pv-bg: #060C1F;          /* page background */
	--pv-bg-deep: #040917;     /* footer */
	--pv-indigo: #0F1E5C;      /* cards / panels */
	--pv-panel: #0A1330;       /* dropdowns */
	--pv-blue: #2B5CE6;        /* primary buttons */
	--pv-blue-hover: #1F4BCB;
	--pv-cyan: #06B6D4;        /* accents, labels, links */
	--pv-steel: #94A3B8;       /* body text */
	--pv-light: #F1F5F9;       /* light text */
	--pv-muted: #C2CCDC;       /* text on cards */
	--pv-white: #fff;          /* headings */
	--pv-grad: linear-gradient(90deg, #2B5CE6, #06B6D4);
	--pv-line: rgba(241, 245, 249, .1);
	--pv-line2: rgba(241, 245, 249, .2);

	/* type */
	--pv-head: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--pv-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* spacing */
	--pv-sec: clamp(64px, 8vw, 112px);   /* vertical section padding */
	--pv-wrap: 1200px;                   /* content width */
}

/* ---------- 2. Base ---------- */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
	background: var(--pv-bg);
	-webkit-text-size-adjust: 100%;
}
body,
body.nv-template {
	margin: 0;
	background: var(--pv-bg) !important;
	color: var(--pv-steel);
	font-family: var(--pv-body);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
.wrapper,
.neve-main,
#content { background: var(--pv-bg); }

img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }

a {
	color: var(--pv-cyan);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
a:hover { color: var(--pv-light); }

:focus-visible {
	outline: 3px solid var(--pv-cyan);
	outline-offset: 3px;
	border-radius: 4px;
}
::selection { background: rgba(6, 182, 212, .35); color: #fff; }

/* ---------- 3. Headings ---------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--pv-head);
	color: var(--pv-white);
	margin: 0;
	font-weight: 600;
	letter-spacing: -.03em;
}
h1 { font-size: clamp(2rem, 3.7vw, 3.25rem); line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.015em; }
h4 { font-size: 1rem; line-height: 1.4; }

/* Gradient word in a heading: select the word in the editor →
   Highlight → any colour. This turns it into gradient text. */
h1 mark.has-inline-color,
h2 mark.has-inline-color,
h3 mark.has-inline-color {
	background: var(--pv-grad) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	-webkit-text-fill-color: transparent !important;
	color: transparent !important;
	padding: 0;
}

/* ---------- 4. Buttons ---------- */
.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: 48px;
	padding: 13px 26px;
	font: 600 .9rem/1.2 var(--pv-head) !important;
	border: 1.5px solid transparent;
	border-radius: 6px !important;
	background: var(--pv-blue);
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.wp-block-button__link:hover,
.wp-element-button:hover,
.button:hover,
input[type=submit]:hover {
	background: var(--pv-blue-hover);
	color: #fff;
	transform: translateY(-1px);
}

/* Block editor only: Neve's editor stylesheet forces button padding to 13px 15px */
.editor-styles-wrapper .wp-block-buttons .wp-block-button .wp-block-button__link { padding: 13px 26px; border-width: 1.5px; border-style: solid; }

/* Ghost button: Button block → style "Outline" (or class pv-btn-ghost) */
.wp-block-button.is-style-outline > .wp-block-button__link,
.pv-btn-ghost .wp-block-button__link {
	padding: 13px 26px;
	border-width: 1.5px !important;
	background: transparent !important;
	border-color: var(--pv-line2) !important;
	color: #fff !important;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.pv-btn-ghost .wp-block-button__link:hover {
	border-color: rgba(241, 245, 249, .6) !important;
}

/* ---------- 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 #6B7A99;
	border-radius: 6px;
	background: var(--pv-bg);
	color: #fff;
}
input:focus,
select:focus,
textarea:focus {
	outline: 0;
	border-color: var(--pv-cyan);
	box-shadow: 0 0 0 4px rgba(6, 182, 212, .22);
}

/* ---------- 6. Utility classes ----------
   Add in the block editor: block → Advanced → Additional CSS class(es) */
.pv-section { padding-block: var(--pv-sec) !important; }       /* standard section spacing */
.pv-section + .pv-section { border-top: 1px solid var(--pv-line); }

.pv-label {                                                      /* small cyan eyebrow with line */
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font: 600 10px/1.2 var(--pv-body);
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--pv-cyan);
}
.pv-label::before {
	content: "";
	width: 24px;
	height: 1px;
	background: var(--pv-cyan);
	flex: none;
}

.pv-lead {                                                       /* larger intro paragraph */
	font-size: clamp(1rem, 1.2vw, 1.125rem);
	line-height: 1.65;
	max-width: 58ch;
}

.pv-num {                                                        /* "01" style numbers */
	margin: 0 0 12px;
	font: 600 .8rem var(--pv-head);
	letter-spacing: .08em;
	color: var(--pv-cyan);
}

.pv-grad {                                                       /* gradient text (whole element) */
	background: var(--pv-grad) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	-webkit-text-fill-color: transparent;
	color: var(--pv-cyan);
}

.pv-card {                                                       /* indigo card */
	padding: 30px;
	border-radius: 8px;
	background: var(--pv-indigo);
}

/* ---------- 7. Accessibility / motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
	.pv-grad,
	h1 mark.has-inline-color,
	h2 mark.has-inline-color {
		-webkit-text-fill-color: currentColor !important;
		background: none !important;
	}
}

/* ==========================================================================
   18 Nov 2026 — BLOCK EDITOR RESPONSIVE PREVIEW (editor only; the live site is not affected)
   WordPress's own editor CSS "[data-align=full] .wp-block-group > .wp-block" gives blocks inside
   grid/flex groups 14px side padding below 600px (0 above). Our blocks set their own padding, so
   that is cancelled here for pv- blocks; blocks that DO have side padding restate it in their own
   file (home.css, solutions.css, knowledge-hub.css — "editor responsive preview" blocks).
   ========================================================================== */
@media (max-width: 599px) {
	.editor-styles-wrapper [data-align="full"] .wp-block-group > [class*="pv-"] { padding-left: 0; padding-right: 0; }
}

/* ==========================================================================
   18 Nov 2026 (evening) — SECTION LABELS = PILL, all pages + editor
   The small headline above a section (was: cyan dash + small caps) sits in the header
   "Knowledge Hub" pill shape (cyan .5 outline, cyan .12 tint, glowing cyan dot) but KEEPS its
   original text style (caps, size, letter-spacing, colour) — revised 18 Nov 22:00 — same as the Knowledge Hub "Direct Answer Summary" pill.
   !important because page files (home.css, solutions.css, knowledge-hub.css) load later.
   ========================================================================== */
:is(.pv-label, .pv-tagline, .pv-count-eyebrow, .pv-label-h, h2.pv-sub, .pv-jump-h, .pv-kh .pv-cat) {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	width: fit-content !important;
	max-width: 100%;
	box-sizing: border-box;
	padding: 7px 16px 7px 14px !important;
	border: 1px solid rgba(6, 182, 212, .5) !important;
	border-radius: 999px !important;
	background: rgba(6, 182, 212, .12) !important;
	text-align: left !important;
	/* text style (font, size, caps, letter-spacing, colour) = each label's original — only the pill shape is added */
	box-shadow: none !important;
}
:is(.pv-label, .pv-tagline, .pv-count-eyebrow, .pv-label-h, h2.pv-sub, .pv-jump-h, .pv-kh .pv-cat)::before {
	content: "" !important;
	display: block !important;
	flex: none !important;
	width: 8px !important;
	height: 8px !important;
	margin: 0 !important;
	border-radius: 50% !important;
	background: #06B6D4 !important;
	box-shadow: 0 0 0 3px rgba(6, 182, 212, .14), 0 0 8px rgba(6, 182, 212, .4) !important;
}
:is(.pv-label, .pv-tagline, .pv-count-eyebrow, .pv-label-h, h2.pv-sub, .pv-jump-h, .pv-kh .pv-cat)::after { display: none !important; }
.pv-sol-others .pv-jump-h { margin-left: auto !important; margin-right: auto !important; } /* stays centred */
@media (max-width: 560px) { :is(.pv-label, .pv-tagline, .pv-count-eyebrow, .pv-label-h, h2.pv-sub, .pv-jump-h, .pv-kh .pv-cat) { border-radius: 16px !important; } } /* when a long label wraps */


/* 18 Nov 22:15 — PAGE HERO = TOP GLOW ONLY (Solutions, service pages, Knowledge Hub).
   Was 4 glows (top-right blue, right cyan, top, bottom-left cyan). Now only the same top glow as the
   home hero. Static here — only the home hero animates. */
.pv-page-hero::before {
	background: radial-gradient(1220px 830px at 49% -12%, rgb(16, 30, 92), transparent 72%) !important;
}

/* ==========================================================================
   19 Nov 2026 — MOBILE ONLY (≤760px; desktop and tablet unchanged), user request
   1. One arrow icon everywhere: the 18px stroke arrow of the "Explore our other solutions" chips.
      Typed "→" is wrapped in span.pv-arw at phone width only (inc/scripts.php, wp_footer prio 98);
      the glyph is hidden and the icon is drawn in the text colour (so hover colours still apply).
      CSS arrows (home hero button, home case links) are swapped in home.css.
   2. Label pills: 10px text.
   ========================================================================== */
@media (max-width: 760px) {
	:root {
		--pv-arw-size: 18px;
		--pv-arw-icon: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	}
	.pv-arw {
		display: inline-block;
		width: var(--pv-arw-size);
		height: var(--pv-arw-size);
		font-size: 0;
		line-height: 0;
		vertical-align: middle;
		position: relative;
		top: -1px;
		background-color: currentColor;
		-webkit-mask: var(--pv-arw-icon) center / contain no-repeat;
		mask: var(--pv-arw-icon) center / contain no-repeat;
	}
	:is(.pv-label, .pv-tagline, .pv-count-eyebrow, .pv-label-h, h2.pv-sub, .pv-jump-h, .pv-kh .pv-cat, .pv-cs-num, .pv-sol-card .pv-num, .pv-sl-n, .pv-kh .pv-swipe) { font-size: 10px !important; } /* label pills incl. "Solution 01", "Phase 1", "Swipe" — not the chip links / tags */
}

/* ==========================================================================
   19 Nov 2026 (16:10) — user request
   1. DESKTOP / TABLET (≥761px): every label pill is 12px (was 10px on .pv-label / .pv-tagline, 13px on
      "Other solutions" / solution numbers). Mobile (≤760px) stays 10px (rule above), untouched.
   2. MOBILE (≤760px): every section has 52px top and bottom padding. The page-hero keeps its top padding
      (it clears the fixed header) and gets 52px at the bottom. :not(#a):not(#b) only raises specificity so
      this beats the older per-section rules.
   ========================================================================== */
@media (min-width: 761px) {
	:is(.pv-label, .pv-tagline, .pv-count-eyebrow, .pv-label-h, h2.pv-sub, .pv-jump-h, .pv-kh .pv-cat, .pv-cs-num, .pv-sol-card .pv-num, .pv-sl-n, .pv-kh .pv-swipe) { font-size: 12px !important; }
}
@media (max-width: 760px) {
	:is(.pv-section, .pv-cross, .pv-answer):not(#a):not(#b) { padding-top: 52px !important; padding-bottom: 52px !important; }
	.pv-page-hero:not(#a):not(#b) { padding-bottom: 52px !important; }
}

/* 19 Nov 2026 (16:15) — MOBILE ONLY (≤760px): the home "Automation and AI platforms we work with" pill is 268px wide (user request) */
@media (max-width: 760px) {
	.pv-label-h:not(#a):not(#b) { width: 268px !important; }
}

/* 19 Nov 2026 (17:20) — MOBILE ONLY (≤760px): the "Explore other solutions" section (.pv-sol-others, solution detail pages) has 30px top and bottom padding; every other section stays 52px (user request) */
@media (max-width: 760px) {
	.pv-section.pv-sol-others:not(#a):not(#b) { padding-top: 30px !important; padding-bottom: 30px !important; }
}

/* 19 Nov 2026 (17:25) — MOBILE ONLY (≤760px): the contact-form section (.pv-cta, home + /case-studies/) has 30px top and bottom padding (user request) */
@media (max-width: 760px) {
	.pv-section.pv-cta:not(#a):not(#b) { padding-top: 30px !important; padding-bottom: 30px !important; }
}

/* 19 Nov 2026 (17:45) — AI implementation H1: one line on desktop/tablet (≥761px), "AI implementation" / "services" on phones. br.pv-br-m is the phone-only line break. */
@media (min-width: 761px) {
	br.pv-br-m { display: none; }
}
@media (min-width: 761px) {
	.pv-page-hero h1:has(> br.pv-br-m) { max-width: none !important; }
}

/* 20 Nov 2026 — MOBILE ONLY (≤760px): the home hero bottom padding is 52px like every section (its top clears the fixed header) */
@media (max-width: 760px) {
	.pv-hero:not(#a):not(#b) { padding-bottom: 52px !important; }
}

/* 20 Nov 2026 (user): no extra space above the contact / form section on phones. The section before it kept its own 52px bottom padding on top of the form section's top padding
   (30px home, 52px case studies), so the gap was 82 / 104px. Now the form section's own top padding is the whole gap. */
@media (max-width: 760px) {
	.pv-section:has(+ .pv-cta):not(#a):not(#b) { padding-bottom: 0 !important; }
}
