/*
Theme Name: Xansium
Description: Portfolio Theme
Version: 1.0
Author: Falcons & Allies
Author URI: http://www.falconsandallies.co.uk
Template: enfold
*/

@import url("../enfold/style.css");
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600&display=swap');

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */

:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-display: funnel-display, Helvetica, Arial, sans-serif;

  --color-primary:   #27c7b8;
  --color-dark:      #001432;
  --color-navy:      #002749;
  --color-teal:      #1b6e81;
  --color-white:     #ffffff;
  --color-text:      #111;
  --color-muted:     #555;
  --color-charcoal:  #383838;

  --line-height-body:    1.6;
  --line-height-heading: 1.2;
}

/* ============================================================
   BASE / RESET
   ============================================================ */

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: var(--line-height-body);
}

p {
  margin: 0 0 1.25em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--line-height-heading);
  margin: 0 0 0.6em;
}

h1, h2 {
  letter-spacing: -1px!important;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }

h4 {
  font-size: 1.2rem;
  font-weight: bold !important;
}

h5 { font-size: 1rem; }

h6 {
  font-size: 0.875rem;
  color: var(--color-muted);
}

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

li {
  margin-bottom: 0.5em;
}

ul li::marker {
  color: var(--color-muted);
}

small,
.text-small {
  font-size: 0.875rem;
  color: var(--color-muted);
}

strong {
  font-weight: 600;
  color: var(--color-charcoal) !important;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Focus style: see WCAG 2.2 AA FIXES at the end of this file */

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

.entry-content > * + * {
  margin-top: 1.25em;
}

.wp-block-heading {
  margin-top: 2em;
}

.lead-paragraph {
  font-size: 1.5em;
  line-height: 1.4em;
  color: var(--color-teal);
}

/* ============================================================
   SKIP NAVIGATION (ACCESSIBILITY)
   ============================================================ */

.skipnav {
  position: absolute;
  display: none;
  text-align: left;
  margin: 0;
  padding: 0;
}

/* Enable for IE6, IE7, modern browsers */
* html .skipnav,
*+html .skipnav,
:root .skipnav { display: block; }

.skipnav p {
  margin: 0;
  padding: 0;
  position: absolute;
}

.skipnav a {
  font-family: 'IBM Plex Sans', var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-navy);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 0 0 4px 0;
  display: inline-block;
  position: fixed;
  left: 0;
  top: 0;
  white-space: nowrap;
  letter-spacing: 0.01em;
  border: 3px solid transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.skipnav a:visited { color: var(--color-white); }

.skipnav a:focus,
.skipnav a:active {
  opacity: 1;
  pointer-events: auto;
  outline: none;
  border: 3px solid yellow !important;
  background: var(--color-navy) !important;
  color: var(--color-white) !important;
}

.skipnav a:hover {
  background: var(--color-dark);
  cursor: pointer;
}

/* ============================================================
   DANDELION FOOTER
   ============================================================ */

.dandelion-footer {
  position: relative;
  min-height: 75vh;
  background: var(--color-dark);
  overflow: hidden;
  padding: 40px 20px;
  color: var(--color-white);
}

.dandelion-footer canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.dandelion-footer > *:not(canvas) {
  position: relative;
  z-index: 2;
}

.footer_color {
  border-color: var(--color-teal) !important;
}

/* Footer social icons — single row, aligned right */
.av-4u450a-f41d4df3eb0f304bf75fb6310b970c7a {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 15px !important;
}

.av-4u450a-f41d4df3eb0f304bf75fb6310b970c7a .av_font_icon {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.av-4u450a-f41d4df3eb0f304bf75fb6310b970c7a .av_font_icon svg {
  height: 80px !important;
  width: auto !important;
  max-width: 100% !important;
}

/* ============================================================
   NAVIGATION & HEADER
   ============================================================ */

.title_container .breadcrumb {
  left: 50px;
  right: auto !important;
}

#top #header .avia_mega_div .sub-menu {
  overflow: hidden;
  width: 100%;
  box-shadow: none;
  border: none;
  position: relative;
  top: 0;
  left: 0;
  display: block;
  clear: both;
}

#av-burger-menu-ul::after {
  content: "";
  background-image: url(https://falconsandallies.co.uk/dev/xansium/wp-content/uploads/2026/02/avatar-white.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left;
  width: 100%;
  height: 100px;
  display: block;
  margin-top: 100px;
  margin-bottom: 20px;
}

.av-burger-overlay-inner {
  background: var(--color-navy) !important;
}

/* ============================================================
   CONTENT ELEMENTS
   ============================================================ */

.avia-standard-logo-sub {
  display: none !important; 
}

/* Slideshow */
.slideshow_caption { width: 90%; }

/* Buttons */
.av-icon-on-hover .avia_button_icon { height: 0.85em; }

/* Headings */
body .av-special-heading .av-special-heading-tag { margin-bottom: 0.4em; }
.av-subheading_below { line-height: 32px !important; }

/* Icon list */
#top .av-iconlist-small article.article-icon-entry { margin-bottom: 0.75em !important; }
.avia-icon-list-container { margin: 0 !important; }

/* Logo */
#top .av-border-deactivate.avia-logo-element-container img { padding: 2em; }

/* Separator */
.av-seperator-icon { font-size: 24px; }

/* Content slider */
.avia-content-slider .slide-meta       { display: none !important; }
.avia-content-slider .slide-entry-title { font-size: 1.2em; }
.avia-content-slider .slide-entry-excerpt {
  font-size: 16px;
  line-height: 1.55;
}

/* Sort items */
#js_sort_items {
  font-size: 1.2em;
  background-color: transparent !important;
}

/* Images */
.avia-image-container-inner img { border-radius: 0 !important; }

/* Portfolio grid */
.grid-entry .inner-entry         { box-shadow: none; }
.grid-entry-excerpt              { font-size: 14px; font-style: normal; text-align: left; }
h3.grid-entry-title.entry-title  { font-size: 1.25em; text-align: left; margin-bottom: 10px; }

/* Entry content links */
.entry-content-wrapper li      { padding: 0; }
.entry-content-wrapper p a:link     { border-bottom: 1px dotted var(--color-teal) !important; }
.entry-content-wrapper p a:hover     { border-bottom: 1px dotted var(--color-primary) !important; }

/* ============================================================
   ANIMATED NUMBERS
   ============================================================ */

.avia-single-number,
.avia-no-number {
  color: var(--color-white) !important;
  opacity: 1;
}

.avia-animated-number-content {
  font-size: 1.5em;
  margin-top: 10px;
}

.number_prepared .avia-animated-number-title {
  font-size: 3em;
  font-family: var(--font-display);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

#top .av-large-testimonial-slider { text-align: left; }

#top .av-large-testimonial-slider.avia-testimonial-wrapper .avia-testimonial {
  padding: 0 !important;
}

.avia-testimonial-wrapper { margin: 0; }

/* ============================================================
   SLIDE ENTRY TITLES
   ============================================================ */

h3.slide-entry-title.entry-title {
  line-height: 1.4em;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* ============================================================
   TEAM PAGE
   ============================================================ */

.team-member-name      { margin-top: 1em !important; }
.team-member-job-title { margin-bottom: 1em !important; }

/* ============================================================
   CUSTOM ARROW LISTS
   ============================================================ */

.footer-arrow-list,
.avia_textblock ul {
  list-style: none !important;
  padding-left: 0.25em !important;
}

.avia_textblock ul { margin-bottom: 1em; }

.footer-arrow-list li,
.avia_textblock li {
  position: relative;
  padding-left: 0.25em !important;
}

.footer-arrow-list li::before,
.avia_textblock li::before {
  content: "\279D";
  color: var(--color-primary);
  position: absolute;
  left: -1.25em;
}

.footer-icon { margin-left: 0.6em; }

/* ============================================================
   DARK DETAIL SECTION LINKS
   ============================================================ */

#dark-detail a {
  color: var(--color-white) !important;
  font-weight: bold;
  border-bottom: 1px dotted var(--color-primary) !important;
}

#dark-detail a:hover {
  color: var(--color-white) !important;
  font-weight: bold;
  border-bottom: 1px dotted var(--color-white) !important;
}

/* ============================================================
   OUTCOME SECTION
   ============================================================ */

.outcome li.lead-paragraph,
.outcome p.lead-paragraph { color: var(--color-white); }

.outcome .av-large-testimonial-slider .avia-testimonial-name {
  color: var(--color-white) !important;
}

/* ============================================================
   SERVICE INTROS
   ============================================================ */

.service-intro h2.av-special-heading-tag { font-size: 3em; }

.service-intro .av-subheading p {
  font-size: 1.4em;
  line-height: 1.4em;
}

/* ============================================================
   PRELOADER
   ============================================================ */

#top .av-siteloader {
  background: url(https://falconsandallies.co.uk/dev/xansium/wp-content/uploads/2026/10/xansium-preloader-build.svg) center center no-repeat;
  background-size: contain;
  border: none;
  height: 75px;
  width: 75px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media only screen and (max-width: 767px) {

  .avia-slideshow.avia-slideshow-inner { height: 300px !important; }

  .avia-slideshow-inner img {
    height: 100% !important;
    object-fit: cover;
  }

  .av-4u450a-f41d4df3eb0f304bf75fb6310b970c7a {
    gap: 8px !important;
    justify-content: center !important;
  }

  .av-4u450a-f41d4df3eb0f304bf75fb6310b970c7a .av_font_icon svg {
    height: 50px !important;
  }

}



/* ==========================================================================
   FALCONS & ALLIES TYPOGRAPHY (added 20 Oct 2026)
   Headings and text use the F&A type scale: fluid heading sizes, tight
   tracking and lighter weights. Fonts (Funnel / IBM Plex Sans) and
   colours stay as Xansium's. Remove this block (or restore
   style-pre-fa-type.css) to go back to the previous sizes.
   ========================================================================== */


html:root {
	--fa-t-track: 1;
	--fa-t-hw-1: 300;   /* h1, display, big numbers (Funnel Light) */
	--fa-t-hw-2: 400;   /* h2 (Funnel Regular) */
	--fa-t-hw-3: 500;   /* h3, h4 */
	--fa-t-body:    17px;
	--fa-t-display: clamp(2.75rem, 5.4vw + 0.75rem, 6.5rem);
	--fa-t-h1:      clamp(2.5rem, 4.6vw + 0.75rem, 5.5rem);
	--fa-t-h2:      clamp(2rem, 2.6vw + 1rem, 3.5rem);
	--fa-t-h3:      clamp(1.45rem, 1.1vw + 1.05rem, 2.2rem);
	--fa-t-h4:      clamp(1.2rem, 0.5vw + 1.05rem, 1.6rem);
	--fa-t-h5:      1.15rem;
	--fa-t-h6:      0.95rem;
	--fa-t-lead:    clamp(1.2rem, 0.9vw + 0.95rem, 1.8rem);
}

/* Body text */
html body#top {
	font-size: var(--fa-t-body);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
html body#top #wrap_all p { line-height: 1.7; }

/* Headings */
html body#top #wrap_all h1, html body#top #wrap_all h2, html body#top #wrap_all h3,
html body#top #wrap_all h4, html body#top #wrap_all h5, html body#top #wrap_all h6,
html body#top #wrap_all .av-special-heading-tag,
html body#top #wrap_all .slide-entry-title,
html body#top #wrap_all .avia-caption-title,
html body#top #av-burger-menu-ul li a,
html body#top .avia-animated-number-title,
html body#top .number_prepared .avia-animated-number-title {
	text-transform: none;
	font-style: normal;
	text-wrap: balance;
}
html body#top #wrap_all h1 { font-size: var(--fa-t-h1) !important; font-weight: var(--fa-t-hw-1) !important; letter-spacing: calc(-0.03em  * var(--fa-t-track)) !important; line-height: 1.04; }
html body#top #wrap_all h2 { font-size: var(--fa-t-h2) !important; font-weight: var(--fa-t-hw-2) !important; letter-spacing: calc(-0.025em * var(--fa-t-track)) !important; line-height: 1.1; }
html body#top #wrap_all h3 { font-size: var(--fa-t-h3) !important; font-weight: var(--fa-t-hw-3) !important; letter-spacing: calc(-0.035em * var(--fa-t-track)) !important; line-height: 1.2; }
html body#top #wrap_all h4 { font-size: var(--fa-t-h4) !important; font-weight: var(--fa-t-hw-3) !important; letter-spacing: calc(-0.03em  * var(--fa-t-track)) !important; line-height: 1.3; }
html body#top #wrap_all h5 { font-size: var(--fa-t-h5) !important; font-weight: 500 !important; letter-spacing: calc(-0.02em * var(--fa-t-track)) !important; line-height: 1.4; }
html body#top #wrap_all h6 { font-size: var(--fa-t-h6) !important; font-weight: 500 !important; letter-spacing: calc(-0.01em * var(--fa-t-track)) !important; line-height: 1.4; }

/* Special Heading subheadings and lead text */
html body#top #wrap_all .av-special-heading .av-subheading,
html body#top #wrap_all .av-special-heading .av-subheading p,
html body#top #wrap_all .fa-lead, html body#top #wrap_all .fa-lead p,
html body#top #wrap_all .lead-paragraph {
	font-size: var(--fa-t-lead) !important;
	line-height: 1.5 !important;
	letter-spacing: calc(-0.02em * var(--fa-t-track));
	text-transform: none;
	font-style: normal;
}

/* Display size (Custom CSS Class "fa-display") */
html body#top #wrap_all .fa-display h1, html body#top #wrap_all .fa-display h2,
html body#top #wrap_all h1.fa-display, html body#top #wrap_all h2.fa-display,
html body#top #wrap_all .fa-display .av-special-heading-tag,
html body#top #wrap_all .avia-slideshow .avia-caption-title {
	font-size: var(--fa-t-display) !important;
	font-weight: var(--fa-t-hw-1) !important;
	letter-spacing: calc(-0.035em * var(--fa-t-track)) !important;
	line-height: 1;
}

/* Builder font sizes set on individual Special Headings are overridden
   above so every heading follows the F&A scale. */

/* Grid, slider and number titles keep their smaller sizes, in the F&A style */
html body#top #wrap_all h3.grid-entry-title.entry-title,
html body#top #wrap_all h3.slide-entry-title.entry-title { font-size: 1.25em !important; letter-spacing: calc(-0.03em * var(--fa-t-track)) !important; line-height: 1.25; }
html body#top .avia-animated-number-title { font-weight: var(--fa-t-hw-1); letter-spacing: calc(-0.05em * var(--fa-t-track)); line-height: 1; }
html body#top #wrap_all .iconbox .iconbox_content_title { font-size: var(--fa-t-h4) !important; font-weight: 500; letter-spacing: calc(-0.03em * var(--fa-t-track)); text-transform: none; }

/* Menu, buttons and bold text */
html body#top #header .av-main-nav > li > a { font-weight: 500; letter-spacing: calc(-0.01em * var(--fa-t-track)); text-transform: none; }
html body#top .avia-button { font-weight: 600; letter-spacing: -0.01em; text-transform: none; }
html body#top #wrap_all strong { font-weight: 600; }

/* Image corners (updated 28 Oct 2026): as on Falcons & Allies, images get
   12px rounded corners, including during the scroll-in reveal. Images in
   no-padding sections or edge-to-edge grid rows stay square, and so does any
   Image element with the Custom CSS Class "fa-square". */
#top #wrap_all .avia-image-container:not(.fa-square) .avia-image-container-inner,
#top #wrap_all .avia-image-container:not(.fa-square) .avia-image-overlay-wrap,
#top #wrap_all .avia-image-container:not(.fa-square) .avia_image {
	border-radius: 12px;
	overflow: hidden;
}
html.fa-js body#top .avia-image-container.fa-reveal { clip-path: inset(12% 0 0 0 round 12px); }
html.fa-js body#top .avia-image-container.fa-reveal.fa-in { clip-path: inset(0 round 12px); }

#top #wrap_all .avia-section-no-padding .avia-image-container .avia-image-container-inner,
#top #wrap_all .avia-section-no-padding .avia-image-container .avia-image-overlay-wrap,
#top #wrap_all .avia-section-no-padding .avia-image-container .avia_image,
#top #wrap_all .av-layout-grid-container .avia-image-container .avia-image-container-inner,
#top #wrap_all .av-layout-grid-container .avia-image-container .avia-image-overlay-wrap,
#top #wrap_all .av-layout-grid-container .avia-image-container .avia_image,
#top #wrap_all .avia-image-container.fa-square .avia-image-container-inner,
#top #wrap_all .avia-image-container.fa-square .avia-image-overlay-wrap,
#top #wrap_all .avia-image-container.fa-square .avia_image { border-radius: 0; }
html.fa-js body#top .avia-section-no-padding .avia-image-container.fa-reveal,
html.fa-js body#top .av-layout-grid-container .avia-image-container.fa-reveal,
html.fa-js body#top .avia-image-container.fa-square.fa-reveal { clip-path: inset(12% 0 0 0); }
html.fa-js body#top .avia-section-no-padding .avia-image-container.fa-reveal.fa-in,
html.fa-js body#top .av-layout-grid-container .avia-image-container.fa-reveal.fa-in,
html.fa-js body#top .avia-image-container.fa-square.fa-reveal.fa-in { clip-path: inset(0); }

/* ==========================================================================
   CASE STUDY CARDS (added 28 Oct 2026)
   The Portfolio Grid (Case studies page) restyled as the Falcons & Allies
   cards: rounded 16:10 image, title and summary underneath, three per row
   (two on tablets, one on phones), spaced like Enfold's column gaps.
   ========================================================================== */
#top #wrap_all .av-portfolio-grid-sorting-container .grid-sort-container {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 6%;
	row-gap: clamp(36px, 4vw, 56px);
	height: auto !important;     /* Isotope sets a fixed height */
	overflow: visible;
}
#top #wrap_all .av-portfolio-grid-sorting-container .grid-entry {
	position: static !important;
	transform: none !important;
	left: auto !important;
	top: auto !important;
	width: auto !important;
	float: none;
	margin: 0 !important;
	padding: 0;
}
#top #wrap_all .av-portfolio-grid-sorting-container .grid-entry.isotope-hidden,
#top #wrap_all .av-portfolio-grid-sorting-container .grid-entry[style*="opacity: 0"] { display: none !important; }
#top #wrap_all .av-portfolio-grid-sorting-container .inner-entry {
	background: transparent;
	border: 0;
	box-shadow: none;
	overflow: visible;
}
#top #wrap_all .av-portfolio-grid-sorting-container .grid-image {
	display: block;
	height: auto !important;
	opacity: 1 !important;
	border-radius: 12px;
	overflow: hidden;
}
#top #wrap_all .av-portfolio-grid-sorting-container .grid-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
#top #wrap_all .av-portfolio-grid-sorting-container .grid-entry:hover .grid-image img { transform: scale(1.04); }
#top #wrap_all .av-portfolio-grid-sorting-container .image-overlay,
#top #wrap_all .av-portfolio-grid-sorting-container .avia-arrow { display: none !important; }
#top #wrap_all .av-portfolio-grid-sorting-container .grid-content,
#top #wrap_all .av-portfolio-grid-sorting-container .grid-content .entry-content-header,
#top #wrap_all .av-portfolio-grid-sorting-container .grid-entry-title,
#top #wrap_all .av-portfolio-grid-sorting-container .grid-entry-excerpt { background: transparent !important; }
#top #wrap_all .av-portfolio-grid-sorting-container .grid-content {
	border: 0;
	padding: 22px 0 0;
	text-align: left;
}
html body#top #wrap_all .av-portfolio-grid-sorting-container h3.grid-entry-title.entry-title {
	font-size: var(--fa-t-h4) !important;
	font-weight: 500 !important;
	letter-spacing: calc(-0.03em * var(--fa-t-track)) !important;
	line-height: 1.25;
	margin: 0;
	text-align: left;
}
#top #wrap_all .av-portfolio-grid-sorting-container .grid-entry-title a { text-decoration: none; }
#top #wrap_all .av-portfolio-grid-sorting-container .grid-entry-excerpt {
	font-size: var(--fa-t-body);
	font-style: normal;
	line-height: 1.6;
	margin-top: 0.4em;
	text-align: left;
}
#top #wrap_all .av-portfolio-grid-sorting-container .sort_width_container { margin-bottom: clamp(28px, 3vw, 44px); }
@media only screen and (max-width: 989px) {
	#top #wrap_all .av-portfolio-grid-sorting-container .grid-sort-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media only screen and (max-width: 767px) {
	#top #wrap_all .av-portfolio-grid-sorting-container .grid-sort-container { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   ROUNDED CARDS WITH HOVER LIFT (added 28 Oct 2026)
   As on Falcons & Allies: any column with a background colour, background
   image or border is treated as a card — 12px corners, and on hover it
   lifts slightly with a soft navy shadow. Add the class "fa-square" to a
   column to keep it square and still. A small script in functions.php
   marks those columns with "fa-card-col".
   ========================================================================== */
#top #wrap_all .flex_column.fa-card,
#top #wrap_all .fa-card-col {
	border-radius: 12px;
	transition: translate 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
#top #wrap_all .fa-card-col:hover,
#top #wrap_all .flex_column.fa-card:hover {
	translate: 0 -4px;   /* separate from transform, so Enfold's entry animations don't block it */
	box-shadow: 0 30px 60px -30px rgba(0, 20, 50, 0.35);
}

/* Post slider images (homepage "Latest case studies") */
#top #wrap_all .slide-entry .slide-image {
	border-radius: 12px;
	overflow: hidden;
}
#top #wrap_all .slide-entry .slide-image img { transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
#top #wrap_all .slide-entry:hover .slide-image img { transform: scale(1.04); }
#top #wrap_all .slide-entry .slide-image .image-overlay { display: none !important; }
@media (prefers-reduced-motion: reduce) {
	#top #wrap_all .fa-card-col:hover,
	#top #wrap_all .flex_column.fa-card:hover { translate: none; }
}

/* Slideshow titles (homepage hero, case study banners) are H1s: keep the
   caption colour (white) instead of the navy/teal heading colour. */
html body#top #wrap_all .avia-slideshow .avia-caption-title { color: inherit; }

/* Preloader: the logo builds itself (animated SVG) instead of spinning,
   with no ring or pulsing disc behind it */
html body .av-siteloader-wrap .av-siteloader { border: 0 !important; box-shadow: none !important; animation: none !important; transform: none !important; }
html body .av-siteloader-wrap .av-siteloader::before,
html body .av-siteloader-wrap .av-siteloader::after { display: none !important; }
html body .av-siteloader-wrap .av-siteloader-extra { display: none !important; }


/* ==========================================================================
   PAGE SECTION MENU (added 1 Nov 2026)
   A Fullwidth Sub Menu element (e.g. How we work) becomes a sticky row of
   section links under the header on every screen size. The current section
   is a teal pill; on phones the row scrolls sideways. A script in
   functions.php adds the "xs-pagenav" class, highlight and smooth scrolling.
   ========================================================================== */
/* "overflow: hidden" on these turns them into scroll containers, which stops sticky
   working; "clip" still prevents sideways scrolling */
html.xs-has-pagenav,
html.xs-has-pagenav body#top { overflow-x: clip !important; overflow-y: visible !important; }
html.xs-has-pagenav #wrap_all { overflow: clip !important; }
/* The menu can only stick within #main, which must wrap its floated sections */
html.xs-has-pagenav #main { display: flow-root; }
html.xs-has-pagenav .sticky_placeholder { display: none !important; }

#top #wrap_all .av-submenu-container.xs-pagenav {
	position: sticky !important;
	top: var(--xs-top, 0px) !important;
	left: auto !important;
	right: auto !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	z-index: 400 !important;
	background: rgba(255, 255, 255, 0.94) !important;
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	backdrop-filter: saturate(140%) blur(10px);
	border: 0 !important;
	border-top: 1px solid rgba(0, 20, 50, 0.08) !important;
	border-bottom: 1px solid rgba(0, 20, 50, 0.08) !important;
	box-shadow: none;
	transition: box-shadow 0.3s ease, top 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Follows the header when it slides away on scroll */
#top.fa-header-hidden #wrap_all .av-submenu-container.xs-pagenav { top: var(--xs-top-hidden, 0px) !important; }
#top #wrap_all .av-submenu-container.xs-pagenav.is-stuck { box-shadow: 0 14px 30px -22px rgba(0, 20, 50, 0.5); }
#top #wrap_all .xs-pagenav .mobile_menu_toggle { display: none !important; }
#top #wrap_all .xs-pagenav ul.av-subnav-menu {
	display: flex !important;
	flex-wrap: nowrap;
	gap: 4px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	margin: 0 !important;
	padding: 10px 0 !important;
	width: 100%;
	position: static !important;
	background: none !important;
	border: 0 !important;
	text-align: left !important;
}
#top #wrap_all .xs-pagenav ul.av-subnav-menu::-webkit-scrollbar { display: none; }
#top #wrap_all .xs-pagenav ul.av-subnav-menu > li {
	flex: none;
	float: none !important;
	display: block !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: none !important;
}
#top #wrap_all .xs-pagenav ul.av-subnav-menu > li > a {
	display: block !important;
	padding: 8px 14px !important;
	border: 0 !important;
	border-radius: 999px;
	background: transparent !important;
	color: #383838 !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}
#top #wrap_all .xs-pagenav ul.av-subnav-menu > li > a:hover { background: #eef3f6 !important; color: #001432 !important; }
#top #wrap_all .xs-pagenav ul.av-subnav-menu > li > a.is-active { background: #1b6e81 !important; color: #ffffff !important; }
#top #wrap_all .xs-pagenav ul.av-subnav-menu > li > a:focus-visible { outline: 2px solid #1b6e81; outline-offset: 2px; }
/* Sections receive focus when jumped to (for screen readers); no outline needed */
html.xs-has-pagenav #main [tabindex="-1"]:focus { outline: none; }
@media only screen and (max-width: 989px) {
	#top #wrap_all .xs-pagenav ul.av-subnav-menu {
		padding: 8px 0 !important;
		-webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 32px), transparent 100%);
		mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 32px), transparent 100%);
	}
	#top #wrap_all .xs-pagenav ul.av-subnav-menu > li > a { font-size: 14px !important; padding: 7px 12px !important; }
}


/* ==========================================================================
   PAGE BANNERS ON PHONES (added 2 Nov 2026)
   Full-width slideshow banners shrink to ~160px on phones, too short for the
   title and subtitle, so the text spilled out of the top. Below 768px the
   caption now sets the banner height (at least 340px), the text is centred
   vertically and left-aligned, and the image or video fills the space behind.
   ========================================================================== */
@media only screen and (max-width: 767px) {
	#top #wrap_all .avia-slideshow.av_slideshow_full { height: auto !important; min-height: 340px; }
	#top #wrap_all .av_slideshow_full .avia-slideshow-inner {
		position: absolute !important;
		top: 0; right: 0; bottom: 0; left: 0;
		height: 100% !important;
	}
	#top #wrap_all .av_slideshow_full .avia-slideshow-slide,
	#top #wrap_all .av_slideshow_full .avia-slide-wrap { height: 100% !important; }
	#top #wrap_all .av_slideshow_full .avia-slide-wrap {
		container-type: size;
		background-size: cover !important;
		background-position: center center !important;
	}
	#top #wrap_all .av_slideshow_full .avia-slide-wrap > img,
	#top #wrap_all .av_slideshow_full .avia-slide-wrap a > img {
		width: 100% !important;
		height: 100% !important;
		object-fit: cover;
	}
	/* Videos cover the banner like a background image */
	#top #wrap_all .av_slideshow_full .avia-slide-wrap iframe,
	#top #wrap_all .av_slideshow_full .avia-slide-wrap video {
		width: max(100cqw, 177.78cqh) !important;
		height: max(100cqh, 56.25cqw) !important;
		top: 50% !important;
		left: 50% !important;
		transform: translate(-50%, -50%) scale(1.34); /* crops the player controls, as Enfold does */
	}
	#top #wrap_all .av_slideshow_full .caption_fullwidth {
		position: relative !important;
		display: flex !important;
		align-items: center;
		min-height: 340px;
		height: auto !important;
		padding: 56px 0;
	}
	#top #wrap_all .av_slideshow_full .caption_fullwidth .caption_container { width: 100%; height: auto !important; }
	#top #wrap_all .av_slideshow_full .caption_fullwidth .slideshow_caption {
		position: relative !important;
		top: auto !important;
		bottom: auto !important;
		height: auto !important;
		padding: 0 !important;
	}
	#top #wrap_all .av_slideshow_full .caption_fullwidth .slideshow_inner_caption,
	#top #wrap_all .av_slideshow_full .caption_fullwidth .slideshow_align_caption { height: auto !important; text-align: left; }
	#top #wrap_all .av_slideshow_full .avia-caption-content { margin-top: 0.6em; }
	#top #wrap_all .av_slideshow_full .avia-caption-content p:last-child { margin-bottom: 0; }
}


/* ==========================================================================
   SECTION SPACING ON SMALLER SCREENS (added 2 Nov 2026)
   Enfold keeps the same section padding at every size, so "Huge" sections
   (130px top and bottom) leave big gaps on phones. Desktop is unchanged.
   ========================================================================== */
@media only screen and (max-width: 989px) {
	#top #wrap_all .avia-section.avia-section-huge > .container > .content,
	#top #wrap_all .avia-section.avia-section-huge .container > .content { padding-top: 96px !important; padding-bottom: 96px !important; }
}
@media only screen and (max-width: 767px) {
	#top #wrap_all .avia-section.avia-section-huge > .container > .content,
	#top #wrap_all .avia-section.avia-section-huge .container > .content { padding-top: 64px !important; padding-bottom: 64px !important; }
	#top #wrap_all .avia-section.avia-section-large > .container > .content,
	#top #wrap_all .avia-section.avia-section-large .container > .content { padding-top: 52px !important; padding-bottom: 52px !important; }
	#top #wrap_all .avia-section.avia-section-default > .container > .content,
	#top #wrap_all .avia-section.avia-section-default .container > .content { padding-top: 40px !important; padding-bottom: 40px !important; }
}


/* ==========================================================================
   MOBILE MENU ALIGNMENT (added 2 Nov 2026)
   The full-screen mobile menu is left-aligned with the logo (the header is
   85% wide, so a 7.5% gutter each side). Enfold's hidden submenu arrow is removed, as it pushed
   items with a submenu (Services, About us) off line.
   ========================================================================== */
#top #av-burger-menu-ul { /* a table cell, so padding rather than width sets the edges */
	padding-left: var(--xs-menu-gutter, 7.5vw) !important;
	padding-right: var(--xs-menu-gutter, 7.5vw) !important;
	text-align: left !important;
}
#top #av-burger-menu-ul li,
#top #av-burger-menu-ul li a { text-align: left !important; }
#top #av-burger-menu-ul li a { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; }
#top #av-burger-menu-ul .av-submenu-indicator,
#top #av-burger-menu-ul .dropdown_available { display: none !important; }
#top #av-burger-menu-ul ul { padding-left: 0 !important; margin-left: 0 !important; }


/* ==========================================================================
   WCAG 2.2 AA FIXES (added 3 Nov 2026)
   Accessibility audit fixes. The matching behaviour is in section 9 of
   assets/js/fa-motion.js.
   ========================================================================== */

/* Colours: Enfold's palette values that fell below 4.5:1 */
html:root {
	--enfold-main-color-primary: #1b6e81;      /* was #1b8b82, 4.15:1 on white */
	--enfold-main-color-secondary: #155a6a;    /* was #27c7b7, 2.11:1 on white (hover) */
	--enfold-main-color-meta: #595959;         /* was #919191, 3.15:1 on white */
	--enfold-main-color-button-border: #155a6a;
	--enfold-alternate-color-secondary: #155a6a;
	--enfold-alternate-color-meta: #595959;
	--enfold-header-color-secondary: #1b6e81;
	--enfold-footer-color-secondary: #5fe0d3;
}

/* Focus: a two-tone ring that shows on any background */
html body#top :focus-visible:not(#main):not([tabindex="-1"]) {
	outline: 3px solid #002749;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #ffffff;
}
html body#top #header .av-main-nav > li > a:focus-visible,
html body#top #header .logo a:focus-visible {
	outline-offset: -5px;
	box-shadow: inset 0 0 0 2px #ffffff;
}
/* Stops the fixed header covering a focused item */
html { scroll-padding-top: 120px; }

/* Background videos and the footer animation */
.xs-main-content { display: contents; }
/* Same stacking Enfold gives direct children of #main, so content covers the curtain footer */
.xs-main-content > * { position: relative; z-index: 1; }
.xs-motion-toggle {
	position: absolute;
	left: calc(2.5% + 50px); /* lines up with the hero button */
	bottom: 24px;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: #ffffff;
	background: transparent;
	border: 2px solid #ffffff;
	border-radius: 50%;
	cursor: pointer;
}
.xs-motion-toggle:hover { background: rgba(255, 255, 255, 0.18); }
@media (prefers-reduced-motion: reduce) {
	canvas.dandelion-animation { visibility: hidden; }
}

/* Text over video and photo banners */
.avia-fullscreen-slider .avia-slide-wrap::after,
.av_slideshow_full .avia-slide-wrap::after {
	content: "";
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 5;
	pointer-events: none;
	background: rgba(0, 20, 50, 0.45);
}

/* Client logo slider: pause button (behaviour in fa-motion.js) */
.xs-has-logo-toggle { position: relative; }
.xs-logo-toggle {
	position: absolute;
	left: 0;
	bottom: 24px;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: #001432; /* on a light background, so navy rather than white */
	background: transparent;
	border: 2px solid #001432;
	border-radius: 50%;
	cursor: pointer;
}
.xs-logo-toggle:hover { color: #ffffff; background: #001432; }

/* Animated numbers on a light background */
#top .xs-number-on-light .avia-single-number,
#top .xs-number-on-light .avia-no-number,
#top .xs-number-on-light .avia-animated-number-title { color: #002749 !important; }

/* Links in body text are underlined, not identified by colour alone */
html body#top .xs-main-content .avia_textblock a:not(.avia-button) {
	text-decoration: underline dotted;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	border-bottom: 0 !important;
}
/* Dotted underline turns solid on hover and keyboard focus */
html body#top .xs-main-content .avia_textblock a:not(.avia-button):hover,
html body#top .xs-main-content .avia_textblock a:not(.avia-button):focus-visible {
	text-decoration-style: solid;
}

/* Long words in cards no longer clip */
html body#top #wrap_all h1, html body#top #wrap_all h2, html body#top #wrap_all h3 { overflow-wrap: break-word; }
@media only screen and (min-width: 768px) {
	html body#top #wrap_all .av_one_third.fa-card-col h2 {
		font-size: min(var(--fa-t-h2), calc(4.4vw - 16px)) !important;
	}
}

/* Dropdown dismissed with Escape */
#top #header .xs-submenu-dismissed > ul {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
}

/* Contact form: visible labels and clear field edges */
#top .avia_ajax_form.av-form-labels-hidden label:not(.input_checkbox_label) {
	position: static;
	display: block;
	margin-bottom: 4px;
	color: #383838;
	font-weight: 600;
}
#top .avia_ajax_form input.text_input,
#top .avia_ajax_form textarea,
#top .avia_ajax_form select {
	color: #383838;
	background-color: #ffffff;
	border: 1px solid #767676;
}
#top .avia_ajax_form .error input.text_input,
#top .avia_ajax_form .error textarea,
#top .avia_ajax_form .error select { border: 2px solid #b3261e; }
.xs-field-error {
	display: block;
	margin-top: 4px;
	color: #b3261e;
	font-size: 15px;
	font-weight: 600;
}

/* Headings re-tagged to fix their level keep their original size */
html body#top #wrap_all .xs-heading-h3 { font-size: var(--fa-t-h3) !important; font-weight: var(--fa-t-hw-3) !important; letter-spacing: calc(-0.035em * var(--fa-t-track)) !important; line-height: 1.2; }
html body#top #wrap_all .xs-heading-h4 { font-size: var(--fa-t-h4) !important; font-weight: var(--fa-t-hw-3) !important; letter-spacing: calc(-0.03em * var(--fa-t-track)) !important; line-height: 1.3; }
html body#top #wrap_all .xs-heading-h5 { font-size: var(--fa-t-h5) !important; font-weight: 500 !important; letter-spacing: calc(-0.02em * var(--fa-t-track)) !important; line-height: 1.4; }
html body#top #wrap_all .xs-heading-h6 { font-size: var(--fa-t-h6) !important; font-weight: 500 !important; letter-spacing: calc(-0.01em * var(--fa-t-track)) !important; line-height: 1.4; }

/* Bold labels on the teal Academy section: light teal was 2.76:1 */
html body#top .xs-main-content .footer_color b { color: #ffffff; }

/* PDF viewer toolbar: text was 2.63:1 */
#top .pdfemb-toolbar { background-color: #383838 !important; color: #ffffff !important; }
#top .pdfemb-toolbar .pdfemb-page-area, #top .pdfemb-toolbar div { color: #ffffff !important; }

/* Long link text in the footer wraps instead of running off small screens */
.av-curtain-footer-container a { overflow-wrap: anywhere; }
/* Space before a heading that follows a list */
html body#top .avia_textblock ul + h2 { margin-top: 1.5em; }

/* ==========================================================================
   CARD GRIDS ON TABLETS (portrait iPad)
   Rows of three one-third cards become two per row between 768px and
   1023px, and rows of four one-quarter cards (e.g. "Our other services")
   become two per row up to 1199px, so headings fit inside the cards. A lone
   odd card is centred. Rows that pair a card with wider content are left as
   they are.
   ========================================================================== */
@media only screen and (min-width: 768px) and (max-width: 1023px) { /* three across */
  #top .entry-content-wrapper:has(> .flex_column_table > .av_one_third.fa-card-col ~ .av_one_third.fa-card-col) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
  }
  #top .entry-content-wrapper:has(> .flex_column_table > .av_one_third.fa-card-col ~ .av_one_third.fa-card-col)::before,
  #top .entry-content-wrapper:has(> .flex_column_table > .av_one_third.fa-card-col ~ .av_one_third.fa-card-col)::after { display: none; }
  #top .entry-content-wrapper:has(> .flex_column_table > .av_one_third.fa-card-col ~ .av_one_third.fa-card-col) > * { grid-column: 1 / -1; }
  #top .entry-content-wrapper > .flex_column_table:has(> .av_one_third.fa-card-col ~ .av_one_third.fa-card-col) { display: contents; }
  #top .flex_column_table:has(> .av_one_third.fa-card-col ~ .av_one_third.fa-card-col) > .av-flex-placeholder { display: none; }
  #top .flex_column_table:has(> .av_one_third.fa-card-col ~ .av_one_third.fa-card-col) > .flex_column.fa-card-col {
    grid-column: auto;
    float: none;
    width: auto !important;
    margin: 0 0 30px 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #top .entry-content-wrapper:not(:has(> .flex_column_table ~ .flex_column_table > .fa-card-col)) > .flex_column_table:has(> .av_one_third.fa-card-col ~ .av_one_third.fa-card-col) > .fa-card-col:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 15px) !important;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1199px) { /* four across */
  #top .entry-content-wrapper:has(> .flex_column_table > .av_one_fourth.fa-card-col ~ .av_one_fourth.fa-card-col) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
  }
  #top .entry-content-wrapper:has(> .flex_column_table > .av_one_fourth.fa-card-col ~ .av_one_fourth.fa-card-col)::before,
  #top .entry-content-wrapper:has(> .flex_column_table > .av_one_fourth.fa-card-col ~ .av_one_fourth.fa-card-col)::after { display: none; }
  #top .entry-content-wrapper:has(> .flex_column_table > .av_one_fourth.fa-card-col ~ .av_one_fourth.fa-card-col) > * { grid-column: 1 / -1; }
  #top .entry-content-wrapper > .flex_column_table:has(> .av_one_fourth.fa-card-col ~ .av_one_fourth.fa-card-col) { display: contents; }
  #top .flex_column_table:has(> .av_one_fourth.fa-card-col ~ .av_one_fourth.fa-card-col) > .av-flex-placeholder { display: none; }
  #top .flex_column_table:has(> .av_one_fourth.fa-card-col ~ .av_one_fourth.fa-card-col) > .flex_column.fa-card-col {
    grid-column: auto;
    float: none;
    width: auto !important;
    margin: 0 0 30px 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #top .entry-content-wrapper:not(:has(> .flex_column_table ~ .flex_column_table > .fa-card-col)) > .flex_column_table:has(> .av_one_fourth.fa-card-col ~ .av_one_fourth.fa-card-col) > .fa-card-col:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 15px) !important;
  }
}

/* ==========================================================================
   TABLE TEXT SIZE
   Enfold sets tables to 13px. Cells now sit just under the 17px body text,
   with the uppercase header labels a step smaller. Pricing rows keep their
   own large figures.
   ========================================================================== */
#top .avia-data-table tr:not(.avia-pricing-row) td,
#top .avia_textblock table td { font-size: 16px; line-height: 1.55; }
#top .avia-data-table tr:not(.avia-pricing-row) td,
#top .avia-data-table tr:not(.avia-pricing-row) th { padding: 12px 16px; }
#top .avia-data-table tr:not(.avia-pricing-row) th,
#top .avia_textblock table th { font-size: 14px; letter-spacing: 1.2px; }
@media only screen and (max-width: 767px) {
  #top .avia-data-table tr:not(.avia-pricing-row) td,
  #top .avia_textblock table td { font-size: 15px; }
  #top .avia-data-table tr:not(.avia-pricing-row) th,
  #top .avia_textblock table th { font-size: 13px; }
}

/* ==========================================================================
   HEADING GAPS AFTER LISTS
   Enfold only adds space above a heading that follows a paragraph. The same
   1.5em gap now applies after lists, quotes, tables and figures too.
   ========================================================================== */
#top .avia_textblock :is(ul, ol, blockquote, table, figure, pre, dl) + :is(h1, h2, h3, h4, h5, h6) { margin-top: 1.5em; }

/* Insights cards: title fills the card width, more space before the category */
html body#top #wrap_all article.slide-entry.posttype-post .slide-entry-title {
  text-wrap: wrap;
  margin-bottom: 24px;
}

/* ===== Single post (Insights) ===== */
html body#top #wrap_all .avia-section.xs-post-hero {
  background: linear-gradient(135deg, #001432 0%, #105e96 100%) !important;
  border: 0;
}
.xs-post-hero .container { max-width: 1100px; }
.xs-post-hero .xs-eyebrow {
  color: #27c7b7; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 500; font-size: 15px; margin: 0 0 18px;
}
html body#top #wrap_all .xs-post-hero h1.xs-post-title {
  color: #fff; font-size: clamp(34px, 5vw, 60px); line-height: 1.1;
  max-width: 18em; margin: 0 0 22px;
}
.xs-post-hero .xs-post-meta { color: #c8d7e6; margin: 0; font-size: 15px; }
.xs-post-hero .xs-post-meta a.xs-share { color: #27c7b7; text-decoration: underline; text-underline-offset: 3px; }
.xs-post-hero .xs-facts {
  list-style: none; margin: 44px 0 0; padding: 28px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.xs-post-hero .xs-facts li { margin: 0; padding: 0; list-style: none; }
.xs-post-hero .xs-facts strong {
  display: block; color: #27c7b7; font-family: var(--font-display);
  font-weight: 500; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin-bottom: 6px;
}
.xs-post-hero .xs-facts span { display: block; color: #c8d7e6; font-size: 15px; line-height: 1.4; }
@media (max-width: 700px) { .xs-post-hero .xs-facts { grid-template-columns: 1fr; gap: 20px; } }

.xs-post-body .container { max-width: 1100px !important; }
.xs-post-body .avia_textblock, .xs-post-body .avia-button-wrap { max-width: none; } /* full width of the hero content (was 810px) */
.xs-post-body p { font-size: 18px; line-height: 1.7; margin: 0 0 1.2em; }
.xs-post-body p.lead-paragraph { font-size: 22px; line-height: 1.55; color: #002749; }
html body#top #wrap_all .xs-post-body .xs-lesson {
  font-size: 28px; line-height: 1.2; color: #002749; margin: 0 0 .5em; padding: 0;
  border: 0; display: block;
}
/* short teal rule, sitting midway between the text blocks */
html body#top #wrap_all .xs-post-body .xs-lesson::before {
  content: ""; display: block; width: 80px; height: 3px; background: #27c7b7;
  margin: 44px 0;
}
.xs-post-body .avia-button-wrap { margin-top: 36px; }

html body#top #wrap_all .avia-section.xs-post-more { background: #f3f2ea !important; }

html body#top #wrap_all .xs-post-hero .xs-facts strong { color: #27c7b7 !important; }
html body#top #wrap_all .xs-post-hero .xs-facts li { padding-left: 0; }
html body#top #wrap_all .xs-post-hero .xs-facts li::before { content: none !important; display: none !important; }

/* Overview cards (home case studies, Insights, More case studies): title / categories / excerpt rhythm */
html body#top #wrap_all article.slide-entry-overview .slide-entry-title { margin-bottom: 24px; }
html body#top #wrap_all article.slide-entry-overview .slide-entry-excerpt { margin-top: -12px; }
html body#top #wrap_all article.slide-entry-overview .blog-categories a,
html body#top #wrap_all article.slide-entry-overview .blog-categories { color: var(--color-teal); }

@media (max-width: 767px) { .xs-motion-toggle { left: 7.5%; } }

/* Case study hero graphic (matches social graphics) */
html body#top #wrap_all .avia-section.xs-post-hero { position: relative; overflow: hidden; }
html body#top #wrap_all .avia-section.xs-post-hero::after { content:""; position:absolute; top:0; right:0; width:clamp(300px,40vw,680px); aspect-ratio:334.5/345.5; background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20334.5%20345.5%22%3E%3Cdefs%3E%3Cstyle%3E.a%2C.b%2C.c%7Bfill%3Anone%7D.b%7Bstroke%3Argba(39%2C199%2C183%2C.31)%7D.d%7Bfill%3Argba(255%2C255%2C255%2C.14)%7D.e%7Bfill%3Argba(39%2C199%2C183%2C.31)%7D.c%7Bstroke%3Argba(255%2C255%2C255%2C.14)%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20class%3D%22c%22%3E%3Cg%3E%3Cline%20class%3D%22c%22%20x1%3D%22334.1%22%20y1%3D%2225.35%22%20x2%3D%22334.1%22%20y2%3D%22294.65%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%22334.1%22%20cy%3D%22294.65%22%20r%3D%222%22%2F%3E%3Cline%20class%3D%22c%22%20x1%3D%22331.5%22%20y1%3D%2225.25%22%20x2%3D%22305%22%20y2%3D%22277.15%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%22305%22%20cy%3D%22277.15%22%20r%3D%222%22%2F%3E%3Cline%20class%3D%22c%22%20x1%3D%22328.9%22%20y1%3D%2224.85%22%20x2%3D%22279.6%22%20y2%3D%22256.95%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%22279.6%22%20cy%3D%22256.95%22%20r%3D%222%22%2F%3E%3Cline%20class%3D%22c%22%20x1%3D%22326.4%22%20y1%3D%2224.15%22%20x2%3D%22240.8%22%20y2%3D%22287.75%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%22240.8%22%20cy%3D%22287.75%22%20r%3D%222%22%2F%3E%3Cline%20class%3D%22c%22%20x1%3D%22324%22%20y1%3D%2223.25%22%20x2%3D%22217.7%22%20y2%3D%22261.95%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%22217.7%22%20cy%3D%22261.95%22%20r%3D%222%22%2F%3E%3Cline%20class%3D%22c%22%20x1%3D%22321.7%22%20y1%3D%2222.05%22%20x2%3D%22199%22%20y2%3D%22234.55%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%22199%22%20cy%3D%22234.55%22%20r%3D%222%22%2F%3E%3Cline%20class%3D%22c%22%20x1%3D%22319.5%22%20y1%3D%2220.65%22%20x2%3D%22151.9%22%20y2%3D%22251.35%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%22151.9%22%20cy%3D%22251.35%22%20r%3D%222%22%2F%3E%3Cline%20class%3D%22c%22%20x1%3D%22317.5%22%20y1%3D%2218.95%22%20x2%3D%22137.3%22%20y2%3D%22219.05%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%22137.3%22%20cy%3D%22219.05%22%20r%3D%222%22%2F%3E%3Cline%20class%3D%22c%22%20x1%3D%22315.7%22%20y1%3D%2217.15%22%20x2%3D%22127.4%22%20y2%3D%22186.65%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%22127.4%22%20cy%3D%22186.65%22%20r%3D%222%22%2F%3E%3Cline%20class%3D%22c%22%20x1%3D%22314%22%20y1%3D%2215.15%22%20x2%3D%22122%22%20y2%3D%22154.65%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%22122%22%20cy%3D%22154.65%22%20r%3D%222%22%2F%3E%3Cline%20class%3D%22c%22%20x1%3D%22312.6%22%20y1%3D%2212.95%22%20x2%3D%2272.5%22%20y2%3D%22151.55%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%2272.5%22%20cy%3D%22151.55%22%20r%3D%222%22%2F%3E%3Cline%20class%3D%22c%22%20x1%3D%22311.4%22%20y1%3D%2210.65%22%20x2%3D%2272.7%22%20y2%3D%22116.95%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%2272.7%22%20cy%3D%22116.95%22%20r%3D%222%22%2F%3E%3Cline%20class%3D%22c%22%20x1%3D%22310.5%22%20y1%3D%228.25%22%20x2%3D%2277.2%22%20y2%3D%2284.05%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%2277.2%22%20cy%3D%2284.05%22%20r%3D%222%22%2F%3E%3Cline%20class%3D%22c%22%20x1%3D%22309.8%22%20y1%3D%225.75%22%20x2%3D%2230.9%22%20y2%3D%2265.05%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%2230.9%22%20cy%3D%2265.05%22%20r%3D%222%22%2F%3E%3Cline%20class%3D%22c%22%20x1%3D%22309.4%22%20y1%3D%223.15%22%20x2%3D%2241.7%22%20y2%3D%2231.25%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%2241.7%22%20cy%3D%2231.25%22%20r%3D%222%22%2F%3E%3Cline%20class%3D%22c%22%20x1%3D%22309.3%22%20y1%3D%22.55%22%20x2%3D%2256%22%20y2%3D%22.55%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%2256%22%20cy%3D%22.55%22%20r%3D%222%22%2F%3E%3Ccircle%20class%3D%22d%22%20cx%3D%22334.1%22%20cy%3D%22.55%22%20r%3D%2210%22%2F%3E%3C%2Fg%3E%3Cg%3E%3Cline%20class%3D%22b%22%20x1%3D%22332.5%22%20y1%3D%2217.65%22%20x2%3D%22314.3%22%20y2%3D%22214.65%22%2F%3E%3Ccircle%20class%3D%22e%22%20cx%3D%22314.3%22%20cy%3D%22214.65%22%20r%3D%222.5%22%2F%3E%3Cline%20class%3D%22b%22%20x1%3D%22329.4%22%20y1%3D%2217.05%22%20x2%3D%22275.3%22%20y2%3D%22207.35%22%2F%3E%3Ccircle%20class%3D%22e%22%20cx%3D%22275.3%22%20cy%3D%22207.35%22%20r%3D%222.5%22%2F%3E%3Cline%20class%3D%22b%22%20x1%3D%22326.4%22%20y1%3D%2215.95%22%20x2%3D%22238.3%22%20y2%3D%22193.05%22%2F%3E%3Ccircle%20class%3D%22e%22%20cx%3D%22238.3%22%20cy%3D%22193.05%22%20r%3D%222.5%22%2F%3E%3Cline%20class%3D%22b%22%20x1%3D%22323.7%22%20y1%3D%2214.25%22%20x2%3D%22204.5%22%20y2%3D%22172.15%22%2F%3E%3Ccircle%20class%3D%22e%22%20cx%3D%22204.5%22%20cy%3D%22172.15%22%20r%3D%222.5%22%2F%3E%3Cline%20class%3D%22b%22%20x1%3D%22321.4%22%20y1%3D%2212.15%22%20x2%3D%22175.2%22%20y2%3D%22145.35%22%2F%3E%3Ccircle%20class%3D%22e%22%20cx%3D%22175.2%22%20cy%3D%22145.35%22%20r%3D%222.5%22%2F%3E%3Cline%20class%3D%22b%22%20x1%3D%22319.5%22%20y1%3D%229.65%22%20x2%3D%22151.3%22%20y2%3D%22113.75%22%2F%3E%3Ccircle%20class%3D%22e%22%20cx%3D%22151.3%22%20cy%3D%22113.75%22%20r%3D%222.5%22%2F%3E%3Cline%20class%3D%22b%22%20x1%3D%22318.1%22%20y1%3D%226.75%22%20x2%3D%22133.6%22%20y2%3D%2278.25%22%2F%3E%3Ccircle%20class%3D%22e%22%20cx%3D%22133.6%22%20cy%3D%2278.25%22%20r%3D%222.5%22%2F%3E%3Cline%20class%3D%22b%22%20x1%3D%22317.2%22%20y1%3D%223.75%22%20x2%3D%22122.8%22%20y2%3D%2240.05%22%2F%3E%3Ccircle%20class%3D%22e%22%20cx%3D%22122.8%22%20cy%3D%2240.05%22%20r%3D%222.5%22%2F%3E%3Cline%20class%3D%22b%22%20x1%3D%22316.9%22%20y1%3D%22.55%22%20x2%3D%22119.1%22%20y2%3D%22.55%22%2F%3E%3Ccircle%20class%3D%22e%22%20cx%3D%22119.1%22%20cy%3D%22.55%22%20r%3D%222.5%22%2F%3E%3Ccircle%20class%3D%22e%22%20cx%3D%22334.1%22%20cy%3D%22.55%22%20r%3D%2210%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat top right / contain; pointer-events:none; z-index:1; }
html body#top #wrap_all .avia-section.xs-post-hero .container { position:relative; z-index:2; }
@media (max-width: 767px) { html body#top #wrap_all .avia-section.xs-post-hero::after { width:230px; opacity:.7; } }

/* Insights listing: match case studies grid */
html body.page-id-2713 #wrap_all .avia-content-slider { margin-top: 0; }
html body.page-id-2713 #wrap_all .avia-content-slider-inner { height: auto !important; padding: 0 !important; }
html body.page-id-2713 #wrap_all .slide-entry-wrap { position: static !important; width: 100% !important; display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 57px 97px; max-width: 1607px; margin: 0 !important; float: none !important; opacity: 1 !important; visibility: visible !important; }
html body.page-id-2713 #wrap_all article.slide-entry { width: auto !important; max-width: none; margin: 0 !important; float: none !important; clear: none !important; }
html body.page-id-2713 #wrap_all article.slide-entry .slide-image { border-radius: 12px; overflow: hidden; }
html body.page-id-2713 #wrap_all article.slide-entry .slide-image img { width: 100%; aspect-ratio: 470/294; object-fit: cover; display: block; }
html body#top.page-id-2713 #wrap_all article.slide-entry .slide-entry-title, html body#top.page-id-2713 #wrap_all article.slide-entry h3.slide-entry-title { font-size: 25.6px; line-height: 32px; color: #383838; margin-bottom: 24px; }
html body.page-id-2713 #wrap_all article.slide-entry .slide-entry-title a { color: inherit; }
html body#top.page-id-2713 #wrap_all article.slide-entry .slide-entry-excerpt, html body#top.page-id-2713 #wrap_all article.slide-entry .slide-entry-excerpt p { font-size: 17px; line-height: 27.2px; color: #002749; }
@media (max-width: 989px) { html body.page-id-2713 #wrap_all .slide-entry-wrap { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 599px) { html body.page-id-2713 #wrap_all .slide-entry-wrap { grid-template-columns: 1fr; } html body.page-id-2713 #wrap_all .avia-content-slider { margin-top: 0; } }

html body#top.page-id-2713 #wrap_all article.slide-entry h2.slide-entry-title, html body#top.page-id-2713 #wrap_all article.slide-entry h2.slide-entry-title a, html body#top.page-id-2713 #wrap_all article.slide-entry h3.slide-entry-title, html body#top.page-id-2713 #wrap_all article.slide-entry h3.slide-entry-title a { font-size: 25.6px !important; line-height: 32px !important; letter-spacing: -0.768px !important; }

/* Post hero: facts (no span) + Enfold post meta */
html body#top #wrap_all .xs-post-hero .xs-facts li { color: #c8d7e6; font-size: 15px; line-height: 1.4; padding: 0; }
html body#top #wrap_all .xs-post-hero .xs-facts li strong { display: block; }
html body#top #wrap_all .xs-post-hero .av-post-metadata-container { margin: 28px 0 0; padding: 28px 0 0; border-top: 1px solid rgba(255,255,255,.22); }
html body#top #wrap_all .xs-post-hero .av-post-metadata-container,
html body#top #wrap_all .xs-post-hero .av-post-metadata-container span,
html body#top #wrap_all .xs-post-hero .av-post-metadata-container .av-post-metadata-content { color: #c8d7e6; font-size: 15px; }
html body#top #wrap_all .xs-post-hero .av-post-metadata-container a { color: #27c7b7; text-decoration: underline; text-underline-offset: 3px; }
/* Post share box */
html body#top #wrap_all .xs-post-body .av-social-sharing-box { max-width: 810px; margin: 44px 0 0; padding: 28px 0 0; border-top: 1px solid rgba(0,39,73,.15); text-align: left; }
html body#top #wrap_all .xs-post-body .av-share-box { margin: 0; padding: 0; text-align: left; }
html body#top #wrap_all .xs-post-body .av-share-box-list { margin: 0; padding: 0; justify-content: flex-start; }

/* Animated hero dandelion replaces the static ::after image when JS runs */
html body#top #wrap_all .avia-section.xs-post-hero.xs-dandelion-on::after { display: none; }
html body#top #wrap_all .avia-section.xs-post-hero canvas.xs-dandelion { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* ==========================================================================
   CASE STUDY CATEGORY LINKS
   Tighter line spacing when the category list wraps onto two lines.
   ========================================================================== */
#top .slide-entry .blog-categories,
#top .slide-entry .blog-categories a { line-height: 1.35; }
#top .slide-entry .blog-categories a:hover,
#top .slide-entry .blog-categories a:focus-visible {
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ==========================================================================
   AUTHOR PHOTO IN THE BYLINE
   Small round profile picture before "by <name>" (added in functions.php).
   ========================================================================== */
#top img.xs-byline-avatar {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin: -4px 14px 0 0;
  vertical-align: middle;
}

/* ==========================================================================
   CASE STUDY OUTCOME PANEL (6 Nov 2026)
   The outcome section on case studies has "The outcome", an "At a glance"
   fact list (.xs-glance) and, where there are figures, "In numbers"
   (.xs-numbers). Replaces the client quote and the green stats panel.
   ========================================================================== */
#top .xs-glance,
#top .xs-numbers { list-style: none; margin: 0; padding: 0; }
#top .xs-glance li,
#top .xs-numbers li { position: static; list-style: none; padding-left: 0; margin-left: 0; }
#top .xs-glance li::before,
#top .xs-numbers li::before { content: none; display: none; }
#top .xs-glance li {
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 1.5;
}
#top .xs-glance li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
#top .xs-glance-label {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#top .xs-numbers li { margin: 0 0 22px; line-height: 1.45; }
#top .xs-numbers li:last-child { margin-bottom: 0; }
#top .xs-numbers strong {
  display: block;
  margin-bottom: 4px;
  font-family: funnel-display, Helvetica, Arial, sans-serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  color: #ffffff !important; /* the theme forces <strong> to charcoal */
}

/* ==========================================================================
   TILED SECTION BACKGROUNDS (6 Nov 2026)
   Sections with the Custom CSS Class "xs-tile" show their background image
   as a small repeating tile, the same size on every screen. Change the
   width here to make the pattern bigger or smaller.
   ========================================================================== */
#top .avia-section.xs-tile {
  background-size: 120px auto !important;
  background-repeat: repeat !important;
}

/* ==========================================================================
   FOOTER LINKS UNDERLINE ON HOVER
   Every footer link (including the arrow lists) underlines on hover and
   keyboard focus, matching the Connect column.
   ========================================================================== */
#top .footer_color a:hover,
#top .footer_color a:focus-visible,
#top #socket a:hover,
#top #socket a:focus-visible {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* ==========================================================================
   TECH LOGO GRID ON PHONES (6 Nov 2026)
   The technology logos (Logo element with the Custom CSS Class
   "xs-tech-logos") show 3 per row on phones instead of Enfold's 2.
   ========================================================================== */
@media only screen and (max-width: 767px) {
  #top .avia-logo-element-container.xs-tech-logos .avia-content-slider-inner { display: flex; flex-wrap: wrap; height: auto !important; }
  #top .avia-logo-element-container.xs-tech-logos .slide-entry-wrap { display: contents; }
  #top .avia-logo-element-container.xs-tech-logos .slide-entry {
    width: 33.333% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
  }
}

/* ==========================================================================
   CASE STUDIES PAGE HOVER STATES (9 Nov 2026)
   On the case studies grid, the category filter links underline on hover
   and keyboard focus, and the case study headlines turn a lighter teal-blue.
   ========================================================================== */
#top #js_sort_items a:hover,
#top #js_sort_items a:focus-visible {
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#top .grid-entry .grid-entry-title a { transition: color 0.2s ease; }
#top .grid-entry .grid-entry-title a:hover,
#top .grid-entry .grid-entry-title a:focus-visible,
#top .grid-entry:hover .grid-entry-title a {
  color: #1b6e81 !important;
}

/* ==========================================================================
   POST CARD TITLES: ONE SIZE (9 Nov 2026)
   For a correct heading order, the first card title in a list can be output
   as an h2 (class "xs-heading-h3") instead of an h3. Keep it the same size
   as the other card titles.
   ========================================================================== */
html body#top #wrap_all h2.slide-entry-title.entry-title.xs-heading-h3,
html body#top #wrap_all h2.grid-entry-title.entry-title.xs-heading-h3 {
  font-size: 1.25em !important;
}

/* ==========================================================================
   CARD TITLES AND EXCERPTS: ONE STYLE EVERYWHERE (9 Nov 2026)
   Case study and article cards (home page, Case studies, Insights) all use
   the Insights sizes: 25.6px titles and 17px excerpts.
   ========================================================================== */
html body#top #wrap_all .slide-entry :is(h2, h3, h4).slide-entry-title.entry-title,
html body#top #wrap_all .slide-entry :is(h2, h3, h4).slide-entry-title.entry-title a,
html body#top #wrap_all .grid-entry :is(h2, h3, h4).grid-entry-title.entry-title,
html body#top #wrap_all .grid-entry :is(h2, h3, h4).grid-entry-title.entry-title a {
  font-size: 25.6px !important;
  line-height: 32px !important;
  letter-spacing: -0.768px !important;
}
html body#top #wrap_all .slide-entry .slide-entry-excerpt,
html body#top #wrap_all .grid-entry .grid-entry-excerpt {
  font-size: 17px !important;
  line-height: 27.2px !important;
}

/* ==========================================================================
   SERVICES PAGE: INTRO PARAGRAPHS (9 Nov 2026)
   In the wide grey service panels, the paragraph straight after the heading
   is a step larger so it doesn't look lost under the big heading.
   ========================================================================== */
html body#top #wrap_all .flex_column.av_two_third.fa-card-col .avia_textblock > h2 + p {
  font-size: 19px;
  line-height: 1.6;
}

/* Card titles: dark blue, dark teal on hover (home, Case studies, Insights) */
html body#top #wrap_all .slide-entry :is(h2, h3, h4).slide-entry-title.entry-title,
html body#top #wrap_all .slide-entry :is(h2, h3, h4).slide-entry-title.entry-title a,
html body#top #wrap_all .grid-entry :is(h2, h3, h4).grid-entry-title.entry-title,
html body#top #wrap_all .grid-entry :is(h2, h3, h4).grid-entry-title.entry-title a {
  color: #002749 !important;
  transition: color 0.2s ease;
}
html body#top #wrap_all .slide-entry:hover :is(h2, h3, h4).slide-entry-title.entry-title a,
html body#top #wrap_all .slide-entry :is(h2, h3, h4).slide-entry-title.entry-title a:focus-visible,
html body#top #wrap_all .grid-entry:hover :is(h2, h3, h4).grid-entry-title.entry-title a,
html body#top #wrap_all .grid-entry :is(h2, h3, h4).grid-entry-title.entry-title a:focus-visible {
  color: #1b6e81 !important;
}

/* ==========================================================================
   ANIMATED NUMBERS (Academy, 9 Nov 2026)
   Bigger figures with the % sign in proportion, and tighter line spacing
   on the description underneath.
   ========================================================================== */
html body#top #wrap_all .avia-animated-number .avia-animated-number-title {
  font-size: clamp(56px, 5vw, 76px) !important;
  line-height: 1 !important;
}
html body#top #wrap_all .avia-animated-number .avia-animated-number-title .avia-single-number { font-size: 1em !important; line-height: 1 !important; }
html body#top #wrap_all .avia-animated-number .avia-animated-number-title .avia-no-number { font-size: 0.8em !important; line-height: 1 !important; }
html body#top #wrap_all .avia-animated-number .avia-animated-number-content,
html body#top #wrap_all .avia-animated-number .avia-animated-number-content p {
  line-height: 1.35 !important;
}

/* ==========================================================================
   HERO TEXT WORD BY WORD (10 Nov 2026)
   Keeps banner headlines hidden until functions.php has split them into
   words, so the full headline never flashes before animating. If the script
   fails, the headline appears after 2 seconds anyway.
   ========================================================================== */
html.js_active #top .avia-slideshow .avia-caption-title:not([data-xs-reveal]) {
  visibility: hidden;
  animation: av-reveal-show 1ms linear 2s forwards;
}
@media (prefers-reduced-motion: reduce) {
  html.js_active #top .avia-slideshow .avia-caption-title:not([data-xs-reveal]) { visibility: visible; animation: none; }
}

/* ==========================================================================
   PAUSE BUTTON ON FULL-WIDTH LOGO SLIDERS (12 Nov 2026)
   A logo slider in a full-width grid row (e.g. the team photos) puts its
   pause button in the same place as the banner ones, lined up with the
   page content rather than the edge of the screen.
   ========================================================================== */
#top .flex_cell .xs-logo-toggle { left: calc(2.5% + 50px); }
@media only screen and (max-width: 767px) {
  #top .flex_cell .xs-logo-toggle { left: 7.5%; }
}

/* ==========================================================================
   TEAM PHOTOS: ROTATING GRID (12 Nov 2026)
   Partner/Logo element with custom class "xs-staff-rotator" (script in
   functions.php). Seven photos across, two by two on phones; each fades to
   another person in turn.
   ========================================================================== */
#top .xs-staff-rotator.xs-staff-ready .avia-content-slider-inner { display: none; }
#top .xs-staff-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
#top .xs-staff-tile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #27c8b9; }
#top .xs-staff-face {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.2s ease;
}
#top .xs-staff-face.is-on { opacity: 1; }
@media only screen and (max-width: 767px) {
	#top .xs-staff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	#top .xs-staff-face { transition: none; }
}
/* The pause button sits over the photos (mostly dark clothing), so it is white */
#top .xs-staff-rotator .xs-logo-toggle { color: #ffffff; border-color: #ffffff; background: rgba(0, 20, 50, 0.35); }
#top .xs-staff-rotator .xs-logo-toggle:hover,
#top .xs-staff-rotator .xs-logo-toggle:focus-visible { color: #001432; background: #ffffff; }

/* ==========================================================================
   NEWSLETTER BAND ABOVE THE FOOTER (13 Nov 2026)
   Markup in functions.php. Top half white (the page), bottom half the
   footer navy, with the card across the join.
   ========================================================================== */
#top .xs-newsletter-band {
	clear: both;
	position: relative;
	z-index: 2;
	background: linear-gradient(to bottom, transparent 50%, #001432 50%);
}
#top .xs-newsletter-band.xs-band-on-dark { background: #001432; padding-top: 80px; }
/* Overlap the footer by 1px so no hairline of the page background shows at the join */
#top .xs-newsletter-band { margin-bottom: -1px; }
#top .xs-newsletter-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	padding: 40px 56px;
	background: #27c7b7; /* same as the footer links */
	border-radius: 12px;
}
#top .xs-newsletter-title {
	margin: 0;
	font-family: "funnel-display", Arial, sans-serif;
	font-size: clamp(22px, 2.2vw, 30px);
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: #002749;
}
#top .xs-newsletter-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 30px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: #ffffff;
	background: #002749;
	border-radius: 100px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
#top .xs-newsletter-btn:hover,
#top .xs-newsletter-btn:focus-visible { color: #ffffff; background: #1b6e81; text-decoration: none; }
#top .xs-newsletter-btn:focus-visible { outline: 3px solid #002749; outline-offset: 3px; }
#top .xs-newsletter-btn svg { flex: none; transition: transform 0.2s ease; }
#top .xs-newsletter-btn:hover svg { transform: translateX(3px); }
@media only screen and (max-width: 767px) {
	#top .xs-newsletter-card { padding: 28px 24px; }
	#top .xs-newsletter-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	#top .xs-newsletter-btn, #top .xs-newsletter-btn svg { transition: none; }
}

/* ==========================================================================
   BURGER MENU ON TABLETS (16 Nov 2026)
   The full menu runs into the logo below about 1100px (iPad portrait and
   landscape), so tablets get the burger menu, as phones already do.
   ========================================================================== */
@media only screen and (min-width: 768px) and (max-width: 1119px) {
	#top #header .av-main-nav > li:not(.av-burger-menu-main) { display: none; }
	#top #header .av-main-nav > li.av-burger-menu-main { display: block; }
}

/* ==========================================================================
   CARD GRIDS ON TABLETS: INTRO TEXT (16 Nov 2026)
   In a section turned into a tablet card grid, columns that aren't cards
   (e.g. an intro in a 1/5 + 3/5 + 1/5 row) span the full width, so the text
   stays centred rather than sitting to the left.
   ========================================================================== */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
	#top .entry-content-wrapper:has(> .flex_column_table > .av_one_third.fa-card-col ~ .av_one_third.fa-card-col) > .flex_column {
		float: none;
		width: 100%;
		margin-left: 0;
	}
}
@media only screen and (min-width: 768px) and (max-width: 1199px) {
	#top .entry-content-wrapper:has(> .flex_column_table > .av_one_fourth.fa-card-col ~ .av_one_fourth.fa-card-col) > .flex_column {
		float: none;
		width: 100%;
		margin-left: 0;
	}
}

/* ==========================================================================
   LONE HALF COLUMNS ON TABLETS (16 Nov 2026)
   A half-width column on its own in a row (e.g. "From seed to scale" on the
   Academy page) leaves the text in a narrow strip on tablets, so it uses
   the full width there.
   ========================================================================== */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
	#top .flex_column.av_one_half.avia-builder-el-no-sibling { width: 100%; }
}

/* ==========================================================================
   PAGE HEROES ON TABLETS (16 Nov 2026)
   The short page hero is too shallow for its heading and paragraph on
   tablets, so the text ran into the pause button. Taller there; the image
   is a cover background, so it just shows more of the picture.
   ========================================================================== */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
	#top .avia-slideshow.avia-slideshow-featured_large .avia-slideshow-inner { min-height: 500px !important; }
}

/* ==========================================================================
   CARDS STACKED ON TABLETS (16 Nov 2026)
   Cards with a lot of text (e.g. the sector cards on the home page) read
   better one per row on portrait tablets. Give each card column the custom
   class "xs-stack-tablet" in Enfold.
   ========================================================================== */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
	#top #main .flex_column_table > .flex_column.fa-card-col.xs-stack-tablet {
		grid-column: 1 / -1 !important;
		justify-self: stretch !important;
		width: auto !important;
	}
}

/* ==========================================================================
   STACKED COLUMNS ON TABLETS (16 Nov 2026)
   Plain columns (not cards) with the custom class "xs-stack-tablet" also go
   one per row on portrait tablets, e.g. "What we do / How we work with you /
   Our customers" on About us.
   ========================================================================== */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
	#top #main .flex_column_table:has(> .flex_column.xs-stack-tablet:not(.fa-card-col)) { display: block; }
	#top #main .flex_column_table > .av-flex-placeholder:has(+ .xs-stack-tablet:not(.fa-card-col)) { display: none; }
	#top #main .flex_column_table > .flex_column.xs-stack-tablet:not(.fa-card-col) {
		display: block;
		float: none;
		width: 100%;
		margin-left: 0;
	}
	#top #main .flex_column_table > .flex_column.xs-stack-tablet:not(.fa-card-col) + .av-flex-placeholder + .flex_column.xs-stack-tablet,
	#top #main .flex_column.xs-stack-tablet:not(.fa-card-col) + .flex_column.xs-stack-tablet { margin-top: 56px; }
}

/* ==========================================================================
   POST SLIDERS ON TABLETS (16 Nov 2026)
   Four-across post sliders (e.g. "Latest case studies" on the home page)
   show two per row on portrait tablets, so titles fit.
   ========================================================================== */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
	#top .avia-content-slider .slide-entry.av_one_fourth { width: calc(50% - 15px); margin-left: 30px; clear: none; }
	#top .avia-content-slider .slide-entry.av_one_fourth:nth-child(odd) { margin-left: 0; clear: left; }
	#top .avia-content-slider .slide-entry.av_one_fourth:nth-child(n+3) { margin-top: 40px; }
}

/* ==========================================================================
   CONTACT PAGE: NEWSLETTER COLUMN (16 Nov 2026)
   The right-hand column starts with an invisible "newsletter" anchor (the
   footer band's button links to it), so the heading keeps its first-item
   spacing, and the jump clears the sticky header. The dashed box marks where
   the sign-up form goes; remove that text block once the form is in.
   ========================================================================== */
#top .xs-newsletter-col > .avia_codeblock_section:first-child + .av-special-heading { margin-top: 0; }
#top #newsletter { display: block; scroll-margin-top: 160px; }
#top .xs-newsletter-placeholder p {
	padding: 32px 24px;
	border: 2px dashed #c9d3dc;
	border-radius: 8px;
	text-align: center;
	color: #4a5866;
}

/* ==========================================================================
   FORM BUTTONS: ONE SIZE (16 Nov 2026)
   Enfold sizes a form's submit button by the field it sits in, so the
   contact form's "Submit" and the newsletter's "Subscribe" came out
   different widths. Both are now the same fixed size.
   ========================================================================== */
#top #main .avia_ajax_form .form_element input.button {
	box-sizing: border-box;
	width: 200px;
	min-width: 0;
	height: auto;
	padding: 16px 20px;
	font-size: 16px;
	line-height: 1.2;
}

/* ==========================================================================
   CONTACT PAGE: NEWSLETTER FORM ON DARK (16 Nov 2026)
   White labels on the dark newsletter panel, and a teal Subscribe button
   to match the newsletter band (navy text for contrast; white on hover).
   ========================================================================== */
#top #main .xs-newsletter-col .avia_ajax_form .form_element label,
#top #main .xs-newsletter-col .avia_ajax_form .form_element label abbr.required { color: #ffffff; }
#top #main .xs-newsletter-col .avia_ajax_form input.button {
	color: #002749;
	background: #27c7b7;
	border-color: #27c7b7;
}
#top #main .xs-newsletter-col .avia_ajax_form input.button:hover,
#top #main .xs-newsletter-col .avia_ajax_form input.button:focus-visible {
	color: #002749;
	background: #ffffff;
	border-color: #ffffff;
}

/* ==========================================================================
   FOOTER LOGO MARK (16 Nov 2026)
   Static white version of the preloader logo (Media Library:
   xansium-logo-mark-white.svg), top left of the footer, lined up with the
   accreditation logos.
   ========================================================================== */
#top .xs-footer-mark img { width: 110px; height: auto; margin-top: 24px; }

/* ==========================================================================
   PHONES: ICON GAP AND SINGLE-COLUMN TEXT (26 Nov 2026)
   More space between the green arrow icon and the heading under it, and
   two-column text blocks (e.g. the roles list in "Our network") as one
   column on phones.
   ========================================================================== */
@media only screen and (max-width: 767px) {
	#top #wrap_all .av_font_icon + .av-special-heading { margin-top: 28px; }
	#top .avia_textblock.av_multi_colums { column-count: 1 !important; columns: auto !important; }
}
