/* Navigation and the cross-section layouts approved at the November review. */
.site-topbar { background:linear-gradient(100deg,#b94e57 0%,#ba2838 54%,#850d20 100%); }
.topbar-links a:hover { background:#950f24; color:white; }
.footer-identity img { width:112px; height:48px; }
.has-submenu { position:relative; display:flex; align-items:center; }
.navbar .has-submenu > .nav-link { padding-right:1px; }
.menu-toggle { color:white; width:25px; height:44px; background:none; border:0; font-size:12px; }
.navbar.is-scrolled .menu-toggle { color:var(--ink); }
.menu-panel,.menu-leaves { min-width:175px; position:absolute; left:0; top:100%; background:white; color:var(--ink); box-shadow:0 8px 24px #14141422; border-top:3px solid var(--brand); }
.menu-panel a,.menu-group summary,.audience-sidebar .sidebar-all,.audience-sidebar summary,.audience-sidebar details a { display:block; padding:11px 17px; border-bottom:1px solid #e7e7e7; line-height:1.55; }
.audience-sidebar .sidebar-all { font-weight:500; color:var(--ink); }
.audience-sidebar .sidebar-all:hover { background:#eee; color:var(--brand); }
.audience-sidebar .sidebar-all.active { background:#fff; color:var(--ink); font-weight:600; border-left:3px solid var(--brand); padding-left:14px; }
.menu-panel a:is(:hover,:focus-visible,[aria-current]),.menu-group summary:is(:hover,:focus-visible),.menu-group[open] > summary { background:var(--brand); color:white; }
.audience-sidebar summary { background:#f5f5f5; color:var(--ink); font-weight:600; }
.audience-sidebar details[open] > summary,.audience-sidebar summary:is(:hover,:focus-visible) { background:var(--brand); color:white; }
.menu-group { position:relative; }
.menu-group summary,.audience-sidebar summary { cursor:pointer; list-style:none; }
summary::-webkit-details-marker { display:none; }
.menu-group summary::after,.audience-sidebar summary::after { content:'›'; float:right; margin-left:12px; }
.audience-sidebar details[open] > summary::after { transform:rotate(90deg); }
.menu-leaves { left:100%; top:-3px; min-width:188px; }
.order-entry,.marketing-button.consult-now { background:var(--brand); color:white; border:0; }
.order-entry { display:inline-flex; align-items:center; padding:8px 16px; font-size:15px; font-weight:600; white-space:nowrap; }
.order-entry:hover,.marketing-button.consult-now:hover { background:var(--brand-deep); color:white; }
.audience-sidebar details a { padding-left:28px; background:white; font-size:14px; }
.audience-sidebar details a.active { color:var(--brand); font-weight:600; background:#fff; border-left:3px solid var(--brand); padding-left:25px; }
.audience-sidebar details a:hover,.map-link { color:var(--brand); text-decoration:underline; }
.after-sales p { max-width:56em; margin:0 auto 22px; }
.catalog-card-services .catalog-caption { color:var(--ink); }
.catalog-card-services a:hover .catalog-caption { color:var(--brand); }
.case-video { display:block; width:100%; max-height:min(75vh,640px); margin:0 auto 28px; background:#16191b; }
.after-sales { text-align:center; }
.about-profile { display:flow-root; }
.about-profile > img { float:left; max-width:42%; margin:0 32px 16px 0; }
.about-profile .body-copy { line-height:1.95; }
.about-history .history-layout { display:block; }
.about-history .inner-heading { text-align:center; margin:0 auto 30px; padding:0; }
.about-history .inner-heading::after { margin-inline:auto; }
.about-history .history-browser { max-width:none; display:grid; justify-items:center; }
.about-history .history-control { margin-left:0; }
.about-history .timeline {
  width:min(100%,860px);
  display:grid;
  grid-auto-rows:var(--year-height,auto);
  max-height:calc(3 * var(--year-height));
  margin:14px 0;
  overflow-y:auto;
  scroll-snap-type:y mandatory;
  scrollbar-width:thin;
}
.about-history .timeline li {
  display:grid;
  grid-template-columns:clamp(65px,12vw,150px) minmax(0,1fr);
  gap:clamp(14px,3vw,44px);
  align-items:center;
  padding:15px 12px;
  min-height:0;
  border-bottom:1px solid #ffffff40;
  scroll-snap-align:start;
  scroll-snap-stop:always;
}
.about-history .timeline li::after,.about-history .timeline time::after { display:none; }
.about-history .timeline time { font-size:clamp(22px,3vw,32px); }
.about-history .timeline li > div { border-left:2px solid #d9959b; padding-left:clamp(12px,2vw,26px); }
.about-history .timeline h3:not(:first-child) { margin-top:8px; }
/* Certificates share one exhibition surface. Each scan keeps its own proportions. */
.home-certificates, .about-honors {
  background: linear-gradient(105deg, #f5f5f4fa 8%, #f6f5f3ed 54%, #efeeece8),
              url('https://media.weixiu021.com/website/assets/customer-20260914/roof-overview.webp') center 44% / cover;
}
.home-certificates .marketing-heading h2, .about-honors .inner-heading h2 { color: var(--ink); }
.home-certificates .heading-english { color: #73727832; }
.honor-strip {
  --honor-gap: clamp(18px, 2vw, 32px);
  --honor-size: clamp(188px, 18vw, 254px);
}
.honor-strip .certificate-gallery {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--honor-gap)) / 4);
  gap: var(--honor-gap);
  align-items: start;
  padding: 8px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.honor-strip.has-controls .certificate-gallery { scrollbar-width: none; }
.honor-strip.has-controls .certificate-gallery::-webkit-scrollbar { display: none; }
.honor-strip .certificate-gallery figure {
  display: grid;
  grid-template-rows: var(--honor-size) auto;
  margin: 0;
  min-width: 0;
  scroll-snap-align: start;
}
.honor-strip .certificate-gallery .gallery-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 6px;
  background: transparent;
  box-shadow: none;
}
.honor-strip .certificate-gallery img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 0 0 1px #29252219, 0 3px 9px #302c241a;
}
.honor-strip .certificate-gallery figcaption { grid-row: 2; padding: 15px 4px 0; text-align: center; }
.honor-strip .certificate-gallery figcaption strong { color: var(--ink); font-size: 17px; font-weight: 600; }
.honor-strip .certificate-gallery figcaption p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: #625f5c; }
.honor-controls { display: flex; align-items: center; margin-top: 24px; }
.honor-controls button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 44px;
  padding: 0;
  border: 1px solid #bcb7b4;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
}
.honor-controls button + button { border-left: 0; }
.honor-controls button:disabled { color: #8c8583; }
.honor-controls button:enabled:hover { color: white; background: var(--brand); }
.honor-progress { flex: 1; position: relative; margin-left: 20px; height: 2px; background: #d6d2cf; }
.honor-progress::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--honor-offset);
  width: var(--honor-visible);
  background: var(--brand);
}
.home-partners .partner-gallery,.about-partners .partner-gallery { grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(10px,1.4vw,22px); }
.partner-gallery figure,.about-partners .partner-gallery figure { min-height:110px; padding:14px; background:white; }
.partner-gallery figure:has(img) figcaption { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.partner-gallery img { width:152px; height:68px; object-fit:contain; }
.home-process { text-align:center; background:linear-gradient(#fffffff0,#f0f0f0df),url('https://media.weixiu021.com/website/assets/customer-20260914/roof-overview.webp') center/cover; color:var(--ink); }
.home-process .marketing-heading { justify-content:center; }
.home-process .marketing-heading h2 { color:var(--ink); }
.process-icons { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); list-style:none; gap:16px; padding:0; margin:34px 0; }
.process-icons li { position:relative; text-align:center; }
.process-icons li > span { width:clamp(66px,6.6vw,94px); aspect-ratio:1; border:5px solid #dedcdc; border-radius:50%; display:grid; place-items:center; margin:auto; background:white; color:var(--brand); font-size:clamp(28px,3vw,42px); }
.process-icons li:not(:last-child)::after { content:'»'; position:absolute; top:clamp(17px,1.7vw,26px); left:calc(100% + 8px); transform:translateX(-50%); color:#777; font-size:24px; }
.process-icons h3 { margin:14px 0 0; font-size:16px; }
.news-desk { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.6fr); gap:20px 35px; }
.news-column:first-child { grid-row:span 2; }
@media (min-width:768px) {
  .news-column:first-child { display:flex; flex-direction:column; }
  .news-column:first-child .home-news-item { flex:1; display:grid; }
  .news-column:first-child .home-news-item p { -webkit-line-clamp:3; }
}
.news-column { min-width:0; }
.news-column > header { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; background:#f2f2f2; border-left:3px solid var(--brand); }
.news-column > header h3 { font-size:20px; margin:0; }
.news-column > header a { font-size:14px; }
.news-column .home-news-item { border:none; border-bottom:1px solid var(--line); }
.news-column .home-news-item > a { min-height:0; padding:14px 5px; gap:16px; }
.news-column .home-news-item img { width:105px; height:74px; object-fit:cover; flex:none; }
.news-column h4 { font-size:17px; margin:0; line-height:1.55; }
.news-column p { margin:5px 0 0; }
.news-column b { display:inline-grid; place-items:center; width:21px; height:21px; font-size:13px; border-radius:2px; margin-right:7px; background:#26344c; color:white; }
.news-column p b { background:var(--brand); }
.news-empty { padding:22px 8px; color:var(--muted); }
@media (min-width:992px) and (max-width:1250px) {
  .navbar-brand { margin-right:12px; }
  .navbar .navbar-collapse { margin-left:0; }
  .navbar .navbar-nav .nav-link { font-size:16px; padding-inline:7px; --nav-px:7px; }
  .navbar .navbar-nav .has-submenu > .nav-link { padding-right:0; }
}
@media (max-width:991px) {
  .navbar-collapse { overflow-y:auto; max-height:calc(100dvh - 68px); }
  .has-submenu { display:grid; grid-template-columns:minmax(0,1fr) 44px; }
  .menu-toggle { width:44px; color:var(--ink); }
  .menu-panel,.menu-leaves { position:static; grid-column:1/-1; box-shadow:none; border:none; background:#f5f5f5; }
  .menu-leaves { padding-left:14px; }
  .order-entry { margin-top:8px; }
  .honor-strip .certificate-gallery { grid-auto-columns: calc((100% - 2 * var(--honor-gap)) / 3); }
}
@media (max-width:767px) {
  .about-profile > img { float:none; display:block; max-width:100%; margin:0 0 18px; }
  .home-partners .partner-gallery,.about-partners .partner-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .honor-strip { --honor-size: clamp(168px, 55vw, 230px); --honor-gap: 16px; }
  .honor-strip .certificate-gallery { grid-auto-columns: min(73%, 300px); }
  .honor-strip .certificate-gallery figcaption { padding-top: 9px; }
  .honor-controls { margin-top: 17px; }
  .partner-gallery figure,.about-partners .partner-gallery figure { min-height:80px; }
  .process-icons { grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px 4px; margin:20px 0; }
  .process-icons li:not(:last-child)::after { display:none; }
  .process-icons li > span { width:54px; font-size:24px; border-width:3px; }
  .process-icons h3 { font-size:14px; margin-top:8px; }
  .news-desk { grid-template-columns:1fr; gap:24px; }
  .news-column:first-child { grid-row:auto; }
  .footer-identity img { width:100px; height:44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
}
