/**
 * Page-specific styles for the homepage.
 * Homepage MOSINTER UI styles are loaded from /assets/css/legacy/home/index.site.css?v=20260909-cleanup1
 */

/* Product photos and long equipment names share one predictable card layout. */
.home-featured-products-description { max-width: 800px; margin-top: 20px; }
.home-banner-section .banner-product-image { object-fit: contain; }
.home-featured-products-section .equipment-collection-item-1,
.home-featured-products-section .equipment-collection-item-2 {
  gap: 24px;
  height: 100%;
  justify-content: flex-start;
  padding: 32px;
  box-sizing: border-box;
}
.home-featured-products-section .equipment-card-top-wrap {
  flex-direction: column;
  gap: 16px;
  order: 0;
}
.home-featured-products-section .equipment-text-link {
  max-width: none;
  font-size: clamp(20px, 1.6vw, 28px);
  line-height: 1.3;
}
.home-featured-products-section .equipment-details-wrapper {
  align-items: flex-start;
}
.home-featured-products-section .equipment-image-wrapper {
  position: relative;
  inset: auto;
  display: flex;
  width: 100%;
  height: 300px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  order: 1;
}
.home-featured-products-section .equipment-image-wrapper img {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
  transition: transform 280ms ease;
}
.home-featured-products-section .equipment-image-wrapper:hover img {
  transform: scale(1.03);
}
.home-featured-products-section .equipment-bottom-wrap {
  order: 2;
  margin-top: auto;
  gap: 24px;
}
@media (max-width: 767px) {
  .home-featured-products-section .equipment-collection-item-1,
  .home-featured-products-section .equipment-collection-item-2 { padding: 24px 18px; }
  .home-featured-products-section .equipment-image-wrapper { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-featured-products-section .equipment-image-wrapper img { transition: none; }
}

/* Keep homepage equipment notes in normal flow instead of legacy floating offsets. */
.home-banner-section .banner-content-wrapper { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 40px; align-items: center; }
.home-banner-section .home-banner-title-wrap { min-width: 0; padding-block: 30px; }
.home-banner-section .banner-collection-list-wrapper,
.home-banner-section .banner-collection-list { display: block; width: 100%; height: auto; min-width: 0; }
.home-banner-section .banner-collection-item {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px 16px;
  width: 100%; max-width: none; height: auto; padding-block: 24px;
}
.home-banner-section .banner-product-link-block { grid-column: 1 / -1; grid-row: 1; width: 100%; height: 340px; display: block; }
.home-banner-section .banner-product-image { width: 100%; height: 100%; object-fit: contain; }
.home-banner-section .banner-product-side-info-wrap,
.home-banner-section .banner-product-bottom-info-wrap,
.home-banner-section .banner-product-top-info-wrap {
  position: static !important; inset: auto !important; width: auto; max-width: none; min-width: 0;
  display: flex; flex-direction: column; gap: 8px; margin: 0; align-self: start;
}
.home-banner-section .banner-collection-item .small-label { font-size: 11px; line-height: 1.5; color: rgba(255,255,255,.65); white-space: normal; }
.home-banner-section .banner-collection-item .paragraph { margin: 0; font-size: 14px; line-height: 1.5; color: #fff; white-space: normal; overflow-wrap: break-word; }
.home-banner-section .base-container.banner { pointer-events: none; }
.home-banner-section .vertical-lines { display: none; }
@media (max-width:991px) {
  .home-banner-section .banner-content-wrapper { grid-template-columns: 1fr; gap: 16px; }
  .home-banner-section .banner-product-link-block { height: 300px; }
}
@media (max-width:479px) {
  .home-banner-section .banner-collection-item { grid-template-columns: 1fr; gap: 16px; }
  .home-banner-section .banner-product-link-block { height: 240px; }
}

/* Product photo with a single, vertically arranged specification column. */
.home-banner-section .banner-collection-item {
  grid-template-columns: minmax(0,1fr) minmax(150px,0.62fr);
  grid-template-rows: repeat(3,auto);
  column-gap: 24px; row-gap: 0; align-items: center;
}
.home-banner-section .banner-product-link-block {
  grid-column: 1; grid-row: 1 / 4; height: 360px; align-self: center;
}
.home-banner-section .banner-product-side-info-wrap,
.home-banner-section .banner-product-bottom-info-wrap,
.home-banner-section .banner-product-top-info-wrap {
  grid-column: 2; padding: 18px 0 18px 18px;
  border-left: 2px solid rgba(255, 177, 125,.5);
  align-self: stretch; justify-content: center; gap: 7px;
}
.home-banner-section .banner-product-side-info-wrap { grid-row: 1; }
.home-banner-section .banner-product-bottom-info-wrap { grid-row: 2; }
.home-banner-section .banner-product-top-info-wrap { grid-row: 3; }
.home-banner-section .banner-collection-item .small-label {
  font-family: "DM Sans",Arial,sans-serif; font-size: 11px;
  font-weight: 500; letter-spacing: .06em; line-height: 1.45;
  color: #ddbea9;
}
.home-banner-section .banner-collection-item .paragraph {
  font-family: "DM Sans",Arial,sans-serif; font-size: 15px;
  font-weight: 600; line-height: 1.5; color: #fff;
}
@media (max-width:991px) {
  .home-banner-section .banner-collection-item { grid-template-columns: minmax(0,1fr) minmax(160px,.5fr); }
  .home-banner-section .banner-product-link-block { height: 320px; }
}
@media (max-width:479px) {
  .home-banner-section .banner-collection-item { grid-template-columns: minmax(0,1fr) 138px; column-gap: 12px; }
  .home-banner-section .banner-product-link-block { height: 280px; }
  .home-banner-section .banner-product-side-info-wrap,
  .home-banner-section .banner-product-bottom-info-wrap,
  .home-banner-section .banner-product-top-info-wrap { padding: 13px 0 13px 12px; }
  .home-banner-section .banner-collection-item .small-label { font-size: 10px; }
  .home-banner-section .banner-collection-item .paragraph { font-size: 13px; }
}

/* Homepage product image after removing the three side notes. */
.home-banner-section .banner-collection-item { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
.home-banner-section .banner-product-link-block { grid-column: 1; grid-row: 1; }

.home-news-section .blog-cover { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.home-news-section .blog-collection-item { min-width: 0; }

/* No blue edge at rest; restore the inset frame on hover and keyboard focus. */
.home-news-section .blog-link-block{display:block;box-sizing:border-box;width:100%;height:auto;aspect-ratio:4/3;padding:0;border:0;background:#bf4d0a;overflow:hidden;transition:padding 260ms ease;}
.home-news-section .blog-link-block .blog-cover{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;transition:transform 260ms ease;}
.home-news-section .blog-link-block:hover,.home-news-section .blog-link-block:focus-visible{padding:16px;}
.home-news-section .blog-link-block:focus-visible{outline:2px solid #bf4d0a;outline-offset:4px;}
@media(prefers-reduced-motion:reduce){.home-news-section .blog-link-block,.home-news-section .blog-cover{transition:none;}}

.home-banner-section{position:relative;isolation:isolate;overflow:hidden}.home-banner-section>.home-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2;pointer-events:none}.home-banner-section>.overlay{z-index:-1;pointer-events:none}

/* Video hero: give the copy the horizontal space previously occupied by the product card. */
.home-banner-section .banner-content-wrapper{display:block;}
.home-banner-section .home-banner-title-wrap{width:100%;max-width:1100px;padding-block:40px;gap:30px;}
.home-banner-section .home-banner-text-wrap{width:100%;max-width:none;gap:20px;}
.home-banner-section .home-banner-title{width:100%;max-width:none;}
.home-banner-section .home-1-h1{max-width:1050px;font-size:clamp(42px,4.6vw,76px);line-height:1.08;}
.home-banner-section .home-banner-paragraph{width:100%;max-width:780px;font-size:18px;line-height:1.65;}
.home-featured-products-section .home-featured-heading{width:auto;max-width:none;flex:1;}
.home-featured-products-section h2{max-width:none;font-size:clamp(28px,3vw,48px);}
@media(min-width:768px){.home-featured-products-section h2{white-space:nowrap;}}
.home-featured-products-section .equipment-arrow-button{overflow:hidden;transition:background-color 220ms ease,transform 220ms ease,box-shadow 220ms ease;}
.home-featured-products-section .equipment-arrow-button .arrow{transition:transform 240ms ease;}
.home-featured-products-section .equipment-arrow-button .hidden-arrow{display:none;}
.home-featured-products-section .equipment-arrow-button:hover,.home-featured-products-section .equipment-arrow-button:focus-visible{background:#863804;transform:translateY(-3px);box-shadow:0 6px 14px #bf4d0a30;}
.home-featured-products-section .equipment-arrow-button:hover .arrow,.home-featured-products-section .equipment-arrow-button:focus-visible .arrow{transform:translateX(4px);}
@media(max-width:767px){.home-banner-section .home-banner-title-wrap{padding-block:24px;}.home-banner-section .home-banner-paragraph{font-size:16px;}.home-featured-products-section h2{white-space:normal;}}
@media(prefers-reduced-motion:reduce){.home-featured-products-section .equipment-arrow-button,.home-featured-products-section .equipment-arrow-button .arrow{transition:none;}}

.home-banner-section{padding-top:240px;padding-bottom:190px}.home-banner-section .banner-wrap{border:0}.home-banner-section .vertical-lines,.home-banner-section .base-container.banner{display:none}@media(max-width:767px){.home-banner-section{padding-top:170px;padding-bottom:100px}}

.home-product-categories p { text-transform: lowercase !important; }

@media(max-width:767px){
 html body .home-featured-products-section > .base-container { box-sizing:border-box; width:100%; max-width:100%; padding-inline:20px!important; }
 html body .home-featured-products-section .equipment-collection-list { margin-inline:0; width:100%; }
}

html body .home-featured-products-section .equipment-image-wrapper img { object-fit:cover; padding:0; }

/* Chinese hero: allow CJK glyph height and balanced wrapping on narrow screens. */
html:lang(zh) .home-banner-section .home-1-h1 { line-height:1.3; text-wrap:balance; }
html:lang(zh) .home-banner-section .label { white-space:normal; line-height:1.5; }
@media(max-width:767px) {
 html:lang(zh) .home-banner-section .home-1-h1 { font-size:clamp(32px,9vw,42px); }
 html:lang(zh) .home-banner-section .label { font-size:14px; }
}
