/*
 * 2026 redesign - Homepage (2026) template only.
 *
 * Builder sections get one of two custom classes:
 *   bm-raw     - full-bleed section whose Text Block holds an SCF shortcode ([bm-hero] etc.)
 *   bm-section - regular builder content (text blocks, columns, forms) on the 1280px grid
 */

/* ---------- Builder section wrappers ---------- */

#top #wrap_all .bm-raw,
#top #wrap_all .bm-section {
  border: 0;
  background: var(--bm-white);
  font-variation-settings: normal;
  font-family: var(--bm-font-body);
  color: var(--bm-text-body);
}

#top #wrap_all .bm-raw > .container {
  max-width: none;
  width: 100%;
  padding: 0;
}

#top #wrap_all .bm-section > .container {
  width: 100%;
  max-width: var(--bm-container);
  padding: 0 var(--bm-gutter);
  box-sizing: border-box;
}

#top #wrap_all .bm-raw .content,
#top #wrap_all .bm-section .content {
  padding: 0;
}

/* Shortcodes sit in builder Text Blocks: drop the text block's spacing and type styles
   so the section markup is styled only by the rules below. */
#top #wrap_all :is(.bm-raw, .bm-section) .av_textblock_section,
#top #wrap_all :is(.bm-raw, .bm-section) .avia_textblock {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* wpautop turns the newline the builder saves after each element into a <br> */
#top #wrap_all :is(.bm-raw, .bm-section) .entry-content-wrapper > br {
  display: none;
}

/* The pillars overlap the hero, so the section holding them must not clip or cover it */
#top #wrap_all .bm-raw.bm-raw--overlap {
  position: relative;
  z-index: 2;
}

/* The child theme forces weights (font-variation-settings) and transforms on body#top h1-h3,
   and Enfold sizes headings with "#top #wrap_all .all_colors hN" - so heading rules below
   are scoped with #main to win. */
#top #wrap_all .bm-raw :is(h1, h2, h3),
#top #wrap_all .bm-section :is(h1, h2, h3) {
  font-variation-settings: normal;
  text-transform: none;
}

#top #wrap_all .bm-section :is(h1, h2, h3) {
  color: var(--bm-text-strong);
}

.bm-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

#top #wrap_all #main .bm-section-title {
  margin: 12px 0 0;
  font: 700 44px/1.18 var(--bm-font-display);
  letter-spacing: -.01em;
  color: var(--bm-text-strong);
  text-wrap: balance;
}

#top #wrap_all .bm-lead {
  margin: 0;
  font: 400 19px/1.6 var(--bm-font-body);
  color: var(--bm-text-body);
}

/* ---------- Hero ---------- */

#top #wrap_all .bm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  min-height: 560px;
  background: var(--bm-black);
  border-bottom: 4px solid var(--bm-gold);
}

.bm-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 88px 64px 150px max(var(--bm-gutter), calc((100vw - var(--bm-container)) / 2 + var(--bm-gutter)));
}

#top #wrap_all #main .bm-hero__title {
  margin: 0;
  font: 700 60px/1.06 var(--bm-font-display);
  letter-spacing: -.02em;
  color: var(--bm-white);
  text-wrap: balance;
}

#top #wrap_all .bm-hero__text {
  max-width: 500px;
  margin: 0;
  font: 400 19px/1.6 var(--bm-font-body);
  color: var(--bm-plat-300);
}

.bm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.bm-hero__media {
  position: relative;
  overflow: hidden;
}

.bm-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 60%;
}

/* ---------- Product cards (pillars) ---------- */

.bm-pillars {
  margin-top: -110px;
}

.bm-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.bm-pillar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--bm-radius-xl);
  background: var(--bm-white);
  box-shadow: var(--bm-shadow-3);
}

.bm-pillar__media {
  position: relative;
  height: 190px;
  background: var(--bm-plat-100);
}

.bm-pillar__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bm-pillar__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 24px 26px 26px;
}

#top #wrap_all #main .bm-pillar__title {
  margin: 0;
  font: 600 26px/1.18 var(--bm-font-display);
  letter-spacing: -.01em;
  color: var(--bm-text-strong);
}

#top #wrap_all .bm-checklist {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#top #wrap_all .bm-checklist li {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 400 16px/1.6 var(--bm-font-body);
  color: var(--bm-text-body);
}

.bm-checklist .bm-icon {
  margin-top: 4px;
  color: var(--bm-gold-600);
}

.bm-pillar__action {
  margin-top: auto;
  padding-top: 8px;
}

/* ---------- Stats ---------- */

#top #wrap_all .bm-stats {
  margin-top: 80px;
  background: var(--bm-plat-100);
  border-top: 1px solid var(--bm-plat-200);
  border-bottom: 1px solid var(--bm-plat-200);
}

.bm-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.bm-stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 44px 32px;
}

.bm-stat:first-child {
  padding-left: 0;
}

#top #wrap_all .bm-stat + .bm-stat {
  border-left: 1px solid var(--bm-plat-300);
}

.bm-stat::before {
  content: '';
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--bm-gold);
}

.bm-stat__value {
  font: 700 44px/1 var(--bm-font-display);
  letter-spacing: -.02em;
  color: var(--bm-text-strong);
}

.bm-stat__label {
  font: 500 15px/1.4 var(--bm-font-body);
  color: var(--bm-plat-700);
}

/* ---------- Shop by product ---------- */

#top #wrap_all .bm-section--products {
  padding: 80px 0 72px;
}

.bm-products {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

#top #wrap_all .bm-product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-height: 128px;
  padding: 20px 16px 18px;
  box-sizing: border-box;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-l);
  background: var(--bm-white);
  text-decoration: none;
  transition: background .2s var(--bm-ease), border-color .2s var(--bm-ease);
}

.bm-product__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--bm-gold-100);
  color: var(--bm-black);
  transition: background .2s;
}

.bm-product__icon .bm-icon {
  width: 22px;
  height: 22px;
}

.bm-product__title {
  font: 600 15px/1.25 var(--bm-font-display);
  color: var(--bm-text-strong);
}

#top #wrap_all .bm-product:hover,
#top #wrap_all .bm-product:focus-visible {
  border-color: var(--bm-black);
  background: var(--bm-black);
  outline: none;
}

.bm-product:hover .bm-product__icon,
.bm-product:focus-visible .bm-product__icon {
  background: var(--bm-gold);
}

.bm-product:hover .bm-product__title,
.bm-product:focus-visible .bm-product__title {
  color: var(--bm-white);
}

/* ---------- Accreditations ---------- */

.bm-accreditations {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px 80px;
  padding: 0 var(--bm-gutter) 88px;
}

.bm-accreditations__heading {
  font: 600 20px/1.3 var(--bm-font-display);
  color: var(--bm-text-strong);
}

.bm-accreditations__logo {
  display: block;
  width: auto;
  max-height: 120px;
}

/* ---------- Testimonials ---------- */

.bm-testimonials {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background: var(--bm-black);
}

.bm-testimonials__mark {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 420px;
  opacity: .12;
  pointer-events: none;
}

.bm-testimonials .bm-wrap {
  position: relative;
}

#top #wrap_all #main .bm-testimonials .bm-section-title {
  color: var(--bm-white);
}

.bm-testimonials__nav {
  display: flex;
  flex: none;
  gap: 8px;
}

.bm-reviews__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 16px 0 0;
  font: 400 15px/1.4 var(--bm-font-body);
  color: var(--bm-plat-400);
}

.bm-reviews__rating strong {
  font-weight: 600;
  color: var(--bm-white);
}

.bm-reviews__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--bm-gold);
}

.bm-reviews__stars .bm-icon {
  width: 16px;
  height: 16px;
}

.bm-reviews__notice {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--bm-plat-400);
}

/* Trustindex Google reviews widget (layout "Slider I.", style "Dark background"),
   restyled as the design's quote cards. Its selectors use !important, hence the
   #top #wrap_all prefix throughout. */
#top #wrap_all .bm-reviews .ti-widget .ti-widget-container,
#top #wrap_all .bm-reviews .ti-widget .ti-widget-container * {
  font-family: var(--bm-font-body);
}

#top #wrap_all .bm-reviews .ti-widget .ti-widget-container {
  margin: 0;
}

#top #wrap_all .bm-reviews .ti-widget .ti-reviews-container-wrapper {
  margin: 0 -12px !important;
  padding-top: 0;
}

#top #wrap_all .bm-reviews .ti-widget .ti-review-item {
  display: flex;
  padding: 0 12px;
}

#top #wrap_all .bm-reviews .ti-widget .ti-review-item > .ti-inner {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  padding: 28px !important;
  border: 1px solid var(--bm-plat-800) !important;
  border-radius: var(--bm-radius-xl) !important;
  background: var(--bm-plat-900) !important;
}

#top #wrap_all .bm-reviews .ti-widget .ti-review-item .ti-stars {
  order: 0;
  height: auto;
  margin: 0 0 18px;
  line-height: 0;
}

#top #wrap_all .bm-reviews .ti-widget .ti-review-item .ti-star {
  width: 18px;
  height: 18px;
  margin-right: 2px;
}

#top #wrap_all .bm-reviews .ti-widget .ti-review-content {
  order: 1;
  height: calc(4 * 27.9px) !important;
  -webkit-line-clamp: 4;
  font-size: 18px;
  line-height: 27.9px;
  color: var(--bm-white);
}

#top #wrap_all .bm-reviews .ti-widget .ti-read-more {
  order: 2;
  padding-top: 10px;
}

#top #wrap_all .bm-reviews .ti-widget .ti-read-more span {
  font-size: 14px;
  color: var(--bm-gold);
  opacity: 1;
}

#top #wrap_all .bm-reviews .ti-widget .ti-review-header {
  order: 3;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
}

#top #wrap_all .bm-reviews .ti-widget .ti-profile-img {
  margin-right: 12px !important;
}

#top #wrap_all .bm-reviews .ti-widget .ti-profile-img img {
  width: 36px !important;
  height: 36px !important;
}

#top #wrap_all .bm-reviews .ti-widget .ti-widget-container .ti-name {
  padding-right: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--bm-white);
}

#top #wrap_all .bm-reviews .ti-widget .ti-widget-container .ti-date {
  font-size: 13px;
  color: var(--bm-plat-400);
}

#top #wrap_all .bm-reviews .ti-widget .ti-platform-icon {
  position: static;
  flex: none;
  order: 2;
  margin-left: auto;
}

/* The section's own arrows drive the slider (js/bm-home.js) */
#top #wrap_all .bm-reviews .ti-widget .ti-controls,
#top #wrap_all .bm-reviews .ti-widget .ti-controls-line,
#top #wrap_all .bm-reviews .ti-widget .ti-verified-review {
  display: none !important;
}

/* ---------- About + quick quote ---------- */

#top #wrap_all .bm-section--about {
  padding: 70px 0;
}

#top #wrap_all .bm-section--about .flex_column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#top #wrap_all #main .bm-section--about .bm-section-title {
  margin-bottom: 20px;
}

#top #wrap_all .bm-section--about .avia_textblock p {
  margin: 0 0 16px;
  color: var(--bm-text-muted);
}

/* "Find out more" button: no trailing margin, so the section's top and bottom spacing match */
#top #wrap_all .bm-section--about .avia_textblock p:has(> .bm-btn) {
  margin-bottom: 0;
}

#top #wrap_all .bm-section--about .avia_textblock p.bm-lead {
  color: var(--bm-text-body);
}

.bm-offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

.bm-office {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: var(--bm-radius-l);
  background: var(--bm-plat-50);
}

.bm-office__name {
  font: 600 15px/1.2 var(--bm-font-display);
  color: var(--bm-text-strong);
}

.bm-office__address {
  font: 400 14px/1.4 var(--bm-font-body);
  color: var(--bm-text-muted);
}

#top #wrap_all .bm-office__phone {
  margin-top: 4px;
  font: 600 14px/1 var(--bm-font-body);
  font-variant-numeric: tabular-nums;
  color: var(--bm-text-strong);
  text-decoration: none;
}

/* Quote card - the Ninja Form sits inside a builder column with custom class bm-quote-card */

#top #wrap_all .bm-quote-card {
  overflow: hidden;
  padding: 32px;
  box-sizing: border-box;
  border: 1px solid var(--bm-border);
  border-top: 4px solid var(--bm-gold);
  border-radius: 24px;
  background: var(--bm-white);
  box-shadow: var(--bm-shadow-2);
}

#top #wrap_all #main .bm-quote-card h3 {
  margin: 0 0 6px;
  font: 700 34px/1.18 var(--bm-font-display);
  color: var(--bm-text-strong);
}

#top #wrap_all .bm-quote-card .avia_textblock p {
  margin: 0;
  color: var(--bm-text-muted);
}

#top #wrap_all .bm-quote-card .nf-form-content {
  max-width: none;
  padding: 0;
}

#top #wrap_all .bm-quote-card .nf-form-fields-required,
#top #wrap_all .bm-quote-card .nf-form-title {
  display: none;
}

/* Two-column rows come from the form's own layout (Ninja Forms Layouts rows/cells) */
#top #wrap_all .bm-quote-card nf-row {
  margin-bottom: 16px;
}

#top #wrap_all .bm-quote-card nf-cells {
  display: flex;
  gap: 16px;
  margin: 0;
}

#top #wrap_all .bm-quote-card nf-cell {
  flex: 1;
  padding: 0;
}

#top #wrap_all .bm-quote-card .nf-field-container {
  margin: 0;
}

/* Show the help text under the field, as in the design */
#top #wrap_all .bm-quote-card .field-wrap {
  display: flex;
  flex-direction: column;
}

#top #wrap_all .bm-quote-card .nf-field-label { order: 1; }
#top #wrap_all .bm-quote-card .nf-field-element { order: 2; }
#top #wrap_all .bm-quote-card .nf-field-description { order: 3; }

#top #wrap_all .bm-quote-card .nf-field-label {
  margin: 0 0 6px;
}

#top #wrap_all .bm-quote-card .nf-field-label label {
  font: 600 14px/1.3 var(--bm-font-display);
  color: var(--bm-text-strong);
}

#top #wrap_all .bm-quote-card .nf-field-label .ninja-forms-req-symbol {
  color: var(--bm-gold-700);
}

#top #wrap_all .bm-quote-card .nf-form-content input:not([type=button]):not([type=submit]),
#top #wrap_all .bm-quote-card .nf-form-content select,
#top #wrap_all .bm-quote-card .nf-form-content textarea {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-m);
  background: var(--bm-white);
  box-shadow: none;
  font: 400 16px/1.2 var(--bm-font-body) !important;
  font-variation-settings: normal;
  color: var(--bm-text-strong);
  transition: border-color .12s, box-shadow .12s;
}

#top #wrap_all .bm-quote-card .nf-form-content textarea {
  height: 120px;
  padding: 12px 14px;
  line-height: 1.5;
}

#top #wrap_all .bm-quote-card .nf-form-content select {
  appearance: none;
  padding-right: 40px;
  background: var(--bm-white) url(../svg/icons/chevron-down.svg) no-repeat right 14px center / 16px;
  cursor: pointer;
}

/* Ninja Forms draws its own select arrow box */
#top #wrap_all .bm-quote-card .listselect-wrap .nf-field-element div {
  display: none;
}

#top #wrap_all .bm-quote-card .nf-form-content input:focus,
#top #wrap_all .bm-quote-card .nf-form-content select:focus,
#top #wrap_all .bm-quote-card .nf-form-content textarea:focus {
  outline: none;
  border-color: var(--bm-black);
  box-shadow: var(--bm-focus-ring);
}

#top #wrap_all .bm-quote-card .nf-field-description {
  margin: 6px 0 0;
  font: 400 13px/1.4 var(--bm-font-body);
  color: var(--bm-text-muted);
}

#top #wrap_all .bm-quote-card .nf-form-content input[type=submit] {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--bm-gold);
  font: 600 16px/1 var(--bm-font-display) !important;
  font-variation-settings: normal;
  color: var(--bm-black);
  cursor: pointer;
  transition: background .12s;
}

#top #wrap_all .bm-quote-card .nf-form-content input[type=submit]:hover {
  background: var(--bm-gold-500);
}

#top #wrap_all .bm-quote-card .nf-response-msg {
  padding: 16px;
  border-radius: var(--bm-radius-m);
  background: var(--bm-gold-50);
  color: var(--bm-text-strong);
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .bm-products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #top #wrap_all #main .bm-hero__title { font-size: 48px; }
}

@media (max-width: 989px) {
  #top #wrap_all .bm-hero { grid-template-columns: 1fr; min-height: 0; }
  .bm-hero__copy { padding: 56px var(--bm-gutter) 140px; }
  .bm-hero__media { display: none; }
  #top #wrap_all #main .bm-hero__title { font-size: 40px; }
  #top #wrap_all .bm-hero__text { font-size: 17px; }

  .bm-pillars__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }

  #top #wrap_all .bm-stats { margin-top: 56px; }
  .bm-stats__grid { grid-template-columns: 1fr 1fr; }
  .bm-stat { padding: 28px 20px; }
  .bm-stat:first-child { padding-left: 20px; }
  #top #wrap_all .bm-stat:nth-child(3) { border-left: 0; }
  #top #wrap_all .bm-stat:nth-child(n+3) { border-top: 1px solid var(--bm-plat-300); }
  .bm-stat__value { font-size: 34px; }

  #top #wrap_all #main .bm-section-title { font-size: 32px; }
  .bm-section-head { flex-wrap: wrap; }
  #top #wrap_all .bm-section--products { padding: 56px 0; }
  .bm-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .bm-accreditations { gap: 32px 48px; padding-bottom: 56px; }
  .bm-accreditations__heading { width: 100%; text-align: center; }
  .bm-accreditations__logo { max-height: 90px; }

  .bm-testimonials { padding: 56px 0; }

  #top #wrap_all .bm-section--about { padding: 56px 0; }
  #top #wrap_all .bm-section--about .flex_column { width: 100%; margin: 0 0 40px; }
}

@media (max-width: 600px) {
  .bm-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-offices { grid-template-columns: 1fr; }
  #top #wrap_all .bm-quote-card { padding: 24px 20px; }
  #top #wrap_all .bm-quote-card nf-cells { flex-direction: column; }
}
