/* Marshall's Septic Care, site styles
   Layered on top of Bootstrap 5.3. Custom properties define the MSC palette,
   typography, and a handful of component extensions. Keep this file lean:
   lean on Bootstrap utilities first, override here only when needed. */

:root {
  /* Bright MSC green for accents, CTAs, highlights */
  --msc-green: #02D11F;
  --msc-green-dark: #01A318;
  /* Deep ink for bold dark sections that make the bright green pop */
  --msc-ink: #0D0D0D;
  --msc-ink-soft: #1A1A1A;
  /* Bright utility blue as a secondary accent */
  --msc-blue: #0B8DE0;
  --msc-blue-dark: #076FB5;
  /* Warm gold kept as a minor accent (used sparingly) */
  --msc-gold: #C9932C;
  --msc-gold-soft: rgba(201, 147, 44, 0.12);
  --msc-sky: var(--msc-blue);
  --msc-cream: #F7F5F0;
  --msc-sand: #E6E1D6;
  --msc-charcoal: #0D0D0D;
  --msc-steel: #6B6B6B;
  --msc-brick: #B83A2E;
  --msc-moss: #3F7A4E;

  --msc-font-display: "Bebas Neue", "Arial Black", Impact, sans-serif;
  --msc-font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Override Bootstrap root tokens where appropriate */
  --bs-body-font-family: var(--msc-font-sans);
  --bs-body-color: var(--msc-charcoal);
  --bs-primary: var(--msc-green);
  --bs-primary-rgb: 2, 209, 31;
  --bs-link-color: var(--msc-green-dark);
  --bs-link-hover-color: var(--msc-ink);
}

/* Intentionally no `scroll-behavior: smooth`, the scroll-jack relies on
   synchronous scroll position adjustments when the section shrinks after
   the first pass; smooth scrolling would animate those adjustments and
   show a visible clamp-to-bottom flash mid-animation. */
html { scroll-behavior: auto; }

body {
  font-family: var(--msc-font-sans);
  color: var(--msc-charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Mobile only: kill the horizontal rubber-band/overscroll (the white "stretch"
   when swiping sideways on touch). Kept off desktop so trackpad swipe-back
   navigation is unaffected. */
@media (max-width: 991.98px) {
  html, body { overscroll-behavior-x: none; }
}

h1, h2, h3, h4, h5, h6,
.msc-display {
  font-family: var(--msc-font-display);
  font-weight: 400; /* Bebas Neue only ships in one weight, looks bold inherently */
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--msc-charcoal);
  line-height: 1.05;
}
h1, .display-1, .display-2, .display-3, .display-4, .fs-1 { letter-spacing: 0.01em; }

::selection { background: var(--msc-blue); color: #fff; }

/* Global focus ring, blue so it stays distinct from green hover states */
:focus-visible {
  outline: 2px solid var(--msc-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.msc-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--msc-green); color: #fff;
  padding: .5rem 1rem; border-radius: .375rem;
  z-index: 2000;
}
.msc-skip:focus { left: 1rem; top: 1rem; }

/* Section spacing */
.msc-section { padding-block: 3rem; }
@media (min-width: 768px) { .msc-section { padding-block: 6rem; } }
/* Mobile only: contain the negative side-margins of large-gutter rows
   (e.g. .row.g-5) so they can't trigger horizontal page scroll where the
   container padding is narrower than the gutter. */
@media (max-width: 991.98px) { .msc-section { overflow-x: clip; } }

.msc-section--cream { background: var(--msc-cream); }
.msc-section--sand  { background: rgba(230, 225, 214, 0.6); }
/* Primary dark CTA section, ink bg with bright-green accents */
.msc-section--green {
  background: var(--msc-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.msc-section--green h1, .msc-section--green h2,
.msc-section--green h3, .msc-section--green h4 { color: #fff; }
.msc-section--green .msc-overline { color: var(--msc-green); }
.msc-section--green-dark {
  background: var(--msc-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.msc-section--green-dark h1, .msc-section--green-dark h2,
.msc-section--green-dark h3, .msc-section--green-dark h4 { color: #fff; }

/* Hero-blob decorations */
.msc-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.msc-blob--green { background: rgba(31, 81, 50, 0.08); }
.msc-blob--gold  { background: rgba(201, 147, 44, 0.15); }
.msc-blob--sky   { background: rgba(74, 144, 184, 0.12); }

/* Overline label */
.msc-overline {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--msc-green);
}

/* ── Very small viewports (iPhone SE etc., ≤ 575.98px): scale type down so
   content doesn't feel cramped at 375px. ── */
@media (max-width: 575.98px) {
  .msc-hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .msc-hero p.lead { font-size: 1rem; line-height: 1.5; }
  .msc-hero .msc-overline { font-size: .65rem; letter-spacing: .14em; }
  h2.fs-1, .fs-1 { font-size: clamp(1.6rem, 7vw, 2rem) !important; }
  .msc-overline { font-size: .65rem; letter-spacing: .14em; }
  .msc-tips__title,
  .msc-reviews__title { font-size: clamp(2rem, 9vw, 2.5rem); }
  .msc-section { padding-block: 2.5rem; }
  .msc-area__inner { padding-block: 2rem; }
  /* Tighten section CTAs / body lead so they don't run away */
  p.lead { font-size: 1rem; line-height: 1.55; }
  .btn-lg { font-size: 0.95rem; padding: 0.65rem 1.1rem; }
}
.msc-section--green-dark .msc-overline { color: var(--msc-green); }

/* Trust strip */
.msc-trust-strip {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  color: var(--msc-steel); font-size: .875rem;
  list-style: none; padding: 0; margin: 0;
}
.msc-trust-strip li { display: flex; align-items: center; gap: .5rem; }
.msc-trust-strip li + li::before {
  content: "·"; color: var(--msc-blue); margin-right: .5rem;
  font-weight: 700;
}
/* Mobile: hide the trust strip — it wraps to several lines under the hero CTAs
   and lengthens the hero without adding much on a phone. Desktop keeps it. */
@media (max-width: 991.98px) {
  .msc-trust-strip { display: none; }
}

/* Buttons, MSC primary + secondary + ghost
   All CTAs use Inter (not the display font) at weight 600 with wide tracking
   and uppercase, reads as "not too bold", keeping ink/white for contrast. */
.btn-msc-primary {
  --bs-btn-color: var(--msc-ink);
  --bs-btn-bg: var(--msc-green);
  --bs-btn-border-color: var(--msc-green);
  --bs-btn-hover-bg: var(--msc-green-dark);
  --bs-btn-hover-border-color: var(--msc-green-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--msc-green-dark);
  --bs-btn-active-border-color: var(--msc-green-dark);
  --bs-btn-active-color: #fff;
  font-family: var(--msc-font-sans);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  position: relative;
  overflow: hidden;
}
.btn-msc-secondary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--msc-blue);
  --bs-btn-border-color: var(--msc-blue);
  --bs-btn-hover-bg: var(--msc-blue-dark);
  --bs-btn-hover-border-color: var(--msc-blue-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--msc-blue-dark);
  --bs-btn-active-border-color: var(--msc-blue-dark);
  font-family: var(--msc-font-sans);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  position: relative;
  overflow: hidden;
}
.btn-msc-ghost {
  --bs-btn-color: var(--msc-ink);
  --bs-btn-border-color: var(--msc-ink);
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-color: var(--msc-blue);
  --bs-btn-hover-border-color: var(--msc-blue);
  font-family: var(--msc-font-sans);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}
/* Angled shine sweep on filled CTAs, slides once across on hover, snaps back instantly on leave */
.btn-msc-primary::after,
.btn-msc-secondary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 55%;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.32) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-18deg);
  transition: left 0s;
  pointer-events: none;
}
.btn-msc-primary:hover::after,
.btn-msc-secondary:hover::after {
  left: 130%;
  transition: left 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* btn-lg scales the CTA slightly larger without changing weight/tracking */
.btn-msc-primary.btn-lg,
.btn-msc-secondary.btn-lg,
.btn-msc-ghost.btn-lg {
  font-size: 0.9375rem; /* 15px */
  padding: 0.9rem 1.6rem;
}
/* On dark sections, ghost starts white, hover turns text + border blue, no fill */
.msc-section--green .btn-msc-ghost,
.msc-section--green-dark .btn-msc-ghost {
  --bs-btn-color: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-color: var(--msc-blue);
  --bs-btn-hover-border-color: var(--msc-blue);
}

/* Phone link */
.msc-phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600;
  color: var(--msc-green);
  text-decoration: none;
}
.msc-phone:hover { color: var(--msc-green-dark); }
.msc-section--green .msc-phone,
.msc-section--green-dark .msc-phone { color: #fff; }

/* Navbar, two states:
   • Default (at top, over the hero): transparent, generous padding, big text +
     logo. Sits above a dark hero photo, so text is white.
   • Scrolled (after user scrolls past threshold): nav links, phone, and mobile
     toggle fade away. Logo + primary CTA shrink and stay. Subtle dark bg
     slides in so the remaining elements keep contrast over any content. */
.msc-navbar {
  /* Fixed so the transparent nav actually overlays the hero photo instead of
     sitting above it in document flow (where it would just show the white body). */
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1040;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding-block: 1rem;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    padding 0.35s ease,
    transform 0.4s ease,
    opacity 0.4s ease;
}
@media (min-width: 992px) {
  .msc-navbar { padding-block: 1.5rem; }
}
.msc-navbar.is-scrolled { padding-block: 0.5rem; }
/* Hidden state, whole nav fades out in place (no slide) */
.msc-navbar.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Non-hero pages: main content needs padding-top so it isn't hidden behind
   the fixed nav. Hero pages overlay intentionally. */
body:not(:has(.msc-sj-hero, .msc-hero)) main {
  padding-top: var(--msc-nav-h, 64px);
}

/* Logo, large, display-forward (doubled from previous spec) */
.msc-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
}
.msc-brand__logo {
  display: block;
  height: 4rem;
  width: auto;
  transition: height 0.35s ease;
}
@media (min-width: 992px) {
  .msc-brand__logo { height: 5.5rem; }
}
.msc-navbar.is-scrolled .msc-brand__logo { height: 3rem; }
@media (min-width: 992px) {
  .msc-navbar.is-scrolled .msc-brand__logo { height: 4rem; }
}

/* Nav links, larger in default state */
.msc-navbar .nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 1.125rem;     /* 18px default, bigger than before */
  letter-spacing: 0.01em;
  transition: color 0.2s, opacity 0.35s ease, transform 0.35s ease;
}
@media (min-width: 992px) {
  .msc-navbar .nav-link { font-size: 1.25rem; } /* 20px desktop */
}
.msc-navbar .nav-link:hover,
.msc-navbar .nav-link:focus,
.msc-navbar .nav-link.active { color: var(--msc-blue); }

.msc-navbar .navbar-toggler {
  filter: invert(1) grayscale(1);
  border-color: rgba(255, 255, 255, 0.3);
  transition: opacity 0.35s ease;
}
.msc-navbar .msc-phone {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  transition: color 0.2s, opacity 0.35s ease;
}
.msc-navbar .msc-phone:hover { color: var(--msc-blue); }

/* Primary CTA in nav, same padding:font-size proportions as the scrolled
   state (≈ 0.6em vertical × 1.33em horizontal relative to font-size), just
   scaled a little larger. Overrides btn-sm's tight Bootstrap padding. */
.msc-navbar .btn-msc-primary {
  font-size: 0.8125rem;
  padding: 0.55rem 1.15rem;
  line-height: 1;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    padding 0.35s ease,
    font-size 0.35s ease;
}
@media (min-width: 992px) {
  .msc-navbar .btn-msc-primary {
    font-size: 0.875rem;
    padding: 0.6rem 1.25rem;
  }
}
.msc-navbar.is-scrolled .btn-msc-primary {
  font-size: 0.75rem;
  padding: 0.45rem 1rem;
}

/* Dropdown menu (unchanged) */
.msc-navbar .dropdown-menu {
  border: 1px solid var(--msc-sand);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}
.msc-navbar .dropdown-item { font-weight: 500; color: var(--msc-charcoal); }
.msc-navbar .dropdown-item:hover,
.msc-navbar .dropdown-item:focus {
  background: var(--msc-cream);
  color: var(--msc-blue);
}

/* Elements that fade away when scrolled */
.msc-navbar__fadable {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* ── Scrolled state ── stays transparent; logo + CTA stay the same size */
.msc-navbar.is-scrolled {
  background: transparent;
  border-bottom-color: transparent;
}
/* Fade nav links, phone, toggler, and the pill when past scroll threshold ,
   in scroll-up "peek" state, only the logo and CTA remain visible. */
.msc-navbar.is-scrolled .navbar-nav,
.msc-navbar.is-scrolled .msc-phone,
.msc-navbar.is-scrolled .navbar-toggler,
.msc-navbar.is-scrolled .msc-nav-pill {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}
/* Logo and CTA only fade when the whole navbar is hidden (past threshold
   AND scrolling down). They stay visible during the compact peek state. */
.msc-navbar.is-hidden .msc-brand,
.msc-navbar.is-hidden .btn-msc-primary {
  opacity: 0;
  pointer-events: none;
}
.msc-brand,
.btn-msc-primary,
.msc-nav-pill {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* ── Mobile menu (< 992px): open menu sits below the brand row, right-justified,
   no background, anchored to the container-xl gutters so items don't overshoot. ── */
.msc-navbar .container-xl { position: relative; }
@media (max-width: 991.98px) {
  .msc-navbar .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem 0.75rem 1rem 0;
    max-height: calc(100vh - var(--msc-nav-h, 64px));
    overflow-y: auto;
  }
  .msc-navbar .navbar-collapse .navbar-nav {
    margin: 0 !important;
    align-items: flex-end;
    width: 100%;
  }
  .msc-navbar .navbar-collapse .nav-item { width: auto; }
  .msc-navbar .navbar-collapse .nav-link {
    padding: 0.5rem 0;
    text-align: right;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  }
  .msc-navbar .navbar-collapse > .d-flex .msc-phone {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  }
  /* Hide the desktop hover mega panel on mobile — the top-level "Services"
     link still works and the homepage Explore grid covers the sub-items. */
  .msc-navbar .navbar-collapse .msc-mega__panel { display: none !important; }
  /* Keep the Services toggle inline-flex (matches the chevron alignment) */
  .msc-navbar .navbar-collapse .msc-mega__toggle {
    display: inline-flex !important;
    color: rgba(255, 255, 255, 0.92);
  }
  .msc-navbar .navbar-collapse > .d-flex {
    margin-top: 0.5rem;
    justify-content: flex-end !important;
    align-items: center !important;
  }
}

/* ── Very small viewports (≤575.98px): horizontal menu row below the hamburger,
   full width, smaller navbar typography. ── */
@media (max-width: 575.98px) {
  .msc-navbar .nav-link { font-size: 0.95rem; }
  .msc-navbar .msc-phone { font-size: 0.9rem; }
  .msc-navbar .btn-msc-primary { font-size: 0.75rem; padding: 0.45rem 0.85rem; }
  .msc-navbar .navbar-collapse {
    padding: 0.5rem 0.75rem 0.75rem;
  }
  .msc-navbar .navbar-collapse .navbar-nav {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center !important;
    justify-content: space-between;
    width: 100%;
    gap: 0.4rem 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 0.5rem;
  }
  .msc-navbar .navbar-collapse .nav-link {
    padding: 0.35rem 0;
    text-align: center;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .msc-navbar .navbar-collapse > .d-flex {
    width: 100%;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .msc-navbar .navbar-collapse > .d-flex .msc-phone {
    flex: 0 1 auto;
    white-space: nowrap;
  }
  .msc-navbar .navbar-collapse > .d-flex .btn {
    flex: 0 0 auto;
  }
}

/* iPhone SE-class viewports (≤ 400px): tight gap between rows, no divider */
@media (max-width: 400px) {
  .msc-navbar .navbar-collapse > .d-flex {
    margin-top: 0.15rem;
    padding-top: 0.15rem;
    border-top: 0;
  }
}

/* ── On-load reveal: pill slides out to the right while nav links fade in ── */
@keyframes msc-pill-slide-out {
  0%   { transform: translateY(-50%) scaleX(0); }
  100% { transform: translateY(-50%) scaleX(1); }
}
@keyframes msc-nav-link-in {
  0%   { opacity: 0; transform: translateX(-8px); }
  100% { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 992px) {
  .msc-nav-pill {
    transform-origin: left center;
    animation: msc-pill-slide-out 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both;
  }
  .msc-navbar .navbar-nav > .nav-item {
    opacity: 0;
    animation: msc-nav-link-in 0.5s ease forwards;
  }
  .msc-navbar .navbar-nav > .nav-item:nth-child(1) { animation-delay: 0.25s; }
  .msc-navbar .navbar-nav > .nav-item:nth-child(2) { animation-delay: 0.35s; }
  .msc-navbar .navbar-nav > .nav-item:nth-child(3) { animation-delay: 0.45s; }
  .msc-navbar .navbar-nav > .nav-item:nth-child(4) { animation-delay: 0.55s; }
}

/* Hero, full-bleed photo background. Fills the viewport; the fixed navbar
   overlays the top portion so no subtraction for nav height is needed. */
.msc-hero {
  --msc-hero-img: url('/assets/img/why-truck.jpg'); /* mobile */
  position: relative; overflow: hidden;
  color: #fff;
  text-align: left;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-block: 3rem;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(rgba(13, 13, 13, 0.45), rgba(13, 13, 13, 0.8)),
    var(--msc-hero-img) center/cover no-repeat;
}
@media (min-width: 992px) {
  .msc-hero--home { --msc-hero-img: url('/assets/img/hero.jpg'); }
}
.msc-hero--septic        { --msc-hero-img: url('/assets/img/hero-septic.jpg'); }
.msc-hero--leach-fields  { --msc-hero-img: url('/assets/img/leach-field-wide.jpg'); }
.msc-hero--portables     { --msc-hero-img: url('/assets/img/hero-portables.jpg'); }
.msc-hero--dumpsters     { --msc-hero-img: url('/assets/img/hero-dumpsters.jpg'); }
.msc-hero--commercial    { --msc-hero-img: url('/assets/img/hero-commercial.jpg'); }
.msc-hero--excavation    { --msc-hero-img: url('/assets/img/hero-excavation.jpg'); }
.msc-hero--products      { --msc-hero-img: url('/assets/img/hero-products.jpg'); }
.msc-hero--about         { --msc-hero-img: url('/assets/img/hero-about.jpg'); }
.msc-hero--service-area  { --msc-hero-img: url('/assets/img/hero-service-area.jpg'); }
@media (min-width: 992px) {
  .msc-hero { padding-block: 5rem; }
}
.msc-hero > .container-xl { width: 100%; }
.msc-hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
  line-height: 0.95;
  letter-spacing: 0.015em;
  max-width: 32ch;
  margin-inline: 0;
}
.msc-hero p.lead { color: rgba(255, 255, 255, 0.88); max-width: 44rem; margin-inline: 0; }
.msc-hero .msc-overline { color: var(--msc-green); }
/* Force the content column full-width and left-aligned */
.msc-hero .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; text-align: left; }
.msc-hero .msc-photo { display: none !important; }
.msc-hero .d-flex.flex-wrap { justify-content: flex-start !important; }
.msc-hero .msc-trust-strip { justify-content: flex-start; color: rgba(255, 255, 255, 0.85); }
.msc-hero .msc-trust-strip li + li::before { color: rgba(255, 255, 255, 0.28); }
/* Ghost buttons on dark hero bg, hover turns text + border blue, no fill */
.msc-hero .btn-msc-ghost {
  --bs-btn-color: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-color: var(--msc-blue);
  --bs-btn-hover-border-color: var(--msc-blue);
}
/* Hide blob decorations on heroes, redundant with bg image */
.msc-hero .msc-blob { display: none; }

/* Cards */
.msc-card {
  background: #fff;
  border: 1px solid var(--msc-sand);
  border-radius: .75rem;
  padding: 1.75rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  height: 100%;
}
.msc-card:hover {
  transform: translateY(-2px);
  border-color: var(--msc-blue);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.msc-card--static, .msc-card--static:hover {
  transform: none;
  border-color: var(--msc-sand);
  box-shadow: none;
}
.msc-card--accent-green { border-top: 4px solid var(--msc-green); }
.msc-card--accent-gold  { border-top: 4px solid var(--msc-gold); }
.msc-card--accent-sky   { border-top: 4px solid var(--msc-sky); }

/* Process step, small green eyebrow label, then heading + body */
.msc-step {
  background: var(--msc-cream);
  border-radius: .75rem;
  padding: 1.75rem;
  height: 100%;
}
.msc-step__num {
  display: block;
  font-family: var(--msc-font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--msc-green);
  margin: 0 0 .75rem;
}

/* Pain card (problem section) */
.msc-pain {
  background: #fff;
  border-left: 4px solid var(--msc-green);
  border-radius: .75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  height: 100%;
}

/* Testimonial, height fits content, cards align to top of column */
.msc-testimonial {
  position: relative;
  background: #fff;
  border: 1px solid var(--msc-sand);
  border-radius: 0;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* Reviews section header title */
/* ─── Reviews carousel: 3-up on desktop, auto-rotating, no controls ─── */
.msc-reviews__carousel {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
.msc-reviews__track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
  align-items: stretch;
}
.msc-reviews__slide {
  flex: 0 0 calc(100% / 3);
  min-width: 0;
  padding: 0 0.75rem;
  box-sizing: border-box;
  display: flex;
}
.msc-reviews__slide .msc-testimonial {
  width: 100%;
}
@media (max-width: 991.98px) {
  .msc-reviews__slide { flex: 0 0 50%; }
}
@media (max-width: 575.98px) {
  .msc-reviews__slide { flex: 0 0 100%; }
}

.msc-reviews__title {
  font-family: var(--msc-font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--msc-charcoal);
  margin-bottom: 1.5rem;
}
.msc-testimonial__badge {
  position: absolute; top: -.75rem; left: 1.5rem;
  background: var(--msc-green); color: var(--msc-ink);
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .625rem; border-radius: 999px;
}
.msc-testimonial__avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--msc-green); color: var(--msc-ink);
  font-size: .75rem; font-weight: 700;
}
.msc-stars { color: var(--msc-gold); font-size: 1.25rem; letter-spacing: .05em; }

/* Photo placeholder, green-to-blue gradient with subtle texture */
.msc-photo {
  position: relative; overflow: hidden;
  border: 1px solid var(--msc-sand);
  background: linear-gradient(135deg, rgba(2, 209, 31, 0.1) 0%, rgba(11, 141, 224, 0.15) 100%) !important;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(31,81,50,.08) 0%, rgba(201,147,44,.12) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--msc-steel); font-size: .8125rem;
  min-height: 240px;
  aspect-ratio: 4 / 3;
}
.msc-photo--portrait { aspect-ratio: 4 / 5; }

/* Footer, dark ink with bright green accents */
.msc-footer {
  background: var(--msc-ink);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 4rem 2rem;
}
.msc-footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.msc-footer a:hover { color: var(--msc-blue); text-decoration: none; }
.msc-footer__logo {
  display: block;
  height: 4rem;
  width: auto;
  margin-bottom: 1rem;
}
@media (min-width: 992px) {
  .msc-footer__logo { height: 5rem; }
}
.msc-footer__col-title {
  color: var(--msc-green); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.msc-footer__divider {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem;
  padding-top: 2rem;
  position: relative;
}

/* Form styling */
.msc-form .form-label { font-weight: 600; color: var(--msc-charcoal); }
.msc-form .form-control:focus,
.msc-form .form-select:focus {
  border-color: var(--msc-green);
  box-shadow: 0 0 0 .25rem rgba(2, 209, 31, 0.2);
}
.msc-form__success {
  background: rgba(63, 122, 78, 0.1);
  border: 1px solid rgba(63, 122, 78, 0.3);
  border-radius: .75rem;
  padding: 2rem;
}

/* Utility: invisible honeypot */
.msc-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ───────────────────────────────────────────────────────────
   Combined hero + scroll-jack section (homepage only)
   - Starts as the hero (photo bg + copy at bottom-left).
   - As user scrolls, hero copy fades up and out, bg darkens to
     solid black, and a right-side image + card stack fade in.
   - Cards then reveal one-by-one (progress mapped 1→count).
   CSS uses --sj-fade (0..1) and --sj-active (card index) set by JS.
   Desktop-only pinning; mobile falls back to static stacked list.
   ─────────────────────────────────────────────────────────── */
.msc-sj-hero {
  position: relative;
  color: var(--msc-charcoal);
  background: #fff;
}
.msc-sj-hero__track { position: relative; }
.msc-sj-hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.msc-sj-hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(rgba(13, 13, 13, 0.45), rgba(13, 13, 13, 0.8)),
    url('/assets/img/hero.jpg') center/cover no-repeat;
}
.msc-sj-hero__fade {
  position: absolute; inset: 0;
  z-index: 1;
  background: #fff;
  opacity: var(--sj-fade, 0);
  pointer-events: none;
  transition: opacity 0.05s linear;
}
.msc-sj-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem var(--bs-gutter-x, 1.5rem);
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 2rem;
}
@media (min-width: 992px) {
  .msc-sj-hero__inner {
    /* Left column gets more room so the hero title's two lines each fit */
    grid-template-columns: 1.5fr 1fr;
    padding-inline: 3rem;
    gap: 3rem;
  }
}
.msc-sj-hero__left {
  position: relative;
}
/* Right-column image area vertically centers within the full-height cell */
.msc-sj-hero__right { align-self: center; }
/* Hero copy sits at the bottom; fades out as --sj-fade goes 0→1 */
.msc-sj-hero__copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  opacity: calc(1 - var(--sj-fade, 0));
  transform: translateY(calc(var(--sj-fade, 0) * -48px));
}
.msc-sj-hero__copy h1 {
  color: #fff;
  /* Match preview-redesign.html hero__h1, bold + wide uppercase Bebas Neue.
     Slightly smaller than preview's max (136) so each of the two lines fits
     the widened left column without wrapping. */
  font-size: clamp(56px, 7.5vw, 108px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  white-space: nowrap;
}
.msc-accent-green { color: var(--msc-green); }
.msc-accent-blue  { color: var(--msc-blue); }
@media (max-width: 860px) {
  .msc-sj-hero__copy h1 { font-size: clamp(48px, 12vw, 76px); white-space: normal; }
}
.msc-sj-hero__copy .lead { color: rgba(255,255,255,0.88); margin-bottom: 1.5rem; max-width: 44rem; }
.msc-sj-hero__copy .msc-overline { color: var(--msc-green); margin-bottom: 1rem; }
.msc-sj-hero__copy .msc-trust-strip { color: rgba(255,255,255,0.85); }
.msc-sj-hero__copy .msc-trust-strip li + li::before { color: rgba(255,255,255,0.28); }
.msc-sj-hero__copy .btn-msc-ghost {
  --bs-btn-color: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-color: var(--msc-blue);
  --bs-btn-hover-border-color: var(--msc-blue);
}
/* Card stack centered in the left column; fades in as copy fades out */
.msc-sj-hero__cards {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: var(--sj-fade, 0);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.msc-sj-hero__cards-heading {
  margin-bottom: 1.5rem;
}
.msc-sj-hero__cards-heading .msc-overline { color: var(--msc-green); margin-bottom: .5rem; }
.msc-sj-hero__cards-heading h2 {
  color: var(--msc-charcoal);
  margin: 0;
  font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
  line-height: 1.05;
}
.msc-sj-hero__right {
  position: relative;
  display: none;
  aspect-ratio: 4 / 5;
  max-height: 70vh;
  width: 100%;
  overflow: hidden;
  opacity: var(--sj-fade, 0);
  transition: opacity 0.05s linear;
}
@media (min-width: 992px) { .msc-sj-hero__right { display: block; } }
.msc-sj-hero__right img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease, transform 1.5s ease;
  transform: scale(1);
}
.msc-sj-hero__right img.is-active {
  opacity: 1;
  transform: scale(1.04);
}

/* Phase 3: sequential morph, content fades out FIRST, then grid fades in.
   --morph-out goes 0→1 during first half of scroll (fades outgoing away).
   --morph-in  goes 0→1 during second half (grid fades in after). */
.msc-sj-hero__right {
  opacity: calc(var(--sj-fade, 0) * (1 - var(--morph-out, 0)));
}
.msc-sj-hero__cards {
  opacity: calc(var(--sj-fade, 0) * (1 - var(--morph-out, 0)));
}
.msc-sj-hero__cards-heading {
  transition: transform 0.05s linear;
  transform: translateY(calc(var(--morph-out, 0) * -80px));
}

/* The grid overlay, appears during phase 3, covers the full stage */
.msc-sj-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 3rem clamp(1rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: var(--morph-in, 0);
  pointer-events: none;
  transition: opacity 0.05s linear;
}
.msc-sj-hero__grid-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
  max-width: 1320px;
  width: 100%;
}
@media (min-width: 992px) {
  .msc-sj-hero__grid-inner { gap: 1.75rem; }
}
.msc-sj-hero.is-morph .msc-sj-hero__grid { pointer-events: auto; }

/* Completed state, after the user has scrolled through once.
   Track stays the same height (so scrolling past doesn't cause document
   reflow jumps). But the section now behaves as a simple hero↔grid
   crossfade driven by --sj-fade / --morph-in:
     - At scroll top of track:  hero visible, grid hidden
     - Further in the track:    grid visible, hero hidden
   The stack cards, right image, and section heading are all hidden in
   this state, there's no replay of the card-reveal animation. */
.msc-sj-hero.is-complete .msc-sj-hero__cards,
.msc-sj-hero.is-complete .msc-sj-hero__cards-heading,
.msc-sj-hero.is-complete .msc-sj-hero__right {
  opacity: 0 !important;
  pointer-events: none;
}
.msc-sj-hero.is-complete .msc-sj-grid-card {
  transform: none !important;
  transition: none;
}
.msc-sj-grid-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--msc-charcoal);
  /* Each card slides in with a slight stagger as the grid fades in */
  --stagger: 0s;
  transform: translateY(calc((1 - var(--morph-in, 0)) * 40px));
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) var(--stagger);
}
.msc-sj-grid-card:nth-child(1) { --stagger: 0.00s; }
.msc-sj-grid-card:nth-child(2) { --stagger: 0.05s; }
.msc-sj-grid-card:nth-child(3) { --stagger: 0.10s; }
.msc-sj-grid-card:nth-child(4) { --stagger: 0.15s; }
.msc-sj-grid-card:nth-child(5) { --stagger: 0.20s; }
.msc-sj-grid-card:nth-child(6) { --stagger: 0.25s; }

.msc-sj-grid-card__title {
  font-family: var(--msc-font-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 1.4vw + 0.5rem, 2rem);
  line-height: 1;
  margin: 0;
  transition: color 0.2s ease;
}
.msc-sj-grid-card:hover .msc-sj-grid-card__title { color: var(--msc-blue); }

.msc-sj-grid-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
/* Hover reveal: solid white-to-transparent gradient sitting INSIDE the thumb
   as a pseudo-element, so there's no sibling box-model misalignment with the
   image. The thumb is the positioning + clipping context. */
.msc-sj-grid-card__thumb::before {
  content: "";
  position: absolute;
  /* Overshoot by 1px so sub-pixel rounding doesn't expose the image edge
     between the gradient overlay and the thumb (parent has overflow:hidden). */
  inset: -1px;
  background: linear-gradient(
    to top,
    var(--msc-cream) 0%,
    var(--msc-cream) 22%,
    rgba(247, 245, 240, 0) 60%,
    rgba(247, 245, 240, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
.msc-sj-grid-card:hover .msc-sj-grid-card__thumb::before { opacity: 1; }

.msc-sj-grid-card__desc {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  margin: 0;
  padding: 1.25rem;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  color: var(--msc-charcoal);
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
.msc-sj-grid-card:hover .msc-sj-grid-card__desc { opacity: 1; }

/* Mobile: touch devices can't hover, so the hover-only cue never appears.
   Reveal the cue statically but keep the gradient overlay hidden — otherwise
   its fade boundary reads as a visible band between the image and the cream
   section bg. The cue gets a text-shadow for legibility directly on the photo. */
@media (max-width: 991.98px) {
  .msc-sj-grid-card__desc { opacity: 1; }
  .msc-sj-grid-card__desc .msc-sj-grid-card__cue {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  }
}

/* "Not sure?" CTA card, different treatment, no thumb */
.msc-sj-grid-card--cta {
  background: var(--msc-green);
  color: var(--msc-ink);
  padding: 1.5rem;
  justify-content: space-between;
  aspect-ratio: auto;
  min-height: 100%;
  gap: 1rem;
}
.msc-sj-grid-card--cta .msc-sj-grid-card__title { color: var(--msc-ink); }
.msc-sj-grid-card--cta:hover .msc-sj-grid-card__title { color: var(--msc-ink); }
.msc-sj-grid-card--cta .msc-sj-grid-card__cta {
  font-family: var(--msc-font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--msc-ink);
  align-self: flex-start;
}
.msc-sj-grid-card--cta .msc-sj-grid-card__sub {
  color: rgba(13, 13, 13, 0.75);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 28ch;
}

/* Mobile fallback, no scroll-jacking; show hero + cards as a plain list,
   and the grid appears below as a normal section. */
@media (max-width: 991.98px) {
  .msc-sj-hero__stage {
    position: static;
    height: auto;
    padding-block: 3rem;
  }
  .msc-sj-hero__inner { align-items: start; }
  .msc-sj-hero__fade { display: none; }
  .msc-sj-hero__copy {
    position: static;
    opacity: 1;
    transform: none;
  }
  .msc-sj-hero__cards {
    position: static;
    opacity: 1;
    margin-top: 3rem;
  }
  .msc-sj-hero__grid {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 3rem var(--bs-gutter-x, 1.5rem);
    gap: 1.25rem;
    grid-template-columns: repeat(2, 1fr);
  }
  .msc-sj-grid-card { transform: none; }
}
.msc-sj-card {
  color: var(--msc-charcoal);
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    padding-block 0.35s ease;
  padding-block: 0;
  padding-left: 1rem;
  border-left: 2px solid transparent;
}
.msc-sj-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  padding-block: 0.5rem;
  border-left-color: rgba(13, 13, 13, 0.12);
}
.msc-sj-card.is-active {
  border-left-color: var(--msc-green);
}
.msc-sj-card__title {
  font-family: var(--msc-font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.05;
  color: var(--msc-charcoal);
  text-transform: uppercase;
  margin: 0;
  transition: color 0.3s ease;
}
.msc-sj-card.is-active .msc-sj-card__title { color: var(--msc-green-dark); }
.msc-sj-card__body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s ease, opacity 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}
.msc-sj-card__body > div {
  overflow: hidden;
  min-height: 0;
}
.msc-sj-card.is-active .msc-sj-card__body {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0.75rem;
}
.msc-sj-card__desc {
  color: var(--msc-steel);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  max-width: 32rem;
}
.msc-sj-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--msc-green);
  font-family: var(--msc-font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1rem;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--msc-green);
  transition: color 0.2s, border-color 0.2s;
}
.msc-sj-card__link:hover { color: var(--msc-charcoal); border-bottom-color: var(--msc-charcoal); }

.msc-sj__right {
  position: relative;
  display: none;
  aspect-ratio: 4 / 5;
  max-height: 80vh;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
}
@media (min-width: 992px) { .msc-sj__right { display: block; } }
.msc-sj__right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease, transform 2s ease;
  transform: scale(1);
}
.msc-sj__right img.is-active {
  opacity: 1;
  transform: scale(1.04);
}

/* Mobile fallback, no pinning, just a stacked list */
@media (max-width: 991.98px) {
  .msc-sj__stage {
    position: static;
    height: auto;
    padding-block: 3rem;
  }
  .msc-sj-card {
    opacity: 1;
    transform: none;
    padding-block: 1rem;
    border-left-color: rgba(13, 13, 13, 0.12);
  }
  .msc-sj-card__body {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 0.75rem;
  }
}

/* Homepage hero override, larger Bebas Neue title, matches the scroll-jack
   version's visual weight. Other pages keep the default .msc-hero sizing. */
.msc-hero--home h1 {
  font-size: clamp(56px, 7.5vw, 108px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  max-width: none;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .msc-hero--home h1 { font-size: clamp(48px, 12vw, 76px); white-space: normal; }
}

/* Services card grid, plain static section (no scroll-jack) */
.msc-services {
  background: #fff;
  padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 5vw, 3rem);
}
.msc-services__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
/* Neutralize the scroll-jack card defaults (transform/transition) in this
   static section so the cards render in place at normal size. */
.msc-services .msc-sj-grid-card {
  transform: none !important;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
@media (max-width: 991.98px) {
  .msc-services__inner { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (max-width: 575.98px) {
  .msc-services__inner { grid-template-columns: 1fr; }
}

/* ─── Team Members (about page) ─── */
.msc-team .msc-overline { color: var(--msc-blue); }
.msc-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Scroll-triggered slide-out animation: cards 2-6 start hidden under card 1
   (each translated left by its index × 100% of its own col width AND fully
   transparent). When the section enters the viewport they slide to their
   natural positions while fading in, with a per-card stagger.
   Card 1 stays fully visible the whole time, the others "emerge from under"
   it. Desktop only, mobile rows wrap, which would break the linear stack. */
@media (min-width: 992px) {
  /* Scroll-triggered slide-in for team cards, let Bootstrap's col-lg-* set widths */
  .msc-team .row > [class*="col-"] {
    --idx: 0;
    position: relative;
    z-index: calc(10 - var(--idx));
    opacity: 0;
    transform: translateX(calc(var(--idx) * -40px));
    transition:
      transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) calc(var(--idx) * 0.08s),
      opacity 0.55s ease calc(var(--idx) * 0.08s);
  }
  .msc-team .row > [class*="col-"]:first-child {
    opacity: 1;
    transition: none;
  }
  .msc-team.is-revealed .row > [class*="col-"] {
    transform: translateX(0);
    opacity: 1;
  }
}
.msc-member__bio {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--msc-charcoal);
  text-align: center;
}
.msc-member__photo {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--msc-cream);
  border: 3px solid var(--msc-green);
  margin-bottom: 1rem;
}
.msc-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.msc-member__name {
  font-family: var(--msc-font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--msc-charcoal);
  line-height: 1;
  margin: 0 0 0.4rem;
}
.msc-member__role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--msc-blue);
  margin: 0;
}

/* ─── Split content sections (service-page topic blocks) ─── */
.msc-split { background: #fff; }
.msc-split:nth-of-type(even) { background: var(--msc-cream); }
.msc-split__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ─── Photo Gallery (service pages) ─── */
.msc-gallery {
  padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 5vw, 3rem);
  background: #fff;
}
.msc-gallery__title {
  font-family: var(--msc-font-display);
  font-size: clamp(36px, 4.5vw, 60px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--msc-charcoal);
  line-height: 0.95;
  margin: 0 0 2rem;
}
.msc-gallery__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.msc-gallery__img:hover { transform: translateY(-4px); }
.msc-gallery .container-xl { max-width: 1320px; margin: 0 auto; }

/* ─── Why Choose Marshall's ─── */
.msc-why {
  background: #fff;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 3rem);
}
.msc-why__title {
  font-family: var(--msc-font-display);
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--msc-charcoal);
  line-height: 0.95;
  margin-bottom: 2.5rem;
}
.msc-why__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.75rem;
}
.msc-why__list > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  position: relative;
  z-index: calc(10 - var(--idx, 0));
  opacity: 0;
  transform: translateY(calc(var(--idx, 0) * -100%));
  transition:
    transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) calc(var(--idx, 0) * 0.45s),
    opacity 0.45s ease calc(var(--idx, 0) * 0.45s);
}
.msc-why__list > li:nth-child(1) { --idx: 0; opacity: 1; transition: none; }
.msc-why__list > li:nth-child(2) { --idx: 1; }
.msc-why__list > li:nth-child(3) { --idx: 2; }
.msc-why__list > li:nth-child(4) { --idx: 3; }
.msc-why.is-revealed .msc-why__list > li {
  transform: translateY(0);
  opacity: 1;
}
.msc-why__num {
  font-family: var(--msc-font-display);
  font-size: 2.25rem;
  letter-spacing: 0.04em;
  color: var(--msc-green);
  line-height: 1;
  min-width: 2.5rem;
}
.msc-why__h3 {
  font-family: var(--msc-font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--msc-charcoal);
  margin: 0 0 0.5rem;
  line-height: 1.05;
}
.msc-why__p {
  margin: 0;
  color: var(--msc-steel);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.msc-why__photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* ─── Latest Tips & Insights ─── */
.msc-tips {
  background: var(--msc-cream);
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 3rem);
}
.msc-tips__title {
  font-family: var(--msc-font-display);
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--msc-charcoal);
  line-height: 0.95;
  margin: 0;
}
.msc-article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--msc-charcoal);
  height: 100%;
}
.msc-article-card__image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}
.msc-article-card:hover .msc-article-card__image { transform: translateY(-4px); }
.msc-article-card__cat {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--msc-green);
  margin-bottom: 0.5rem;
}
.msc-article-card__title {
  font-family: var(--msc-font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--msc-charcoal);
  margin: 0 0 1rem;
  line-height: 1.1;
  transition: color 0.2s;
}
.msc-article-card:hover .msc-article-card__title { color: var(--msc-green-dark); }
.msc-article-card__link {
  color: var(--msc-green-dark);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: auto;
}

/* ─── "Who We Are" section (ported from preview-redesign.html) ─── */
.msc-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--msc-green);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.msc-section-label::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--msc-green);
}
.msc-about {
  /* Dark background runs across the full viewport width */
  background: var(--msc-ink);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: 96px;
  /* Align left text edge with the standard container gutter */
  padding-left: max(24px, calc((100vw - 1280px) / 2));
  padding-right: 0; /* image bleeds to viewport right edge */
}
.msc-about__photo {
  background: url("/assets/img/about.jpg") center 50% / cover no-repeat;
  height: clamp(400px, 48vw, 580px);
  width: 100%;
  border-radius: 12px 0 0 12px;
}
.msc-about__body {
  background: transparent;
  padding: 0;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.msc-about__body .msc-section-label { color: var(--msc-blue); }
.msc-about__body .msc-section-label::before { background: var(--msc-blue); }
.msc-about__h2 {
  font-family: var(--msc-font-display);
  font-size: clamp(38px, 4vw, 60px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.95;
  margin-bottom: 24px;
}
.msc-about__p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  font-weight: 300;
}
.msc-about__p strong { color: #fff; font-weight: 600; }
.msc-about__link,
.msc-about__link:hover,
.msc-about__link:focus {
  color: var(--msc-green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 0;
}
.msc-about__link:hover,
.msc-about__link:focus { opacity: 0.85; }

/* ── Contact page ──────────────────────────────────────────────────────── */
.msc-contact {
  background: var(--msc-cream);
  padding-top: 4rem;
  padding-bottom: 5rem;
}
.msc-contact > .container-xl { width: 100%; }
.msc-contact__title {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.msc-contact__steps {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.msc-contact__steps-title {
  font-family: var(--msc-font-display, "Bebas Neue"), sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--msc-charcoal);
}
.msc-contact__steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.msc-contact__steps-list > li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.msc-contact__step-num {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--msc-green);
  color: #fff;
  font-family: var(--msc-font-display, "Bebas Neue"), sans-serif;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.msc-contact__steps-list strong {
  display: block;
  color: var(--msc-charcoal);
  font-weight: 600;
  margin-bottom: 0.1rem;
  font-size: 0.95rem;
}
.msc-contact__steps-list p {
  margin: 0;
  color: var(--msc-steel);
  font-size: 0.875rem;
  line-height: 1.45;
}
.msc-contact__emergency {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--msc-sand);
  color: var(--msc-steel);
  font-size: 0.875rem;
}

.msc-contact__form-wrap {
  background: #fff;
  border: 1px solid var(--msc-sand);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 12px 28px rgba(13, 13, 13, 0.05);
}

/* ── Contact page reveal animations ───────────────────────────────────── */
@keyframes msc-contact-fade-up {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .msc-contact .msc-overline,
  .msc-contact h1,
  .msc-contact .lead,
  .msc-contact .btn-msc-ghost,
  .msc-contact__steps,
  .msc-contact__form-wrap {
    opacity: 0;
    animation: msc-contact-fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }
  .msc-contact .msc-overline    { animation-delay: 0.05s; }
  .msc-contact h1               { animation-delay: 0.15s; }
  .msc-contact .lead            { animation-delay: 0.25s; }
  .msc-contact .btn-msc-ghost   { animation-delay: 0.35s; }
  .msc-contact__steps           { animation-delay: 0.45s; }
  .msc-contact__form-wrap       { animation-delay: 0.2s; animation-duration: 0.85s; }

  .msc-contact__steps-list > li {
    opacity: 0;
    animation: msc-contact-fade-up 0.55s ease forwards;
  }
  .msc-contact__steps-list > li:nth-child(1) { animation-delay: 0.55s; }
  .msc-contact__steps-list > li:nth-child(2) { animation-delay: 0.65s; }
  .msc-contact__steps-list > li:nth-child(3) { animation-delay: 0.75s; }
}
.msc-contact__step-num { transition: transform 0.25s ease, background 0.25s ease; }
.msc-contact__steps-list > li:hover .msc-contact__step-num {
  transform: scale(1.08);
  background: var(--msc-blue);
}
.msc-contact__form-wrap .form-control,
.msc-contact__form-wrap .form-select,
.msc-contact__form-wrap .form-control:focus,
.msc-contact__form-wrap .form-select:focus {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 768px) {
  .msc-contact__form-wrap { padding: 2.25rem 2.5rem; }
}
.msc-contact__form-wrap .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--msc-charcoal);
  margin-bottom: 0.35rem;
}
.msc-contact__form-wrap .form-control,
.msc-contact__form-wrap .form-select {
  border-color: var(--msc-sand);
}
.msc-contact__form-wrap .form-control:focus,
.msc-contact__form-wrap .form-select:focus {
  border-color: var(--msc-green);
  box-shadow: 0 0 0 0.2rem rgba(2, 209, 31, 0.15);
}
.msc-about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.msc-about__stat-n {
  font-family: var(--msc-font-display);
  font-size: 52px;
  color: var(--msc-blue);
  line-height: 1;
  margin-bottom: 4px;
  animation: msc-stat-fade 6s ease-in-out infinite;
}
.msc-about__stats > div:nth-child(2) .msc-about__stat-n { animation-delay: 0.6s; }
.msc-about__stats > div:nth-child(3) .msc-about__stat-n { animation-delay: 1.2s; }
@keyframes msc-stat-fade {
  0%, 100% { color: var(--msc-blue); }
  50%      { color: var(--msc-green); }
}
.msc-about__stat-l {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
/* About page uses the stat blocks outside the dark msc-about section,
   so re-color the label for the cream/light background. */
.msc-about-bg .msc-about__stat-l,
[data-msc-stats] .msc-about__stat-l {
  color: rgba(13, 13, 13, 0.65);
}
@media (max-width: 860px) {
  .msc-about {
    grid-template-columns: 1fr;
    padding: 56px 24px;
    gap: 2rem;
  }
  /* Photo is a desktop-only two-column element; on mobile it just stacks
     below the copy and lengthens the page, so drop it. */
  .msc-about__photo { display: none; }
  .msc-about__body { padding: 0; max-width: none; }
  /* Keep all three stats on a single row on mobile */
  .msc-about__stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .msc-about__stat-n { font-size: clamp(34px, 11vw, 52px); }
}

/* Service area pill list (legacy, still used on service-area/index.html) */
.msc-towns {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1.5rem;
}
@media (min-width: 576px) { .msc-towns { grid-template-columns: repeat(3, 1fr); } }
.msc-towns li { display: flex; align-items: center; gap: .5rem; }
.msc-towns li::before {
  content: ""; display: inline-block;
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--msc-green);
}

/* Marker-style green highlight behind text, used on h2 accents */
.msc-highlight {
  background-image: linear-gradient(
    transparent 58%,
    var(--msc-green) 58%,
    var(--msc-green) 94%,
    transparent 94%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Homepage "Serving Northern Nevada" band, full-bleed photo + dark overlay */
.msc-area {
  position: relative;
  padding-block: 96px;
  color: #fff;
  background:
    linear-gradient(rgba(13, 13, 13, 0.7), rgba(13, 13, 13, 0.8)),
    url("/assets/img/service-area.jpg") center 65% / cover no-repeat;
}
.msc-area__inner { position: relative; z-index: 1; }
.msc-area h2 { color: #fff; }
.msc-area__towns {
  list-style: none;
  padding: 0;
  margin: 0;
  /* Fixed 5 columns × 2 rows so the 10 towns sit evenly across the width */
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.75rem 2rem;
  font-family: var(--msc-font-display);
  font-size: clamp(1.25rem, 1.8vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.msc-area__towns li {
  display: flex;
  align-items: center;
  gap: .875rem;
  line-height: 1;
}
.msc-area__towns li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.4em;
  background: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}
@media (max-width: 991.98px) {
  .msc-area__towns { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575.98px) {
  .msc-area__towns {
    grid-template-columns: repeat(2, 1fr);
    font-size: 1rem;
    gap: 1rem 1.25rem;
  }
}

/* Inline arrow links, arrow slides right + color darkens on hover */
.msc-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--msc-green);
  transition: color .2s ease;
}
.msc-arrow-link:hover { color: var(--msc-green-dark); }
.msc-arrow-link__arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.msc-arrow-link:hover .msc-arrow-link__arrow { transform: translateX(4px); }

/* Service grid CTA card, arrow on the inner CTA shifts when card is hovered */
.msc-sj-grid-card--cta .msc-sj-grid-card__cta > span {
  display: inline-block;
  transition: transform .25s ease;
}
.msc-sj-grid-card--cta:hover .msc-sj-grid-card__cta > span { transform: translateX(4px); }

/* Phone link in dark CTA band, color shifts to green on hover */
.msc-section--green a.text-decoration-underline { transition: color .2s ease; }
.msc-section--green a.text-decoration-underline:hover { color: var(--msc-green) !important; }

/* Feature section with image bleeding to viewport right edge, copy on the left
   inside the standard container, photo flushes off the right with rounded left corners */
.msc-feature-bleed {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 6rem);
  padding-left: max(24px, calc((100vw - 1280px) / 2));
  padding-right: 0;
}
.msc-feature-bleed__body {
  max-width: 680px;
}
.msc-feature-bleed__photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: clamp(360px, 42vw, 520px);
  width: 100%;
  border-radius: 12px 0 0 12px;
}
@media (max-width: 860px) {
  .msc-feature-bleed {
    grid-template-columns: 1fr;
    padding: 56px 24px;
    gap: 2rem;
  }
  /* Desktop-only two-column photo; hidden on mobile like .msc-about__photo
     so it doesn't stack and lengthen the page. */
  .msc-feature-bleed__photo { display: none; }
}

/* Flat card, white bg, gray border, no rounding, no hover effect */
.msc-card-flat {
  background: #fff;
  border: 1px solid #c7c7c7;
  border-radius: 0;
  padding: 1.5rem 1.75rem;
  height: 100%;
}

/* FAQ section with a darkened photo background, image set per-page via --msc-faq-img */
.msc-faq {
  position: relative;
  background-color: var(--msc-ink);
  background-image:
    linear-gradient(rgba(13, 13, 13, 0.78), rgba(13, 13, 13, 0.88)),
    var(--msc-faq-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.msc-faq h1, .msc-faq h2, .msc-faq h3, .msc-faq h4 { color: #fff; }
.msc-faq--septic     { --msc-faq-img: url('/assets/img/faq-septic.jpg'); }
.msc-faq--portables  { --msc-faq-img: url('/assets/img/faq-portables.jpg'); }
.msc-faq--commercial { --msc-faq-img: url('/assets/img/commercial-fleet.jpg'); }
.msc-faq--products   { --msc-faq-img: url('/assets/img/service-septic.jpg'); }
.msc-faq--dumpsters  { --msc-faq-img: url('/assets/img/service-dumpsters.jpg'); }
.msc-faq--excavation { --msc-faq-img: url('/assets/img/excavation-pit.jpg'); }

/* Accordion on the dark FAQ background, transparent items, white text + borders, white chevron */
.msc-faq .accordion {
  --bs-accordion-color: #fff;
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: rgba(255, 255, 255, 0.3);
  --bs-accordion-border-width: 1px;
  --bs-accordion-btn-color: #fff;
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-active-color: var(--msc-green);
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(2, 209, 31, 0.25);
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2302D11F'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.msc-faq .accordion-item {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}
.msc-faq .accordion-button {
  color: #fff;
  background: transparent;
}
.msc-faq .accordion-button:not(.collapsed) {
  color: var(--msc-green);
  background: transparent;
  box-shadow: none;
}
.msc-faq .accordion-button:focus {
  box-shadow: none;
}
.msc-faq .accordion-body { color: rgba(255, 255, 255, 0.85); }
.msc-faq .accordion-body.text-secondary { color: rgba(255, 255, 255, 0.85) !important; }

/* Bar list, grid of cards, each with its own gray bar on the left;
   content slides out from behind the bar in sequence (left→right, top→bottom). */
.msc-bar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 2rem;
}
@media (max-width: 991.98px) {
  .msc-bar-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .msc-bar-list { grid-template-columns: 1fr; }
}
.msc-bar-list__item {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  overflow: hidden;
}
.msc-bar-list__item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--msc-steel);
  z-index: 2;
}
.msc-bar-list__content {
  /* Visible by default — content is never stuck hidden if JS fails or the
     user prefers reduced motion. The hidden start state below applies only
     once JS has opted in (html.js-reveal). */
  transition: opacity 0.5s ease,
              transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, opacity;
}
html.js-reveal .msc-bar-list__item:not(.is-revealed) .msc-bar-list__content {
  opacity: 0;
  transform: translateX(-110%);
}
.msc-bar-list__item.is-revealed .msc-bar-list__content {
  opacity: 1;
  transform: none;
  will-change: auto;
}
.msc-bar-list__title {
  font-family: var(--msc-font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.4vw + 0.5rem, 1.75rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: var(--msc-charcoal);
}
.msc-bar-list__desc {
  color: var(--msc-steel);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 575.98px) {
  .msc-bar-list__item { padding-left: 1.25rem; }
}

/* Simple variant, 2 columns, no headline hierarchy. Items render as a
   single line of plain text after the slide-in animation finishes. */
.msc-bar-list--simple { grid-template-columns: repeat(2, 1fr); gap: 0.5rem 2rem; }
@media (max-width: 575.98px) {
  .msc-bar-list--simple { grid-template-columns: 1fr; }
}
.msc-bar-list--simple .msc-bar-list__item { padding: 0.4rem 0 0.4rem 1rem; }
.msc-bar-list--simple .msc-bar-list__content {
  font-family: var(--msc-font-body, inherit);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  color: var(--msc-ink, #1a1a1a);
}

/* Steps row, compact borderless step blocks with arrow connectors between */
.msc-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.msc-steps__item { flex: 1 1 0; max-width: 18rem; }
.msc-steps__title {
  font-size: 1.0625rem;
  font-weight: 400;
  margin: 0 0 0.4rem;
  color: var(--msc-charcoal, #1a1a1a);
}
.msc-steps__desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--msc-steel, #6b6b6b);
}
.msc-steps__arrow {
  flex: 0 0 auto;
  align-self: center;
  font-size: 1.5rem;
  color: var(--msc-green, #6fa64a);
  line-height: 1;
}
@media (max-width: 767.98px) {
  .msc-steps { flex-direction: column; align-items: stretch; gap: 1rem; }
  /* Compact: "Step N" eyebrow + title share the top row, description wraps
     below — far shorter than full stacked cards with connector arrows. */
  .msc-steps__item {
    max-width: none;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.6rem;
    align-items: baseline;
  }
  .msc-steps__item > .msc-overline { margin-bottom: 0 !important; }
  .msc-steps__title { margin: 0; }
  .msc-steps__desc { grid-column: 1 / -1; margin-top: 0.35rem; }
  /* Drop the connector arrows — pure vertical bulk on a phone. */
  .msc-steps__arrow { display: none; }
}
.msc-steps--on-dark .msc-steps__title { color: #fff; }
.msc-steps--on-dark .msc-steps__desc  { color: rgba(255, 255, 255, 0.85); }
/* Section with full-bleed photo bg + dark overlay (set inline via style) */
.msc-section--on-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Bullet variant, single column, real disc bullets, keeps slide-in reveal. */
.msc-bar-list--bullet {
  display: block;
  list-style: disc outside;
  padding-left: 1.5rem;
  max-width: 52rem;
}
.msc-bar-list--bullet .msc-bar-list__item {
  display: list-item;
  padding: 0.35rem 0 0.35rem 0.25rem;
  overflow: visible;
}
.msc-bar-list--bullet .msc-bar-list__item::before { display: none; }
.msc-bar-list--bullet .msc-bar-list__item::marker { color: var(--msc-green, #6fa64a); }
.msc-bar-list--bullet .msc-bar-list__content {
  font-family: var(--msc-font-body, inherit);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  text-transform: none;
  letter-spacing: 0;
  color: var(--msc-ink, #1a1a1a);
}

/* On-dark overrides, must come AFTER the bullet variant so they win. */
.msc-section--on-photo,
.msc-section--on-photo p,
.msc-section--on-photo li,
.msc-section--on-photo strong,
.msc-section--on-photo h1, .msc-section--on-photo h2,
.msc-section--on-photo h3, .msc-section--on-photo h4 { color: #fff; }
.msc-bar-list--on-dark .msc-bar-list__content,
.msc-bar-list--on-dark .msc-bar-list__content strong { color: #fff; }
.msc-bar-list--on-dark .msc-bar-list__item::marker { color: #fff; }

/* Sizing-guide section, photo bg with dark overlay, borderless cards */
.msc-sizing {
  padding: 5rem 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.msc-sizing,
.msc-sizing h1, .msc-sizing h2, .msc-sizing h3, .msc-sizing h4,
.msc-sizing p { color: #fff; }
.msc-sizing__eyebrow,
.msc-sizing__lead { color: #fff; }
.msc-sizing__item {
  background: transparent;
  border: 0;
  padding: 0;
  color: #fff;
}

/* Warning-signs section, full-bleed photo bg with dark overlay + bullet list */
.msc-warning {
  padding: 5rem 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.msc-warning__eyebrow { color: rgba(255, 255, 255, 0.75); }
.msc-warning__lead    { color: rgba(255, 255, 255, 0.9); }
.msc-warning__list {
  list-style: disc;
  padding-left: 1.5rem;
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.msc-warning__list li { margin-bottom: 0.5rem; }
.msc-warning__list li::marker { color: var(--msc-green, #6fa64a); }

/* ── Simple line-divider list (vertical accent on the left) ────────────── */
.msc-line-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--msc-ink, #1a1a1a);
}
.msc-line-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.4rem; bottom: 0.4rem;
  width: 1px;
  background: var(--msc-steel);
}

/* Anchor offset for #services so it lands clear of the sticky navbar */
#services { scroll-margin-top: calc(var(--msc-nav-h, 80px) + 1rem); }

/* Contact page: navbar is always compact (is-scrolled) since there is no
   hero, but we still want the full set of nav links + phone to remain
   visible. Override the global fade-out rules. */
.page-contact { background: var(--msc-cream); }
.page-contact .msc-navbar.is-scrolled .navbar-nav,
.page-contact .msc-navbar.is-scrolled .msc-phone {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.page-contact .msc-navbar .nav-link { color: var(--msc-charcoal, #1a1a1a); }
.page-contact .msc-navbar .msc-phone { color: var(--msc-green, #6fa64a); }

/* ── Navbar pill, white translucent pill behind logo + nav links ──────── */
.msc-navbar .container-xl { position: relative; }
.msc-nav-pill {
  display: none;
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 3.25rem;
  transform: translateY(-50%);
  background: linear-gradient(to right, rgba(13, 13, 13, 0.45) 0%, rgba(13, 13, 13, 0.45) 65%, rgba(13, 13, 13, 0) 100%);
  border-radius: 0.375rem;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, width 0.2s ease, left 0.2s ease;
}
@media (min-width: 992px) {
  .msc-nav-pill { display: block; }
  .msc-navbar .msc-brand,
  .msc-navbar .navbar-nav,
  .msc-navbar .d-flex.ms-lg-auto { position: relative; z-index: 1; }
  .msc-navbar:not(.is-scrolled) .navbar-nav { gap: 1.5rem; }
  .msc-navbar:not(.is-scrolled) .navbar-nav .nav-link {
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding-left: 0;
    padding-right: 0;
  }
  .msc-navbar:not(.is-scrolled) .navbar-nav .nav-link:hover,
  .msc-navbar:not(.is-scrolled) .navbar-nav .nav-link:focus,
  .msc-navbar:not(.is-scrolled) .navbar-nav .nav-link.active { color: var(--msc-green); }
}

/* Mobile: the navbar stays a stable sticky bar. The scroll-driven hide/fade
   (is-scrolled / is-hidden) is a desktop flourish; on phones the hamburger is
   the only way into the menu, so the toggler must never become untappable and
   the logo should stay put. */
@media (max-width: 991.98px) {
  .msc-navbar.is-scrolled .navbar-toggler,
  .msc-navbar.is-hidden .msc-brand {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

/* ── Mega menu (Services nav item) ───────────────────────────────────────
   On desktop: hover-triggered full-width panel that drops below the navbar.
   On mobile: collapses inline as a normal stacked list. */
.msc-mega { position: static; }
.msc-mega__toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
.msc-mega__caret {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}
.msc-mega__panel {
  display: none;
  background: rgba(13, 13, 13, 0.45);
  border-radius: 14px;
  padding: 0.5rem 0;
}
@media (min-width: 992px) {
  .msc-mega__panel .row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    --bs-gutter-x: 1.25rem;
  }
  .msc-mega__panel .row > [class*="col-"] {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }
}
.msc-mega__hero {
  display: block;
  position: relative;
  width: 9rem;
  height: 9rem;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
}
.msc-mega__hero-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.msc-mega__hero-layer.is-active { opacity: 1; }
.msc-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  gap: 0;
}
.msc-mega__link {
  display: block;
  font-family: var(--msc-font-sans, "Inter"), sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  padding: 0.3rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.18s ease, padding-left 0.18s ease, border-color 0.18s ease;
}
.msc-mega__link:last-child { border-bottom: 0; }
.msc-mega__link:hover,
.msc-mega__link:focus {
  color: var(--msc-green);
  padding-left: 0.75rem;
  border-bottom-color: rgba(2, 209, 31, 0.4);
}

@media (min-width: 992px) {
  .msc-mega__panel {
    position: absolute;
    left: 0;
    right: auto;
    top: 100%;
    width: max-content;
    max-width: min(36rem, calc(100vw - 2rem));
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    display: block;
    padding: 1rem 1.25rem;
  }
  .msc-mega__panel .container-xl {
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
  .msc-mega:hover > .msc-mega__panel,
  .msc-mega:focus-within > .msc-mega__panel,
  .msc-mega.is-open > .msc-mega__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }
  .msc-mega:hover > .msc-mega__toggle .msc-mega__caret,
  .msc-mega.is-open > .msc-mega__toggle .msc-mega__caret {
    transform: rotate(180deg);
  }
  /* Hide panel entirely when navbar is in scrolled (collapsed) state */
  .msc-navbar.is-scrolled .msc-mega__panel { display: none !important; }
}

@media (max-width: 991.98px) {
  .msc-mega__panel {
    display: block;
    position: static;
    padding: 0.75rem 0 0.5rem;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .msc-mega__panel .container-xl { padding-left: 0; padding-right: 0; }
  .msc-mega__hero { display: none; }
  .msc-mega__list { gap: 0; }
  .msc-mega__link { font-size: 1.5rem; padding: 0.6rem 0.25rem; }
  .msc-mega__link:hover,
  .msc-mega__link:focus { padding-left: 0.5rem; }
  .msc-mega__caret { display: none; }
}

/* Mobile: right-justify the expanded menu — top-level links, the Services
   sub-links, and the CTAs all hug the right edge (same side as the hamburger).
   The logo stays put on the left; Bootstrap drops the menu below it. */
@media (max-width: 991.98px) {
  .msc-navbar .navbar-nav { text-align: right; }
  .msc-navbar .msc-mega__panel,
  .msc-navbar .msc-mega__list { text-align: right; }
  /* Stack the phone + Get a Quote on their own rows, right-aligned. Markup
     order is phone then button, so "Get a Quote" lands on the bottom.
     !important beats Bootstrap's .align-items-center utility here. */
  .msc-navbar #msc-nav > .d-flex {
    width: 100%;
    flex-direction: column;
    align-items: flex-end !important;
  }
}

/* ── Products page ──────────────────────────────────────────────────────── */
.msc-product-card {
  border: 1px solid var(--msc-sand);
  border-radius: 14px;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(13, 13, 13, 0.04);
}
.msc-product-card__name {
  font-family: var(--msc-font-display, "Bebas Neue"), sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: var(--msc-charcoal);
}
.msc-product-card__desc {
  color: var(--msc-steel);
  font-size: 0.95rem;
  line-height: 1.55;
}
.msc-product-card__price {
  font-family: var(--msc-font-display, "Bebas Neue"), sans-serif;
  font-size: 2rem;
  color: var(--msc-green);
  letter-spacing: 0.02em;
  line-height: 1;
}
.msc-product-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 14px;
}
/* Product diagrams / packaging: show the entire image without cropping. */
.msc-product-photo--contain {
  background-size: contain;
  background-repeat: no-repeat;
  padding: 1.5rem;
}

/* ── Article (Insights) page ───────────────────────────────────────────── */
.msc-article {
  background: #fff;
  padding-top: calc(var(--msc-nav-h, 80px) + 1rem);
  padding-bottom: 4rem;
}
.msc-article__wrap { max-width: 44rem; margin: 0 auto; padding-inline: 1.25rem; }
.msc-article__hero { max-width: 56rem; margin: 0 auto 2.5rem; padding-inline: 1.25rem; }
.msc-article__hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  margin-bottom: 2rem;
}
.msc-article__cat {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--msc-green);
  margin-bottom: 0.75rem;
}
.msc-article__title {
  font-size: clamp(1.85rem, 3vw + 1rem, 2.85rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--msc-charcoal);
}
.msc-article__meta {
  color: var(--msc-steel);
  font-size: 0.9rem;
  margin-bottom: 0;
}
.msc-article__body { color: var(--msc-charcoal); font-size: 1.0625rem; line-height: 1.7; }
.msc-article__body > p { margin-bottom: 1.25rem; }
.msc-article__body > h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
  color: var(--msc-charcoal);
}
.msc-article__body > h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  line-height: 1.25;
  color: var(--msc-charcoal);
}
.msc-article__body > ul,
.msc-article__body > ol {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
}
.msc-article__body > ul li,
.msc-article__body > ol li { margin-bottom: 0.5rem; }
.msc-article__body strong { color: var(--msc-charcoal); }
.msc-article__cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--msc-cream);
  border-radius: 12px;
  border-left: 4px solid var(--msc-green);
}
.msc-article__cta p { margin: 0 0 0.85rem; color: var(--msc-charcoal); }
.msc-article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  color: var(--msc-steel);
  text-decoration: none;
  font-size: 0.9rem;
}
.msc-article__back:hover { color: var(--msc-green); }

/* About page, subtle service-area map background behind the white sections */
.msc-about-bg {
  position: relative;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    url("/assets/img/service-area-about.jpg") center center / cover no-repeat;
}
.msc-about-bg > .msc-section { background: transparent; }

/* ─── Feature lists (products page) ─── */
.msc-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.msc-feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--msc-charcoal);
  line-height: 1.55;
}
.msc-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--msc-green);
}
.msc-feature-list__heading {
  font-family: var(--msc-font-display, "Bebas Neue"), sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  text-transform: uppercase;
  margin: 1rem 0 0.75rem;
  color: var(--msc-ink);
}
.msc-feature-list--inverse li { color: rgba(255, 255, 255, 0.92); }
.msc-feature-list--inverse li::before { background: #fff; }
.msc-feature-list--two-col {
  column-count: 2;
  column-gap: 2.5rem;
}
.msc-feature-list--two-col li { break-inside: avoid; }
@media (max-width: 575.98px) {
  .msc-feature-list--two-col { column-count: 1; }
}

/* Map embed wrapper (service area page) */
.msc-map-embed {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(13, 13, 13, 0.12);
}
.msc-map-embed iframe { display: block; }

/* ─── Services overview section label ─── */
.msc-services__head {
  max-width: 1320px;
  margin: 0 auto 2rem;
  text-align: center;
}

/* ─── Overlay-style service cards (3-card row at top) ─── */
.msc-sj-grid-card--overlay { display: block; }
.msc-sj-grid-card--overlay .msc-sj-grid-card__thumb { position: relative; }
.msc-sj-grid-card--overlay .msc-sj-grid-card__thumb::before {
  /* Permanent dark overlay over the image. Overshoot to avoid sub-pixel gaps. */
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    to top,
    rgba(13, 13, 13, 0.85) 0%,
    rgba(13, 13, 13, 0.55) 45%,
    rgba(13, 13, 13, 0.25) 100%
  );
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}
.msc-sj-grid-card--overlay .msc-sj-grid-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  color: #fff;
  pointer-events: none;
}
.msc-sj-grid-card--overlay .msc-sj-grid-card__title {
  color: #fff;
  margin: 0;
}
.msc-sj-grid-card--overlay .msc-sj-grid-card__desc {
  position: static;
  padding: 0;
  margin: 0;
  opacity: 1;
  color: rgba(255, 255, 255, 0.92);
  display: block;
  font-size: 0.875rem;
  line-height: 1.45;
}
.msc-sj-grid-card--overlay .msc-sj-grid-card__overlay-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.msc-sj-grid-card--overlay .msc-sj-grid-card__cue {
  color: var(--msc-green);
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-weight: 400;
  align-self: flex-start;
  transition: color 0.25s ease;
}
.msc-sj-grid-card--overlay .msc-sj-grid-card__cue-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.msc-sj-grid-card--overlay:hover .msc-sj-grid-card__cue { color: var(--msc-green-dark); }
.msc-sj-grid-card--overlay:hover .msc-sj-grid-card__cue-arrow { transform: translateX(4px); }
/* Kill all hover effects on overlay cards */
.msc-sj-grid-card--overlay:hover { transform: none !important; }
.msc-sj-grid-card--overlay:hover .msc-sj-grid-card__title { color: #fff; }
.msc-sj-grid-card--overlay:hover .msc-sj-grid-card__desc { opacity: 1; }
.msc-sj-grid-card--overlay:hover .msc-sj-grid-card__thumb::before { opacity: 1; }

/* Per-card CTA cue inside the hover desc overlay */
.msc-sj-grid-card__cue {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--msc-font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  color: var(--msc-blue);
}

/* ─── Explore Our Services, image-card grid (same treatment as the
   original top services section, laid out 4-up for the eight tiles) ─── */
.msc-explore__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.msc-explore__grid .msc-sj-grid-card {
  transform: none !important;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.msc-explore__grid .msc-sj-grid-card__desc {
  padding: 1.25rem 1.25rem 0.6rem;
}
@media (max-width: 991.98px) { .msc-explore__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .msc-explore__grid { grid-template-columns: 1fr; } }
