/* Homepage corrections from the Rev 3 presentation. */
.hero-video-poster { display: block; width: 100%; height: 100%; }
.hero-video-bg { pointer-events: none; container-type: size; }
/* Cover the banner like object-fit: cover, so the 16:9 video is cropped instead of pillarboxed */
.hero-video-bg iframe { width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); min-width: 0; min-height: 0; }
.hero-video-poster:focus-visible { outline: 4px solid #00d2ee; outline-offset: -4px; }
.hero-content { pointer-events: none; }
.hero-swiper .swiper-slide-active .hero-content a { pointer-events: auto; }
.hero-swiper .swiper-slide:not(.swiper-slide-active) a { pointer-events: none; }
.hero-video-dialog { width: min(1100px, 94vw); max-width: 94vw; padding: 48px 12px 12px; border: 1px solid #027a8b; border-radius: 16px; background: #02121e; color: white; }
.hero-video-dialog::backdrop { background: #000c; }
.hero-video-dialog iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.hero-video-close { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; color: white; font-size: 24px; }
.hero-video-direct { display: inline-block; padding: 10px; color: white; }
body.hero-video-open { overflow: hidden; }
.footer-contact > img[src*="review-rev3"] { background: white; border-radius: 8px; padding: 12px; }

/* Category title card, followed by its product images. */
.cmd-product-groups { display: grid; gap: 28px; margin-top: 36px; }
.cmd-product-group { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0; }
.cmd-product-category { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 28px; border-radius: 14px; background: #053855; color: #fff; }
.cmd-product-category > span { color: #8be5ea; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.cmd-product-category h3 { margin: 14px 0 24px; color: #fff; font-size: 26px; line-height: 1.25; }
.cmd-product-category a { color: #fff; border-bottom: 1px solid #73dce4; padding-bottom: 5px; }
.cmd-product-image { margin: 0; min-width: 0; background: #fff; border: 1px solid #d8e8ea; border-radius: 14px; overflow: hidden; }
.cmd-product-image a { display: flex; flex-direction: column; height: 100%; color: #053855; }
.cmd-product-image img { width: 100%; height: 210px; object-fit: contain; padding: 18px; }
.cmd-product-image figcaption { flex: 1; display: grid; place-items: center; padding: 16px 12px; background: #eaf3f5; color: #053855; text-align: center; font-size: 16px; font-weight: 600; }
.cmd-product-image a:hover figcaption { background: #d8ecef; }
.cmd-product-group a:focus-visible { outline: 3px solid #00b8cc; outline-offset: -3px; }
@media (max-width: 991px) {
  .cmd-product-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Continuous edge-to-edge strip: category, images, next category. */
/* Motion comes from home-rev3.js (auto-scroll + arrows + drag), not a CSS animation */
.cmd-products-marquee { position: relative; width: 100%; overflow: hidden; margin-top: 36px; padding: 8px 0; cursor: grab; touch-action: pan-y; user-select: none; }
.cmd-products-marquee:active { cursor: grabbing; }
.cmd-products-track { display: flex; width: max-content; will-change: transform; }
.cmd-products-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; background: #027a8b; color: #fff; font-size: 20px; box-shadow: 0 8px 20px rgba(5, 56, 85, 0.3); cursor: pointer; transition: background 0.25s ease, transform 0.25s ease; }
.cmd-products-nav:hover { background: #053855; transform: scale(1.08); }
/* Centre the chevron exactly: drop the button's default padding and the icon font's baseline offset */
.cmd-products-nav { padding: 0; line-height: 1; }
.cmd-products-nav i { display: block; line-height: 1; }
.cmd-products-nav i::before { display: block; vertical-align: 0; }
.cmd-products-nav.is-prev i { margin-left: -2px; }
.cmd-products-nav.is-next i { margin-left: 2px; }
.cmd-products-nav:focus-visible { outline: 3px solid #00b8cc; outline-offset: 3px; }
.cmd-products-nav.is-prev { left: 18px; }
.cmd-products-nav.is-next { right: 18px; }
@media (max-width: 575px) {
  .cmd-products-nav { width: 40px; height: 40px; margin-top: -20px; font-size: 17px; }
  .cmd-products-nav.is-prev { left: 8px; }
  .cmd-products-nav.is-next { right: 8px; }
}
.cmd-products-track .cmd-product-groups { display: flex; gap: 18px; margin: 0; padding-right: 18px; flex: 0 0 auto; }
.cmd-products-track .cmd-product-group { display: flex; gap: 18px; margin: 0; padding: 0; }
.cmd-products-track .cmd-product-category,
.cmd-products-track .cmd-product-image { flex: 0 0 280px; width: 280px; min-height: 280px; }
@media (max-width: 575px) {
  .cmd-products-track .cmd-product-category,
  .cmd-products-track .cmd-product-image { flex-basis: 220px; width: 220px; min-height: 240px; }
}
@media (max-width: 575px) {
  .cmd-product-group { gap: 12px; }
  .cmd-product-category { grid-column: 1 / -1; padding: 22px; }
  .cmd-product-category h3 { margin: 10px 0 14px; font-size: 24px; }
  .cmd-product-image img { height: 150px; padding: 12px; }
  .cmd-product-image figcaption { font-size: 14px; }
}
/* Neon-blue glow on hover for every card in the strip */
.cmd-products-track .cmd-product-category,
.cmd-products-track .cmd-product-image { transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; }
.cmd-products-track .cmd-product-category:hover,
.cmd-products-track .cmd-product-image:hover,
.cmd-products-track .cmd-product-image:focus-within { border-color: #007888; box-shadow: 0 0 0 2px #007888, 0 0 14px 4px rgba(0, 120, 136, 1), 0 0 30px 8px rgba(0, 120, 136, 0.6), 0 14px 30px rgba(5, 56, 85, 0.28); transform: translateY(-4px); }
.cmd-products-track .cmd-product-image:hover figcaption { background: #e0fbff; color: #007888; }
.cmd-products-marquee { padding: 46px 0; }
/* A global section style hides overflow; let the lifted card and its glow show */
.cmd-products-track .cmd-product-group { overflow: visible; }
