/* Homepage responsive refinements. Keep product/category layouts untouched. */
body#index main#wrapper.wrapper { display:flex!important; flex-direction:column!important; margin-top:clamp(12px, 1.5vw, 20px)!important; }
body#index main#wrapper.wrapper > .video-slider { order:0!important; width:100%; }
body#index main#wrapper.wrapper > #center-column { order:1!important; width:100%; }
body#index #center-column.bd-homepage-refined .bd-home-stage { display:flex; flex-direction:column; }
body#index #center-column.bd-homepage-refined .bd-equipment--industrial { order:0!important; padding-bottom:2rem!important; }
body#index #center-column.bd-homepage-refined .bd-featured-equipment { order:1!important; }
body#index #center-column.bd-homepage-refined .bd-industrial-intro { padding:2rem 0!important; }
body#index #center-column.bd-homepage-refined .bd-industrial-intro #bd-equipment-title { font-size:clamp(2rem,4.2vw,3.6rem)!important; line-height:1.08!important; }
body#index #center-column.bd-homepage-refined .bd-equipment-grid { display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important; gap:1rem!important; background:transparent!important; scroll-margin-top:1rem; }
body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-equipment-card {
  display:flex!important; flex-direction:column!important; min-height:0!important; height:auto!important;
  padding:0!important; overflow:hidden!important; background:#fff!important; color:#082b4e!important;
  border:1px solid #dce5ee!important; border-radius:10px!important;
}
body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-equipment-card::before,
body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-equipment-card::after { display:none!important; }
body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-equipment-media::before,
body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-equipment-media::after { display:none!important; }
body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-equipment-media {
  position:static!important; display:block!important; width:100%!important; height:260px!important;
  min-height:0!important; inset:auto!important; padding:.5rem!important; background:#fff!important;
}
body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-equipment-media img {
  position:static!important; display:block!important; width:100%!important; max-width:100%!important;
  height:100%!important; max-height:100%!important; inset:auto!important; object-fit:contain!important;
  object-position:center!important; transform:none!important; filter:none!important; opacity:1!important;
}
body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-equipment-copy {
  position:static!important; display:flex!important; flex-direction:column!important; flex:1!important;
  justify-content:flex-start!important; min-height:0!important; height:auto!important; inset:auto!important;
  padding:1rem!important; background:#fff!important; color:#082b4e!important; pointer-events:auto!important;
}
body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-equipment-copy strong { color:#082b4e!important; font-size:1.2rem!important; line-height:1.2!important; text-shadow:none!important; }
body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-equipment-copy small { color:#43546a!important; font-size:.95rem!important; line-height:1.45!important; margin:.6rem 0 1rem!important; text-shadow:none!important; }
body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-card-action {
  position:static!important; display:flex!important; align-items:center!important; justify-content:space-between!important;
  inset:auto!important; margin-top:auto!important; padding:.7rem .8rem!important; width:100%!important;
  background:#0758a7!important; color:#fff!important; font-size:.9rem!important; line-height:1.3!important;
}
body#index #center-column.bd-homepage-refined .bd-equipment-card:focus-visible { outline:3px solid #1590ff; outline-offset:4px; }
body#index #center-column.bd-homepage-refined .bd-video-hero-bg { order:0!important; margin-top:0!important; }
body#index #header .header-top .ps-shoppingcart .header-block__action-btn { color:#fff!important; }
body#index #header .bluedog-support-info__submenu,
body#index #header .bluedog-more-equipment__submenu { left:auto!important; right:0!important; max-width:calc(100vw - 2rem)!important; }
body#index #mobileMenu .menu__link.js-menu-open-child { border:0; background:transparent; text-align:left; font-family:inherit; font-size:inherit; }
body#index .bd-footer-modules .footer__main-top { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem; margin:0!important; }
body#index .bd-footer-modules .footer__main-top > .footer-block { width:auto!important; max-width:100%!important; padding:0!important; }
body#index .bd-footer-columns { gap:2rem; }
body#index .bd-footer a[href^="tel:"] { white-space:nowrap; }
@media (max-width:1199.98px) {
  body#index #center-column.bd-homepage-refined .bd-equipment-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-equipment-media { height:260px!important; }
}
@media (max-width:767.98px) {
  body#index #center-column.bd-homepage-refined .bd-industrial-intro { padding:1.5rem 0!important; }
  body#index #center-column.bd-homepage-refined .bd-industrial-intro #bd-equipment-title { font-size:2rem!important; }
  body#index #center-column.bd-homepage-refined .bd-industrial-intro > p { margin:.8rem 0 1rem!important; }
  body#index #center-column.bd-homepage-refined .bd-industrial-benefits { gap:.6rem!important; margin-bottom:1rem!important; }
  body#index #center-column.bd-homepage-refined .bd-equipment-grid { grid-template-columns:1fr!important; }
  body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-equipment-card { flex-direction:row!important; }
  body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-equipment-media { flex:0 0 34%!important; width:34%!important; height:190px!important; padding:.65rem!important; align-self:center; }
  body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-equipment-copy { width:66%!important; padding:.85rem!important; }
  body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-equipment-copy strong { font-size:1.05rem!important; }
  body#index #center-column.bd-homepage-refined .bd-equipment-grid .bd-equipment-copy small { font-size:.875rem!important; margin:.5rem 0 .7rem!important; }
  body#index .bd-footer-modules .footer__main-top { grid-template-columns:1fr; }
}

/* Keep the module's first video visible while Owl initializes.
   Scope the fallback to direct slides so Owl's generated track stays native. */
body#index main#wrapper.wrapper > .video-slider { min-width:0; max-width:100%; }
body#index .video-slider .owl-carousel:not(.owl-loaded) { display:block; opacity:1; }
body#index .video-slider .owl-carousel:not(.owl-loaded) > .item ~ .item { display:none; }
@media (max-width:767.98px) {
  /* Reserve room for two-line slide titles before any image/script arrives. */
  body#index .video-slider .text-sec { min-height:8rem; }
}

/* Keep the desktop video hero compact and aligned with the equipment content. */
@media (min-width:992px) {
  body#index main#wrapper.wrapper > .video-slider {
    width:calc(100% - 48px); max-width:1180px; margin-inline:auto;
  }
  body#index .video-slider .item .row {
    grid-template-columns:minmax(0,.93fr) minmax(320px,1fr);
  }
  body#index .video-slider .text-sec { padding-right:4.5rem!important; }
}

/* Center the desktop introduction above the equipment categories. */
@media (min-width:992px) {
  body#index #center-column.bd-homepage-refined .bd-industrial-intro {
    margin-inline:auto; text-align:center;
  }
  body#index #center-column.bd-homepage-refined .bd-industrial-intro #bd-equipment-title { margin-inline:auto; }
  body#index #center-column.bd-homepage-refined .bd-industrial-benefits,
  body#index #center-column.bd-homepage-refined .bd-industrial-actions { justify-content:center; }
  body#index #center-column.bd-homepage-refined .bd-industrial-benefits > span { text-align:left; }
}

/* Give featured machines more room while retaining the eight-card grid. */
body#index #center-column.bd-homepage-refined .bd-featured-equipment .module-products {
  width:min(1480px,calc(100% - 2rem)); max-width:1480px;
}
/* One predictable photo frame, including the native picture/link wrappers. */
body#index .bd-featured-equipment .product-miniature__top {
  height:320px!important; min-height:0!important; padding:.75rem!important;
}
body#index .bd-featured-equipment .product-miniature__image-container,
body#index .bd-featured-equipment .product-miniature__image-link,
body#index .bd-featured-equipment .product-miniature__image-link picture {
  display:block!important; width:100%!important; height:100%!important; min-height:0!important;
}
body#index .bd-featured-equipment .product-miniature__image-link::before { display:none!important; }
body#index .bd-featured-equipment .product-miniature__image {
  width:100%!important; height:100%!important; max-height:100%!important;
  object-fit:contain!important; object-position:center!important; transform:none!important;
}
body#index .bd-featured-equipment .product-miniature__bottom { flex:1 1 auto!important; min-height:0!important; }
/* Integrate the hook-driven newsletter with the navy/copper footer. */
body#index footer#footer > .bd-footer-before {
  grid-template-columns:minmax(0,1fr)!important; gap:1rem!important;
  padding:1.5rem max(1.25rem,calc((100% - 1180px)/2))!important;
}
body#index footer#footer .footer__before .ps-socialfollow {
  grid-column:1!important; justify-self:center!important;
}
body#index footer#footer .footer__before .ps-socialfollow > .container { width:auto!important; padding:0!important; }
body#index footer#footer .footer__before .ps-socialfollow ul { flex-direction:row!important; justify-content:center!important; }
body#index footer#footer .footer__before section.ps-emailsubscription,
body#index footer#footer .footer__before section.ps-emailsubscription.bg-body-tertiary {
  grid-column:1!important; justify-self:center!important; max-width:100%!important;
  --bs-tertiary-bg-rgb:5,30,52; --bs-bg-opacity:.94;
  background:rgba(5,30,52,.94)!important; border:1px solid rgba(125,176,218,.35)!important;
  box-shadow:none!important;
}
body#index footer#footer .footer__before section.ps-emailsubscription > .container,
body#index footer#footer .footer__before section.ps-emailsubscription > .container > .row { background:transparent!important; }
body#index footer#footer .footer__before section.ps-emailsubscription p.h3 {
  flex:1 1 260px!important; white-space:normal!important; color:#fff!important;
  -webkit-text-fill-color:#fff!important; font-size:1.15rem!important; line-height:1.35!important;
}
body#index footer#footer .footer__before section.ps-emailsubscription form { flex:1 1 340px!important; min-width:0!important; }
body#index footer#footer .footer__before section.ps-emailsubscription p:not(.h3),
body#index footer#footer .footer__before section.ps-emailsubscription .form-text,
body#index footer#footer .footer__before section.ps-emailsubscription small { color:#c7d7e8!important; -webkit-text-fill-color:#c7d7e8!important; }
body#index footer#footer .footer__before section.ps-emailsubscription input[type=email] { min-width:0!important; }
body#index footer#footer > .bd-footer { margin:0!important; padding:0 0 1.25rem!important; }
body#index footer#footer .bd-footer-intro { padding:1rem 0 1.25rem!important; }
body#index .bd-footer-columns { grid-template-columns:minmax(0,2fr) minmax(180px,1fr); }
@media (max-width:767.98px) {
  /* Keep the artwork visible beside the long mobile card stack. */
  body#index .bd-featured-equipment {
    background-size:auto,auto 640px!important;
    background-position:center,right top!important;
    background-repeat:no-repeat,repeat-y!important;
  }
  body#index .bd-featured-equipment .product-miniature__top { height:240px!important; padding:.5rem!important; }
  body#index .bd-footer-columns { grid-template-columns:1fr; }
  body#index footer#footer .footer__before section.ps-emailsubscription > .container > .row { flex-direction:column!important; align-items:stretch!important; gap:.75rem; }
  body#index footer#footer .footer__before section.ps-emailsubscription p.h3,
  body#index footer#footer .footer__before section.ps-emailsubscription form { flex:0 0 auto!important; width:100%!important; margin:0!important; }
}

/* Concise homepage machine captions, centred below the native product names. */
body#index .bd-featured-equipment .product-miniature__title {
  display:block; width:100%; text-align:center;
}
body#index .bd-featured-equipment .bd-featured-caption {
  width:100%; max-width:34ch; margin:.15rem auto .75rem;
  color:#43546a; font-size:.94rem; line-height:1.45; text-align:center;
  overflow-wrap:anywhere;
}
body#index .bd-featured-equipment .bd-call-for-quote { text-align:center; }
