
  :root {
    --home-od-green: #6b8e23;
    --home-dark: #050816;

    /* HERO IMAGE FOCUS (lower % = shows higher part of image) */
    --ms-hero-pos-y: 32%;
    --ms-hero-pos-y-mobile: 38%;
  }

  html { scroll-behavior: smooth; }

  /* VISUALLY HIDDEN (for alt text on background images) */
  .ms-visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
  }

  /* HERO */
  .ms-hub-hero {
    position: relative;
    padding: 90px 0 70px;
    color: #fff;

    background-image:
      linear-gradient(45deg, rgba(0,0,0,0.35), rgba(0,0,0,0.70)),
      url("https://www.mayersecurity.com/wp-content/uploads/2025/12/Shipping-Yard-Night-Security-.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center var(--ms-hero-pos-y);
  }

  .ms-hub-hero .ms-breadcrumb {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15,23,42,0.75);
    border: 1px solid rgba(255,255,255,0.14);
    font-size: 13px;
    margin-bottom: 14px;
  }

  .ms-hub-hero .ms-breadcrumb a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
  }
  .ms-hub-hero .ms-breadcrumb a:hover { text-decoration: underline; }

  .ms-hub-hero h1 {
    color: #fff;
    font-size: 42px;
    line-height: 1.12;
    margin: 0 0 10px;
  }

  .ms-hub-hero p {
    color: rgba(255,255,255,0.88);
    max-width: 980px;
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.55;
  }

  .ms-hub-hero .ms-hub-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 14px;
  }
  .ms-hub-hero .ms-hub-badges span {
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(2px);
  }

  .btn-call-home {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff !important;
  }
  .btn-call-home:hover {
    background-color: #ffffff;
    color: #000000 !important;
  }

  /* METRICS */
  .ms-metrics-section { margin: 70px 0 40px; }
  .ms-metrics-inner {
    background: #f8fafc;
    border-radius: 22px;
    padding: 40px 30px 32px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  }
  .ms-metrics-heading h2 {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 8px;
    text-align: center;
  }
  .ms-metrics-heading p {
    margin: 0 0 24px;
    color: #4b5563;
    text-align: center;
  }
  .ms-metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }
  .ms-metric-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 18px 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .ms-metric-card.ms-metric-green {
    background: #ecfdf3;
    border: 1px solid #16a34a;
  }
  .ms-metric-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6b7280;
    margin-bottom: 6px;
  }
  .ms-metric-number {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
  }
  .ms-metric-card.ms-metric-green .ms-metric-number { color: #16a34a; }
  .ms-metric-copy {
    font-size: 13px;
    color: #4b5563;
    margin: 0;
  }

  /* INDUSTRY LINK CARDS (image + overlay) */
  .ms-hub-cards-wrap {
    padding: 40px 0 30px;
    background: #ffffff;
  }

  .ms-hub-card {
    border-radius: 18px;
    overflow: hidden;
    min-height: 250px;
    position: relative;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    background: #0b1020;
  }
  .ms-hub-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.72), rgba(0,0,0,0.56));
    z-index: 1;
  }
  .ms-hub-card .ms-hub-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.02);
  }
  .ms-hub-card-inner {
    position: relative;
    z-index: 2;
    padding: 26px 22px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .ms-hub-card h3 {
    color: #ffffff;
    font-size: 20px;
    margin: 0 0 10px;
  }
  .ms-hub-card p {
    color: rgba(255,255,255,0.88);
    margin: 0 0 14px;
    line-height: 1.55;
  }
  .ms-hub-card a.btn-default { align-self: flex-start; }

  /* SERVICES (4 cards, 2 paragraphs each) */
  .ms-services-wrap {
    padding: 34px 0 65px;
    background: #ffffff;
  }
  .ms-section-head {
    margin-bottom: 18px;
    text-align: center;
  }
  .ms-section-head h2 {
    font-size: 30px;
    line-height: 1.25;
    margin: 0 0 10px;
  }
  .ms-section-head p {
    margin: 0 auto;
    max-width: 980px;
    color: #4b5563;
    line-height: 1.6;
  }

  .ms-service-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .ms-service-media {
    margin: 0;
    position: relative;
    height: 210px;
    overflow: hidden;
  }
  .ms-service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .ms-service-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .ms-service-body h3 {
    font-size: 20px;
    margin: 0;
  }
  .ms-service-body p {
    margin: 0;
    color: #374151;
    line-height: 1.65;
  }
  .ms-service-body .btn-default {
    margin-top: 8px;
    align-self: flex-start;
  }

  /* RELATED SECURITY SERVICE (horizontal section) */
  .ms-related {
    padding: 48px 0;
    background: #050816;
    color: #ffffff;
  }
  .ms-related-inner {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    border-radius: 22px;
    padding: 28px 24px;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .ms-related-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.80);
    margin-bottom: 6px;
  }
  .ms-related h2 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.25;
    color: #ffffff;
  }
  .ms-related p {
    margin: 0;
    max-width: 920px;
    color: rgba(255,255,255,0.86);
    line-height: 1.65;
  }
  .ms-related .ms-related-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  @media (max-width: 1199.98px) {
    .ms-metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  @media (max-width: 767.98px) {
    .ms-hub-hero {
      padding: 70px 0 55px;
      background-position: center var(--ms-hero-pos-y-mobile);
    }
    .ms-hub-hero h1 { font-size: 30px; }
    .ms-metrics-inner { padding: 26px 18px 22px; }
    .ms-metrics-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .ms-services-wrap { padding-top: 20px; }
  }
