/* ===== migration additions (AEO/SEO sections, breadcrumb, form, video) – set --msm-red to the brand colour ===== */
:root{--msm-brand:#4c54b8;--msm-deep:#29166f;--msm-dark:#333;--msm-grey:#666;--msm-bg:#f5f5f5;--msm-red:var(--msm-brand)}
.msm-aeo{background:#fff;padding:60px 0}
.msm-aeo-row{width:80%;max-width:1080px;margin:auto}
.msm-aeo-head{text-align:center;margin-bottom:22px}
.msm-aeo-kicker{display:block;color:var(--msm-brand);font-family:'Jost',Helvetica,Arial,sans-serif;font-weight:500;font-size:15px;letter-spacing:1px;text-transform:uppercase;margin-bottom:6px}
.msm-aeo-title{font-family:'Libre Baskerville',Georgia,"Times New Roman",serif;font-weight:500;font-size:29px;line-height:1.3;color:#000;padding:0}
.msm-aeo-answer{max-width:860px;margin:0 auto 22px;text-align:center;font-size:16px;line-height:1.8;color:var(--msm-grey)}
.msm-aeo-answer strong{color:var(--msm-dark);font-weight:600}
.msm-aeo-links{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-bottom:50px}
.msm-aeo-links a{background:var(--msm-red);color:#fff;padding:10px 20px;font-size:14px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;border-radius:2px;transition:background .2s}
.msm-aeo-links a:hover,.msm-aeo-links a:focus{background:var(--msm-deep)}
.msm-aeo-row .msm-faq{max-width:900px;margin:auto}
.msm-faq-item{border:1px solid #e5e5e5;border-left:4px solid var(--msm-red);background:#fff;margin-bottom:12px;border-radius:2px}
.msm-faq-item summary{cursor:pointer;list-style:none;padding:16px 48px 16px 20px;position:relative}
.msm-faq-item summary::-webkit-details-marker{display:none}
.msm-faq-item summary::after{content:'+';position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:24px;color:var(--msm-red);font-weight:700}
.msm-faq-item[open] summary::after{content:'–'}
.msm-faq-item summary h3{font-size:17px;font-weight:600;color:var(--msm-dark);padding:0;margin:0;display:inline}
.msm-faq-item p{padding:0 20px 18px;margin:0;color:var(--msm-grey);font-size:15px;line-height:1.7}
.msm-nap{background:var(--msm-bg)}
.msm-nap-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.msm-nap-grid>div{background:#fff;padding:24px;border-top:3px solid var(--msm-red)}
.msm-nap-grid h3{font-size:18px;color:var(--msm-red);padding-bottom:8px}
.msm-nap-grid p{font-size:15px;line-height:1.8;color:var(--msm-grey)}
.msm-nap-grid a{color:var(--msm-dark)}
.msm-breadcrumb{background:#f7f7f7;border-bottom:1px solid #eee}
.msm-bc-inner{width:80%;max-width:1080px;margin:auto;padding:10px 0}
.msm-breadcrumb ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;font-size:13px}
.msm-breadcrumb li+li::before{content:'›';margin:0 8px;color:#999}
.msm-breadcrumb a{color:var(--msm-red)}
.msm-breadcrumb li[aria-current]{color:#555}
/* lite YouTube (videos load only on click – faster page) */
.msm-yt{position:relative;display:block;aspect-ratio:16/9;background:#000 center/cover no-repeat;cursor:pointer;overflow:hidden}
.msm-yt img{width:100%;height:100%;object-fit:cover;display:block;opacity:.9}
.msm-yt::after{content:'';position:absolute;left:50%;top:50%;width:68px;height:48px;transform:translate(-50%,-50%);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.5 7.7a8.5 8.5 0 0 0-6-6C55.3.3 34 .3 34 .3s-21.3 0-26.5 1.4a8.5 8.5 0 0 0-6 6C.1 12.9.1 24 .1 24s0 11.1 1.4 16.3a8.5 8.5 0 0 0 6 6C12.7 47.7 34 47.7 34 47.7s21.3 0 26.5-1.4a8.5 8.5 0 0 0 6-6C67.9 35.1 67.9 24 67.9 24s0-11.1-1.4-16.3z' fill='%23da251c'/%3E%3Cpath d='M45 24 27 14v20' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat}
.msm-yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
/* form */
.msm-hp{position:absolute!important;left:-9999px!important;height:0;overflow:hidden}
.msm-form-msg{padding:14px 18px;margin:10px 0 18px;border-radius:2px;font-size:15px}
.msm-ok{background:#e8f6ec;border-left:4px solid #2e9e4f;color:#1d5e30}
.msm-err{background:#fdecea;border-left:4px solid #da251c;color:#8a1d15}
.gfield_error input,.gfield_error textarea{border-color:#da251c!important}
@media(max-width:980px){.msm-nap-grid{grid-template-columns:1fr}.msm-aeo-row,.msm-bc-inner{width:90%}.msm-aeo-title{font-size:24px}.msm-aeo{padding:40px 0}}
/* ---- AEO blocks v3 ---- */
.msm-definition{max-width:860px;margin:-8px auto 22px;text-align:center;font-size:15px;color:var(--msm-grey);font-style:italic}
.msm-answer{padding:40px 0 30px}
.msm-glance{background:var(--msm-bg)}
.msm-glance-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:18px}
.msm-glance-grid li{background:#fff;text-align:center;padding:22px 12px;border-bottom:3px solid var(--msm-red)}
.msm-stat{display:block;font-size:32px;font-weight:700;color:var(--msm-red);line-height:1.2}
.msm-stat-label{display:block;font-size:14px;color:var(--msm-dark);text-transform:uppercase;letter-spacing:.5px;margin-top:6px}
.msm-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;counter-reset:s}
.msm-steps li{background:#fff;border:1px solid #eee;padding:26px 20px 20px;position:relative;text-align:center}
.msm-step-no{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--msm-red);color:#fff;font-weight:700;font-size:18px;margin-bottom:10px}
.msm-steps h3,.msm-why-grid h3{font-size:17px;color:var(--msm-dark);padding-bottom:6px}
.msm-steps p,.msm-why-grid p{font-size:14px;line-height:1.7;color:var(--msm-grey)}
.msm-trust{background:var(--msm-bg)}
.msm-trust-list{list-style:none;margin:0 auto 24px;padding:0;max-width:900px;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px 24px}
.msm-trust-list li{padding-left:28px;position:relative;font-size:15px;line-height:1.7;color:var(--msm-dark)}
.msm-trust-list li::before{content:'✓';position:absolute;left:0;top:0;color:var(--msm-red);font-weight:700}
.msm-trust-logos{display:flex;flex-wrap:wrap;gap:24px;justify-content:center;align-items:center}
.msm-trust-logos img{height:60px;width:auto;object-fit:contain;filter:grayscale(.2)}
.msm-why-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}
.msm-why-grid li{border-top:3px solid var(--msm-red);background:#fff;padding:20px;box-shadow:0 2px 10px rgba(0,0,0,.05)}
/* theme list styles (Divi/Elementor) must not leak into AEO blocks */
.msm-aeo ul,.msm-aeo ol{list-style:none!important;padding:0!important}
/* the reset above must not stop the centred grid lists from centring */
.msm-trust-list,.msm-glance-grid,.msm-steps,.msm-why-grid{margin-left:auto!important;margin-right:auto!important}
.msm-aeo li{list-style:none!important}.msm-aeo li::marker{content:''}
.msm-aeo ul li::before{color:var(--msm-red)}
/* Mobile responsiveness safety net.
   The old Divi header row (.et_pb_row_0_tb_header) was snapshotted with a fixed
   desktop width (1080px) baked into its page-specific CSS and had no working
   mobile override, causing text to overflow off-screen on phones. Fixing per
   migration rule: "old site bugs are fixed, not copied". */
@media (max-width: 980px) {
  .et_pb_row, .et_pb_row_0_tb_header, [class*="et_pb_row_"] {
    width: 100% !important;
    max-width: 100% !important;
  }
  .et_pb_column { width: 100% !important; max-width: 100% !important; }
  /* The Theme Builder header's top-info-bar and logo/nav rows both kept their
     desktop 50px top/bottom section padding on mobile, with nothing in between —
     reads as a big blank gap before the logo. Tighten it on small screens. */
  .et-l--header .et_pb_section { padding-top: 16px !important; padding-bottom: 16px !important; }
}
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video { max-width: 100%; height: auto; }

/* The Theme Builder header template has 3 stacked section blocks: top info bar,
   a "primary" nav row, and a "sticky/shrink on scroll" nav row that the old
   site's JS toggled visible only on scroll. That JS never re-runs its
   initial hide on a static page, so both nav rows showed at once, stacked.
   Keep only the primary row by default; if the scroll-shrink JS does add its
   usual body class, let it swap to the sticky row as before. */
.et_pb_section_2_tb_header { display: none; }
body.et-fixed-header .et_pb_section_1_tb_header { display: none; }
body.et-fixed-header .et_pb_section_2_tb_header { display: block; }

/* "Read More" blurb buttons (Our Services) were wrapping to 2 lines — fixed
   width was too narrow for the padding. Let them size to their text instead. */
.dnxt-blurb-btn { width: auto !important; white-space: nowrap; }

/* FAQ: 2-column grid on tablet/desktop (was a single stacked column). */
@media (min-width: 768px) {
  .msm-aeo-row .msm-faq { max-width: 1100px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; align-items: start; }
  .msm-faq-item { margin-bottom: 12px; }
}

/* Homepage hero: the old site rendered this as a RevSlider carousel whose JS
   set the slider wrapper to visibility:hidden until the plugin's own script
   revealed it. Removing the RevSlider plugin files (per request) left that
   banner permanently invisible — a large blank gap under the nav. Replaced
   with a plain <img> (see raw hero markup swap); this just sizes it as a
   full-width banner. */
.msm-hero-banner { display: block; width: 100%; height: auto; }
.msm-hero-section { padding-top: 0 !important; padding-bottom: 0 !important; }
.msm-hero-row,
.msm-hero-row > .et_pb_column,
.msm-hero-row .et_pb_module,
.msm-hero-row .et_pb_text_inner {
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
  padding-left: 0 !important; padding-right: 0 !important;
}

/* Top info bar: the authentic Theme-Builder header CSS is restored, so the
   row lays out as 5 equal columns exactly like the live site. */
@media (min-width: 981px) {
  .et_pb_row_0_tb_header p, .et_pb_row_0_tb_header a { white-space: nowrap; }
}

/* BEGIN hero-slider */
/* ===== Hero slider =================================================
   The live site runs this banner as a full-width Revolution Slider.
   RevSlider itself was dropped in the migration (heavy + licensed), so
   this is a small equivalent: same slides, same full-bleed look, same
   prev/next arrows, ~1KB of CSS/JS instead of ~250KB of plugin.
   Works with JS disabled too - slide 1 simply stays visible. */
.msm-hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1920 / 800;      /* reserves height, so no layout shift */
  background: #0b2a4a;           /* matches the banner edge while loading */
}
.msm-hero-slider .msm-hero-banner {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease-in-out;
}
.msm-hero-slider .msm-hero-banner.is-active { opacity: 1; }
/* no-JS / pre-JS: first slide must be visible */
.msm-hero-slider .msm-hero-banner:first-child { opacity: 1; }
.msm-hero-slider.is-ready .msm-hero-banner:first-child:not(.is-active) { opacity: 0; }

.msm-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 22px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity .25s, background .2s;
}
.msm-hero-slider:hover .msm-hero-nav,
.msm-hero-nav:focus-visible { opacity: 1; }
.msm-hero-nav:hover { background: #000; }
.msm-hero-prev { left: 18px; }
.msm-hero-next { right: 18px; }

.msm-hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.msm-hero-dots button {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.msm-hero-dots button[aria-selected="true"] { background: #fff; transform: scale(1.25); }

/* touch devices have no hover: keep the arrows visible */
@media (hover: none) {
  .msm-hero-nav { opacity: 1; }
}
@media (max-width: 767px) {
  .msm-hero-nav { width: 32px; height: 32px; font-size: 18px; line-height: 32px; }
  .msm-hero-prev { left: 8px; }
  .msm-hero-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .msm-hero-slider .msm-hero-banner { transition: none; }
}
/* END hero-slider */

/* BEGIN contact-form */
/* ===== Contact form layout ==========================================
   Gravity Forms supplied the grid that .gfield--width-half/full rely on;
   the plugin is gone, so .gform_fields fell back to display:block and
   every field stacked full width. Rebuild the two-column grid:
   Name | Phone, then Email, Message, captcha and Submit full width. */
#gform_wrapper_1 .gform_fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 18px;
  align-items: start;
}
#gform_wrapper_1 .gfield--width-half { grid-column: span 1; }
#gform_wrapper_1 .gfield--width-full { grid-column: 1 / -1; }

/* the honeypot is a real field in the DOM - keep it out of the grid flow */
#gform_wrapper_1 .msm-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* The fields carry .hidden_label and their own placeholders (the live form
   shows no visible labels). Gravity Forms' CSS did the hiding; do it here
   instead - visually hidden, not display:none, so screen readers still
   announce each field. */
#gform_wrapper_1 .hidden_label > .gfield_label {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

#gform_wrapper_1 .ginput_container { margin: 0; }
#gform_wrapper_1 input[type="text"],
#gform_wrapper_1 input[type="tel"],
#gform_wrapper_1 input[type="email"],
#gform_wrapper_1 textarea {
  width: 100%;
  box-sizing: border-box;
}
#gform_wrapper_1 textarea { min-height: 220px; resize: vertical; }

/* hCaptcha sits on its own row, left aligned, above the button */
#gform_wrapper_1 .h-captcha { margin: 4px 0 2px; }

#gform_wrapper_1 .gform_footer { margin-top: 18px; }
/* The theme paints the button #29166f but never sets a text colour, so the
   label fell back to black on dark purple and was unreadable. White on
   #29166f is ~13.6:1 contrast. */
#gform_wrapper_1 .gform_footer .gform_button {
  width: 100%;
  color: #fff !important;
  background-color: #29166f;
  border: 0;
  cursor: pointer;
  transition: background-color .2s;
}
#gform_wrapper_1 .gform_footer .gform_button:hover,
#gform_wrapper_1 .gform_footer .gform_button:focus-visible {
  background-color: #4c54b8;
  color: #fff !important;
}

/* invalid fields: a red edge is the only place red belongs on this site */
#gform_wrapper_1 .gfield_error input,
#gform_wrapper_1 .gfield_error textarea { border-color: #da251c !important; }

@media (max-width: 767px) {
  #gform_wrapper_1 .gform_fields { grid-template-columns: 1fr; }
  #gform_wrapper_1 .gfield--width-half { grid-column: 1 / -1; }
  #gform_wrapper_1 textarea { min-height: 160px; }
}
/* END contact-form */
