/*
Theme Name: Minutemen Mobile Blasting
Theme URI: https://minutemenmb.com
Author: Digital Visibility Concepts
Author URI: https://digitalvisibilityconcepts.com
Description: Custom theme for Minutemen Mobile Blasting, LLC. Replaces the ServiceMaster/Mikado/WPBakery stack with a lightweight hand-built theme. Site-wide contact details are editable under Appearance > Customize > Minutemen Settings.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minutemenmb
Tags: business, custom-menu, custom-logo, featured-images, blog
*/

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  /* Brand — matched to the live site */
  --mmb-blue:        #0033cc;
  --mmb-blue-dark:   #002499;
  --mmb-red:         #e31e24;
  --mmb-red-dark:    #b8151a;
  --mmb-white:       #ffffff;
  --mmb-offwhite:    #f4f4f4;
  --mmb-ink:         #1a1a1a;
  --mmb-ink-soft:    #4a4a4a;
  --mmb-line:        #e2e2e2;
  --mmb-bar:         #2b2b2b;

  /* Type */
  --mmb-font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --mmb-font-body:    "PT Serif", Georgia, "Times New Roman", serif;
  --mmb-font-ui:      "Poppins", "Helvetica Neue", Arial, sans-serif;

  /* Scale */
  --mmb-step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --mmb-step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --mmb-step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --mmb-step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --mmb-step-3:  clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
  --mmb-step-4:  clamp(2.3rem, 1.6rem + 3.4vw, 4.2rem);

  /* Space */
  --mmb-gap:      1.5rem;
  --mmb-section:  clamp(3rem, 6vw, 5.5rem);
  --mmb-container: 1200px;
  --mmb-radius:   2px;

  /* Motion */
  --mmb-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--mmb-font-body);
  font-size: var(--mmb-step-0);
  line-height: 1.75;
  color: var(--mmb-ink);
  background: var(--mmb-white);
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

a { color: var(--mmb-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mmb-font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--mmb-ink);
}

h1 { font-size: var(--mmb-step-4); }
h2 { font-size: var(--mmb-step-3); }
h3 { font-size: var(--mmb-step-2); }
h4 { font-size: var(--mmb-step-1); }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

blockquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 4px solid var(--mmb-red);
  font-size: var(--mmb-step-1);
}

hr { border: 0; border-top: 1px solid var(--mmb-line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--mmb-red);
  outline-offset: 2px;
}

.mmb-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: 0.75rem 1.25rem; background: var(--mmb-red); color: #fff;
  font-family: var(--mmb-font-ui); font-weight: 600;
}
.mmb-skip-link:focus { left: 0; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.mmb-container {
  width: 100%;
  max-width: var(--mmb-container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.mmb-container--narrow { max-width: 820px; }

.mmb-section { padding-block: var(--mmb-section); }
.mmb-section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.mmb-section--flush { padding-block: 0; }

.mmb-section--blue  { background: var(--mmb-blue);    color: #fff; }
.mmb-section--red   { background: var(--mmb-red);     color: #fff; }
.mmb-section--grey  { background: var(--mmb-offwhite); }
.mmb-section--white { background: var(--mmb-white); }

.mmb-section--blue h1, .mmb-section--blue h2, .mmb-section--blue h3,
.mmb-section--red  h1, .mmb-section--red  h2, .mmb-section--red  h3 { color: #fff; }
.mmb-section--blue a, .mmb-section--red a { color: #fff; text-decoration: underline; }

.mmb-grid { display: grid; gap: var(--mmb-gap); }
.mmb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mmb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mmb-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.mmb-center { text-align: center; }
.mmb-center .mmb-rule { margin-inline: auto; }

/* Short rule under headings — the live site's underline device */
.mmb-rule {
  width: 64px; height: 4px;
  background: var(--mmb-red);
  margin: 0 0 1.5rem;
  border: 0;
}
.mmb-section--blue .mmb-rule,
.mmb-section--red  .mmb-rule { background: #fff; }

.mmb-eyebrow {
  font-family: var(--mmb-font-ui);
  font-size: var(--mmb-step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  opacity: 0.85;
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.mmb-btn {
  display: inline-block;
  font-family: var(--mmb-font-ui);
  font-size: var(--mmb-step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 1.05rem 2.1rem;
  border: 2px solid transparent;
  border-radius: var(--mmb-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s var(--mmb-ease),
              color 0.2s var(--mmb-ease),
              transform 0.2s var(--mmb-ease);
}
.mmb-btn:hover { text-decoration: none; transform: translateY(-2px); }
.mmb-btn:active { transform: translateY(0); }

.mmb-btn--red { background: var(--mmb-red); color: #fff; }
.mmb-btn--red:hover { background: var(--mmb-red-dark); color: #fff; }

.mmb-btn--blue { background: var(--mmb-blue); color: #fff; }
.mmb-btn--blue:hover { background: var(--mmb-blue-dark); color: #fff; }

.mmb-btn--outline { background: transparent; border-color: currentColor; color: inherit; }
.mmb-btn--outline:hover { background: #fff; color: var(--mmb-ink); }

.mmb-btn--wide { width: 100%; text-align: center; }

/* ==========================================================================
   5. HEADER
   ========================================================================== */

.mmb-topbar {
  background: var(--mmb-bar);
  color: #fff;
  font-family: var(--mmb-font-ui);
  font-size: var(--mmb-step--1);
}
.mmb-topbar__inner {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  align-items: center; justify-content: space-between;
  min-height: 44px; padding-block: 0.4rem;
}
.mmb-topbar a { color: #fff; text-decoration: none; }
.mmb-topbar a:hover { color: #fff; text-decoration: underline; }
.mmb-topbar__phones { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: center; }
.mmb-topbar__social { display: flex; gap: 0.6rem; align-items: center; }
.mmb-topbar__social span { margin-right: 0.2rem; }
.mmb-topbar__social a {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.14);
  transition: background-color 0.2s var(--mmb-ease);
}
.mmb-topbar__social a:hover { background: var(--mmb-red); }
.mmb-topbar__social svg { width: 15px; height: 15px; fill: #fff; }

.mmb-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--mmb-blue);
  transition: box-shadow 0.25s var(--mmb-ease);
}
.mmb-header.is-stuck { box-shadow: 0 4px 18px rgba(0,0,0,0.28); }

.mmb-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--mmb-gap); min-height: 82px;
}

.mmb-brand { display: flex; align-items: center; flex-shrink: 0; }
.mmb-brand img { max-height: 58px; width: auto; }
.mmb-brand__text {
  font-family: var(--mmb-font-display);
  font-weight: 800; font-size: var(--mmb-step-1);
  color: #fff; text-decoration: none; line-height: 1.1;
}
.mmb-brand__text:hover { text-decoration: none; }

.mmb-nav ul {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none; margin: 0; padding: 0;
}
.mmb-nav li { margin: 0; position: relative; }
.mmb-nav a {
  display: block;
  font-family: var(--mmb-font-ui);
  font-size: var(--mmb-step--1);
  font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: #fff; text-decoration: none;
  padding: 0.85rem 1rem;
  transition: background-color 0.2s var(--mmb-ease);
}
.mmb-nav a:hover,
.mmb-nav a:focus-visible { background: var(--mmb-red); color: #fff; text-decoration: none; }
.mmb-nav .current-menu-item > a,
.mmb-nav .current_page_item > a,
.mmb-nav .current-menu-ancestor > a { background: var(--mmb-red); color: #fff; }

/* Dropdowns */
.mmb-nav .sub-menu {
  position: absolute; top: 100%; left: 0; z-index: 20;
  display: block; min-width: 230px; padding: 0.4rem 0;
  background: var(--mmb-blue-dark);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s var(--mmb-ease), transform 0.18s var(--mmb-ease), visibility 0.18s;
}
.mmb-nav li:hover > .sub-menu,
.mmb-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mmb-nav .sub-menu li { width: 100%; }
.mmb-nav .sub-menu a { padding: 0.7rem 1.2rem; letter-spacing: 0.04em; }

.mmb-header__actions { display: flex; align-items: center; gap: 0.4rem; }

.mmb-icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer;
  color: #fff;
  transition: background-color 0.2s var(--mmb-ease);
}
.mmb-icon-btn:hover { background: rgba(255,255,255,0.15); }
.mmb-icon-btn svg { width: 20px; height: 20px; fill: currentColor; }

.mmb-burger { display: none; }

/* Search drawer */
.mmb-search-drawer {
  display: none;
  background: var(--mmb-blue-dark);
  padding-block: 1.25rem;
}
.mmb-search-drawer.is-open { display: block; }
.mmb-search-drawer form { display: flex; gap: 0.5rem; }
.mmb-search-drawer input[type="search"] {
  flex: 1; min-width: 0;
  padding: 0.9rem 1rem;
  font-family: var(--mmb-font-ui); font-size: var(--mmb-step-0);
  border: 0; border-radius: var(--mmb-radius);
}

@media (max-width: 991px) {
  .mmb-burger { display: grid; }
  .mmb-nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(340px, 86vw);
    background: var(--mmb-blue);
    padding: 5.5rem 1.25rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s var(--mmb-ease);
    overflow-y: auto;
    box-shadow: -8px 0 30px rgba(0,0,0,0.3);
  }
  .mmb-nav.is-open { transform: translateX(0); }
  .mmb-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .mmb-nav a { padding: 1rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .mmb-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(0,0,0,0.16); min-width: 0;
  }
  .mmb-nav-close {
    position: absolute; top: 1rem; right: 1rem;
  }
  .mmb-overlay {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--mmb-ease), visibility 0.3s;
  }
  .mmb-overlay.is-open { opacity: 1; visibility: visible; }
  body.mmb-nav-open { overflow: hidden; }
}

@media (min-width: 992px) {
  .mmb-nav-close { display: none; }
}

/* ==========================================================================
   6. PAGE BANNER
   ========================================================================== */

.mmb-banner {
  position: relative;
  background: var(--mmb-blue);
  color: #fff;
  text-align: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.mmb-banner--red { background: var(--mmb-red); }
.mmb-banner__media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.mmb-banner__media::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
}
.mmb-banner__inner { position: relative; z-index: 2; }
.mmb-banner h1 { margin-bottom: 0; color: #fff; }
.mmb-banner .mmb-eyebrow { color: #fff; }

/* ==========================================================================
   7. CARDS / COMPONENTS
   ========================================================================== */

/* Service card — the four/three boxes on home and services */
.mmb-service-card {
  display: flex; flex-direction: column;
  background: #fff;
  padding: 1.75rem 1.5rem 2rem;
  border-top: 4px solid var(--mmb-red);
  box-shadow: 0 2px 14px rgba(0,0,0,0.09);
  transition: transform 0.25s var(--mmb-ease), box-shadow 0.25s var(--mmb-ease);
}
.mmb-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.16);
}
.mmb-service-card__img {
  width: 72%; max-width: 220px; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 50%; margin: 0 auto 1.25rem;
}
.mmb-service-card h3 { font-size: var(--mmb-step-1); margin-bottom: 0.5rem; text-align: center; }
.mmb-service-card__rule { width: 48px; height: 3px; background: var(--mmb-red); border: 0; margin: 0 auto 1rem; }
.mmb-service-card p { font-size: var(--mmb-step-0); }
.mmb-service-card ul { padding-left: 1.2em; font-size: var(--mmb-step--1); }
.mmb-service-card .mmb-btn { margin-top: auto; align-self: flex-start; }

/* Feature box — icon + heading + copy, three across */
.mmb-feature { display: flex; gap: 1rem; }
.mmb-feature__icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 52px; height: 52px;
  background: var(--mmb-red); color: #fff;
}
.mmb-feature__icon svg { width: 24px; height: 24px; fill: currentColor; }
.mmb-feature h3 { font-size: var(--mmb-step-1); color: var(--mmb-blue); margin-bottom: 0.35rem; }
.mmb-feature p { font-size: var(--mmb-step--1); margin: 0; color: var(--mmb-ink-soft); }
.mmb-section--blue .mmb-feature h3,
.mmb-section--blue .mmb-feature p { color: #fff; }

/* Icon + text + button strip (the "Contact us for a free quote today!" bar) */
.mmb-quotebar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
  justify-content: space-between;
  background: #fff;
  padding: 1.5rem clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: 0 4px 22px rgba(0,0,0,0.12);
}
.mmb-quotebar__text { display: flex; align-items: center; gap: 1rem; font-size: var(--mmb-step-1); }
.mmb-quotebar__text svg { width: 30px; height: 30px; flex: 0 0 auto; fill: var(--mmb-ink); }

/* Big call-now band */
.mmb-callnow {
  text-align: center;
  padding-block: clamp(2rem, 4vw, 3.25rem);
}
.mmb-callnow__label {
  font-family: var(--mmb-font-display); font-weight: 800;
  font-size: var(--mmb-step-2); color: var(--mmb-red);
}
.mmb-callnow a {
  font-family: var(--mmb-font-display); font-weight: 800;
  font-size: var(--mmb-step-2); color: var(--mmb-ink); text-decoration: none;
  border-bottom: 4px solid var(--mmb-red);
  transition: color 0.2s var(--mmb-ease);
}
.mmb-callnow a:hover { color: var(--mmb-red); }
.mmb-section--blue .mmb-callnow a { color: #fff; }

/* Plain list used for the marina roll-call */
.mmb-list-plain {
  list-style: none; padding: 0; margin: 0;
  text-align: center; font-family: var(--mmb-font-ui);
  letter-spacing: 0.03em;
}
.mmb-list-plain li { margin-bottom: 0.35em; }

/* Two-column checklist ("We specialize in") */
.mmb-checklist {
  list-style: none; padding: 0; margin: 0;
  columns: 2; column-gap: 2.5rem;
  font-family: var(--mmb-font-ui); font-weight: 600;
}
.mmb-checklist li {
  break-inside: avoid; margin-bottom: 0.8em; padding-left: 1.4em; position: relative;
}
.mmb-checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; background: var(--mmb-red);
}

/* Pricing block */
.mmb-pricing h3 { font-size: var(--mmb-step-1); margin-bottom: 0.4rem; }
.mmb-pricing dl { margin: 0; }
.mmb-pricing dt { font-family: var(--mmb-font-ui); font-weight: 700; margin-top: 0.9rem; }
.mmb-pricing dd { margin: 0.2rem 0 0; }

/* Logo strip (Greener Blast / Schmidt) */
.mmb-logos { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.mmb-logos img {
  max-height: 62px; width: auto;
  background: #fff; padding: 0.5rem 0.9rem;
}

/* Video */
.mmb-video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000;
}
.mmb-video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* Gallery */
.mmb-gallery {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.mmb-gallery a {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 1 / 1; background: var(--mmb-offwhite);
}
.mmb-gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s var(--mmb-ease);
}
.mmb-gallery a:hover img { transform: scale(1.06); }
.mmb-gallery a::after {
  content: ""; position: absolute; inset: 0;
  background: var(--mmb-blue); opacity: 0;
  transition: opacity 0.3s var(--mmb-ease);
}
.mmb-gallery a:hover::after { opacity: 0.22; }

/* Lightbox */
.mmb-lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  background: rgba(0,0,0,0.92); padding: 2rem;
}
.mmb-lightbox.is-open { display: grid; }
.mmb-lightbox img { max-width: 100%; max-height: 84vh; width: auto; }
.mmb-lightbox__close,
.mmb-lightbox__prev,
.mmb-lightbox__next {
  position: absolute; background: transparent; border: 0; color: #fff;
  font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 0.5rem 0.9rem;
}
.mmb-lightbox__close { top: 1rem; right: 1.25rem; }
.mmb-lightbox__prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.mmb-lightbox__next { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   8. BLOG
   ========================================================================== */

.mmb-postcard {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--mmb-line);
  transition: box-shadow 0.25s var(--mmb-ease), transform 0.25s var(--mmb-ease);
}
.mmb-postcard:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.12); }
.mmb-postcard__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mmb-offwhite); }
.mmb-postcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mmb-postcard__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.mmb-postcard__cat {
  font-family: var(--mmb-font-ui); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mmb-red);
  margin-bottom: 0.5rem;
}
.mmb-postcard h3 { font-size: var(--mmb-step-1); margin-bottom: 0.6rem; }
.mmb-postcard h3 a { color: var(--mmb-ink); text-decoration: none; }
.mmb-postcard h3 a:hover { color: var(--mmb-blue); }
.mmb-postcard__meta {
  margin-top: auto; padding-top: 1rem;
  font-family: var(--mmb-font-ui); font-size: var(--mmb-step--1); color: var(--mmb-ink-soft);
}

.mmb-entry { max-width: 72ch; }
.mmb-entry img { margin-block: 1.5rem; }
.mmb-entry h2 { font-size: var(--mmb-step-2); margin-top: 2rem; }
.mmb-entry h3 { font-size: var(--mmb-step-1); margin-top: 1.75rem; }

.mmb-postmeta {
  font-family: var(--mmb-font-ui); font-size: var(--mmb-step--1);
  color: var(--mmb-ink-soft); margin-bottom: 1.5rem;
}

.mmb-pagination { margin-top: 3rem; }
.mmb-pagination .page-numbers {
  display: inline-block; padding: 0.6rem 1rem; margin: 0 0.15rem;
  font-family: var(--mmb-font-ui); font-weight: 600;
  color: var(--mmb-ink); border: 1px solid var(--mmb-line); text-decoration: none;
}
.mmb-pagination .page-numbers:hover,
.mmb-pagination .page-numbers.current {
  background: var(--mmb-blue); border-color: var(--mmb-blue); color: #fff;
}

/* ==========================================================================
   9. FORMS (Contact Form 7 friendly)
   ========================================================================== */

.mmb-formwrap { background: #fff; padding: clamp(1.5rem, 4vw, 3rem); }

label { font-family: var(--mmb-font-ui); font-weight: 600; display: block; margin-bottom: 0.4rem; }

input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], input[type="search"], input[type="number"],
textarea, select {
  width: 100%; padding: 0.85rem 0.95rem;
  font-family: var(--mmb-font-ui); font-size: var(--mmb-step-0);
  color: var(--mmb-ink); background: #fff;
  border: 1px solid var(--mmb-line); border-radius: var(--mmb-radius);
  transition: border-color 0.2s var(--mmb-ease), box-shadow 0.2s var(--mmb-ease);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--mmb-blue);
  box-shadow: 0 0 0 3px rgba(0,51,204,0.14);
  outline: none;
}
textarea { min-height: 150px; resize: vertical; }

input[type="submit"], button[type="submit"], .wpcf7-submit {
  display: inline-block; width: auto;
  font-family: var(--mmb-font-ui); font-size: var(--mmb-step--1);
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 1.05rem 2.4rem;
  background: var(--mmb-red); color: #fff;
  border: 0; border-radius: var(--mmb-radius); cursor: pointer;
  transition: background-color 0.2s var(--mmb-ease);
}
input[type="submit"]:hover, button[type="submit"]:hover, .wpcf7-submit:hover {
  background: var(--mmb-red-dark);
}

.wpcf7-form .mmb-grid { margin-bottom: 1.2rem; }
.wpcf7-not-valid-tip { font-family: var(--mmb-font-ui); font-size: var(--mmb-step--1); color: var(--mmb-red); }
.wpcf7-response-output {
  font-family: var(--mmb-font-ui); margin: 1.5rem 0 0 !important;
  padding: 0.9rem 1.1rem !important; border-width: 2px !important;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.mmb-footer {
  background: var(--mmb-red);
  color: #fff;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.mmb-footer a { color: #fff; text-decoration: none; }
.mmb-footer a:hover { text-decoration: underline; }
.mmb-footer h2 {
  font-size: var(--mmb-step-1); color: #fff; margin-bottom: 1rem;
}
.mmb-footer p, .mmb-footer li { font-size: var(--mmb-step--1); }
.mmb-footer ul { list-style: none; padding: 0; margin: 0; }
.mmb-footer li { margin-bottom: 0.5em; }
.mmb-footer__logo { display: flex; align-items: flex-start; justify-content: center; }
.mmb-footer__logo img { max-height: 110px; width: auto; }
.mmb-footer__bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.28);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-family: var(--mmb-font-ui); font-size: var(--mmb-step--1);
}

/* ==========================================================================
   11. WORDPRESS CORE CLASSES
   ========================================================================== */

.alignleft  { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption {
  font-family: var(--mmb-font-ui); font-size: var(--mmb-step--1);
  color: var(--mmb-ink-soft); text-align: center; margin-top: 0.5rem;
}
.sticky { border-left: 4px solid var(--mmb-red); }
.wp-block-image img { height: auto; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { padding: 0.7rem 0.9rem; border: 1px solid var(--mmb-line); text-align: left; }
th { font-family: var(--mmb-font-ui); background: var(--mmb-offwhite); }

/* ==========================================================================
   12. RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
  .mmb-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mmb-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .mmb-grid--2,
  .mmb-grid--3,
  .mmb-grid--4 { grid-template-columns: 1fr; }
  .mmb-checklist { columns: 1; }
  .mmb-topbar__inner { justify-content: center; text-align: center; }
  .mmb-quotebar { flex-direction: column; text-align: center; }
  .mmb-quotebar__text { flex-direction: column; }
  .mmb-footer__bottom { justify-content: center; text-align: center; }
  .mmb-header__inner { min-height: 68px; }
  .mmb-brand img { max-height: 44px; }
}

/* ==========================================================================
   13. PAGE-SPECIFIC
   ========================================================================== */

.mmb-hero-logo {
  max-width: min(560px, 90%);
  margin-inline: auto;
}

/* Meet the Team supporter logos stack and sit on white */
.mmb-logos--stacked { flex-direction: column; align-items: center; }

/* Feature icons centre up on narrow screens */
@media (max-width: 767px) {
  .mmb-feature { flex-direction: column; }
  .mmb-feature__icon { margin-bottom: 0.5rem; }
}

/* Service pages show only "Call now", no numbers — matches the live site */
.mmb-callnow--simple a {
  font-family: var(--mmb-font-display); font-weight: 800;
  font-size: var(--mmb-step-2); color: var(--mmb-red);
  border-bottom: 0; text-decoration: none;
}
.mmb-callnow--simple a:hover { color: var(--mmb-red-dark); }
.mmb-callnow--simple svg { fill: var(--mmb-blue); }

/* Dark headings on the blue Contact prose block, as on the live site */
.mmb-prose-dark h2 { color: #0d0d0d; }
.mmb-prose-dark p, .mmb-prose-dark em { color: #fff; }

/* Home page closing logo */
.mmb-endlogo { max-width: min(520px, 88%); margin: 0 auto; }

/* Solid colour under the process-section background photo, so the section
   still reads correctly if that image is missing. */
.mmb-section .mmb-banner__media { background-color: #2b2b2b; }

/* Supporter / equipment logo strip: centre and stack */
.mmb-logos--stacked { flex-direction: column; align-items: center; }
.mmb-logos img { max-height: 72px; }

/* Pasted HTML blocks must not inherit a reading width */
.mmb-page { max-width: none; }

/* ---- FIX: card text was invisible ----
   .mmb-section--blue sets color:#fff on the whole section, and
   .mmb-section--blue h3 forces headings white. The card is a white box, so
   its title, copy and list vanished. Re-declare colour on every child. */
.mmb-service-card,
.mmb-service-card h2,
.mmb-service-card h3,
.mmb-service-card h4,
.mmb-service-card p,
.mmb-service-card ul,
.mmb-service-card li,
.mmb-service-card a:not(.mmb-btn) { color: var(--mmb-ink); }

.mmb-section--blue .mmb-service-card h3,
.mmb-section--red .mmb-service-card h3 { color: var(--mmb-ink); }

/* Same guard for any white panel dropped on a coloured section */
.mmb-quotebar, .mmb-quotebar * { color: var(--mmb-ink); }
.mmb-quotebar .mmb-btn { color: #fff; }

/* ==========================================================================
   15. CREDENTIALS BAR  (Chirasha item 6)
   ========================================================================== */

.mmb-credentials {
  background: var(--mmb-bar);
  color: #fff;
  font-family: var(--mmb-font-ui);
  font-size: var(--mmb-step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.7rem 0;
}
.mmb-credentials .mmb-container { line-height: 1.5; }

/* ==========================================================================
   16. RED DOT NEXT TO PHONE  (Chirasha item 17)
   ========================================================================== */

.mmb-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--mmb-red);
  margin-left: 0.45rem;
  vertical-align: middle;
  position: relative;
  top: -2px;
  box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.6);
  animation: mmb-pulse 2s var(--mmb-ease) infinite;
}

@keyframes mmb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(227, 30, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .mmb-dot { animation: none; }
}

/* ==========================================================================
   17. WHITE PANELS ON COLOURED SECTIONS
   ==========================================================================
   Any white box placed inside .mmb-section--blue / --red inherits color:#fff
   from the section, which makes its text invisible. Every such panel must
   re-declare its own colours. */

.mmb-formwrap,
.mmb-formwrap h1, .mmb-formwrap h2, .mmb-formwrap h3, .mmb-formwrap h4,
.mmb-formwrap p, .mmb-formwrap li, .mmb-formwrap label, .mmb-formwrap em,
.mmb-infopanel,
.mmb-infopanel h1, .mmb-infopanel h2, .mmb-infopanel h3,
.mmb-infopanel p, .mmb-infopanel li {
  color: var(--mmb-ink);
}

.mmb-formwrap a:not(.mmb-btn),
.mmb-infopanel a:not(.mmb-btn) {
  color: var(--mmb-ink);
  text-decoration: none;
}
.mmb-formwrap a:not(.mmb-btn):hover,
.mmb-infopanel a:not(.mmb-btn):hover { color: var(--mmb-blue); }

.mmb-formwrap .mmb-btn,
.mmb-infopanel .mmb-btn { color: #fff; }

.mmb-formwrap .mmb-rule,
.mmb-infopanel .mmb-rule { background: var(--mmb-red); }

/* ---- Contact info panel ---- */

.mmb-infopanel {
  background: #fff;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex; flex-direction: column;
  justify-content: center; text-align: center;
}
.mmb-infopanel__icon {
  display: grid; place-items: center;
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--mmb-blue);
  margin: 0 auto 1.5rem;
}
.mmb-infopanel__icon svg { fill: #fff; }

.mmb-infopanel__label {
  font-family: var(--mmb-font-ui); font-weight: 700;
  font-size: var(--mmb-step--1);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mmb-ink-soft) !important;
  margin: 0 0 0.15rem;
}
.mmb-infopanel__label + .mmb-infopanel__num { margin-bottom: 1.25rem; }

.mmb-infopanel__num {
  font-family: var(--mmb-font-display); font-weight: 800;
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem);
  line-height: 1.15; margin: 0;
  white-space: nowrap;              /* stops (978) 808- / 5883 splitting */
}
.mmb-infopanel__mail {
  font-family: var(--mmb-font-ui); font-weight: 700;
  font-size: var(--mmb-step--1); word-break: break-word;
}

/* Admin-only warning box */
.mmb-notice {
  font-family: var(--mmb-font-ui); font-size: var(--mmb-step--1);
  background: #fff8e1; border-left: 4px solid #f0ad00;
  color: var(--mmb-ink) !important;
  padding: 0.9rem 1.1rem; margin: 0 0 1.5rem;
}

/* ==========================================================================
   18. CONTACT FORM 7 — legacy Mikado grid classes
   ==========================================================================
   The existing "DB Contact Form" was built for the old theme and uses
   .mkd-grid-row / .mkd-grid-col-* markup. Those classes no longer exist, so
   without this every field stacks full width. This restores the intended
   two-column layout. */

.mmb-formwrap .mkd-grid-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 1.25rem;
}
.mmb-formwrap .mkd-grid-small-gutter { gap: 0 1rem; }

.mmb-formwrap [class*="mkd-grid-col-"] { grid-column: span 12; }
.mmb-formwrap .mkd-grid-col-3  { grid-column: span 3; }
.mmb-formwrap .mkd-grid-col-4  { grid-column: span 4; }
.mmb-formwrap .mkd-grid-col-6  { grid-column: span 6; }
.mmb-formwrap .mkd-grid-col-8  { grid-column: span 8; }
.mmb-formwrap .mkd-grid-col-9  { grid-column: span 9; }

.mmb-formwrap .wpcf7-form p { margin-bottom: 1.25rem; }
.mmb-formwrap .wpcf7-form label { margin-bottom: 0.4rem; }
.mmb-formwrap .required { color: var(--mmb-red); margin-left: 0.15rem; }

.mmb-formwrap .wpcf7-submit {
  display: block;
  margin: 2rem auto 0;
}

.mmb-formwrap .wpcf7-spinner { margin-inline: auto; }

@media (max-width: 767px) {
  .mmb-formwrap [class*="mkd-grid-col-"] { grid-column: span 12; }
}

/* ==========================================================================
   19. CONTACT PROSE BLOCK
   ==========================================================================
   Sits on the blue section. The live site rendered these headings in near
   black on blue, which is roughly 2:1 contrast and hard to read. White reads
   properly. To go back to the live look, change the h2 colour to #0d0d0d. */

.mmb-prose-light h2 {
  color: #fff;
  font-size: var(--mmb-step-2);
  margin-top: 2.25rem;
}
.mmb-prose-light h2:first-child { margin-top: 0; }
.mmb-prose-light p,
.mmb-prose-light em,
.mmb-prose-light li { color: #fff; }
.mmb-prose-light em { font-style: italic; font-weight: 700; }