.section-video { position: relative; overflow: hidden; }
.static-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.section-video > .vc_column_container { position: relative; z-index: 1; }
.static-map-frame { display: block; border: 0; width: 100%; height: 400px; }
@media (prefers-reduced-motion: reduce) { .static-hero-video { display: none; } }

#footer .ms-reviews {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  color: #fff;
}
#footer .ms-reviews h2 {
  color: inherit;
  font-size: 1.125rem;
  line-height: 1.4;
  margin: 0 0 .4rem;
}
#footer .ms-rating { color: inherit; margin: 0 0 .75rem; }
#footer .ms-rating span { color: #ffcb5c; margin-right: .25rem; }
#footer .ms-review-card {
  display: block;
  background: #fff;
  color: #212529;
  padding: 1rem;
  margin: 0 0 .6rem;
  border-radius: .35rem;
  overflow-wrap: anywhere;
}
#footer .ms-review-card[hidden] { display: none; }
#footer .ms-review-card .ms-review-author { color: #212529; font-weight: 700; }
#footer .ms-review-card p { color: inherit; margin: .4rem 0 0; }
#footer .ms-review-stars { color: #8b5600; }
#footer .ms-review-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
#footer .ms-review-controls button {
  background: #fff;
  color: #212529;
  border: 1px solid #ccc;
  border-radius: .25rem;
  padding: .3rem .6rem;
  font: inherit;
}
#footer .ms-review-controls button:disabled { opacity: .55; }
#footer .ms-review-links { color: inherit; margin: .7rem 0 0; }
#footer .ms-review-links a { color: inherit; text-decoration: underline; }

#footer .footer-main > .container:has(.ms-footer-grid) {
  padding-top: 1.75rem;
  padding-bottom: .85rem;
}
#footer .ms-footer-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
#footer .ms-footer-grid > * { min-width: 0; margin: 0; }
#footer .ms-footer-contact .widget-title,
#footer .ms-review-summary h2 {
  margin: 0 0 .5rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
#footer .ms-review-summary .ms-rating,
#footer .ms-footer-contact .contact-details { margin: 0; }
#footer .ms-footer-photo img {
  display: block;
  width: 100%;
  height: auto;
}
#footer .ms-review-card p { line-height: 1.5; }
#footer .ms-review-links { margin-top: .45rem; }

#footer .ms-footer-review-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
#footer .ms-footer-review-grid > * { min-width: 0; margin: 0; }

@media (min-width: 992px) {
  #footer .ms-footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.16fr);
    column-gap: 1.75rem;
  }
  #footer .ms-footer-review-grid {
    grid-column: 2 / 4;
    grid-template-columns: subgrid;
    grid-template-rows: max-content auto;
    gap: .65rem 1.75rem;
  }
  #footer .ms-footer-photo { grid-area: 2 / 1; }
  #footer .ms-reviews {
    grid-area: 1 / 2 / 3 / 3;
    display: grid;
    grid-template-rows: subgrid;
  }
}

/* A shallower crop keeps the flooring in view. */
.ms-compact-page .section-video {
  height: clamp(12rem, 26vw, 27rem);
  min-height: 0;
  margin-bottom: 0;
  background: #e9e4df url("home-video-poster.jpg") center 72% / cover no-repeat;
}
.ms-compact-page .static-hero-video { object-position: center 72%; }
.ms-compact-page #main .main-content {
  padding-top: clamp(.75rem, 1.7vw, 1.5rem);
  padding-bottom: clamp(.75rem, 1.7vw, 1.5rem);
}
.home.ms-compact-page #main .main-content { padding-top: 0; }
#main .ms-home-intro {
  padding-block: clamp(1rem, 2vw, 1.75rem);
  row-gap: .6rem;
}
#main .ms-home-intro .wpb_content_element { margin-bottom: 0; }
#main .ms-home-intro img {
  width: min(100%, 150px);
  height: auto;
}
#main .ms-home-intro h1 {
  font-size: clamp(1.55rem, 2.7vw, 2.5rem);
  line-height: 1.17;
  margin: 0 0 .65rem;
}
#main .ms-home-intro p {
  margin: 0;
  font-size: clamp(1rem, 1.55vw, 1.24rem);
  line-height: 1.55;
}
#main .ms-home-flooring .vc_empty_space { display: none; }
.ms-compact-page #main .vc_custom_1732376391279 {
  padding-block: clamp(.85rem, 2vw, 1.5rem) !important;
}
.ms-compact-page #main .vc_custom_1732376391279 h1 { margin-bottom: 0; }
@media (max-width: 767px) {
  #main .ms-home-intro img { width: 82px; }
}

#main #content .ms-compact-heading {
  line-height: 1.2;
  margin-block: .4rem .55rem;
  padding-block: 0;
}

#main #content .ms-quote-banner {
  padding-block: 35px !important;
  align-items: center;
}
.ms-compact-page #main #content .ms-quote-banner {
  padding-block: clamp(.85rem, 2vw, 1.5rem) !important;
}
#main #content .ms-quote-banner > .vc_column_container > .vc_column-inner {
  padding-block: 0;
}
#main #content .ms-quote-banner .wpb_text_column,
#main #content .ms-quote-banner :is(h1, h2, h3) {
  margin-block: 0;
  padding-block: 0;
}
