/* ==========================================================================
   veridian.info — sitewide visual fixes
   Loaded after the theme CSS on every page (see <head> hook). Selectors here
   are deliberately specific / !important because the theme inlines its rules.
   Sections: 0 tokens · 1 buttons + nav · 2 video facade · 3 testimonials
             4 About media slot + founding card · 5 vertical rhythm
             6 blog post layout + CMS blocks · 7 mobile hero
   ========================================================================== */

:root {
  --vrd-navy: #1F2452;
  --vrd-navy-soft: #2D3677;
  --vrd-ink: #3A3F5C;
  --vrd-muted: #5B6285;
  --vrd-orange: #D9531A;        /* AA-passing fill for white text (4.6:1) */
  --vrd-orange-hover: #B8420F;
  --vrd-wash: #EEF3FC;
  --vrd-wash-2: #D7E9FF;
  --vrd-line: #E3EAF6;
  --vrd-radius: 12px;
  --vrd-shadow: 0 8px 24px rgba(31, 36, 82, .08);
}

/* --------------------------------------------------------------------------
   1. Buttons (contrast) + header nav label size
   -------------------------------------------------------------------------- */
.pp-button-wrap a.pp-button,
.pp-button-wrap a.pp-button:visited,
.fl-button-wrap a.fl-button,
.fl-button-wrap a.fl-button:visited,
.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"],
.whitepaper-container .download-my-copy a:hover {
  background: var(--vrd-orange) !important;
  border-color: var(--vrd-orange) !important;
  color: #fff !important;
}
.pp-button-wrap a.pp-button:hover,
.pp-button-wrap a.pp-button:focus,
.fl-button-wrap a.fl-button:hover,
.fl-button-wrap a.fl-button:focus,
.gform_wrapper .gform_button:hover,
.gform_wrapper input[type="submit"]:hover {
  background: var(--vrd-orange-hover) !important;
  border-color: var(--vrd-orange-hover) !important;
  color: #fff !important;
}
.pp-button-wrap a.pp-button .pp-button-text,
.fl-button-wrap a.fl-button .fl-button-text {
  color: #fff !important;
}
.pp-button-wrap a.pp-button:focus-visible {
  outline: 3px solid var(--vrd-navy);
  outline-offset: 3px;
}
/* outline-style buttons keep orange text on white: darken the text too */
.whitepaper-container .download-my-copy a {
  color: var(--vrd-orange) !important;
  border-color: var(--vrd-orange) !important;
}

.fl-module-bw-navigation-popover .mega-menu-container > li > a {
  font-size: 14.5px !important;
  line-height: 1.3;
  letter-spacing: .1px;
}
.fl-module-bw-navigation-popover .popover .popover-content .sub-menu > li > a,
.fl-module-bw-navigation-popover .popover .popover-content .sub-menu > li.contains-description ul .term {
  font-size: 13px !important;
}

/* --------------------------------------------------------------------------
   2. Video facade (poster + play button, iframe injected on click by JS)
   -------------------------------------------------------------------------- */
.vrd-video {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--vrd-radius);
  overflow: hidden;
  background: var(--vrd-navy);
  box-shadow: var(--vrd-shadow);
}
.vrd-video__play {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: absolute;
  inset: 0;
}
.vrd-video__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.vrd-video__play:hover .vrd-video__poster,
.vrd-video__play:focus-visible .vrd-video__poster {
  transform: scale(1.02);
}
.vrd-video__btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--vrd-orange);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: background .2s ease, transform .2s ease;
}
.vrd-video__btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 26px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-40%, -50%);
}
.vrd-video__play:hover .vrd-video__btn,
.vrd-video__play:focus-visible .vrd-video__btn {
  background: var(--vrd-orange-hover);
  transform: scale(1.06);
}
.vrd-video__play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}
.vrd-video > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vrd-video__caption {
  max-width: 960px;
  margin: 14px auto 0 !important;
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--vrd-muted);
}
.vrd-video noscript a {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #fff;
}
/* Any remaining raw embeds elsewhere: keep a 16:9 box so they never collapse */
.fl-video.fl-embed-video:not(.vrd-video-host) {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 960px;
  margin: 0 auto;
  background: var(--vrd-wash);
  border-radius: var(--vrd-radius);
  overflow: hidden;
}
.fl-video.fl-embed-video:not(.vrd-video-host) > iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
.fl-video.fl-embed-video.vrd-video-host {
  position: static;
  height: auto;
}

/* --------------------------------------------------------------------------
   3. Testimonials: static grid instead of the owl carousel
   -------------------------------------------------------------------------- */
.fl-module-bw-testimonial-slider .owl-carousel,
.fl-module-bw-testimonial-slider .vrd-testimonials {
  display: block;
  margin: 1.5rem auto 0 !important;
  max-width: 1200px;
}
.fl-module-bw-testimonial-slider .owl-stage-outer {
  overflow: visible !important;
  height: auto !important;
}
.fl-module-bw-testimonial-slider .owl-stage,
.fl-module-bw-testimonial-slider .vrd-testimonials {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  transition: none !important;
  padding: 0 !important;
}
.fl-module-bw-testimonial-slider .owl-item,
.fl-module-bw-testimonial-slider .vrd-testimonials > .item {
  display: block !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  float: none !important;
}
.fl-module-bw-testimonial-slider .owl-item.cloned {
  display: none !important;
}
.fl-module-bw-testimonial-slider .owl-item .item {
  width: 100%;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.fl-module-bw-testimonial-slider .item-contents,
.fl-module-bw-testimonial-slider .owl-item .item-contents > * {
  opacity: 1 !important;
}
.fl-module-bw-testimonial-slider .item-contents {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 32px 24px 28px !important;
  border-radius: var(--vrd-radius) !important;
  border: 1px solid var(--vrd-line);
  background: #fff !important;
  box-shadow: var(--vrd-shadow) !important;
  text-align: center;
}
.fl-module-bw-testimonial-slider .item-contents img.image {
  width: 96px !important;
  height: 96px !important;
  max-width: 96px !important;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 8px !important;
}
.fl-module-bw-testimonial-slider .item-contents .text {
  flex: 1 1 auto;
}
.fl-module-bw-testimonial-slider .text p,
.fl-module-bw-testimonial-slider .text p span {
  font-size: 16px !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  color: var(--vrd-navy) !important;
  letter-spacing: 0 !important;
}
.fl-module-bw-testimonial-slider .text p {
  padding: 12px 0 !important;
  margin: 0;
}
.fl-module-bw-testimonial-slider .name {
  margin: 8px auto 2px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--vrd-navy) !important;
}
.fl-module-bw-testimonial-slider .title {
  opacity: 1 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: var(--vrd-muted) !important;
}
.fl-module-bw-testimonial-slider .item-contents img.company-logo {
  height: 40px !important;
  width: auto !important;
  max-width: 150px !important;
  object-fit: contain;
  margin: 20px auto 0 !important;
}
.fl-module-bw-testimonial-slider .owl-nav,
.fl-module-bw-testimonial-slider .owl-dots {
  display: none !important;
}
@media (max-width: 1100px) {
  .fl-module-bw-testimonial-slider .owl-stage,
  .fl-module-bw-testimonial-slider .vrd-testimonials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .fl-module-bw-testimonial-slider .owl-stage,
  .fl-module-bw-testimonial-slider .vrd-testimonials {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   4. About: media slot poster + "Our founding" card inside the column
   -------------------------------------------------------------------------- */
.vrd-media-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 440px;
  border-radius: var(--vrd-radius);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, var(--vrd-wash-2) 0%, transparent 60%),
    linear-gradient(160deg, var(--vrd-wash) 0%, #F7F9FE 100%);
  box-shadow: var(--vrd-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vrd-media-slot img,
.vrd-media-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vrd-media-slot__mark {
  width: min(52%, 260px) !important;
  height: auto !important;
  object-fit: contain !important;
  opacity: .9;
}
.vrd-media-slot__tag {
  position: absolute;
  left: 20px;
  bottom: 16px;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vrd-navy-soft);
}
/* Any leftover empty slideshow slot on other pages: give it a wash, not a void */
.fl-slideshow-container:empty {
  min-height: 0 !important;
  height: 0 !important;
}

.sidescreen-blob--container.text-box {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  overflow: hidden !important;
  justify-content: center !important;
}
.sidescreen-blob--container.text-box .sidescreen-blob--blob {
  display: none !important;
}
.sidescreen-blob--container.text-box .sidescreen-blob--content {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: 100%;
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 48px !important;
  border-radius: var(--vrd-radius) !important;
  box-shadow: var(--vrd-shadow) !important;
  border: 1px solid var(--vrd-line);
}
.sidescreen-blob--container.text-box .sidescreen-blob--content h4 {
  color: var(--vrd-navy);
  margin-top: 0;
}
.sidescreen-blob--container.text-box .sidescreen-blob--content p:empty,
.sidescreen-blob--container.text-box .sidescreen-blob--content p:has(> :only-child:empty) {
  display: none;
}
@media (max-width: 840px) {
  .sidescreen-blob--container.text-box {
    padding: 0 16px !important;
  }
  .sidescreen-blob--container.text-box .sidescreen-blob--content {
    padding: 28px 22px !important;
  }
}

/* --------------------------------------------------------------------------
   5. Vertical rhythm: one padding scale for top-level Beaver Builder rows
      (112px between sections at desktop, 64px on phones). Rows that are
      pure blob backgrounds / overlays / spacers keep their own spacing.
   -------------------------------------------------------------------------- */
/* pages: .fl-builder-content-primary · blog posts: singular layout 127 */
.fl-builder-content-primary > .fl-row > .fl-row-content-wrap,
.fl-builder-content-127 > .fl-row > .fl-row-content-wrap {
  padding-top: 56px !important;
  padding-bottom: 56px !important;
  min-height: 0 !important;
}
/* the post layout's article row also carried a 170px top margin */
.fl-builder-content-127 > .fl-row > .fl-row-content-wrap {
  margin-top: 0 !important;
}
.fl-builder-content-primary > .fl-row:has(.fl-module-bw-blob-background) > .fl-row-content-wrap,
.fl-builder-content-primary > .fl-row:not(:has(.fl-module)) > .fl-row-content-wrap,
.fl-builder-content-primary > .fl-row.fl-row-overlap-top > .fl-row-content-wrap,
.fl-builder-content-primary > .fl-row.fl-node-5c40ac48855a3 > .fl-row-content-wrap,
.fl-builder-content-primary > .fl-row.fl-node-5c3fbcf6a8c64 > .fl-row-content-wrap,
.fl-builder-content-127 > .fl-row:not(:has(.fl-module)) > .fl-row-content-wrap,
.fl-builder-content-127 > .fl-row.fl-node-5c38f7ce875be > .fl-row-content-wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* blob sections carried 100px of their own padding on top of the row's */
.sidescreen-blob--container {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}
/* the "empty" row before the home hero should not add a first stripe */
.fl-builder-content-primary > .fl-row:first-child:not(:has(.fl-module)) {
  display: none;
}
@media (max-width: 840px) {
  .fl-builder-content-primary > .fl-row > .fl-row-content-wrap,
  .fl-builder-content-127 > .fl-row > .fl-row-content-wrap {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
  .sidescreen-blob--container {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
}

/* --------------------------------------------------------------------------
   6. Blog posts: centred 720px column, hero matches column, CMS blocks
   -------------------------------------------------------------------------- */
.single-post .fl-col-group.fl-node-5a42d971b813b {
  display: block !important;
  width: 100%;
  max-width: 720px;
  margin: 0 auto !important;
  float: none !important;
}
.single-post .fl-col-group.fl-node-5a42d971b813b::after {
  content: "";
  display: table;
  clear: both;
}
.single-post .fl-col.fl-node-5a42d971b82da {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  flex: none !important;
}
.single-post .fl-col.fl-node-5a42d971b82da > .fl-col-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.single-post .fl-col.fl-node-5a42d971b831a {
  display: none !important;
}
.single-post .fl-node-5a42da109526a .pp-photo-content,
.single-post .fl-node-5a42da109526a .pp-photo-content-inner {
  width: 100%;
}
.single-post .fl-node-5a42da109526a .pp-photo-img {
  width: 100% !important;
  height: auto !important;
  border-radius: var(--vrd-radius);
}
.single-post .fl-node-5a42d9ce2fce5 h1.heading-title,
.single-post .fl-node-5a42d9ce2fce5 h1.heading-title span {
  color: var(--vrd-navy) !important;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  line-height: 1.25 !important;
}
.single-post .post-by-line .fl-module-content {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  font-size: 14px;
}
.single-post .post-by-line .fl-post-info-date {
  color: var(--vrd-muted) !important;
}
.single-post .vrd-updated {
  color: var(--vrd-muted);
}
.single-post .vrd-updated::before {
  content: "·";
  margin-right: 10px;
  color: var(--vrd-line);
}
.single-post .fl-rich-text,
.single-post .fl-rich-text p,
.single-post .fl-rich-text li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--vrd-ink);
}
.single-post .fl-rich-text p {
  margin: 0 0 1.25em;
}
.single-post .fl-rich-text h2,
.single-post .fl-rich-text h3,
.single-post .fl-rich-text h4 {
  color: var(--vrd-navy);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.6em 0 .6em;
}
.single-post .fl-rich-text h2 { font-size: 26px; }
.single-post .fl-rich-text h3 { font-size: 21px; }
.single-post .fl-rich-text img,
.single-post .fl-rich-text video {
  max-width: 100%;
  height: auto;
}
/* video embeds (WP oEmbed figures + bare iframes): fill the column at 16:9 instead of
   the 150px default an iframe falls to with height:auto */
.single-post .fl-rich-text iframe { max-width: 100%; }
.single-post .fl-rich-text iframe[src*="youtube"],
.single-post .fl-rich-text iframe[src*="youtu.be"],
.single-post .fl-rich-text iframe[src*="vimeo"],
.single-post .fl-rich-text iframe[src*="wistia"] {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}
.single-post .fl-rich-text .wp-block-embed { margin: 1.4em 0; }
.single-post .fl-rich-text img {
  border-radius: 8px;
}
.single-post .fl-rich-text blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--vrd-orange);
  color: var(--vrd-navy);
}
.single-post .fl-rich-text table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* Byline (author photo · name · role) */
.vrd-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 8px;
  padding: 0;
  font-family: Montserrat, sans-serif;
}
.vrd-byline__photo {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--vrd-wash);
}
.vrd-byline__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.vrd-byline__name,
.vrd-byline__name a {
  font-size: 15px;
  font-weight: 700;
  color: var(--vrd-navy);
  text-decoration: none;
}
.vrd-byline__name a:hover { text-decoration: underline; }
.vrd-byline__role {
  font-size: 13px;
  color: var(--vrd-muted);
}

/* Key takeaways + Sources: collapse cleanly when the inner container is empty */
.vrd-takeaways,
.vrd-sources {
  font-family: Montserrat, sans-serif;
}
.vrd-takeaways:has(> .vrd-takeaways__body:empty),
.vrd-sources:has(> .vrd-sources__body:empty) {
  display: none;
}
.vrd-takeaways__body:empty,
.vrd-sources__body:empty {
  display: none;
}
.vrd-takeaways {
  margin: 8px 0 28px;
  padding: 22px 26px;
  background: var(--vrd-wash);
  border-left: 4px solid var(--vrd-orange);
  border-radius: 0 var(--vrd-radius) var(--vrd-radius) 0;
}
.vrd-takeaways__title,
.vrd-sources__title {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vrd-navy) !important;
}
.vrd-takeaways ul {
  margin: 0 !important;
  padding-left: 22px !important;
}
.vrd-takeaways li {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--vrd-navy);
}
.vrd-takeaways li:last-child { margin-bottom: 0; }
.vrd-sources {
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--vrd-line);
}
.vrd-sources ol {
  margin: 0 !important;
  padding-left: 22px !important;
}
.vrd-sources li {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--vrd-muted);
  overflow-wrap: anywhere;
}
.vrd-sources a {
  color: var(--vrd-navy-soft);
}
@media (max-width: 840px) {
  .single-post .fl-col-group.fl-node-5a42d971b813b {
    max-width: none;
  }
  .single-post .fl-col.fl-node-5a42d971b82da > .fl-col-content {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .single-post .fl-rich-text,
  .single-post .fl-rich-text p,
  .single-post .fl-rich-text li {
    font-size: 16px;
  }
  .vrd-takeaways {
    padding: 18px 18px;
  }
}

/* --------------------------------------------------------------------------
   7. Home hero on phones: headline first, left-aligned, illustration last
   -------------------------------------------------------------------------- */
@media (max-width: 840px) {
  .home .fl-node-5c13db134c4ed > .fl-col-content {
    display: flex;
    flex-direction: column;
  }
  .home .fl-node-5c13db134c4f0 { order: 1; }
  .home .fl-node-5c13db134c4f1 { order: 2; }
  .home .fl-node-5c13db134c4f2 {
    order: 3;
    margin-top: 28px;
  }
  .home .fl-node-5c13db134c4f0 .pp-heading-content,
  .home .fl-node-5c13db134c4f0 .pp-heading,
  .home .fl-node-5c13db134c4f0 .pp-sub-heading,
  .home .fl-node-5c13db134c4f0 .pp-heading.pp-mobile-center {
    text-align: left !important;
  }
  .home .fl-node-5c13db134c4f0 h1.heading-title,
  .home .fl-node-5c13db134c4f0 h1.heading-title .title-text {
    font-size: 32px !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }
  .home .fl-node-5c13db134c4f0 .pp-sub-heading p {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }
  .home .fl-node-5c13db134c4f1 .pp-button-wrap {
    text-align: left !important;
  }
  .home .fl-node-5c13db134c4f2 .pp-photo-img {
    max-width: 320px;
  }
}

/* 8. Long-form service/AutoMate copy + FAQ (content pass): paragraph rhythm inside the theme's rich-text module */
.vrd-aeo-copy p, .vrd-aeo-faq p { margin: 0 0 1.1em; line-height: 1.65; }
.vrd-aeo-copy h2, .vrd-aeo-faq h2 { margin: 1.6em 0 .6em; }
.vrd-aeo-copy h3, .vrd-aeo-faq h3 { margin: 1.3em 0 .5em; }
.vrd-aeo-copy ul, .vrd-aeo-copy ol { margin: 0 0 1.1em 1.4em; }
.vrd-aeo-copy table { margin: 0 0 1.4em; }
