/* ==========================================================================
   incito.com type and spacing standard (November 17, 2026)

   The only file that sets font family, size, weight, line height and the
   vertical margins of headings and body copy. Linked last in <head> on every
   page. build/check-type.py fails if another stylesheet, an in-page <style>
   block or a heading style="" sets them again.

   Sizes scale with screen width between 375 px (first value) and 1440 px
   (last value), so there are no per-breakpoint overrides.
   PP Neue Montreal ships two weights: 400 (regular) and 500 (medium).
   ========================================================================== */

:root {
  --ff-primary: "PP Neue Montreal", Arial, sans-serif;

  /* size                    375 px                       1440 px */
  --fs-h1:    clamp(34px, 2.066vw + 26.25px, 56px);
  --fs-h2:    clamp(30px, 0.939vw + 26.48px, 40px);
  --fs-h3:    clamp(24px, 0.563vw + 21.89px, 30px);
  --fs-title: clamp(20px, 0.188vw + 19.3px,  22px);  /* .card-title, .sidebar-title */
  --fs-lead:  clamp(19px, 0.282vw + 17.94px, 22px);
  --fs-body:  clamp(18px, 0.188vw + 17.3px,  20px);
  --fs-small: clamp(15px, 0.094vw + 14.65px, 16px);
  --fs-eyebrow: 14px;

  --lh-h1: 1.1;
  --lh-h2: 1.15;
  --lh-h3: 1.25;
  --lh-title: 1.3;
  --lh-body: 1.6;

  /* spacing: 8 px steps */
  --sp-1: 8px;
  --sp-2: 12px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 96px;
}

/* Headings ---------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--ff-primary);
  font-weight: 500;
  font-style: normal;
  letter-spacing: normal;
  text-transform: none;
  margin-top: 0;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); margin-bottom: var(--sp-4); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); margin-bottom: var(--sp-4); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin-bottom: var(--sp-3); }

/* More space above a heading than below it, when it follows body copy */
:is(p, ul, ol, blockquote, figure, table) + h2 { margin-top: var(--sp-6); }
:is(p, ul, ol, blockquote, figure, table) + h3 { margin-top: var(--sp-5); }

/* Body copy --------------------------------------------------------------- */
/* Base size for text that sets none of its own (sidebar and footer lists, labels) */
body { font-size: var(--fs-small); }

p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-top: 0;
  margin-bottom: var(--sp-4);
}
:is(ul, ol):is(:not([class]), .wp-block-list, .disc-list, .incito-key-points,
  .incito-related-reading, .article-sources) > li {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-bottom: var(--sp-2);
}
b, strong { font-weight: 500; }

p:last-child { margin-bottom: 0; }

/* Named exceptions: the only headings that are not section headings -------- */
.card-title,
.sidebar-title {
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  margin-top: 0;
  margin-bottom: var(--sp-2);
}
.eyebrow {
  font-size: var(--fs-eyebrow);
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: var(--sp-3);
}

/* Tables: small text; a table wider than the screen scrolls inside its box */
:is(td, th) { font-size: var(--fs-small); line-height: 1.5; }
:is(figure.wp-block-table, .wpb_wrapper:has(> table)) { max-width: 100%; overflow-x: auto; }

/* ==========================================================================
   Vertical rhythm for page-builder blocks (Nov 17 2026)
   WordPress (WPBakery) wraps every heading, paragraph, list and button in its
   own block and zeroes the margin of whatever ends a block, so the gap has to
   live on the block itself. Same steps as above: 16 after an H3 or a lead-in
   to a list, 24 between blocks, 32 between text and a button.
   ========================================================================== */
.wpb_content_element { margin-bottom: var(--sp-4) !important; }
.wpb_content_element:last-child { margin-bottom: 0 !important; }
.wpb_text_column:has(> .wpb_wrapper > h3:last-child) { margin-bottom: var(--sp-3) !important; }
.wpb_text_column:has(> .wpb_wrapper > p:last-child):has(+ .wpb_text_column > .wpb_wrapper > :is(ul, ol):first-child) {
  margin-bottom: var(--sp-3) !important;
}

/* Between text blocks the blocks carry the gap: no fixed-height spacers, no empty blocks,
   and more room above a heading than below it (48 above an H2, 32 above an H3). */
.wpb_text_column + .vc_empty_space:has(+ .wpb_text_column) { display: none !important; }
.wpb_text_column:not(:has(> .wpb_wrapper > :is(h1, h2, h3):last-child)):is(
  :has(+ .wpb_text_column > .wpb_wrapper > h2:first-child),
  :has(+ .vc_empty_space + .wpb_text_column > .wpb_wrapper > h2:first-child)) { margin-bottom: var(--sp-6) !important; }
.wpb_text_column:not(:has(> .wpb_wrapper > :is(h1, h2, h3):last-child)):is(
  :has(+ .wpb_text_column > .wpb_wrapper > h3:first-child),
  :has(+ .vc_empty_space + .wpb_text_column > .wpb_wrapper > h3:first-child)) { margin-bottom: var(--sp-5) !important; }

/* A sentence that introduces a list sits close to it */
:root:root p:has(+ :is(ul, ol)) { margin-bottom: var(--sp-3); }
.wpb_text_column:has(> .wpb_wrapper > p:last-child):has(+ .vc_empty_space + .wpb_text_column > .wpb_wrapper > :is(ul, ol):first-child) {
  margin-bottom: var(--sp-3) !important;
}

/* Content lists: tight items, one body gap after the list */
:root:root :is(ul, ol):is(:not([class]), .wp-block-list, .disc-list, .incito-key-points,
  .incito-related-reading, .article-sources) { margin-top: 0 !important; margin-bottom: var(--sp-4) !important; }
:root:root :is(ul, ol):is(:not([class]), .wp-block-list, .disc-list, .incito-key-points,
  .incito-related-reading, .article-sources) > li { margin-bottom: var(--sp-1); }
:root:root :is(ul, ol):is(:not([class]), .wp-block-list, .disc-list, .incito-key-points,
  .incito-related-reading, .article-sources):last-child { margin-bottom: 0 !important; }
:root:root :is(ul, ol):is(:not([class]), .wp-block-list, .disc-list, .incito-key-points,
  .incito-related-reading, .article-sources) > li:last-child { margin-bottom: 0 !important; }

/* Blog posts: boxes, figures, FAQ blocks and call-to-action panels sit 32 from the text around them */
:root:root .entry-content > :is(figure, blockquote, table, .incito-key-takeaways, .rank-math-block,
  .wp-block-table, .wp-block-image, .incito-video, .article-cta-top, .article-faqs) {
  margin-top: var(--sp-5); margin-bottom: var(--sp-5);
}
:root:root .rank-math-list-item { margin-bottom: var(--sp-4); }

/* Buttons: 32 below text, the heading's own gap below a heading, 32 before the next block.
   WPBakery button boxes are inline-blocks (their margins do not merge), so the gap above
   a button lives on the block before it. */
.wpb_content_element:has(+ .vc_btn3-container),
.wpb_content_element:has(+ .vc_empty_space + .vc_btn3-container) { margin-bottom: var(--sp-5) !important; }
.wpb_text_column:has(> .wpb_wrapper > :is(h1, h2):last-child):is(:has(+ .vc_btn3-container), :has(+ .vc_empty_space + .vc_btn3-container)) {
  margin-bottom: var(--sp-4) !important;
}
.wpb_text_column:has(> .wpb_wrapper > h3:last-child):is(:has(+ .vc_btn3-container), :has(+ .vc_empty_space + .vc_btn3-container)) {
  margin-bottom: var(--sp-3) !important;
}
.vc_btn3-container { margin-top: 0 !important; margin-bottom: var(--sp-5) !important; }
.vc_btn3-container:last-child { margin-bottom: 0 !important; }
/* a group of tags (homepage industries) wraps 12 apart */
:root:root .vc_btn3-container.industry-btn { margin: 0 var(--sp-2) var(--sp-2) 0 !important; }
* + .wp-block-buttons, p + p:has(> .imfg-btn) { margin-top: var(--sp-5) !important; }
/* fixed-height spacers next to a button would add a second, different gap */
.vc_empty_space:has(+ .vc_btn3-container), .vc_btn3-container + .vc_empty_space { display: none !important; }

/* ==========================================================================
   Buttons (Nov 17 2026): one shape, one size, Title Case, two looks
   - primary: solid orange, white text (the main action on a page)
   - secondary: white outline, only on dark bands (hero, teal industry band, landing banners)
   !important and the :root:root prefix because legacy WordPress/WPBakery button
   rules use !important with id and multi-class selectors.
   Labels are Title Case: every word capitalised except a, an, the, and, or, of,
   to, in, on, for, with, at, by.
   ========================================================================== */
:root {
  --btn-primary: #ff4d00;        /* Incito brand orange (brand guide) */
  --btn-primary-hover: #e04400;
  --btn-radius: 4px;
}
:root:root :is(.vc_btn3, .wp-block-button__link, .orange-btn, .imfg-btn, .btn-consult, .btn-footer, .cover-btn,
    .insights-contact__link, .article-cta-button, .incito-landing__cta a, .menu-btn > a, .apply-now),
#header #menu-main-menu-2022-update > li.menu-btn > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 12px 24px !important;
  box-sizing: border-box !important;
  font-family: var(--ff-primary) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  text-align: center !important;
  color: #fff !important;
  background: var(--btn-primary) !important;
  border: 2px solid var(--btn-primary) !important;
  border-radius: var(--btn-radius) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease !important;
}
:root:root :is(.vc_btn3, .wp-block-button__link, .orange-btn, .imfg-btn, .btn-consult, .btn-footer, .cover-btn,
    .insights-contact__link, .article-cta-button, .incito-landing__cta a, .menu-btn > a, .apply-now):is(:hover, :focus-visible),
#header #menu-main-menu-2022-update > li.menu-btn > a:is(:hover, :focus-visible) {
  background: var(--btn-primary-hover) !important;
  border-color: var(--btn-primary-hover) !important;
  color: #fff !important;
}
/* the homepage hero sets its buttons by id; match the standard there too */
:root:root:root:root #hero :is(.vc_btn3, .btn-arrow a) {
  min-height: 48px !important; padding: 12px 24px !important; font-size: 16px !important; line-height: 1.25 !important;
}
/* small header controls on phones (call, menu): same corners and case as the buttons */
:root:root:root:root :is(.header-phone-mobile, .bar-phone, .nav-toggle, .wpmm_mobile_menu_btn) {
  border-radius: var(--btn-radius) !important; text-transform: none !important; letter-spacing: normal !important;
}
/* no decorative arrows: the label says where the button goes */
:root:root :is(.vc_btn3, .orange-btn, .menu-btn > a, .btn-arrow a, .btn-arrow button, .apply-now)::after,
:root:root .menu-btn > a::before { content: none !important; display: none !important; }

/* secondary on a dark background */
:root:root:root :is(.vc_btn3-container.btn-secondary .vc_btn3, .industry-btn .vc_btn3, .imfg-btn.imfg-btn-ghost) {
  background: transparent !important;
  border-color: #fff !important;
  color: #fff !important;
}
:root:root:root :is(.vc_btn3-container.btn-secondary .vc_btn3, .industry-btn .vc_btn3, .imfg-btn.imfg-btn-ghost):is(:hover, :focus-visible) {
  background: #fff !important;
  border-color: #fff !important;
  color: #1f2b31 !important;
}

/* text links that act as "read more" calls */
:root:root :is(.blog-list .link, .content-block .link, a.link) {
  font-size: var(--fs-small) !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
